/* =====================================================
   GCAB Company - Hoja de estilos minimalista
   Paleta única: blanco / tinta tenue / azul eléctrico / navy
   Filosofía: tipografía masiva + mucho whitespace + un solo accent
   ===================================================== */

/* 1. TOKENS ------------------------------------------- */
:root {
    /* Paleta — sistema de diseño GCAB (v2026) */
    --c-white:        #FFFFFF; /* surface */
    --c-soft:         #EEF3FD; /* fondos, botones, formas */
    --c-primary:      #1323E5; /* azul eléctrico — títulos, botones, logos, iconos */
    --c-primary-dark: #0D1AB3; /* hover, sombras profundas */
    --c-primary-2:    #0D1AB3; /* alias para hover legacy */
    --c-navy:         #00115B; /* navy profundo — texto descriptivo, fondos oscuros */
    --c-text:         #00115B; /* texto principal */
    --c-muted:        #5C616F; /* gris azulado — subtítulos, texto descriptivo */
    --c-border:       #DCE2F1; /* borde sutil con tinte azul */
    --c-pill:         rgba(19, 35, 229, .10); /* primary al 10% para chips/badges */

    /* Sombra base con tinte azul (firma de marca) */
    --shadow-card:  0 2px 20px rgba(19, 35, 229, .06);
    --shadow-float: 0 18px 50px -18px rgba(19, 35, 229, .22), 0 6px 18px -6px rgba(19, 35, 229, .10);

    /* Tipografía — Inter Tight matchea exactamente el body del PDF original.
       Headlines en weight 200 (ExtraLight) replican el "Stack Sans Headline ExtraLight". */
    --font-sans: 'Inter Tight', 'DM Sans', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

    /* Geometría */
    --radius-sm: 6px;
    --radius-md: 16px; /* spec cards */
    --radius-lg: 22px;
    --container: 1280px;
    --gutter: clamp(1.25rem, 3.5vw, 2rem); /* gutter ~32px en desktop */

    /* Easing */
    --ease-out:  cubic-bezier(.16, 1, .3, 1);
    --ease-soft: cubic-bezier(.2, .8, .2, 1);

    /* Transiciones base */
    --t: .35s var(--ease-soft);
}

/* 2. RESET ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--c-text);
    background: var(--c-white);
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Anti-jank: scroll suave nativo para anchors + scroll-padding por el header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: clamp(80px, 9vw, 100px);
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Foco visible para teclado (accesibilidad). El click con ratón no muestra el ring. */
:where(a, button, input, select, textarea, [tabindex]):focus { outline: none; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 3px;
    border-radius: 4px;
}
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible { outline: none; }

/* Tipografía replicada del PDF original:
   - Headlines (h1, h2): peso 200 (ExtraLight) — refinado, editorial.
   - Subhead (h3): peso 300 (Light).
   - Microcopy (h4): peso 600 (Semibold) para que destaque pequeño.
*/
h1, h2, h3, h4 {
    color: var(--c-primary);
    margin: 0 0 .5em;
    line-height: 1.05;
}
h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 200;
    letter-spacing: -0.035em;
}
h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 200;
    letter-spacing: -0.035em;
    line-height: 1.05;
}
h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
h4 {
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.3;
}
p  { margin: 0 0 1em; }

/* 3. UTILIDADES -------------------------------------- */
.container {
    width: min(100% - var(--gutter) * 2, var(--container));
    margin-inline: auto;
}
.narrow { max-width: 640px; }
.center { text-align: center; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .85rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--c-muted);
    margin: 0 0 1.25rem;
}
.eyebrow::before {
    content: '';
    width: 28px; height: 1px;
    background: var(--c-border);
    flex-shrink: 0;
}
.eyebrow.on-dark { color: rgba(255,255,255,.72); }
.eyebrow.on-dark::before { background: rgba(255,255,255,.32); }
.eyebrow.center { justify-content: center; }

.lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--c-muted);
    max-width: 560px;
    line-height: 1.6;
    font-weight: 400;
}
.lead.on-dark-soft { color: rgba(255,255,255,.72); }

.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.section-head { max-width: 820px; margin: 0 0 clamp(3rem, 6vw, 5rem); }
.section-head h2 .text-soft { color: var(--c-text); font-weight: 200; }
.contact h2 .text-soft { color: rgba(255,255,255,.5); }
.video-text h2 .text-soft { color: rgba(255,255,255,.65); }

.section-head.split {
    display: flex; align-items: end; justify-content: space-between;
    flex-wrap: wrap; gap: 1.5rem;
    max-width: 100%;
}

/* 4. BOTONES — pill, peso 600, padding 0.75/2rem ------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: none;
    transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
    white-space: nowrap;
    border: 1.5px solid transparent;
    will-change: transform;
}
.btn-sm     { padding: .55rem 1.25rem; font-size: .74rem; }
.btn-block  { width: 100%; }

.btn-primary {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
    box-shadow: 0 6px 18px -6px rgba(19, 35, 229, .35);
}
.btn-primary:hover {
    background: var(--c-primary-dark);
    border-color: var(--c-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(19, 35, 229, .45);
}

.btn-outline {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: transparent;
}
.btn-outline:hover { background: var(--c-primary); color: #fff; }

.btn-outline-dark {
    border-color: var(--c-text);
    color: var(--c-text);
    background: transparent;
}
.btn-outline-dark:hover { background: var(--c-text); color: #fff; }

/* 5. HEADER (integrado en el top → píldora flotante en scroll) */
.site-header {
    position: fixed;
    top: 0;
    left: 0; right: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition:
        top .4s var(--ease-soft),
        transform .4s var(--ease-soft),
        opacity .4s var(--ease-soft),
        visibility .4s var(--ease-soft);
}
.site-header.is-scrolled {
    top: clamp(.75rem, 1.5vw, 1.5rem);
    opacity: 1;
    visibility: visible;
}
.site-header > .container {
    pointer-events: auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid transparent;
    padding: 0 .5rem 0 1.75rem;
    transition:
        background .35s var(--ease-soft),
        box-shadow .35s var(--ease-soft),
        border-color .35s var(--ease-soft),
        border-radius .35s var(--ease-soft);
}
.site-header.is-scrolled > .container {
    background: rgba(255, 255, 255, .72); /* Más translúcido — deja ver la imagen detrás */
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-radius: 100px;
    box-shadow:
        0 16px 50px -12px rgba(19, 35, 229, .18),
        0 6px 18px -6px rgba(19, 35, 229, .10);
    border-color: rgba(255, 255, 255, .35);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 2rem)); }

