@import url('https://fonts.googleapis.com/css2?family=Agbalumo&family=Chewy&display=swap');

/* RESET & VARIABLES GENERALES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Fuente unificada para todos los párrafos y descripciones del sitio */
body, p, span, a, li, .product-description {
  font-family: 'TuFuentePrincipalDeTextos', sans-serif; /* La misma en Inicio, Productos, etc. */
}
/* h1 {
  font-family: 'Agbalumo', cursive, sans-serif !important;
} */

/* Fuente unificada para todos los títulos principales y de tarjetas */
 h1,h2, h3, h4, h5, h6, 
.product-title {
  font-family: 'TuFuenteDeTitulos', sans-serif; /* La misma en todas las vistas */
}
}



:root {
  --primary: #00b7ff;       /* Azul Cian Moderno */
  --primary-dark: #0050c8;
  --accent: #ff00ff;        /* Rosa/Magenta Sofisticado */
  --accent-hover: #b0124a;
  --dark: #1f2937;          /* Gris Oscuro / Texto */
  --light-bg: #f8f9fa;      /* Fondo Claro Clean */
  --white: #ffffff;
  --gray-border: #e5e7eb;
  --whatsapp-green: #0affa2;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 25px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--light-bg);
  color: var(--dark);
  line-height: 1.6;
  position: relative;
}

/* TOP ANNOUNCEMENT BAR */
.announcement-bar {
  background-color: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 8px 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

/*inicio nav*/
/* ==========================================================================
   ESTRUCTURA DE CAPAS INDEPENDIENTES PARA EL BOLSILLO
   ========================================================================== */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
}

/* TOP BAR BLANCA */
.top-bar {
  background-color: #ffffff;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px 30px;
  height: 45px;
  position: relative;
  z-index: 10;
}

.social-icons {
  position: absolute;
  left: 50%;
  transform: translateX(-100%);
  display: flex;
  gap: 20px;
}

