/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #000000;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

section {
  padding: 70px 8%;
}

h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 30px;
}

/* HEADER */
header {
  background: #0f0e0e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-z {
  width: 65px;
 height: 65px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 5px #ff00ff)
    drop-shadow(0 0 12px #ff00ff)
    drop-shadow(0 0 25px rgba(255, 0, 255, 0.8));
}

.logo-text {
  color: white;
  font-size: 26px;
  margin-left: 5px;
}






/* TEXTO CELL */
.logo-text {
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 2px;
    text-shadow:
    0 0 5px #ff00ff,
    0 0 10px #ff00ff,
    0 0 20px #ff00ff,
    0 0 35px rgba(255, 0, 255, 0.8);
}

/* HERO */
.hero {
  height: 85vh;
  background-image: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), url("../img/fondo1.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.hero-content h2 {
color: #e91e63;
  font-size: 42px;
  text-align: left;
}

.hero-content p {
  max-width: 600px;
}



.hero-content .logo-z {
  margin: 0;                 /* QUITA SEPARACIONES */
}

.hero-content .logo-text {
  margin: 0;
  line-height: 1;            /* ALINEACIÓN PERFECTA */
}


/* BOTÓN CATÁLOGO */
.btn-catalogo {
  margin-top: 25px;
  padding: 14px 32px;
  background: #e91e63;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: background .3s ease;
}

.btn-catalogo:hover {
  background: #d81b60;
}

/* MODAL CATÁLOGO */
.catalogo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.catalogo-box {
  background: white;
  width: 90%;
  max-width: 900px;
  padding: 30px;
  border-radius: 20px;
  position: relative;
  animation: fadeIn .3s ease;
  overflow: hidden;      /* evita scroll externo */
}

.catalogo-grid {
  max-height: 55vh;      /* área donde se mueve la ruedita */
  overflow-y: auto;      /* SOLO aquí se hace scroll */
  padding-right: 8px;
}

.catalogo-box h3 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 26px;
}

/* GRID 3 COLUMNAS */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 HORIZONTALES */
  grid-auto-rows: auto;
  gap: 20px;
  max-height: 520px; /* controla el alto */
  overflow-y: auto;  /* scroll si es necesario */
  padding-right: 5px;
}


/* CUADROS IGUALES */
.catalogo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;      /* CUADRADO */
  object-fit: contain;      /* NO RECORTA */
  background: #f7f7f7;
  padding: 10px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform .3s ease;
}

.catalogo-grid img:hover {
  transform: scale(1.05);
}



/* CERRAR */
.close-catalogo {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .catalogo-grid img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .catalogo-grid img {
    height: 200px;
  }
}


/* ANIMACIÓN */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* HISTORIA */
.history {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.history img {
  width: 100%;
  border-radius: 20px;
}

/* SLIDER HISTORIA */
.history-slider {
  position: relative;
  width: 100%;
  height: 450px;            /* ALTURA FIJA */
  overflow: hidden;
}

.history-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* se adapta sin deformar */
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.history-slider img.active {
  opacity: 1;
}


/* VISIÓN / MISIÓN */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.testimonial {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}


/* ALMACÉN */

/* CAJA ALMACÉN */
.almacen-box {
  background: #ffffff;
  border-radius: 25px;
  padding: 40px;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Ajuste del título dentro de la caja */
.almacen-box h2 {
  margin-bottom: 40px;
}

#almacen {
  background:#F6F6F6;
}

.almacen-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* TEXTO */
.almacen-texto p {
  font-size: 16px;
  line-height: 1.7;
}

/* SLIDER */
.almacen-slider {
  position: relative;
  width: 100%;
  height: 450px;        /* TAMAÑO FIJO */
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.almacen-slider img,
.almacen-slider video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.almacen-slider .active {
  opacity: 1;
}



.videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}


.video-card{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  overflow: hidden;

  border: 2px solid #c300ff;
  box-shadow:
    0 0 6px rgba(195, 0, 255, 0.9),
    0 0 14px rgba(195, 0, 255, 0.7),
    0 0 28px rgba(195, 0, 255, 0.4);
}
.video-card iframe {
    width: 100%;
  aspect-ratio: 16 / 9;
 border-radius: 15px;
 height: 100%;
  border: none;

}

/* UBICACIÓN */
#ubicacion {
  display: flex;
  justify-content: center;
}

.ubicacion-box {
  background: white;
  max-width: 900px;
  width: 100%;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);

  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: center;
}

.ubi h2 {
  text-align: left;
  color: #e91e63;
}