.site-main { padding-top: 0; }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
    gap: 1rem;
}
.brand-mark {
    font-weight: 800;
    font-size: 1rem;
    color: var(--c-primary);
    letter-spacing: -0.01em;
}
.brand-mark span { font-weight: 400; }
.brand-mark sup  { font-size: .55em; }
.brand-mark.on-dark        { color: #fff; font-size: 1.25rem; }
.brand-mark.on-dark span   { color: #fff; }

/* Logo PNG en el header */
.brand { display: inline-flex; align-items: center; }
.brand-logo {
    height: clamp(28px, 3.5vw, 36px);
    width: auto;
    display: block;
    object-fit: contain;
}

.site-nav ul { display: flex; gap: 2.4rem; align-items: center; }
/* Sólo aplicamos el color/peso a los enlaces de menú; los botones (.btn)
   conservan sus propios estilos (texto blanco sobre fondo azul, etc.). */
.site-nav a:not(.btn) {
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .18em;
    color: var(--c-navy);
    transition: color var(--t);
}
.site-nav a:not(.btn):hover { color: var(--c-primary); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--c-navy);
    transition: var(--t);
}

/* 6. HERO --------------------------------------------- */
.hero {
    position: relative;
    background: #fff;
    padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
    overflow: hidden;
    min-height: clamp(640px, 92vh, 980px);
    display: flex; align-items: center;
    isolation: isolate;
}
.hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-frasco {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    margin: 0 auto;
    animation: hero-float 6s ease-in-out infinite;
    will-change: transform;
}
@keyframes hero-float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-18px); }
    100% { transform: translateY(0); }
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}
.hero-copy {
    will-change: transform;
}
.brand-eyebrow {
    color: var(--c-primary);
    font-weight: 500;
    font-size: 1rem;
    margin: 0 0 1.5rem;
    letter-spacing: -0.01em;
}
.brand-eyebrow sup { font-size: .55em; }
.hero h1 {
    color: var(--c-primary);
    margin: 0 0 2rem;
    position: relative;
    z-index: 10;
    /* Hero-specific override: más compacto y peso medio (similar a la referencia
       visual de la segunda imagen — no tan ExtraLight como h1/h2 globales).
       Tamaño calibrado para que cada frase quepa en una línea (3 líneas total). */
    font-size: clamp(3.12rem, 5.93vw, 4.68rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.025em;
}
/* Evita que cualquier línea de título se parta — cada span es 1 frase */
[data-reveal-headline] span > span {
    white-space: nowrap;
}
/* En móvil dejamos wrap natural por si la frase es más ancha que el viewport */
@media (max-width: 720px) {
    .grid-3 { grid-template-columns: 1fr; }
    .hero h1 span > span { white-space: normal; }
}
.hero-sub {
    display: inline-flex; align-items: center; gap: 1rem;
    font-size: .72rem; font-weight: 600;
    letter-spacing: .22em;
    color: var(--c-navy);
    margin: 0;
    text-transform: uppercase;
}
.hero-sub .dash { width: 38px; height: 2px; background: var(--c-navy); }

.hero-arrow {
    position: absolute;
    right: clamp(1rem, 4vw, 2.5rem);
    bottom: clamp(1rem, 4vw, 2rem);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    display: grid; place-items: center;
    transition: background var(--t), transform var(--t);
    box-shadow: 0 10px 24px -6px rgba(19, 35, 229, .45);
    will-change: transform;
    z-index: 5;
}
.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow:hover { background: var(--c-primary-dark); }

/* 7. ABOUT (hero-style con imagen full-bleed) ---------- */
.about {
    background: var(--c-white);
    position: relative;
    isolation: isolate;
}
.about-hero {
    padding: clamp(5rem, 9vw, 8rem) 0;
    background: #fff;
}

.about-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
.about-hero-copy {
    min-width: 0;
}

.about-hero-img {
    aspect-ratio: 4 / 5;
    position: relative;
    overflow: visible;
}
.about-hero-img-inner {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--c-soft);
}
.about-hero-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1.2s var(--ease-soft);
}
.about-hero-img:hover .about-hero-img-inner img { transform: scale(1.05); }
.about-hero-badge {
    position: absolute;
    bottom: calc(-1rem + 70px);
    left: calc(1.5rem - 70px);
    background: #fff;
    border-radius: var(--radius-sm, 8px);
    box-shadow: 0 8px 28px rgba(0,0,0,.10);
    padding: 1.25rem 1.5rem 1.4rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .85rem;
    z-index: 2;
    min-width: 180px;
}
.about-hero-badge-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    opacity: .65;
}
.about-hero-badge-text {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.about-hero-badge-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--c-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}
.about-hero-badge-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--c-muted);
    line-height: 1.3;
    text-transform: uppercase;
}
.about-hero-copy h2 {
    margin-bottom: 1.5rem;
}
.about-hero-lead {
    color: var(--c-muted);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.65;
    margin: 0 0 2rem;
    max-width: 480px;
}
.about-hero-lead p {
    margin: 0 0 1rem;
}
.about-hero-lead p:last-child { margin-bottom: 0; }

/* CTA con flecha (arrow chip a la derecha) */
.about-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    padding-right: .5rem;
    box-shadow:
        0 8px 20px -6px rgba(19, 35, 229, .35),
        0 16px 32px -10px rgba(19, 35, 229, .25);
}
.about-hero-cta:hover {
    box-shadow:
        0 12px 28px -6px rgba(19, 35, 229, .45),
        0 20px 40px -10px rgba(19, 35, 229, .3);
}
.about-hero-cta .btn-arrow {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, .2);
    border-radius: 50%;
    transition: transform var(--t), background var(--t);
    flex-shrink: 0;
}
.about-hero-cta .btn-arrow svg {
    width: 14px;
    height: 14px;
    color: #fff;
}
.about-hero-cta:hover .btn-arrow {
    transform: translateX(4px);
    background: rgba(255, 255, 255, .32);
}

