/* Estilos compartidos DMV (extraídos del export de Stitch) */

.material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        }
        .glass-nav {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }
        .hero-gradient {
            background: linear-gradient(to bottom, rgba(0, 30, 43, 0.6), rgba(0, 30, 43, 0.3));
        }
        .wave-pattern {
            background-image: radial-gradient(circle at 2px 2px, rgba(10, 110, 189, 0.05) 1px, transparent 0);
            background-size: 24px 24px;
        }
        @keyframes pulse-green {
            0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
            70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
            100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
        }
        .animate-whatsapp {
            animation: pulse-green 2s infinite;
        }
        .card-hover-effect:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(10, 110, 189, 0.12);
        }

.material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        }
        .glass-header {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }
        .product-card-shadow {
            box-shadow: 0 10px 30px -5px rgba(10, 110, 189, 0.08);
        }
        @keyframes pulse-whatsapp {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
            70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
        }
        .animate-pulse-whatsapp {
            animation: pulse-whatsapp 2s infinite;
        }

.material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        }
        .glass-effect {
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }
        @keyframes pulse-whatsapp {
            0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
            70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
            100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
        }
        .animate-pulse-whatsapp {
            animation: pulse-whatsapp 2s infinite;
        }
        .product-shadow {
            box-shadow: 0 10px 30px -10px rgba(10, 110, 189, 0.08);
        }

.material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
            display: inline-block;
            line-height: 1;
        }
        .glass-card {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(28, 163, 196, 0.1);
        }
        .whatsapp-pulse {
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
            animation: pulse-green 2s infinite;
        }
        @keyframes pulse-green {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
        }

/* ============================================================
   DMV — estilos propios añadidos al reorganizar el proyecto
   ============================================================ */

/* Menú móvil: el contenedor del menú principal se muestra como
   panel desplegable bajo la barra cuando se activa el botón. */
@media (max-width: 1279px) {
  #primary-nav.mobile-open {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 16px 40px rgba(1,166,226,0.15);
    border-top: 1px solid rgba(193,199,211,0.5);
  }
  #primary-nav.mobile-open .relative.group > div { /* dropdowns visibles en móvil */
    position: static; opacity: 1; visibility: visible; width: 100%;
    box-shadow: none; margin-top: .25rem;
  }
}

/* Reveal-on-scroll de respaldo por si ScrollReveal no carga */
.reveal-up, .reveal-left, .reveal-stagger { will-change: transform, opacity; }

/* ---- Mega-menú "Productos" dentro del menú móvil ---- */
@media (max-width: 1279px) {
  #primary-nav.mobile-open { max-height: 80vh; overflow-y: auto; }
  #primary-nav.mobile-open .mega-panel {
    position: static; transform: none; opacity: 1; visibility: visible;
    width: 100%; box-shadow: none; border: none; padding: 0.25rem 0 0; margin: 0;
  }
  #primary-nav.mobile-open .mega-panel .grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---- Video de fondo del hero ---- */
.hero-video { object-position: center; }
/* Accesibilidad: si el usuario pide menos movimiento, se oculta el video y queda el póster */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* ============================================================
   Fondo de agua de "Nuestras Líneas"
   ------------------------------------------------------------
   Tres capas, de atrás hacia adelante:
     1. cáusticas — las manchas de luz que hace el sol al cruzar
        el agua; son degradados muy difuminados que se desplazan
     2. gotas     — anillos que se expanden, como una gota al caer
     3. burbujas  — suben con bamboleo y tienen brillo propio
   Todo es decorativo: no recibe clics y se detiene si el sistema
   de la persona pide menos movimiento.
   Solo se animan transform y opacity, que van por GPU.
   ============================================================ */
/* Versión clara: la usa el catálogo, donde el contenido manda */
.seccion-agua {
    background:
        radial-gradient(circle at 2px 2px, rgba(10, 110, 189, .05) 1px, transparent 0) 0 0/24px 24px,
        linear-gradient(180deg, #eaf6fe 0%, #d6ecfb 48%, #e8f5fe 100%);
}

/* Versión honda: la usa "Nuestras Líneas" en la portada.
   Sobre un azul claro las luces y las burbujas no se ven —no hay contra qué
   brillar—. Con el fondo profundo el agua por fin se lee, y las tarjetas
   quedan flotando encima. */
.seccion-agua-honda {
    background:
        radial-gradient(ellipse 120% 80% at 50% -10%, rgba(120, 200, 245, .22) 0%, transparent 60%),
        linear-gradient(180deg, #01426e 0%, #015490 42%, #013a62 100%);
    color: #fff;
}
/* un velo abajo, como el agua que se oscurece con la profundidad */
.seccion-agua-honda::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 24, 43, .35) 100%);
    z-index: 1;
}