.map iframe {
  width: 100%;
  height: 300px;
  border-radius: 15px;
  border: none;
}

/* REDES */
.socials {
  display: flex;
  justify-content: center;
  gap: 25px;
  font-size: 30px;
}

.socials i {
  color: #e91e63;
}

/* FOOTER */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 10px 0;      /* antes seguramente era 40px o más */
  font-size: 16px;      /* texto más pequeño */
  line-height: 1.4;

}


/* ===== TESTIMONIOS CUADRADOS PERFECTOS ===== */

.videostik {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

/* CUADRADO PERFECTO */
.videostik .item {
  aspect-ratio: 1 / 1;      /* SIEMPRE CUADRADO */
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}

/* CONTENIDO INTERNO */
.videostik img,
.videostik video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* NO SE DEFORMA */
  display: block;

}

/* MODAL */
#mediaModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#mediaModal.active {
  display: flex;
}

#mediaModal .modal-content img,
#mediaModal .modal-content video {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 15px;
}

.header-contacto {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto; /* EMPUJA A LA DERECHA */
  font-size: 15px;
}

.header-contacto a {
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.header-contacto i {
  color: #25D366; /* color WhatsApp */
  font-size: 20px;
  text-shadow:
    0 0 5px rgba(37, 211, 102, 0.9),
    0 0 10px rgba(37, 211, 102, 0.6);
}

.header-contacto strong {
  color: #25D366;
  font-weight: 600;
}

.header-contacto a:hover {
  text-decoration: underline;
}




#mediaModal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}


/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  overflow-x: hidden;
}

/* FOOTER MÁS BAJO */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 10px 5px;
  font-size: 14px;
}


/* VIDEOS YOUTUBE */
#videos iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

/* MODAL (overlay) */
#mediaModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#mediaModal.active {
  display: flex;
}

#mediaModal img,
#mediaModal video {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 15px;
}

#mediaModal .close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  color: white;
  cursor: pointer;
}


/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow:
    0 8px 20px rgba(37, 211, 102, 0.6),
    0 0 15px rgba(37, 211, 102, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none; /* QUITA LA LÍNEA AZUL */
}

.whatsapp-float i {
  color: white;
  font-size: 32px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow:
    0 10px 25px rgba(37, 211, 102, 0.8),
    0 0 25px rgba(37, 211, 102, 1);
}


/* RESPONSIVE */
@media (max-width: 1024px) {
  .videostik {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .videostik {
    grid-template-columns: repeat(2, 1fr);
  }

  footer {
    font-size: 13px;
  }
}

/* ===== TESTIMONIOS (VIDEOSTIK) EN CELULAR ===== */
@media (max-width: 480px) {

  .videostik {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en celular */
    gap: 12px;
  }

  .videostik img,
  .videostik video {
    height: 160px; /* tamaño equilibrado */
  }
}



@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
  }

  .header-contacto {
    margin-left: 0;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    justify-content: center;
    text-align: center;
  }
}


/* ===== ALMACÉN RESPONSIVE (MÓVIL) ===== */
@media (max-width: 768px) {

  .almacen-container {
    grid-template-columns: 1fr; /* una sola columna */
  }

  /* SLIDER ARRIBA */
  .almacen-slider {
    order: 1;
    height: 260px; /* más bajo para móvil */
  }

  /* TEXTO ABAJO */
  .almacen-texto {
    order: 2;
    text-align: center;
  }

  .almacen-texto p {
    font-size: 15px;
    line-height: 1.6;
  }
}

/* ===== TESTIMONIOS YOUTUBE RESPONSIVE ===== */
@media (max-width: 768px) {

  .videos {
    grid-template-columns: 1fr; /* una sola columna */
    gap: 20px;
  }

}


/* ===== UBÍCANOS – MAPA CUADRADO Y RESPONSIVE ===== */
@media (max-width: 768px) {

  .ubicacion-box {
    grid-template-columns: 1fr; /* una sola columna */
    gap: 25px;
    text-align: center;
  }

  .ubi h2 {
    text-align: center;
  }

  .ubi p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* MAPA CUADRADO */
  .map iframe {
    width: 100%;
    aspect-ratio: 1 / 1; /* CUADRADO PERFECTO */
    height: auto;
    border-radius: 18px;
  }
}



/* ===== NUESTRA HISTORIA CENTRADA Y EN CAJA ===== */

#historia {
  background: #F6F6F6;
}

/* CAJA GENERAL */
#historia .history {
  background: #ffffff;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);

  display: flex;
  flex-direction: column;
  align-items: center;   /* CENTRA TODO */
  gap: 30px;
  text-align: center;    /* TEXTO CENTRADO */
}