/* Mobile: overlay vertical para que el texto quede arriba sobre área clara */
@media (max-width: 768px) {
    .about-hero {
    }
    .about-hero-content { grid-template-columns: 1fr; }
    .about-hero-img { aspect-ratio: 4 / 3; }
}

/* — Estilos legacy de la galería sincronizada (.about-head, .about-grid,
     .feature-item, .about-media-frame, etc.) quedan abajo pero ya no se usan. — */
.about-head {
    max-width: 720px;
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.about-head h2 { margin-bottom: 1.25rem; }
.about-head .lead { margin: 0 0 1.75rem; max-width: 640px; }
.about-cta { margin-top: .25rem; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 4.5rem);
    align-items: start;
    margin-bottom: clamp(4rem, 8vw, 7rem);
}

/* Feature list — cada item es clickable, el activo se resalta */
.feature-list {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.feature-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 1.1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--c-border);
    cursor: pointer;
    transition: opacity var(--t);
    opacity: .55;
}
.feature-item:last-child { border-bottom: none; }
.feature-item:hover,
.feature-item:focus-visible,
.feature-item.is-active {
    opacity: 1;
    outline: none;
}
.feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--c-pill);
    display: block;
    flex-shrink: 0;
    margin-top: .15rem;
    transition: background var(--t), transform var(--t);
}
.feature-item.is-active .feature-icon {
    background: var(--c-primary);
    transform: scale(1.05);
}
.feature-list h4 {
    color: var(--c-primary);
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0 0 .5rem;
    font-weight: 700;
    line-height: 1.3;
}
.feature-list p {
    color: var(--c-muted);
    font-size: .95rem;
    margin: 0;
    line-height: 1.6;
}

/* Frame de la galería — sticky para que acompañe al scroll de los features */
.about-media {
    position: sticky;
    top: clamp(96px, 10vh, 120px);
    aspect-ratio: 4 / 4.4;
    border-radius: var(--radius-lg);
    isolation: isolate;
}
.about-media-frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--c-soft);
}
.about-media-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .8s var(--ease-soft), transform 1.2s var(--ease-soft);
    will-change: opacity, transform;
}
.about-media-img.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Badge "+10 años" — tarjeta blanca flotando bottom-left */
.years-badge {
    position: absolute;
    bottom: -1.25rem;
    left: -1.25rem;
    background: var(--c-white);
    color: var(--c-text);
    padding: .9rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow:
        0 16px 40px -12px rgba(19, 35, 229, .18),
        0 4px 14px -4px rgba(19, 35, 229, .08);
    display: flex;
    align-items: center;
    gap: .85rem;
    z-index: 3;
    transition: transform var(--t);
}
.years-badge .years-badge-mark {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--c-pill);
    flex-shrink: 0;
}
.years-badge strong {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--c-primary);
    line-height: 1;
    letter-spacing: -0.01em;
}
.years-badge span {
    font-size: .62rem;
    letter-spacing: .18em;
    color: var(--c-muted);
    text-transform: uppercase;
    font-weight: 600;
}
.years-badge:hover { transform: translateY(-3px); }

/* Dots indicador (paginación de la galería) */
.about-dots {
    position: absolute;
    bottom: .9rem;
    right: 1rem;
    display: flex;
    gap: .4rem;
    z-index: 3;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: .5rem .65rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(19, 35, 229, .08);
}
.about-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(19, 35, 229, .25);
    padding: 0;
    transition: width var(--t), background var(--t);
    cursor: pointer;
}
.about-dot.is-active {
    background: var(--c-primary);
    width: 22px;
    border-radius: 999px;
}

/* Formats — tarjetas individuales con imagen que sobresale */
.formats-head {
    text-align: left;
    margin-bottom: clamp(5rem, 10vw, 7rem);
}
.formats-title {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--c-muted);
    margin: 0;
}
.formats-title::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--c-border);
    flex-shrink: 0;
}
.formats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2.5vw, 2rem);
    background: transparent;
    border-radius: 0;
    padding: 0;
    list-style: none;
}
.format-item {
    position: relative;
    background: #E4ECFA;
    border-radius: var(--radius-lg);
    aspect-ratio: 1 / 1.05;
    padding: 1.5rem 1rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    transition: transform var(--t), box-shadow var(--t), background var(--t);
    overflow: visible;
    cursor: default;
}
.format-item:hover {
    transform: translateY(-6px);
    background: #D8E3F8;
    box-shadow: 0 18px 40px -12px rgba(19, 35, 229, .18);
}
.format-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -35%);
    width: 90%;
    aspect-ratio: 1;
    background: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--t);
    will-change: transform;
    pointer-events: none;
}
.format-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(19, 35, 229, .15));
}
.format-item span {
    font-size: .78rem;
    letter-spacing: .18em;
    font-weight: 600;
    color: var(--c-text);
    text-transform: uppercase;
    display: block;
}
.format-item:hover { transform: translateY(-8px); }
.format-item:hover .format-img {
    transform: translate(-50%, -58%) scale(1.05) rotate(-2deg);
}