.agua {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ---------- 1. Cáusticas ---------- */
.agua .caustica {
    position: absolute;
    border-radius: 48% 52% 55% 45% / 50% 46% 54% 50%;
    background: radial-gradient(circle at 38% 34%,
                rgba(255, 255, 255, .85) 0%,
                rgba(186, 225, 250, .55) 35%,
                rgba(10, 110, 189, .14) 70%,
                transparent 100%);
    filter: blur(44px);
    opacity: .75;
    mix-blend-mode: soft-light;
    animation: vagar linear infinite;
}
.agua .caustica:nth-child(1) { width: 46vw; height: 34vw; left: -6%;  top: -8%;  animation-duration: 34s; }
.agua .caustica:nth-child(2) { width: 38vw; height: 30vw; left: 34%;  top: 28%;  animation-duration: 46s; animation-delay: -12s; }
.agua .caustica:nth-child(3) { width: 42vw; height: 32vw; right: -8%; bottom: -6%; animation-duration: 40s; animation-delay: -24s; }

@keyframes vagar {
    0%   { transform: translate3d(0, 0, 0) scale(1)    rotate(0deg); }
    33%  { transform: translate3d(5vw, 3vh, 0) scale(1.14) rotate(40deg); }
    66%  { transform: translate3d(-3vw, 5vh, 0) scale(.92) rotate(-28deg); }
    100% { transform: translate3d(0, 0, 0) scale(1)    rotate(0deg); }
}

/* ---------- 2. Gotas ---------- */
.agua .gota {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(10, 110, 189, .40);
    opacity: 0;
    animation: onda ease-out infinite;
}
.agua .gota:nth-of-type(1) { left: 16%; top: 24%; animation-duration: 7s;  animation-delay: 1s; }
.agua .gota:nth-of-type(2) { left: 68%; top: 58%; animation-duration: 9s;  animation-delay: 4s; }
.agua .gota:nth-of-type(3) { left: 44%; top: 78%; animation-duration: 11s; animation-delay: 7s; }

@keyframes onda {
    0%   { transform: scale(.2); opacity: 0; }
    8%   {                       opacity: .55; }
    /* el anillo se abre y se apaga; el resto del ciclo es la pausa */
    40%  { transform: scale(7);  opacity: 0; }
    100% { transform: scale(7);  opacity: 0; }
}

/* ---------- 3. Burbujas ---------- */
.burbujas { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/* el <span> sube y la <i> de adentro se bambolea: dos ritmos distintos
   dan una trayectoria serpenteante en vez de una línea recta */
.burbujas span {
    position: absolute;
    bottom: -14%;
    display: block;
    will-change: bottom;
    animation: subir linear infinite;
}
.burbujas i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%,
                rgba(255, 255, 255, .95) 0%,
                rgba(190, 228, 250, .55) 36%,
                rgba(10, 110, 189, .26) 72%,
                rgba(0, 85, 150, .14) 100%);
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: inset -3px -5px 10px rgba(0, 85, 150, .14),
                inset 4px 5px 12px rgba(255, 255, 255, .8),
                0 3px 12px rgba(0, 85, 150, .08);
    animation: bambolear ease-in-out infinite alternate;
}
/* el reflejo: el punto de luz que tiene toda burbuja arriba a la izquierda */
.burbujas i::after {
    content: "";
    position: absolute;
    left: 22%;
    top: 16%;
    width: 26%;
    height: 22%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    filter: blur(1px);
}

@keyframes subir {
    0%   { bottom: -14%; opacity: 0; }
    6%   {               opacity: .8; }
    92%  {               opacity: .55; }
    100% { bottom: 108%; opacity: 0; }
}
@keyframes bambolear {
    from { transform: translateX(-9px) scale(.97); }
    to   { transform: translateX(9px)  scale(1.03); }
}

/* Tres planos de profundidad: las del fondo van borrosas, pequeñas y
   lentas; las de adelante, nítidas y grandes. Eso da la sensación de
   volumen que no daba una sola capa. */
.burbujas span { position: absolute; }
.burbujas span:nth-child(3n+1) i { filter: blur(1.6px); opacity: .55; }
.burbujas span:nth-child(3n+2) i { filter: blur(.5px);  opacity: .8; }