/* SLIDER CENTRADO */
.history-slider {
  width: 100%;
  max-width: 700px;      /* no se desborda */
  height: 380px;
  margin: 0 auto;
}

/* TEXTO */
#historia p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}



@media (max-width: 768px) {

  #historia .history {
    padding: 25px;
  }

  .history-slider {
    height: 260px;
  }

  #historia p {
    font-size: 15px;
    line-height: 1.6;
  }
}


/* ===== CATÁLOGO RESPONSIVE EN CELULAR ===== */
@media (max-width: 768px) {

  .catalogo-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 15px;
  }

  .catalogo-grid img {
    aspect-ratio: 1 / 1;   /* cuadradas */
    height: auto;
    padding: 8px;
  }
}


/* ===== BLOQUEO DE SCROLL EXTERNO EN CATÁLOGO ===== */

/* Evita scroll lateral */
.catalogo-modal,
.catalogo-box,
.catalogo-grid {
  overscroll-behavior: contain;
}

/* SOLO el grid del catálogo scrollea */
.catalogo-grid {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 60vh; /* área visible del catálogo */
}

/* BLOQUEA EL SCROLL DEL BODY CUANDO EL CATÁLOGO ESTÁ ABIERTO */
/* Funciona en navegadores modernos */
body:has(.catalogo-modal[style*="flex"]),
body:has(.catalogo-modal[style*="block"]) {
  overflow: hidden;
}


/* ===== MODAL TESTIMONIOS: CONTENIDO CENTRADO ===== */

#mediaModal {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 0;               /* NO agrega espacio */
}

#mediaModal.active {
  display: flex;
}

/* CONTENIDO (IMAGEN / VIDEO) */
#mediaModal .modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* IMAGEN / VIDEO CENTRADOS */
#mediaModal img,
#mediaModal video {
  max-width: 90vw;
  max-height: 85vh;
  margin: 0;
  border-radius: 15px;
}

/* BOTÓN CERRAR (X) FLOTANTE */
#mediaModal .close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 36px;
  color: #ffffff;
  cursor: pointer;
  z-index: 10000;

  /* NO ocupa espacio */
  padding: 0;
  line-height: 1;
}



/* ===== NUESTRA HISTORIA: LAPTOP VS CELULAR ===== */

/* ===== ESCRITORIO / LAPTOP ===== */
@media (min-width: 769px) {

  #historia .history {
    display: grid;
    grid-template-columns: 1fr 1fr; /* imagen izquierda, texto derecha */
    align-items: center;
    gap: 40px;
    text-align: left;
  }

  .history-slider {
    height: 420px;
  }

  #historia p {
    margin: 0;
  }
}

/* ===== CELULAR ===== */
@media (max-width: 768px) {

  #historia .history {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* IMÁGENES ARRIBA, COMPLETAS Y CENTRADAS */
  .history-slider {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* formato limpio en móvil */
    margin: 0 auto;
  }

  .history-slider img {
    object-fit: contain; /* NO recorta la imagen */
    background: #fff;    /* evita bordes negros */
  }

  /* TEXTO */
  #historia p {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 10px;
  }
}



/* ===== FONDO NEGRO GLOBAL ===== */
body {
  background-color: #000000 !important;
  overflow-x: hidden;
}

/* Todas las secciones en negro */
section,
#almacen,
#historia,
#ubicacion,
#videos,
#testimonios {
  background-color: #000000 !important;
}


/* ===== CAJA INTERNA DEL FOOTER MISMO COLOR ===== */
footer,
footer section,
footer #comentarios {
  background-color: #222222 !important;
}

/* ===== CONTORNO NEÓN MORADO EN CAJAS ===== */
.testimonial,
.almacen-box,
.ubicacion-box,
#historia .history,
.catalogo-box,
.video-card,
.videostik .item {
  border: 2px solid #c300ff;
  box-shadow:
    0 0 6px rgba(195, 0, 255, 0.9),
    0 0 14px rgba(195, 0, 255, 0.7),
    0 0 28px rgba(195, 0, 255, 0.4);
}


/* TITULOS EN BLANCO */
#historia h2,
#videos h2,
#almacen h2,
section h2 {
  color: #ffffff !important;
}

/* TÍTULO UBICACIÓN EN NEGRO */
#ubicacion h2 {
  color: #000000 !important;
}


/* VIDEOS TESTIMONIOS – CARGA INSTANTÁNEA */
#testimonios video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