/* 8. STATS — tarjetas con icono + contador + label + detalle */
.stats {
    background: var(--c-white);
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    border-bottom: 1px solid var(--c-border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
}
.stat-card {
    background: var(--c-white);
    border-radius: var(--radius-md);
    padding: clamp(2rem, 3vw, 2.5rem) 1.25rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: transform var(--t), box-shadow var(--t);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #EEF3FD;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.stat-icon i {
    color: var(--c-primary);
    font-size: 16px;
}
.stat-value {
    font-size: clamp(40px, 3.5vw, 56px);
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -1px;
    font-feature-settings: 'tnum' 1, 'lnum' 1, 'zero' 1;
    font-variant-numeric: tabular-nums lining-nums slashed-zero;
}
.stat-label {
    color: var(--c-text);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.3;
}
.stat-detail {
    color: rgba(13, 13, 26, .45);
    font-size: 12px;
    line-height: 1.4;
}

/* 9. PROCESO ------------------------------------------ */
.process { background: #eef3fd; }
.process-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}
.process-copy h2 { margin-bottom: 1.5rem; }
.process-copy .lead { margin-bottom: 3rem; }
.process-copy { padding-bottom: 60vh; }

.stages {
    position: relative;
}

/* Cada etapa funciona como una "option" de select: clickeable, con highlight
   tipo rectángulo cuando está activa. */
.stages li {
    position: relative;
    padding: 1.1rem 1.25rem 1.1rem 1.5rem;
    border-radius: 12px;
    cursor: default;
    transition: opacity var(--t), background var(--t), box-shadow var(--t), transform var(--t);
    opacity: .5;
    outline: none;
}
.stages li:hover {
    opacity: .85;
    background: rgba(19, 35, 229, .03);
}
.stages li:focus-visible {
    box-shadow: 0 0 0 2px var(--c-primary);
    outline: none;
}
.stages li.is-active {
    opacity: 1;
    background: #fff;
    box-shadow:
        inset 3px 0 0 var(--c-primary),
        0 2px 6px rgba(19, 35, 229, .06),
        0 10px 28px -8px rgba(19, 35, 229, .16);
    transform: translateX(2px);
}
.stage-tag {
    display: inline-block;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .26em;
    color: var(--c-primary);
    margin-bottom: .35rem;
    text-transform: uppercase;
}
.stages h4 {
    color: var(--c-navy);
    font-size: .98rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0 0 .45rem;
}
.stages p {
    color: var(--c-muted);
    font-size: .95rem;
    margin: 0;
    line-height: 1.6;
}

/* Columna derecha sticky: imagen + stats se mueven juntos */
.process-right {
    position: sticky;
    top: 10vh;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.process-media {
    position: relative;
    height: 70vh;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--c-soft);
}
.process-media:hover .process-media-img.is-active { transform: scale(1.05); }
.process-media-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: opacity;
}
.process-media-img.is-active {
    opacity: 1;
}
.process-media-img.is-active {
    opacity: 1;
    transform: scale(1);
}


.process-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(.5rem, 1vw, .75rem);
}
.process-stats-grid .stat-card {
    padding: 1.1rem .75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.process-stats-grid .stat-icon { display: none; }
.process-stats-grid .stat-icon i { display: none; }
.process-stats-grid .stat-value {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    margin-bottom: 6px;
}
.process-stats-grid .stat-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
}

/* 10. VIDEO SHOWCASE (edge-to-edge) ------------------- */
.video-showcase {
    padding: 0;
}
.video-inner {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 0;
    overflow: hidden;
    /* En móvil: max ~480px alto (no domina). En desktop: hasta 720px. */
    min-height: clamp(380px, 56vw, 720px);
    max-width: none;
    margin: 0;
    width: 100%;
}
/* Video como fondo, cubre todo el video-inner */
.video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.video-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13,13,26,.28) 0%, rgba(13,13,26,.78) 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 2rem;
    color: #fff;
    z-index: 1;
    transition: opacity .5s var(--ease-soft), backdrop-filter .5s var(--ease-soft);
}
.video-inner.is-active .video-overlay {
    opacity: 0;
    pointer-events: none;
}
.play-btn {
    position: relative;
    width: 84px; height: 84px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: var(--c-primary);
    display: grid; place-items: center;
    transition: transform var(--t), background var(--t);
    margin-bottom: 2rem;
    will-change: transform;
}
.play-btn svg { width: 30px; height: 30px; }
.play-btn:hover { transform: scale(1.07); background: #fff; }

/* Controles del video — pill flotante visible cuando el audio está activo */
.video-controls {
    position: absolute;
    bottom: clamp(1rem, 3vw, 1.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .75rem;
    background: rgba(13, 13, 26, .55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s var(--ease-soft), transform .5s var(--ease-soft);
    transform: translate(-50%, 8px);
}
.video-inner.is-active .video-controls {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.vc-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    display: grid;
    place-items: center;
    transition: background var(--t), transform var(--t);
    flex-shrink: 0;
}
.vc-btn:hover { background: rgba(255, 255, 255, .28); transform: scale(1.05); }
.vc-icon { width: 16px; height: 16px; }
.vc-icon-play { display: none; }
.video-inner.is-paused .vc-icon-pause { display: none; }
.video-inner.is-paused .vc-icon-play  { display: block; }

/* Slider de volumen */
.vc-volume {
    -webkit-appearance: none;
    appearance: none;
    width: clamp(80px, 14vw, 140px);
    height: 4px;
    background: rgba(255, 255, 255, .25);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    transition: background var(--t);
}
.vc-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--c-primary);
    cursor: pointer;
    transition: transform var(--t);
}
.vc-volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--c-primary);
    cursor: pointer;
}
.vc-volume:hover::-webkit-slider-thumb { transform: scale(1.15); }
.vc-volume:focus-visible {
    box-shadow: 0 0 0 3px rgba(19, 35, 229, .4);
}
.video-text h2 { color: #fff; margin-bottom: 1rem; }
.video-text p {
    color: rgba(255,255,255,.78);
    max-width: 540px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* 11. CERTIFICACIONES --------------------------------- */
.certs { background: var(--c-white); }

/* Header left-aligned (no centrado) */
.certs-head {
    max-width: 100%;
    margin: 0 0 1.5rem;
}
.certs-head h2 { margin: 0; }

/* Separador horizontal full-width antes de los logos */
.certs-separator {
    border: 0;
    height: 1px;
    background: var(--c-border);
    margin: 0 0 clamp(3rem, 5vw, 4rem);
    width: 100%;
}

.certs-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(1rem, 2.5vw, 2rem);
    list-style: none;
    padding: 0;
    margin: 0;
}
.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    transition: transform var(--t);
}
.cert-item:hover { transform: translateY(-4px); }

/* Card sin fondo — imagen en gris hasta hover */
.cert-card {
    width: 100%;
    aspect-ratio: 1;
    max-width: 180px;
    background: transparent;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.cert-card img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.55);
    transition: filter .4s ease, transform .4s ease;
}
.cert-item:hover .cert-card img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.cert-item small {
    font-size: .68rem;
    letter-spacing: .18em;
    font-weight: 600;
    color: var(--c-muted);
    text-align: center;
    text-transform: uppercase;
    line-height: 1.3;
}