.burbujas span:nth-child(1)  { left: 3%;  width: 54px; height: 54px; animation-duration: 21s; animation-delay: 0s;  }
.burbujas span:nth-child(2)  { left: 10%; width: 20px; height: 20px; animation-duration: 14s; animation-delay: 5s;  }
.burbujas span:nth-child(3)  { left: 17%; width: 88px; height: 88px; animation-duration: 29s; animation-delay: 2s;  }
.burbujas span:nth-child(4)  { left: 25%; width: 32px; height: 32px; animation-duration: 17s; animation-delay: 9s;  }
.burbujas span:nth-child(5)  { left: 33%; width: 66px; height: 66px; animation-duration: 25s; animation-delay: 13s; }
.burbujas span:nth-child(6)  { left: 40%; width: 16px; height: 16px; animation-duration: 12s; animation-delay: 3s;  }
.burbujas span:nth-child(7)  { left: 48%; width: 100px; height: 100px; animation-duration: 33s; animation-delay: 7s; }
.burbujas span:nth-child(8)  { left: 56%; width: 38px; height: 38px; animation-duration: 19s; animation-delay: 16s; }
.burbujas span:nth-child(9)  { left: 64%; width: 24px; height: 24px; animation-duration: 15s; animation-delay: 10s; }
.burbujas span:nth-child(10) { left: 72%; width: 74px; height: 74px; animation-duration: 27s; animation-delay: 1s;  }
.burbujas span:nth-child(11) { left: 80%; width: 44px; height: 44px; animation-duration: 20s; animation-delay: 19s; }
.burbujas span:nth-child(12) { left: 87%; width: 18px; height: 18px; animation-duration: 13s; animation-delay: 6s;  }
.burbujas span:nth-child(13) { left: 93%; width: 60px; height: 60px; animation-duration: 24s; animation-delay: 11s; }
.burbujas span:nth-child(14) { left: 97%; width: 28px; height: 28px; animation-duration: 16s; animation-delay: 15s; }

.burbujas i { animation-duration: 4.5s; }
.burbujas span:nth-child(2n) i { animation-duration: 6.5s; }
.burbujas span:nth-child(3n) i { animation-duration: 5.5s; }

@media (prefers-reduced-motion: reduce) {
    .agua .caustica,
    .agua .gota,
    .burbujas span,
    .burbujas i { animation: none; }
    .agua .gota  { opacity: .2; transform: scale(4); }
    .burbujas span { bottom: auto; top: 26%; opacity: .32; }
}


/* ============================================================
   Buscador del encabezado
   ============================================================ */
#buscador.abierto { display: block; }
#buscador .resultado-activo { background: #e8f6ff; }
@media (prefers-reduced-motion: no-preference) {
    #buscador.abierto > div:last-child { animation: buscador-entra .18s ease-out; }
}
@keyframes buscador-entra {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Tamaño del logo del encabezado
   ------------------------------------------------------------
   Está acá, y no en una clase de Tailwind, para que puedas cambiarlo
   sin recompilar nada: este archivo se carga DESPUÉS de Tailwind.
   Para ajustarlo, cambia el 4.5rem de abajo y recarga con Cmd+Shift+R.

   El [class] del selector es a propósito: sin él, "header nav img" es
   un selector de elemento y pierde contra las clases de Tailwind.
   ============================================================ */
header nav img[class] { height: 3.5rem; width: auto; }   /* celular */
@media (min-width: 768px) {
    header nav[class]     { height: 7rem; }              /* alto de la barra */
    header nav img[class] { height: 4.5rem; }            /* <-- tamaño del logo */
}


/* ---------- Ajustes de las capas sobre el fondo hondo ---------- */
.seccion-agua-honda .caustica {
    mix-blend-mode: screen;
    opacity: .5;
    filter: blur(52px);
}
.seccion-agua-honda .gota {
    border-color: rgba(190, 232, 255, .75);
    border-width: 2px;
}
.seccion-agua-honda .burbujas i {
    background: radial-gradient(circle at 32% 28%,
                rgba(255, 255, 255, .95) 0%,
                rgba(205, 237, 255, .45) 38%,
                rgba(140, 205, 245, .20) 72%,
                rgba(255, 255, 255, .06) 100%);
    border-color: rgba(255, 255, 255, .7);
    box-shadow: inset -3px -5px 12px rgba(0, 60, 110, .25),
                inset 4px 5px 14px rgba(255, 255, 255, .55),
                0 2px 16px rgba(150, 220, 255, .18);
}
.seccion-agua-honda .burbujas span:nth-child(3n+1) i { opacity: .45; }
.seccion-agua-honda .burbujas span:nth-child(3n+2) i { opacity: .7; }