.social-icons a{
  background-color: var(--accent);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: var(--light-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 2px 10px;
  background-color: #ffffff;
}

.search-box input {
  border: none;
  outline: none;
  font-size: 0.8rem;
  width: 150px;
}

/* BARRA AZUL BASE */
.main-nav {
  position: relative;
  height: 52px;
  background-color: var(--primary, #00b7ff);
  border-top: 8px solid var(--primary-dark, #0050c8); /* Borde superior para toda la barra recta */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 30px;
  overflow: visible !important; /* IMPORTANTE: Permite que el bolsillo sobresalga */
  border-radius: 3px;
}
/* ==========================================================================
   AJUS-7 DE PRECISIÓN DE CAPAS PARA EL BOLSILLO
   ========================================================================== */

/* 1. CAPA DEL BORDE AZUL OSCURO (Apertura suave y punta profunda) */
.pocket-border {
  position: absolute;
  top: -6px;
  left: 0;
  width: 520px;       /* Ampliamos el ancho total del bolsillo */
  height: 80px;       /* Altura total para la caida */
  background-color: var(--primary-dark, #0050c8);
  z-index: 1;

  /* 
    Puntos:
    0% 0%: Arriba a la izquierda (deja ver el fondo blanco arriba)
    0% 25%: Baja por el borde lateral
    35% 100%: PUNTA MÁS PROFUNDA EN EL EJE Y (Bolsillo)
    100% 0%: Subida diagonal hacia la barra azul recta
  */
  clip-path: polygon(
    0% 0%,
    0% 20%,
    78% 85%,
    65% 68%,
    155% 10%
  );
  -webkit-clip-path: polygon(
    0% 0%,
    0% 20%,
    18% 85%,
    35% 68%,
    100% 0%
  );
}

/* 2. CAPA FRONTAL AZUL CLARO (Desfasada para revelar el borde oscuro) */
.pocket-bg {
  position: absolute;
  top: -10px;
  left: 0;
  width: 512px;
  height: 75px;
  background-color: white;
  z-index: 2;
  

  /* Deja expuesto el borde oscuro abajo y en la diagonal */
  clip-path: polygon(
    0% 0%,
    0% 15%,
    17% 68%,
    17% 68%,
    100% 0%
  );
  -webkit-clip-path: polygon(
    0% 0%,
    0% 20%,
    17% 68%,
    17% 68%,
    100% 0%
  );
}

/* POSICIONAMIENTO DEL LOGO DENTRO DEL BOLSILLO */
.brand-logo {
  position: absolute;
  left: 45px;          /* Lo ubica en la zona más ancha del bolsillo */
  top: -78px;         /* Ajusta la altura para que repose sobre el área azul */
  z-index: 10;        /* Mantiene el logo por encima de todas las capas */
  width: 190px;       /* Tamaño proporcional para no saturar el espacio */
  display: block;
}

.brand-logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* MENÚ DE NAVEGACIÓN */
.nav-list {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
}

.nav-list a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 1px;
  transition: background 0.3s ease;
  border-radius: 4px;
}

.nav-list a:hover,
.nav-list a.active {
  background-color: var(--primary-dark, #0050c8);
}

/*fin nav*/

/*MENU HAMBURGUESA */

/* ==========================================================================
   ESTILOS BASE DEL BOTÓN HAMBURGUESA (Oculto en Desktop)
   ========================================================================== */
.hamburger-btn {
  display: none; /* Por defecto oculto en pantallas grandes */
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  padding: 5px 10px;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE) - De 992px hacia abajo
   ========================================================================== */
@media (max-width: 992px) {
  
  /* 1. MOSTRAR EL BOTÓN HAMBURGUESA */
  .hamburger-btn {
    display: block;
  }

  /* 2. REORGANIZAR EL MENÚ DESPLEGABLE */
  .nav-list {
    position: absolute;
    top: 100%; /* Aparece justo debajo del nav */
    right: 0;
    width: 250px;
    background-color: var(--primary-dark, #0050c8);
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
    gap: 15px;
    border-radius: 0 0 0 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    
    /* Estado inicial: Oculto */
    display: none;
  }

  /* Clase que activa JavaScript al dar clic */
  .nav-list.show {
    display: flex;
  }

  .nav-list a {
    width: 100%;
    display: block;
    padding: 8px 12px;
  }

  /* 3. REAJUSTAR EL BOLSILLO PARA PANTALLAS PEQUEÑAS */
  .pocket-border {
    width: 260px; /* Reducimos el ancho para que no choque con la hamburguesa */
    height: 70px;
    clip-path: polygon(
      0% 0%,
      0% 20%,
      22% 75%,
      100% 0%
    );
    -webkit-clip-path: polygon(
      0% 0%,
      0% 20%,
      22% 75%,
      100% 0%
    );
  }

  .pocket-bg {
    width: 255px;
    height: 66px;
    clip-path: polygon(
      0% 0%,
      0% 15%,
      22% 70%,
      100% 0%
    );
    -webkit-clip-path: polygon(
      0% 0%,
      0% 15%,
      22% 70%,
      100% 0%
    );
  }

  /* Reajuste del logo en móvil */
  .brand-logo {
    width: 110px;
    left: 10px;
    top: -22px;
  }
}

/* BOTONES GENERALES */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--dark);
}

.btn-secondary:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
}



.slider-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--dark);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Estilos Base para Celular y Pantallas General */
.containercarrusel {
  margin-top: 70px; /* Separación de la navbar en móvil */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.containercarrusel .carousel-item img {
  width: 100%;
  height: auto; /* Permite que la altura escale proporcionalmente */
  max-height: 675px; /* Limite opcional para que no sea gigante en PC */
  object-fit: contain; /* Muestra el 100% de la imagen sin recortar bordes */
  object-position: center;
}

/* Ajustes de margen superior según el alto de tu Navbar */
@media (min-width: 300px) {
  .containercarrusel {
    margin-top: 95px;
  }
}


@media (min-width: 576px) {
  .containercarrusel {
    margin-top: 95px;
  }
}

@media (min-width: 768px) {
  .containercarrusel {
    margin-top: 95px; /* Ajuste para iPad */
  }
}

@media (min-width: 992px) {
  .containercarrusel {
    margin-top: 95px;
  }
}

/* Monitores grandes, TVs y pantallas Ultra-Wide */
@media (min-width: 1200px) {
  .containercarrusel {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* ==========================================================================
   FEATURES-SECTION: FONDO FULL WIDTH (100% ANCHO) Y GRID CENTRADO
   ========================================================================== */

.features-section {
  position: relative !important;
  width: 100% !important; /* Ocupa todo el ancho de la pantalla */
  max-width: 100% !important; /* Elimina la restricción del ancho máximo */
  background-color: var(--primary-dark) !important; /* Tu color azul de nav:hover */
  padding: 60px 40px !important; /* Espaciado interno horizontal y vertical */
  margin: 0 !important; /* Elimina márgenes laterales */
  box-sizing: border-box !important;
  z-index: 1 !important;

  /* Mantiene las 2 columnas pero distribuidas internamente */
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important; 
  gap: 30px !important;
}



/* Tarjetas individuales dentro del bloque */
.features-section .feature-card {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 16px !important;
  padding: 40px 30px !important;
  text-align: center !important;
  color: #ffffff !important;
  box-shadow: none !important;
  cursor: default !important;
  transition: none !important;
  transform: none !important;
  
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Evita animaciones hover */
.features-section .feature-card:hover {
  transform: none !important;
  box-shadow: none !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Tamaño de íconos y textos */
.features-section .feature-card i,
.features-section .feature-card svg,
.features-section .feature-card img,
.features-section .feature-card .icon {
  font-size: 3.2rem !important;
  width: 60px !important;
  height: 60px !important;
  margin-bottom: 16px !important;
  color: #ffffff !important;
  fill: #ffffff !important;
}

.features-section .feature-card h3,
.features-section .feature-card h4 {
  color: #ffffff !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.features-section .feature-card p {
  color: #ffffff !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  opacity: 0.95 !important;
  margin: 0 !important;
}

/* Responsivo para celulares */
@media (max-width: 768px) {
  .features-section {
    grid-template-columns: 1fr 1fr ;
    padding: 40px 20px !important;
    gap: 20px !important;
  }
 
}

/* PRODUCTOS GRID */
.products-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
}

.section-title p {
  color: #6b7280;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 5;
}

.product-image {
  height: 220px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info .category {
  font-size: 0.8rem;
  color: var(--primary-dark);
  font-weight: 600;
  text-transform: uppercase;
}

.product-info h3 {
  font-size: 1.15rem;
  margin: 6px 0;
}

.rating {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.rating span {
  color: #6b7280;
  margin-left: 5px;
}

.product-info .description {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-buy {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--whatsapp-green);
  color: var(--white);
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.btn-buy:hover {
  background-color: #1eb857;
}

@media (max-width: 768px) {
  .product-card {
    height: 350px;
  }
}

/* ==========================================
   SECCIÓN SOBRE NOSOTROS DUAL (AZUL/BLANCO)
   ========================================== */

.about-section-custom {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Estructura general de bloques */
.about-block {
  width: 100%;
  padding: 50px 20px;
  position: relative;
}

.block-top {
  background-color: #0056cf; /* Azul de tu marca */
  color: #ffffff;
}

.block-bottom {
  background-color: #ffffff;
  color: #333333;
}

.block-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
}

/* Tipografía */
.block-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.block-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Lista del bloque inferior */
.custom-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-list li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
  position: relative;
  color: #222222;
}

/* Imágenes de la asesora */
.person-img {
  flex-shrink: 0;
  width: 260px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.person-img img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
}

/* Ajustes Responsivos (Tablets y Móviles) */
@media (max-width: 991px) {
  .block-container {
    flex-direction: column;
    text-align: center;
  }
  
  .block-bottom .block-container {
    flex-direction: column-reverse; /* Coloca la imagen debajo en móviles */
  }

  .person-img {
    width: 200px;
  }
  
  .block-content h2 {
    font-size: 1.6rem;
  }
  
  .custom-list li {
    text-align: left;
  }
}
/* FOOTER */
.main-footer {
  background-color: var(--dark);
  color: #9ca3af;
  padding: 60px 20px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

/* Descripción de la marca */
.footer-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #9ca3af;
  margin-top: 10px;
}

/* JERARQUÍA DE TÍTULOS (Nivel principal de sección en el footer) */
.footer-col h4,
.footer-title {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  position: relative;
}

/* Línea decorativa sutil opcional bajo los títulos para dar orden visual */
.footer-col h4::after,
.footer-title::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
  margin-top: 6px;
}

/* Navegación y Enlaces */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul a,
.footer-contact-list a,
.footer-contact-list span {
  color: #9ca3af;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-col ul a:hover,
.footer-contact-list a:hover {
  color: var(--accent);
  transform: translateX(4px); /* Pequeño efecto dinámico al pasar el cursor */
}

/* Lista de contacto alineada con iconos */
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-contact-list i {
  color: var(--accent);
  margin-top: 3px; /* Centra visualmente el ícono con el texto */
}

/* Redes sociales */
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-socials a {
  color: var(--white);
  background: rgba(255,255,255,0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.footer-socials a:hover {
  color: var(--white);
  background-color: var(--accent);
}

/* Copyright inferior */
.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #6b7280;
}

/* Logo del footer */
.footer-col.brand-col img,
.brand-col img {
  width: 120px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

/* Estilos para pantallas móviles (320px a 575px) */
@media screen and (min-width: 320px) and (max-width: 575px) {

 

  .main-footer {
    text-align: center;
  }

  .footer-container {
    /* Forzar 1 sola columna para centrar mejor el grid */
    grid-template-columns: 1fr; 
  }

  /* Centra los iconos de redes sociales */
  .footer-socials {
    justify-content: center;
  }

  /* Centra la imagen del logo */
  .footer-col.brand-col img,
  .brand-col img {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-col ul {
    padding: 0;
    margin: 0;
  }
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--whatsapp-green);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  text-decoration: none;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.tooltip-text {
  position: absolute;
  right: 70px;
  background: var(--dark);
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.whatsapp-float:hover .tooltip-text {
  opacity: 1;
}

/* PRELOADER FULLSCREEN RESPONSIVE */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  /* Utiliza 100dvh para evitar saltos por las barras dinámicas del navegador en móvil */
  height: 100dvh; 
  background-color: transparent !important;
  background: transparent !important; /* Ajusta este color al de tu fondo de video (por ejemplo, el azul cian) */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  overflow: hidden;
}

#preloader-video {
  width: 100%;
  height: 100%;
  /* Cambiamos 'cover' por 'contain' para garantizar que el video nunca se recorte */
  object-fit: cover; 
  max-width: 100%;
  max-height: 100%;
}



/* Clase para ocultar el preloader */
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


@media (max-width: 992px) {
  
  /* 1. MOSTRAR EL BOTÓN HAMBURGUESA */
  .hamburger-btn {
    display: block;
  }

  /* 2. REORGANIZAR EL MENÚ DESPLEGABLE */
  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background-color: rgba(0, 80, 200, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
    gap: 15px;
    border-radius: 0 0 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    display: none;
  }

  .nav-list.show {
    display: flex;
  }

  .nav-list a {
    width: 100%;
    display: block;
    padding: 8px 12px;
  }

  /* 3. REAJUSTAR EL BOLSILLO PARA PANTALLAS PEQUEÑAS */
  .pocket-border {
    width: 280px;
    height: 75px;
    clip-path: polygon(
      0% 0%,
      0% 20%,
      22% 75%,
      100% 0%
    );
    -webkit-clip-path: polygon(
      0% 0%,
      0% 20%,
      22% 75%,
      100% 0%
    );
  }

  .pocket-bg {
    width: 275px;
    height: 70px;
    clip-path: polygon(
      0% 0%,
      0% 15%,
      22% 70%,
      100% 0%
    );
    -webkit-clip-path: polygon(
      0% 0%,
      0% 15%,
      22% 70%,
      100% 0%
    );
  }

  /* 4. POSICIONAMIENTO Y ESCALA DEL LOGO EN PANTALLAS PEQUEÑAS */
  .brand-logo {
    width: 120px;   /* Reducimos el ancho para que entre en la cuna */
    left: 25px;     /* Desplazamos a la derecha dentro del espacio blanco */
    top: -50px;     /* Subimos la posición vertical para centrarlo */
  }
}

/* MEDIA QUERIES (RESPONSIVE) */
@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
 
  #preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh; /* Cubre el alto total del navegador móvil */
    background-color: #000; /* O el color principal de tu marca */
  }

  #preloader-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Estira el video para cubrir toda la pantalla */
    object-position: center !important; /* Mantiene el centro del video siempre enfocado */
  }


  .social-icons {
    display: none;
  }

  /* Ajustamos la barra superior para distribuir el contenido */
  .top-bar {
    justify-content: flex-end;
    padding: 6px 15px;
  }

  /* La caja de búsqueda se adapta al espacio disponible */
  .search-box {
    display: flex !important;
    width: 100%;
    max-width: 220px; /* Ancho cómodo para teléfonos */
  }

  .search-box input {
    width: 100% !important;
    font-size: 0.8rem;
  }

  /*
    SE ELIMINÓ: .main-nav { display: none; }
    AHORA EL NAV SE MANTIENE VISIBLE PARA QUE LA HAMBURGUESA Y EL BOLSILLO FUNCIONEN
  */
  .main-nav {
    display: flex !important;
    position: relative;
  }


  .search-box input {
    width: 100px;
  }
}

/* AJUSTES PARA PANTALLAS MUY PEQUEÑAS (ANCHO MENOR O IGUAL A 370PX) */
@media (max-width: 360px) {
  /* En pantallas súper pequeñas (menos de 370px) permitimos que la caja siga visible */
  .search-box, 
  .header-actions {
    display: flex !important;
  }

  .search-box {
    max-width: 170px; /* Reducimos ligeramente el ancho para que no desborde */
  }

  .logo-text {
    font-size: 1.2rem;
  }


  /* 4. Dar una distribución limpia a los elementos restantes */
  .header-container {
    padding: 10px 12px;
    justify-content: space-between;
  }

  /* 1. Centrar texto general e ítems del grid */
  .main-footer,
  .footer-container,
  .footer-col {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 2. Centrar el logo en la primera columna */
  .footer-col.brand-col img,
  .brand-col img {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* 3. Centrar los íconos de redes sociales */
  .footer-socials {
    justify-content: center !important;
    width: 100%;
  }

  /* 4. Quitar márgenes o alineaciones a la izquierda de la lista */
  .footer-col ul {
    padding-left: 0 !important;
  }

  .footer-col ul li a {
    text-align: center !important;
  }
}