/* 11b. INGREDIENTES DE CALIDAD ----------------------- */
.ingredients { background: #fff; }
.ingredients-head {
    max-width: 760px;
    margin: 0 0 clamp(4rem, 8vw, 6rem);
    text-align: left;
}
.ingredients-head h2 { margin-bottom: 1.25rem; }
.ingredients-head .lead { margin: 0; max-width: 640px; }

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    list-style: none;
    padding: 0;
    margin: clamp(5rem, 9vw, 7rem) 0 0;
}
.industry-card {
    position: relative;
    background: linear-gradient(135deg, rgba(110, 30, 255, 0.06) 0%, rgba(70, 0, 200, 0.03) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: none;
    box-shadow: 0 6px 32px rgba(80, 0, 200, 0.06);
    border-radius: var(--radius-md);
    flex: 0 0 clamp(190px, 20vw, 260px);
    padding: 6.5rem 0.75rem 2rem;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: .75rem;
    overflow: visible;
    transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.industry-card:hover {
    transform: translateY(-6px);
    background: rgba(19, 35, 229, .14);
    box-shadow: 0 18px 40px -12px rgba(19, 35, 229, .18);
}

/* Imagen del ingrediente flotando arriba del card — SIN fondo, libre.
   La PNG conserva transparencia y se ve como si flotara sobre el card. */
.industry-bowl {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -55%);
    width: clamp(140px, 15vw, 190px);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--t);
    /* drop-shadow azul sutil para darle volumen sin un círculo blanco */
    filter: drop-shadow(0 18px 30px rgba(19, 35, 229, .18));
}
.industry-card:hover .industry-bowl {
    transform: translate(-50%, -58%) scale(1.05);
}
.industry-bowl img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.industry-card h4 {
    color: var(--c-primary);
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0;
    width: 100%;
    text-align: center;
    font-weight: 700;
    line-height: 1.35;
}
.industry-card p {
    color: var(--c-text);
    font-size: .92rem;
    line-height: 1.55;
    margin: 0;
}

/* CTA "Descargar catálogo" centrado bajo los cards */
.ingredients-footer {
    text-align: center;
    margin-top: clamp(3rem, 5vw, 4rem);
}

/* 12. SOLUTIONS SLIDER -------------------------------- */
.solutions { background: #fff; }
.slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}
.slider-track {
    display: flex;
    will-change: transform;
}
.solution-slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 420px;
}
.solution-media { background: var(--c-soft); overflow: hidden; }
.solution-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.2s var(--ease-soft);
}
.solution-slide:hover .solution-media img { transform: scale(1.05); }
.solution-body {
    padding: clamp(2rem, 3.5vw, 3.5rem);
    display: flex; flex-direction: column; justify-content: center;
}
.slide-counter {
    font-size: .85rem;
    font-weight: 800;
    color: var(--c-primary);
    letter-spacing: .14em;
    margin-bottom: 1rem;
    font-feature-settings: 'tnum';
}
.solution-body h3 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 200;
    color: var(--c-primary);
    margin-bottom: 1.2rem;
    letter-spacing: -0.025em;
    line-height: 1.05;
}
.solution-body p {
    color: var(--c-muted);
    margin-bottom: 2rem;
    max-width: 480px;
    line-height: 1.65;
}

.slider-controls {
    display: flex; align-items: center; justify-content: center;
    margin-top: 2rem;
    gap: 2rem;
}
.slider-arrows { display: flex; gap: .65rem; }
.slider-dots   { display: flex; gap: .5rem; align-items: center; }
.slider-dots .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(19, 35, 229, .18);
    transition: width var(--t), background var(--t);
    padding: 0;
}
.slider-dots .dot.is-active {
    background: var(--c-primary);
    width: 28px;
    border-radius: 999px;
}
.slider-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: #fff;
    color: var(--c-primary);
    border: 1px solid var(--c-border);
    display: grid; place-items: center;
    transition: var(--t);
}
.slider-btn svg { width: 16px; height: 16px; }
.slider-btn:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* Íconos de navegación (next.svg / preview.svg) recoloreables via mask */
.slider-icon {
    display: inline-block;
    width: 18px; height: 18px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;  mask-repeat: no-repeat;
    -webkit-mask-position: center;   mask-position: center;
    -webkit-mask-size: contain;      mask-size: contain;
    transition: background-color var(--t, .25s ease);
}
.slider-icon--prev {
    -webkit-mask-image: url('../images/icons/preview.svg');
            mask-image: url('../images/icons/preview.svg');
}
.slider-icon--next {
    -webkit-mask-image: url('../images/icons/next.svg');
            mask-image: url('../images/icons/next.svg');
}

/* 13. MARCAS (banda / marquee) ------------------------ */
.brands {
    background: var(--c-white); /* claro como la imagen de referencia */
    padding: clamp(4rem, 7vw, 6rem) 0;
    color: var(--c-text);
    overflow: hidden;
    position: relative;
}
/* Overlays laterales: las marcas se funden con el fondo blanco en los bordes. */
.brands::before,
.brands::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(60px, 9vw, 140px);
    z-index: 2;
    pointer-events: none;
}
.brands::before {
    left: 0;
    background: linear-gradient(to right, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}
.brands::after {
    right: 0;
    background: linear-gradient(to left, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}
.brands-marquee {
    margin-top: 1.75rem;
    overflow: hidden;
}
.brands-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;
}
.brands-set {
    display: flex;
    align-items: center;
    gap: clamp(3rem, 6vw, 6rem);
    padding-right: clamp(3rem, 6vw, 6rem);
    margin: 0;
}
/* Item del marquee — sólo logos, grandes y balanceados.
   Estrategia: cada item tiene ancho fijo y la imagen se ajusta con
   object-fit:contain. Así los logos cuadrados (d2h) y los horizontales
   (Salud&Vida) terminan con presencia visual similar (mismo ancho
   máximo, alto variable según aspect-ratio). */
.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: clamp(380px, 38vw, 560px);
    padding: 0 2rem;
    transition: opacity var(--t);
}
.brand-logo-wrap {
    width: 100%;
    height: clamp(200px, 22vw, 300px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-logo-img {
    width: 100%;
    height: 100%;
    max-width: clamp(340px, 36vw, 500px);
    object-fit: contain;
    transition: transform var(--t);
    display: block;
}
.brand-item:hover .brand-logo-img {
    transform: scale(1.05);
}
/* Label oculto — los SVG ya muestran el nombre de la marca */
.brand-label {
    display: none;
}

/* Compatibilidad: si todavía hay items con la clase .brand-name vieja */
.brand-name {
    color: var(--c-primary);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: color var(--t);
    cursor: default;
}
.brand-name:hover { color: var(--c-primary-dark); }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-33.3333%); }
}

/* 14. CONTACTO ---------------------------------------- */
.contact {
    background: #00115B; /* deep navy alineado con la imagen de referencia */
    color: #fff;
    padding: clamp(5rem, 9vw, 8rem) 0;
}
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 6vw, 5.5rem);
    align-items: start;
}
.contact-copy h2 {
    color: #fff;
    margin-bottom: 1.5rem;
}
.contact-copy h2 .text-soft { color: rgba(255, 255, 255, .55); font-weight: 200; }

.contact-info {
    margin-top: 3rem;
    display: grid; gap: 1.25rem;
}
.contact-info li {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}
.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 6px 18px -6px rgba(19, 35, 229, .55);
}
.contact-icon img {
    width: 20px;
    height: 20px;
    display: block;
}
.contact-text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}
.contact-info strong {
    font-size: .68rem;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .55);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
}
.contact-info a {
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    transition: color var(--t);
    word-break: break-word;
}
.contact-info a:hover { color: rgba(255,255,255,.7); }

/* Form (white card) */
.contact-form {
    background: #fff;
    border-radius: var(--radius-md);
    padding: clamp(1.75rem, 2.75vw, 2.5rem);
    color: var(--c-text);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem 1rem;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35);
}
.contact-form .form-eyebrow {
    grid-column: 1 / -1;
    margin: 0;
    font-size: .72rem;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: .18em;
    text-transform: uppercase;
}
.contact-form .form-title {
    grid-column: 1 / -1;
    margin: -.25rem 0 .5rem;
    font-size: .82rem;
    color: var(--c-text);
    font-weight: 400;
}
.contact-form .form-title span { color: var(--c-primary); }
.contact-form label {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    font-size: .68rem;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: .14em;
    text-transform: uppercase;
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: 1rem 1rem; /* garantiza ≥44px touch-target */
    min-height: 48px;
    font: 400 .95rem var(--font-sans);
    color: var(--c-text);
    background: #F3F4F8;
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
    letter-spacing: 0;
    text-transform: none;
}
.contact-form input::placeholder { color: rgba(13, 13, 26, .4); }
.contact-form select { color: rgba(13, 13, 26, .55); font-weight: 400; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(19, 35, 229, .10);
}
.contact-form .btn {
    grid-column: 1 / -1;
    margin-top: .65rem;
    width: 100%;
    padding: 1rem 2rem;
    font-size: .9rem;
}
.contact-form small {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--c-muted);
    font-size: .8rem;
    margin-top: .25rem;
}

/* Resaltado de campos faltantes/invalidos tras intentar enviar */
.contact-form.is-validated input:invalid,
.contact-form.is-validated select:invalid,
.contact-form.is-validated textarea:invalid,
.mq-form.is-validated input:invalid,
.mq-form.is-validated select:invalid,
.mq-form.is-validated textarea:invalid {
    border-color: #d63838;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(214, 56, 56, .12);
}
.contact-form.is-validated label:has(input:invalid)::after,
.contact-form.is-validated label:has(select:invalid)::after,
.contact-form.is-validated label:has(textarea:invalid)::after,
.mq-form.is-validated .mq-field:has(input:invalid)::after,
.mq-form.is-validated .mq-field:has(select:invalid)::after {
    content: "Este campo es obligatorio";
    display: block;
    margin-top: .35rem;
    color: #d63838;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
}
.contact-form.is-validated label:has(input[type="tel"]:invalid:not(:placeholder-shown))::after,
.mq-form.is-validated .mq-field:has(input[type="tel"]:invalid:not(:placeholder-shown))::after {
    content: "Formato de teléfono no válido";
}
.contact-form.is-validated label:has(input[type="email"]:invalid:not(:placeholder-shown))::after,
.mq-form.is-validated .mq-field:has(input[type="email"]:invalid:not(:placeholder-shown))::after {
    content: "Correo electrónico no válido";
}
button[type="submit"][disabled] {
    opacity: .55;
    cursor: not-allowed;
}

/* 15. BLOG -------------------------------------------- */
.blog { background: var(--c-white); }
.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.article-card {
    background: var(--c-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--t), box-shadow var(--t);
}
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}
.article-media { overflow: hidden; background: #f1f5f9; display: flex; justify-content: center; align-items: flex-start; }
.article-media img {
    max-width: 60%; height: auto;
    display: block;
    margin: 0 auto;
    transition: transform .8s var(--ease-soft);
}
.article-card:hover .article-media img { transform: scale(1.05); }
.article-body { padding: 2rem; }
.article-tag {
    display: inline-block;
    font-size: .62rem;
    font-weight: 800;
    color: var(--c-primary);
    letter-spacing: .2em;
    margin-bottom: .9rem;
    text-transform: uppercase;
}
.article-body h3 {
    font-size: 1rem;
    color: var(--c-navy);
    margin-bottom: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}
.article-body p {
    color: var(--c-muted);
    font-size: .92rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.article-link {
    font-size: .68rem; font-weight: 800;
    color: var(--c-primary);
    letter-spacing: .2em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--t);
}
.article-link::after {
    content: '';
    position: absolute; left: 0; bottom: -4px;
    width: 0; height: 1.5px; background: var(--c-primary);
    transition: width .35s ease;
}
.article-link:hover::after { width: 100%; }

/* 16. FOOTER ------------------------------------------ */
.site-footer {
    background: #00115B; /* mismo navy del contacto, continuidad visual */
    color: rgba(255, 255, 255, .82);
    padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-grid {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    padding-bottom: clamp(2rem, 4vw, 3rem);
    align-items: start;
}

/* Marca + tagline */
.footer-brand-link {
    display: inline-block;
    margin-bottom: 1rem;
    transition: opacity var(--t);
}
.footer-brand-link:hover { opacity: .85; }
.footer-brand-logo {
    height: clamp(36px, 4vw, 44px);
    width: auto;
    display: block;
    object-fit: contain;
    /* Si el logo es oscuro/azul, en footer navy puede no contrastar.
       Aplicamos un filtro suave para invertir si la marca es muy oscura. */
}
/* Mantengo .footer-brand-name por compatibilidad si se vuelve a usar */
.footer-brand-name {
    color: var(--c-primary);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    display: inline-block;
    margin-bottom: .85rem;
}
.footer-brand-name strong { font-weight: 700; }
.footer-brand-name sup    { font-size: .55em; }
.footer-tagline {
    color: rgba(255, 255, 255, .72);
    max-width: 280px;
    font-size: .9rem;
    line-height: 1.55;
    margin: 0 0 1.5rem;
}

/* Redes sociales */
.footer-social {
    display: flex;
    gap: .55rem;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    display: grid;
    place-items: center;
    transition: background var(--t), transform var(--t);
}
.footer-social a:hover {
    background: var(--c-primary);
    transform: translateY(-2px);
}
.footer-social img {
    width: 16px;
    height: 16px;
    display: block;
}

/* Columnas de enlaces */
.footer-col h4 {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .68rem;
    margin: 0 0 1.25rem;
    font-weight: 700;
}
.footer-col ul li {
    padding: .3rem 0;
    font-size: .92rem;
    color: rgba(255, 255, 255, .82);
    line-height: 1.4;
}
.footer-col a {
    color: inherit;
    transition: color var(--t);
}
.footer-col a:hover { color: #fff; }
.footer-col .is-disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}
.footer-contact li { color: rgba(255, 255, 255, .72); }
.footer-contact a  { color: rgba(255, 255, 255, .85); }
.footer-contact a:hover { color: #fff; }

/* Newsletter */
.footer-newsletter-wrap {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 2.25rem 0;
}
.footer-newsletter-inner {
    display: flex;
    align-items: center;
    gap: 2rem 4rem;
    flex-wrap: wrap;
}
.nl-copy {
    flex: 0 0 auto;
    max-width: 260px;
}
.nl-eyebrow {
    display: block;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .35);
    margin-bottom: .45rem;
}
.nl-copy h4 {
    margin: 0 0 .3rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}
.nl-copy p {
    margin: 0;
    font-size: .8rem;
    color: rgba(255, 255, 255, .45);
    line-height: 1.5;
}
.footer-newsletter-form {
    flex: 1 1 360px;
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}
.footer-newsletter-form input[type="text"],
.footer-newsletter-form input[type="email"] {
    flex: 1 1 160px;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #0f172a;
    font-size: .875rem;
    padding: .55rem 1rem;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: box-shadow .2s;
}
.footer-newsletter-form input::placeholder {
    color: rgba(15, 23, 42, .38);
}
.footer-newsletter-form input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .3);
}
.footer-newsletter-form .nl-submit {
    flex-shrink: 0;
    background: #ffffff;
    color: var(--c-primary, #2563eb);
    border: none;
    border-radius: 6px;
    padding: .575rem 1.5rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s;
}
.footer-newsletter-form .nl-submit:hover    { opacity: .88; }
.footer-newsletter-form .nl-submit:disabled { opacity: .5; cursor: not-allowed; }
#footer-newsletter-msg { font-size: .8rem; margin-top: .6rem; width: 100%; }

/* Bottom row */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 1.4rem 0;
    color: rgba(255, 255, 255, .45);
}
.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom small { font-size: .8rem; }
.footer-crm-link {
    color: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    transition: color .3s ease;
    margin-left: auto;
}
.footer-crm-link:hover { color: rgba(255, 255, 255, .55); }

/* 17. RESPONSIVE -------------------------------------- */
@media (max-width: 980px) {
    .about-grid,
    .process-grid,
    .contact-grid,
    .grid-2,
    .footer-grid { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }

    .process-stats-grid { grid-template-columns: repeat(2, 1fr); }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: clamp(5rem, 12vw, 7rem); /* espacio entre filas para los bowls */
    }
    .formats-row {
        grid-template-columns: repeat(2, 1fr);
        row-gap: clamp(4rem, 10vw, 6rem);
    }
    .certs-list {
        grid-template-columns: repeat(3, 1fr);
        row-gap: clamp(2rem, 5vw, 3rem);
    }

    .solution-slide { grid-template-columns: 1fr; min-height: auto; }
    .solution-media { aspect-ratio: 16 / 10; }

    /* Contact en tablet: el form va al ancho completo pero con padding generoso */
    .contact-grid { gap: 2.5rem; }
    .contact-copy { max-width: 100%; }

    .about-media { position: static; max-width: 540px; margin: 0 auto; aspect-ratio: 4 / 3; }
    .process-right { position: static; }
    .process-media { max-width: 540px; margin: 0 auto; aspect-ratio: 4 / 3; }

    .contact-form { grid-template-columns: 1fr; }

    .section-head.split { flex-direction: column; align-items: flex-start; }

    .hero {
        min-height: clamp(680px, 90vh, 820px);
        padding-top: 6.5rem;
        padding-bottom: 0;
        align-items: flex-start;
    }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-media { order: -1; }
    .hero-copy { max-width: 100%; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }

    /* === PROCESO en móvil: ocultar la imagen pero conservar los contadores === */
    .process-media { display: none; }                /* la imagen sticky no se muestra */
    .process-right { position: static; margin-top: 2rem; }
    .process-copy  { padding-bottom: 0; }            /* sin espacio reservado para sticky */
    .process-grid  { gap: 1.5rem; }
    .process-copy h2 { margin-bottom: 1rem; }
    .process-copy .lead { margin-bottom: 1.75rem; }
    .stages { display: flex; flex-direction: column; gap: .5rem; }
    .stages li { padding: 1rem 1.1rem; opacity: 1; } /* todas las etapas legibles */
    .stages li.is-active { transform: none; }        /* sin shift lateral en móvil */
    .process-stats-grid { grid-template-columns: repeat(2, 1fr); }


    .site-header > .container { padding: 0 .35rem 0 1rem; }
    .header-inner { height: 56px; }
    .site-main { padding-top: 76px; }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: var(--gutter);
        right: var(--gutter);
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--c-border);
        border-radius: var(--radius-md);
        box-shadow: 0 14px 40px -10px rgba(19, 35, 229, .14);
        max-height: 0; overflow: hidden;
        transition: max-height .4s var(--ease-out);
    }
    .site-nav ul {
        flex-direction: column; align-items: stretch;
        padding: 1rem; gap: .25rem;
    }
    .site-nav a { display: block; padding: .9rem 0; }
    .site-nav.is-open { max-height: 460px; }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* === MOBILE FIXES — ajustes finos por sección === */

    /* Hero h1: cuerpo más conservador para que las 3 frases respiren */
    .hero h1 { font-size: clamp(1.85rem, 7vw, 2.6rem); }
    .brand-eyebrow { font-size: .88rem; margin-bottom: 1rem; }
    .hero-sub { font-size: .65rem; letter-spacing: .2em; }

    /* About hero — más respiración interna */
    .about-hero { padding: 5rem 0 4rem; }
    .about-hero-copy h2 { font-size: clamp(2rem, 7vw, 2.6rem); }
    .about-hero-lead { font-size: .98rem; }

    /* Ingredients — bowls más chicos para no chocar con las filas */
    .industry-bowl { width: clamp(90px, 22vw, 130px); }
    .industry-card { padding: 4.5rem 1.25rem 1.5rem; }
    .industry-card h4 { font-size: .76rem; }
    .industry-card p { font-size: .88rem; }

    /* Stats — números más contenidos */
    .stat-value { font-size: clamp(32px, 9vw, 44px); }
    .stat-card { padding: 1.75rem 1rem; }
    .stat-icon { width: 40px; height: 40px; }
    .stat-icon i { font-size: 14px; }

    /* Process — bullets y stages más compactos */
    .stages { padding-left: 1.5rem; }
    .stages li { padding: .9rem 1rem .9rem 1.1rem; }
    .stages li::before { left: -1.6rem; top: 1.25rem; }
    .stages h4 { font-size: .9rem; }
    .stages p { font-size: .9rem; }

    /* Brands marquee — items más chicos para que se vean 1.5-2 logos */
    .brand-item {
        width: clamp(220px, 60vw, 300px);
        padding: 0 1rem;
    }
    .brand-logo-wrap { height: clamp(80px, 18vw, 110px); }
    .brand-logo-img { max-width: clamp(180px, 50vw, 240px); }

    /* Certs — labels más compactos */
    .cert-card { padding: 1rem; }
    .cert-item small { font-size: .58rem; }

    /* Contact — form y datos */
    .contact { padding: 4rem 0; }
    .contact-info { margin-top: 2rem; gap: 1rem; }
    .contact-icon { width: 42px; height: 42px; }
    .contact-icon img { width: 18px; height: 18px; }
    .contact-info strong { font-size: .62rem; }
    .contact-info a { font-size: .95rem; }
    .contact-form { padding: 1.5rem; gap: .75rem; }
    .contact-form label { font-size: .62rem; }
    .contact-form input,
    .contact-form select { padding: .85rem 1rem; font-size: .95rem; }
    .contact-form .btn { padding: .9rem 1.75rem; }

    /* Footer — social icons centrados, columnas con más aire */
    .footer-grid { gap: 2rem; padding-bottom: 2rem; }
    .footer-social { justify-content: flex-start; }
    .footer-bottom-row { flex-direction: column; gap: .5rem; text-align: center; }

    /* WhatsApp float — más al borde para no chocar con CTAs del contact */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }
    .whatsapp-float i { font-size: 24px; }
}

@media (max-width: 520px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .formats-row {
        grid-template-columns: 1fr 1fr;
        row-gap: clamp(4rem, 12vw, 5.5rem);
    }
    .certs-list {
        grid-template-columns: 1fr 1fr;
        row-gap: 1.75rem;
    }
}

/* WhatsApp flotante --------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: clamp(1rem, 2.5vw, 1.5rem);
    right: clamp(1rem, 2.5vw, 1.5rem);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: grid;
    place-items: center;
    z-index: 70;
    box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .5),
                0 4px 12px -4px rgba(37, 211, 102, .35);
    transition: transform var(--t), background var(--t), box-shadow var(--t);
    isolation: isolate;
}
.whatsapp-float i {
    font-size: 30px;
    line-height: 1;
    z-index: 2;
}
.whatsapp-float:hover {
    background: #128C7E;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 16px 36px -8px rgba(37, 211, 102, .6),
                0 6px 18px -4px rgba(37, 211, 102, .45);
}
/* Anillo pulsante para llamar la atención */
.whatsapp-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #25D366;
    z-index: 1;
    animation: wa-pulse 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes wa-pulse {
    0%   { transform: scale(.92); opacity: .9; }
    100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 520px) {
    .whatsapp-float { width: 54px; height: 54px; }
    .whatsapp-float i { font-size: 26px; }
}

/* =====================================================
   18. ESTADOS INICIALES PARA ANIMACIONES (GSAP)
   Solo si JS está activo. Sin JS, todo se ve normal.
   ===================================================== */
.has-js .scroll-progress {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--c-primary);
    transform: scaleX(0);
    transform-origin: 0 50%;
    z-index: 100;
    pointer-events: none;
}

.has-js [data-reveal-headline] > span {
    display: block;
    overflow: hidden;
    line-height: 1;
    padding-bottom: .04em;
    padding-right: 0.08em;
}
.has-js [data-reveal-headline] > span > span {
    display: block;
    will-change: transform;
}

.has-js [data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    will-change: opacity, transform;
}
.has-js [data-reveal="image"] {
    opacity: 1;
    transform: none;
}
.has-js [data-reveal].years-badge {
    opacity: 0;
    transform: scale(.55);
}

.has-js [data-reveal-stagger]:not(.is-revealed) > * {
    opacity: 0;
    transform: translateY(28px);
    will-change: opacity, transform;
}

/* Anillos pulsantes (SVG / hero arrow / play button) */
.hero-arrow::before,
.play-btn .play-pulse {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: pulse-ring 2.4s ease-out infinite;
}
.hero-arrow::before { inset: -8px;  border: 2px solid rgba(19, 35, 229, .35); }
.play-btn .play-pulse { inset: -10px; border: 2px solid rgba(255,255,255,.45); }
@keyframes pulse-ring {
    0%   { transform: scale(.92); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}
.hero-arrow svg { animation: bounceY 2.2s ease-in-out infinite; }
@keyframes bounceY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

[data-magnetic] { will-change: transform; }

/* Reduce-motion: respetar */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .has-js [data-reveal],
    .has-js [data-reveal-stagger] > *,
    .has-js [data-reveal-headline] > span > span,
    .has-js [data-reveal="image"] {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }
    /* Excepción: la banda de marcas siempre debe estar en movimiento */
    .brands-marquee-track {
        animation: marquee 32s linear infinite !important;
    }
}

