/* ==========================================================================
   BUCEO INDUSTRIAL Y SOLDADURA SUBMARINA - Landing page
   Concepto: "El descenso". La página entera es una inmersión: el fondo pasa
   de agua iluminada a abismo, un medidor de profundidad acompaña el scroll y
   burbujas suben de forma constante.

   Metodología: mobile first (base = móvil; min-width para tablet y escritorio)
   Tema: oscuro único (deliberado, es la identidad de marca submarina)
   Índice
     01 Tokens            08 Manifiesto          15 Contacto / formulario
     02 Base              09 Programas (bento)   16 Footer
     03 Loader            10 Método (pin)        17 Botón WhatsApp
     04 Capas globales    11 Aplicaciones        18 Reveals
     05 Botones           12 Punto de partida    19 Movimiento reducido
     06 Navegación        13 FAQ
     07 Hero              14 Marquee
   ========================================================================== */

/* ==========================================================================
   01 TOKENS  (paleta extraída del logo: azul abismo, turquesa, acero y blanco)
   ========================================================================== */
:root {
    /* Fondos: del azul profundo del logo al negro de abismo */
    --abyss-950: #02070d;
    --abyss-900: #04101c;
    --abyss-850: #071a2b;
    --abyss-800: #0a2338;
    --abyss-700: #0f3250;
    --deep: #123f5e;

    /* Único acento: aqua (agua del logo) */
    --teal: #2595a9;
    --aqua: #4cc9d9;
    --aqua-soft: #8fe0ea;

    /* Neutros: acero del casco y blanco del contorno */
    --steel: #a5b1c0;
    --steel-100: #dce8ef;
    --ink: #eaf4f8;
    --muted: #a9bccb;

    --line: rgba(165, 177, 192, .16);
    --line-strong: rgba(165, 177, 192, .3);

    /* Forma: botones = píldora, superficies = 24px, campos = 14px */
    --r-pill: 999px;
    --r-lg: 24px;
    --r-md: 14px;

    /* Tipografía */
    --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
    --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    /* Movimiento */
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-inout: cubic-bezier(.65, 0, .35, 1);

    /* Layout */
    --nav-h: 68px;
    --gutter: clamp(1.25rem, 5vw, 3rem);
    --wrap: 1320px;
    --section-y: clamp(4.5rem, 10vw, 8.5rem);

    /* Escala de z-index (única fuente de verdad) */
    --z-canvas: 0;
    --z-content: 1;
    --z-gauge: 40;
    --z-nav: 50;
    --z-fab: 60;
    --z-menu: 70;
    --z-progress: 80;
    --z-loader: 100;
}

/* ==========================================================================
   02 BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    color-scheme: dark;
    background: var(--abyss-900);
}

@media (prefers-reduced-motion: no-preference) {
    html:not(.lenis) { scroll-behavior: smooth; }
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-loading { overflow: hidden; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* El fondo mide todo el documento: de agua iluminada a abismo */
    background: linear-gradient(180deg,
        #0d4764 0%, #0a3250 8%, #071f34 22%, #05131f 48%, #030b13 76%, #02070d 100%);
    overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3 { font-weight: inherit; }

::selection { background: var(--aqua); color: var(--abyss-950); }

:focus-visible {
    outline: 2px solid var(--aqua);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip {
    position: fixed; left: 1rem; top: -4rem; z-index: 200;
    padding: .75rem 1.25rem; border-radius: var(--r-pill);
    background: var(--aqua); color: var(--abyss-950); font-weight: 600; text-decoration: none;
    transition: top .3s var(--ease-out);
}
.skip:focus { top: 1rem; }

.wrap {
    width: min(100% - (var(--gutter) * 2), var(--wrap));
    margin-inline: auto;
}

main, .footer { position: relative; z-index: var(--z-content); }

/* Tipografía de sección */
.eyebrow {
    display: inline-flex; align-items: center; gap: .85rem;
    font: 500 .72rem/1.4 var(--font-mono);
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--aqua);
}
.eyebrow::before {
    content: ""; flex: none; width: 2rem; height: 1px;
    background: linear-gradient(90deg, transparent, var(--aqua));
}

.sec-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.25rem, 5vw, 4rem); justify-items: start; }

.sec-title {
    font-family: var(--font-display);
    font-weight: 750; font-stretch: 108%;
    font-size: clamp(2rem, 5.4vw, 3.6rem);
    line-height: 1.04; letter-spacing: -.025em;
    max-width: 22ch; text-wrap: balance;
}

.sec-sub { max-width: 52ch; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); text-wrap: pretty; }

section { position: relative; }

/* ==========================================================================
   03 LOADER  (ojo de buey con progreso; al terminar se abre como un iris)
   ========================================================================== */
.loader {
    --hole: -6%;
    position: fixed; inset: 0; z-index: var(--z-loader);
    display: grid; place-items: center;
    background:
        radial-gradient(70% 55% at 50% 38%, #0e4668 0%, #082740 45%, #02070d 100%);
    -webkit-mask-image: radial-gradient(circle at 50% 46%, transparent var(--hole), #000 calc(var(--hole) + 6%));
            mask-image: radial-gradient(circle at 50% 46%, transparent var(--hole), #000 calc(var(--hole) + 6%));
    overflow: hidden;
}
.loader[hidden] { display: none; }

.loader__core { display: grid; justify-items: center; gap: 1.1rem; position: relative; }

.loader__ring { position: relative; width: clamp(200px, 56vw, 260px); aspect-ratio: 1; display: grid; place-items: center; }
.loader__svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.loader__track { fill: none; stroke: rgba(143, 224, 234, .16); stroke-width: 1.5; }
.loader__arc {
    fill: none; stroke: var(--aqua); stroke-width: 2.5; stroke-linecap: round;
    stroke-dasharray: 100; stroke-dashoffset: 100;
    filter: drop-shadow(0 0 6px rgba(76, 201, 217, .6));
}
.loader__bezel {
    position: absolute; inset: 7%; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(165, 177, 192, .55) 0 .7deg, transparent .7deg 5deg);
    -webkit-mask: radial-gradient(circle, transparent 90%, #000 91%, #000 100%);
            mask: radial-gradient(circle, transparent 90%, #000 91%, #000 100%);
    animation: spin 28s linear infinite;
}
.loader__logo { position: relative; width: 52%; animation: breathe 3.2s ease-in-out infinite; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .55)); }

.loader__status {
    font: 500 .75rem/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--aqua-soft);
    min-height: 1em;
}
.loader__pct { font: 800 2.25rem/1 var(--font-display); font-stretch: 112%; font-variant-numeric: tabular-nums; color: var(--ink); }
.loader__pct small { font-size: .9rem; margin-left: .2rem; color: var(--steel); font-weight: 600; }

.loader__bubbles { position: absolute; inset: 0; pointer-events: none; }
.loader__bubbles i {
    position: absolute; left: calc(var(--x) * 1%); bottom: -24px;
    width: calc(var(--s) * 1px); height: calc(var(--s) * 1px); border-radius: 50%;
    border: 1px solid rgba(143, 224, 234, .55);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .5), rgba(143, 224, 234, .06) 60%);
    animation: rise var(--d) linear infinite; animation-delay: var(--dl);
}

@keyframes rise {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    10%  { opacity: 1; }
    50%  { transform: translate3d(14px, -55vh, 0); }
    100% { transform: translate3d(-10px, -112vh, 0); opacity: .2; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.035) translateY(-6px); } }

/* ==========================================================================
   04 CAPAS GLOBALES  (barra de progreso, canvas de burbujas, medidor)
   ========================================================================== */
.progress {
    position: fixed; left: 0; top: 0; z-index: var(--z-progress);
    width: 100%; height: 2px; transform: scaleX(0); transform-origin: left;
    background: linear-gradient(90deg, var(--teal), var(--aqua), var(--steel-100));
}

.ocean { position: fixed; inset: 0; z-index: var(--z-canvas); width: 100%; height: 100%; pointer-events: none; }

.gauge {
    position: fixed; right: 1.1rem; top: 50%; translate: 0 -50%; z-index: var(--z-gauge);
    display: none; flex-direction: column; align-items: flex-end; gap: .75rem;
    height: min(54vh, 400px); pointer-events: none;
    font: 500 .66rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--steel);
}
.gauge__label { color: var(--aqua-soft); text-align: right; max-width: 11ch; line-height: 1.3; transition: opacity .3s; }
.gauge__rail {
    position: relative; flex: 1; width: 22px;
    background:
        repeating-linear-gradient(to bottom, rgba(220, 232, 239, .75) 0 1px, transparent 1px 50px) right / 22px 100% no-repeat,
        repeating-linear-gradient(to bottom, rgba(165, 177, 192, .4) 0 1px, transparent 1px 10px) right / 11px 100% no-repeat;
}
.gauge__marker {
    position: absolute; right: 0; top: 0; width: 22px; height: 2px;
    background: var(--aqua); box-shadow: 0 0 10px 1px rgba(76, 201, 217, .7);
    will-change: transform;
}
.gauge__depth b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

@media (min-width: 1280px) { .gauge { display: flex; } .gauge__label { display: none; } }
@media (min-width: 1700px) { .gauge__label { display: block; } }

/* ==========================================================================
   05 BOTONES
   ========================================================================== */
.btn {
    --h: 3.1rem;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
    min-height: var(--h); padding: 0 1.55rem;
    border: 1px solid transparent; border-radius: var(--r-pill);
    font: 600 .975rem/1 var(--font-body); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
    cursor: pointer;
    transition: translate .35s var(--ease-out), box-shadow .35s var(--ease-out),
                background-color .3s, color .3s, border-color .3s;
}
.btn i { font-size: 1.2rem; line-height: 1; transition: transform .4s var(--ease-out); }
.btn:active { scale: .97; }

.btn--sm { --h: 2.6rem; padding: 0 1.15rem; font-size: .9rem; }
.btn--lg { --h: 3.5rem; padding: 0 1.9rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--primary {
    background: var(--aqua); color: #03141f;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 14px 34px -14px rgba(76, 201, 217, .7);
}
/* destello que cruza el botón al pasar el cursor */
.btn--primary::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
    translate: -120% 0; transition: translate .8s var(--ease-out);
}
.btn--ghost {
    background: rgba(255, 255, 255, .05); color: var(--ink); border-color: var(--line-strong);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

@media (hover: hover) {
    .btn--primary:hover { translate: 0 -2px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 20px 44px -14px rgba(76, 201, 217, .85); }
    .btn--primary:hover::before { translate: 120% 0; }
    .btn--primary:hover i { transform: rotate(-8deg) scale(1.1); }
    .btn--ghost:hover { translate: 0 -2px; border-color: var(--aqua); color: var(--aqua-soft); background: rgba(76, 201, 217, .08); }
    .btn--ghost:hover i { transform: translateY(2px); }
}

/* Anillo que pulsa de forma constante en el CTA principal */
.btn--pulse::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -2;
    box-shadow: 0 0 0 0 rgba(76, 201, 217, .55);
    animation: pulse 2.8s var(--ease-out) infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 201, 217, .5); }
    70%, 100% { box-shadow: 0 0 0 20px rgba(76, 201, 217, 0); }
}

.link-arrow {
    display: inline-flex; align-items: center; gap: .55rem; width: fit-content;
    font-weight: 600; color: var(--aqua-soft); text-decoration: none;
    border-bottom: 1px solid rgba(143, 224, 234, .35); padding-bottom: .2rem;
    transition: color .3s, border-color .3s, gap .35s var(--ease-out);
}
.link-arrow:hover { color: var(--ink); border-color: var(--aqua); gap: .85rem; }

/* ==========================================================================
   06 NAVEGACIÓN
   ========================================================================== */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); height: var(--nav-h);
    border-bottom: 1px solid transparent;
    transition: background-color .45s, border-color .45s, backdrop-filter .45s;
}
.nav.is-stuck {
    background: rgba(4, 16, 28, .72);
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}
.nav__inner {
    width: min(100% - (var(--gutter) * 2), var(--wrap)); height: 100%; margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand__logo { width: 34px; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); transition: transform .6s var(--ease-out); }
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.08); }
.brand__text { display: grid; line-height: 1.1; }
.brand__text strong { font: 750 1rem/1.1 var(--font-display); font-stretch: 112%; letter-spacing: -.01em; }
.brand__text small { font: 500 .62rem/1.3 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--aqua-soft); }

.nav__links { display: none; }
.nav__cta { display: none; }

.burger { position: relative; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease-out), background-color .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu {
    position: fixed; inset: 0; z-index: var(--z-menu);
    display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
    padding: calc(var(--nav-h) + 1rem) var(--gutter) 3rem;
    background: radial-gradient(90% 60% at 50% 0%, rgba(14, 70, 104, .55), transparent 70%), rgba(2, 9, 16, .96);
    -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-out), visibility .45s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__nav { display: grid; gap: .25rem; }
.menu__nav a {
    font: 750 clamp(2rem, 9vw, 3rem)/1.2 var(--font-display); font-stretch: 112%; letter-spacing: -.02em;
    text-decoration: none; color: var(--ink); padding: .35rem 0;
    opacity: 0; translate: 0 22px; transition: opacity .6s var(--ease-out), translate .7s var(--ease-out), color .3s;
}
.menu.is-open .menu__nav a { opacity: 1; translate: 0 0; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: .08s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .14s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .2s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .26s; }
.menu__nav a:hover { color: var(--aqua); }
.menu__cta { align-self: flex-start; }

@media (min-width: 1024px) {
    .nav__links { display: flex; gap: 2.25rem; }
    .nav__links a {
        position: relative; padding: .5rem 0; font-size: .92rem; font-weight: 500; color: var(--muted); text-decoration: none;
        transition: color .3s;
    }
    .nav__links a::after {
        content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px;
        background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
    }
    .nav__links a:hover { color: var(--ink); }
    .nav__links a:hover::after { transform: scaleX(1); }
    .nav__cta { display: inline-flex; }
    .burger, .menu { display: none; }
}

/* ==========================================================================
   07 HERO
   ========================================================================== */
.hero {
    position: relative; isolation: isolate; overflow: clip;
    min-height: 100dvh; display: grid; align-items: center;
    padding: calc(var(--nav-h) + 1.5rem) 0 clamp(6.5rem, 12vw, 8.5rem);
}
/* sol sobre la superficie */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(55% 45% at 78% -6%, rgba(143, 224, 234, .42), transparent 70%),
        radial-gradient(40% 35% at 12% 0%, rgba(76, 201, 217, .22), transparent 70%);
}

/* Rayos de luz: oscilan sin parar */
.hero__rays {
    position: absolute; inset: -4% -8% 0; z-index: -1; pointer-events: none; mix-blend-mode: screen;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
            mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}
.hero__rays i {
    position: absolute; top: -12%; left: calc(var(--x) * 1%);
    width: calc(var(--w) * 1vw); min-width: 60px; height: 135%;
    background: linear-gradient(to bottom, rgba(150, 232, 242, .34), rgba(150, 232, 242, 0) 78%);
    filter: blur(16px); transform-origin: top center; transform: rotate(var(--a));
    animation: ray var(--t) ease-in-out infinite alternate; animation-delay: var(--dl);
}
@keyframes ray {
    from { transform: rotate(calc(var(--a) - 6deg)) scaleX(.8); opacity: .3; }
    to   { transform: rotate(calc(var(--a) + 6deg)) scaleX(1.2); opacity: .95; }
}

.hero__inner { display: grid; gap: 2rem; align-items: center; }
.hero__visual { order: -1; }
.hero__copy { display: grid; justify-items: start; will-change: transform; }

.hero__title {
    margin: 1.1rem 0 1.25rem;
    font-family: var(--font-display); font-weight: 800; font-stretch: 112%;
    font-size: clamp(2.1rem, 10.4vw, 3.4rem); line-height: 1.02; letter-spacing: -.035em;
}
/* máscara de reveal por línea (con margen para que no se corten los descendentes) */
.line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.line__in { display: block; }

.shimmer {
    font-style: normal;
    background: linear-gradient(100deg, var(--aqua) 0%, var(--aqua-soft) 30%, #fff 46%, var(--aqua-soft) 60%, var(--aqua) 100%);
    background-size: 240% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

.hero__lead { max-width: 46ch; color: #bfd0dc; font-size: clamp(1.02rem, 1.7vw, 1.2rem); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; width: 100%; }
.hero__cta .btn { flex: 1 1 auto; }

/* Ojo de buey con logo */
.porthole {
    --px: 0; --py: 0;
    position: relative; width: min(60vw, 260px); aspect-ratio: 1; margin-inline: auto;
    display: grid; place-items: center;
}
.porthole__ripple {
    position: absolute; inset: 0; border-radius: 50%; opacity: 0;
    border: 1px solid rgba(143, 224, 234, .55);
    animation: ripple 7.5s var(--ease-out) infinite;
}
.porthole__ripple:nth-child(2) { animation-delay: 2.5s; }
.porthole__ripple:nth-child(3) { animation-delay: 5s; }
@keyframes ripple {
    0%   { transform: scale(.78); opacity: 0; }
    14%  { opacity: .7; }
    100% { transform: scale(1.7); opacity: 0; }
}
.porthole__tilt { position: absolute; inset: 0; }

.porthole__bezel {
    position: absolute; inset: -9%; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(220, 232, 239, .6) 0 .6deg, transparent .6deg 3.6deg);
    -webkit-mask: radial-gradient(circle, transparent 80%, #000 81%, #000 88%, transparent 89%);
            mask: radial-gradient(circle, transparent 80%, #000 81%, #000 88%, transparent 89%);
    animation: spin 80s linear infinite;
    translate: calc(var(--px) * -16px) calc(var(--py) * -16px);
}
.porthole__ring {
    position: absolute; inset: 0; border-radius: 50%;
    padding: clamp(7px, 1.5vw, 15px);
    background: conic-gradient(from 210deg, #d7e3ec, #566c80 16%, #a9b9c8 34%, #3b5266 52%, #cbd8e2 72%, #667d92 88%, #d7e3ec);
    box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .75), inset 0 0 0 2px rgba(255, 255, 255, .25), inset 0 0 22px rgba(0, 0, 0, .45);
    translate: calc(var(--px) * -8px) calc(var(--py) * -8px);
}
.porthole__glass {
    position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
    background: radial-gradient(circle at 50% 36%, #1a587b 0%, #0b2f4b 52%, #04101c 100%);
    box-shadow: inset 0 0 0 3px rgba(2, 7, 13, .85), inset 0 -40px 80px rgba(2, 7, 13, .6);
}
/* Cáusticas: luz que ondula dentro del cristal */
.porthole__caustics {
    position: absolute; inset: -30%; opacity: .55; mix-blend-mode: screen;
    background:
        radial-gradient(35% 28% at 30% 30%, rgba(143, 224, 234, .5), transparent 70%),
        radial-gradient(30% 24% at 72% 58%, rgba(76, 201, 217, .45), transparent 70%),
        radial-gradient(26% 20% at 45% 80%, rgba(143, 224, 234, .35), transparent 70%);
    animation: caustics 12s ease-in-out infinite alternate;
}
@keyframes caustics {
    from { transform: translate3d(-4%, -3%, 0) rotate(0deg) scale(1); }
    to   { transform: translate3d(5%, 4%, 0) rotate(14deg) scale(1.15); }
}
.porthole__glass i {
    position: absolute; bottom: -12%; left: calc(var(--x) * 1%);
    width: calc(var(--s) * 1px); height: calc(var(--s) * 1px); border-radius: 50%;
    border: 1px solid rgba(190, 240, 248, .6);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55), rgba(143, 224, 234, .05) 65%);
    animation: rise-in var(--d) linear infinite; animation-delay: var(--dl);
}
@keyframes rise-in {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    12%  { opacity: 1; }
    100% { transform: translate3d(10px, -120%, 0); opacity: 0; }
}

/* El logo rompe el marco: el tridente emerge del cristal */
.porthole__logo {
    position: absolute; inset: 0; margin: auto; width: auto; height: 120%; max-width: none;
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .55)) drop-shadow(0 0 28px rgba(76, 201, 217, .28));
    translate: calc(var(--px) * 14px) calc(var(--py) * 14px);
    animation: bob 8s ease-in-out infinite;
}
@keyframes bob {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%      { transform: translateY(-14px) rotate(1.2deg); }
}

/* Línea de flotación animada */
.hero__waves { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(80px, 12vw, 130px); pointer-events: none; z-index: -1; overflow: hidden; }
.wave { position: absolute; left: 0; bottom: 0; width: 200%; max-width: none; height: 100%; }
.wave--back  { animation: wave 24s linear infinite; }
.wave--front { animation: wave 15s linear infinite reverse; }
@keyframes wave { to { transform: translateX(-50%); } }

@media (min-width: 768px) {
    .hero__cta .btn { flex: 0 0 auto; }
    .porthole { width: min(46vw, 360px); }
}

@media (min-width: 1024px) {
    .hero { padding-top: calc(var(--nav-h) + 2rem); }
    .hero__title { font-size: clamp(2.8rem, 5.4vw, 4.6rem); }
    .hero__inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 3rem; }
    .hero__visual { order: 0; }
    .porthole { width: min(37vw, 540px); margin-right: 0; margin-left: auto; }
}

/* ==========================================================================
   14 MARQUEE (único de la página)
   ========================================================================== */
.marquee {
    position: relative; z-index: var(--z-content); overflow: hidden;
    border-block: 1px solid var(--line); padding: 1rem 0;
    background: rgba(4, 16, 28, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee ul { display: flex; align-items: center; gap: 2.25rem; padding-right: 2.25rem; }
.marquee li {
    display: flex; align-items: center; white-space: nowrap;
    font: 600 .78rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--steel);
}
.marquee li i { color: var(--aqua); font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   08 MANIFIESTO
   ========================================================================== */
.manifest { padding: var(--section-y) 0; }
.manifest__grid { display: grid; gap: 3rem; }

.manifest__text {
    font-family: var(--font-display); font-weight: 750; font-stretch: 108%;
    font-size: clamp(2rem, 6vw, 4.5rem); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance;
}
.w { display: inline-block; }
.js .w { opacity: .16; }
.no-gsap .w { opacity: 1; }

.manifest__lead { margin-top: 1.75rem; max-width: 56ch; color: var(--muted); font-size: clamp(1.02rem, 1.7vw, 1.2rem); text-wrap: pretty; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-content: start; }
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .6rem; padding-top: 1.1rem; border-top: 1px solid var(--line-strong); }
.fact dd {
    font: 800 clamp(3.4rem, 11vw, 6.5rem)/.95 var(--font-display); font-stretch: 112%;
    color: var(--aqua); font-variant-numeric: tabular-nums; letter-spacing: -.04em;
}
.fact dt { color: var(--muted); font-size: .9rem; line-height: 1.45; max-width: 24ch; }

@media (min-width: 900px) {
    .manifest__grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, .6fr); gap: 4.5rem; align-items: end; }
    .facts { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   09 PROGRAMAS (bento: foto, foto, gradiente)
   ========================================================================== */
.programs { padding: 0 0 var(--section-y); }

.bento { display: grid; gap: 1rem; }

.cell {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 460px; border-radius: var(--r-lg);
    border: 1px solid var(--line); background: var(--abyss-850);
    transition: border-color .5s;
}
/* foco de luz que sigue al cursor */
.cell::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(143, 224, 234, .18), transparent 62%);
}
@media (hover: hover) { .cell:hover { border-color: rgba(76, 201, 217, .5); } .cell:hover::before { opacity: 1; } }

.cell__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; transition: transform 1.4s var(--ease-out); }
.cell__media img { position: absolute; inset: -9% 0; width: 100%; height: 118%; object-fit: cover; }
/* viraje a la paleta de marca: unifica las fotos */
.cell__media::after { content: ""; position: absolute; inset: 0; background: #0a3250; mix-blend-mode: color; opacity: .5; }
.cell:has(.cell__media)::after, .cell--dive::after, .cell--weld::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to top, rgba(2, 9, 16, .95) 6%, rgba(2, 9, 16, .62) 46%, rgba(2, 9, 16, .12) 100%);
}
@media (hover: hover) { .cell:hover .cell__media { transform: scale(1.06); } }

.cell__body { position: relative; z-index: 2; display: grid; justify-items: start; gap: .9rem; padding: clamp(1.4rem, 3vw, 2.25rem); }
.cell__icon {
    display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--r-md);
    background: rgba(76, 201, 217, .14); border: 1px solid rgba(76, 201, 217, .4); color: var(--aqua); font-size: 1.5rem;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cell__title { font: 750 clamp(1.7rem, 3.6vw, 2.5rem)/1.05 var(--font-display); font-stretch: 108%; letter-spacing: -.025em; }
.cell__title--sm { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.cell__text { max-width: 46ch; color: #c3d3de; }

/* Fila superior de la tarjeta de soldadura submarina: ícono a la izquierda, logo propio del curso a la derecha */
.cell__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; width: 100%; }
.cell__logo {
    flex: none; width: clamp(96px, 11vw, 120px); height: auto;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .55)) drop-shadow(0 0 16px rgba(76, 201, 217, .22));
}

.ticks { display: grid; gap: .55rem; margin: .25rem 0 .6rem; }
.ticks li { display: flex; align-items: center; gap: .7rem; color: var(--ink); font-size: .96rem; }
.ticks i { color: var(--aqua); font-size: 1rem; }

/* Celda sin foto: gradiente con ondas concéntricas de sonar */
.cell--inc {
    min-height: 0; justify-content: flex-start;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(76, 201, 217, .28), transparent 60%),
        linear-gradient(160deg, var(--abyss-700), #07203a 70%);
}
.cell--inc::after {
    content: ""; position: absolute; right: -40%; top: -60%; width: 120%; aspect-ratio: 1; border-radius: 50%; z-index: -1; pointer-events: none;
    background: repeating-radial-gradient(circle, transparent 0 30px, rgba(143, 224, 234, .1) 30px 31px);
    animation: sonar 14s linear infinite;
}
@keyframes sonar { to { transform: rotate(360deg) scale(1.08); } }
.inc { display: grid; gap: .85rem; margin: .5rem 0 .9rem; }
.inc li { display: flex; align-items: center; gap: .85rem; font-weight: 500; }
.inc i { color: var(--aqua); font-size: 1.35rem; }

@media (min-width: 900px) {
    .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 1.25rem; }
    .cell--dive { grid-column: 1 / 8; grid-row: 1 / 3; min-height: 680px; }
    .cell--weld { grid-column: 8 / 13; grid-row: 1 / 2; min-height: 400px; }
    .cell--inc  { grid-column: 8 / 13; grid-row: 2 / 3; }
    .cell--smaw { grid-column: 1 / 13; grid-row: 3 / 4; min-height: 360px; }
}

/* ==========================================================================
   09b CURSOS (listado completo)
   ========================================================================== */
.catalog { padding: 0 0 var(--section-y); }

.catalog__list { counter-reset: course; }

.course {
    position: relative; counter-increment: course;
    display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: center; gap: 1rem;
    padding: 1.35rem 0; border-top: 1px solid var(--line-strong);
    background: linear-gradient(90deg, rgba(76, 201, 217, .16), transparent 75%) no-repeat 0 0 / 0% 100%;
    transition: background-size .8s var(--ease-out);
}
.course:last-child { border-bottom: 1px solid var(--line-strong); }
.course::before {
    content: counter(course, decimal-leading-zero);
    font: 500 .78rem/1 var(--font-mono); letter-spacing: .14em; color: var(--aqua);
}
.course__title {
    font: 750 clamp(1.15rem, 2.8vw, 1.9rem)/1.15 var(--font-display); font-stretch: 108%; letter-spacing: -.02em;
    text-wrap: balance; transition: color .4s;
}
.course__go {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
    border: 1px solid var(--line-strong); color: var(--aqua); font-size: 1.15rem; text-decoration: none;
    transition: background-color .4s, color .4s, border-color .4s;
}
/* toda la fila es clicable */
.course__go::after { content: ""; position: absolute; inset: 0; }
.course__go i { transition: transform .5s var(--ease-out); }
@media (hover: hover) {
    .course:hover { background-size: 100% 100%; }
    .course:hover .course__title { color: var(--aqua-soft); }
    .course:hover .course__go { background: var(--aqua); border-color: var(--aqua); color: var(--abyss-950); }
    .course:hover .course__go i { transform: translate(2px, -2px); }
}
@media (min-width: 900px) {
    .course { grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 1.5rem; padding: 1.75rem 0; }
}

/* ==========================================================================
   10 MÉTODO  (móvil/reducido: carrusel con snap · escritorio: pin horizontal)
   ========================================================================== */
.method { padding: var(--section-y) 0; }
.method__head { display: grid; gap: 1rem; margin-bottom: 2rem; justify-items: start; }

.method__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gutter); }
.method__viewport::-webkit-scrollbar { display: none; }
.method__track { display: flex; gap: 1rem; width: max-content; }

.step {
    flex: 0 0 min(82vw, 380px); scroll-snap-align: center;
    display: grid; gap: 1.1rem; align-content: start;
}
.step__media {
    position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 5;
    border: 1px solid var(--line); background: var(--abyss-800);
}
.step__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.step__media::after { content: ""; position: absolute; inset: 0; background: #0a3250; mix-blend-mode: color; opacity: .45; pointer-events: none; }
@media (hover: hover) { .step:hover .step__media img { transform: scale(1.05); } }
.step__icon {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
    border: 1px solid rgba(76, 201, 217, .45); background: rgba(76, 201, 217, .12); color: var(--aqua); font-size: 1.35rem;
}
.step__copy { display: grid; gap: .6rem; justify-items: start; }
.step__copy h3 { font: 750 clamp(1.6rem, 3vw, 2.4rem)/1.05 var(--font-display); font-stretch: 108%; letter-spacing: -.025em; }
.step__copy p { color: var(--muted); max-width: 36ch; }

.method__bar { display: none; }

/* Escritorio con movimiento: la sección se ancla y el scroll vertical desplaza la pista */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    html:not(.no-gsap) .method {
        height: 100dvh; min-height: 640px; padding: calc(var(--nav-h) + 1.25rem) 0 1.75rem;
        display: flex; flex-direction: column; overflow: hidden;
    }
    html:not(.no-gsap) .method__head { margin-bottom: 1.25rem; padding-right: 20%; }
    html:not(.no-gsap) .method__viewport { flex: 1; min-height: 0; overflow: visible; scroll-snap-type: none; padding-inline: 0; }
    html:not(.no-gsap) .method__track {
        height: 100%; gap: clamp(2rem, 5vw, 4.5rem); padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 12vw;
        will-change: transform;
    }
    html:not(.no-gsap) .step {
        flex: 0 0 min(76vw, 920px); grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        align-items: center; gap: clamp(1.5rem, 3vw, 3rem); height: 100%; grid-template-rows: minmax(0, 1fr);
    }
    html:not(.no-gsap) .step__media { aspect-ratio: auto; height: 100%; }
    html:not(.no-gsap) .step__copy { gap: .9rem; }
    html:not(.no-gsap) .method__bar { display: block; position: relative; height: 2px; margin: 1.1rem var(--gutter) 0; background: var(--line); overflow: hidden; }
    html:not(.no-gsap) .method__bar span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--teal), var(--aqua)); transform: scaleX(0); transform-origin: left; }
}

/* ==========================================================================
   11 APLICACIONES (filas tipográficas)
   ========================================================================== */
.uses { padding: var(--section-y) 0; }

.use {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; align-items: center;
    padding: 1.5rem 0; border-top: 1px solid var(--line-strong);
}
.use:last-child { border-bottom: 1px solid var(--line-strong); }
.use::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(76, 201, 217, .16), transparent 75%);
    transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out);
}
.use__title {
    grid-column: 1; font: 750 clamp(1.5rem, 4.6vw, 3.1rem)/1.08 var(--font-display); font-stretch: 108%; letter-spacing: -.03em;
    transition: translate .6s var(--ease-out), color .4s;
}
.use__text { grid-column: 1; color: var(--muted); max-width: 46ch; }
.use__icon { grid-column: 2; grid-row: 1 / 3; font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--steel); transition: color .4s, transform .6s var(--ease-out); }
@media (hover: hover) {
    .use:hover::before { transform: scaleX(1); }
    .use:hover .use__title { translate: 1rem 0; color: var(--aqua-soft); }
    .use:hover .use__icon { color: var(--aqua); transform: scale(1.18) rotate(-6deg); }
}
@media (min-width: 900px) {
    .use { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 2rem; padding: 2rem 0; }
    .use__title { grid-column: 1; }
    .use__text { grid-column: 2; grid-row: 1; }
    .use__icon { grid-column: 3; grid-row: 1; }
}

/* ==========================================================================
   12 PUNTO DE PARTIDA (tiras que se expanden)
   ========================================================================== */
.paths { padding: 0 0 var(--section-y); }

.strips { display: grid; gap: .75rem; }
.strip {
    position: relative; overflow: hidden; border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: linear-gradient(150deg, var(--abyss-700), var(--abyss-850) 70%);
    transition: border-color .5s;
}
.strip:nth-child(2) { background: linear-gradient(150deg, #0c3a55, var(--abyss-850) 70%); }
.strip:nth-child(3) { background: linear-gradient(150deg, #0a2f4a, #061826 70%); }
.strip::before {
    content: ""; position: absolute; right: -20%; bottom: -55%; width: 90%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: repeating-radial-gradient(circle, transparent 0 26px, rgba(143, 224, 234, .09) 26px 27px);
    opacity: 0; transition: opacity .8s;
}
.strip.is-active { border-color: rgba(76, 201, 217, .45); }
.strip.is-active::before { opacity: 1; animation: sonar 18s linear infinite; }

.strip__btn {
    width: 100%; display: flex; align-items: center; gap: 1rem; padding: 1.35rem 1.4rem; text-align: left;
}
.strip__icon { font-size: 1.7rem; color: var(--aqua); flex: none; }
.strip__title { flex: 1; font: 750 clamp(1.25rem, 3vw, 1.7rem)/1.1 var(--font-display); font-stretch: 108%; letter-spacing: -.02em; }
.strip__plus { color: var(--steel); transition: transform .5s var(--ease-out), color .3s; }
.strip.is-active .strip__plus { transform: rotate(45deg); color: var(--aqua); }

/* Móvil: acordeón vertical (grid-rows 0fr -> 1fr) */
.strip__panel {
    display: grid; grid-template-rows: 0fr; padding: 0 1.4rem; gap: 0;
    transition: grid-template-rows .6s var(--ease-out);
}
.strip__panel > div { overflow: hidden; min-height: 0; }
.strip.is-active .strip__panel { grid-template-rows: 1fr; padding-bottom: 1.4rem; }
.strip__inner { display: grid; justify-items: start; gap: 1.1rem; padding: 2px 2px 4px; }
.strip__panel p { color: #c3d3de; max-width: 42ch; }

@media (min-width: 900px) {
    .strips { display: flex; gap: .85rem; height: clamp(440px, 58vh, 540px); }
    .strip {
        flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: space-between;
        transition: flex-grow .9s var(--ease-out), border-color .5s;
    }
    .strip.is-active { flex-grow: 3.4; }
    .strip__btn { flex-direction: column; align-items: flex-start; gap: 1.1rem; padding: 1.75rem; }
    .strip__icon { font-size: 2.4rem; }
    .strip__title { flex: none; max-width: 100%; text-wrap: balance; }
    .strip__plus { position: absolute; top: 1.75rem; right: 1.75rem; }
    /* panel fijo: no se reacomoda mientras la tira crece */
    .strip__panel {
        display: block; grid-template-rows: none; position: absolute; left: 1.75rem; bottom: 1.75rem; width: min(440px, calc(100% - 3.5rem)); padding: 0;
        opacity: 0; visibility: hidden; translate: 0 18px;
        transition: opacity .35s, translate .6s var(--ease-out), visibility .35s;
    }
    .strip.is-active .strip__panel { opacity: 1; visibility: visible; translate: 0 0; padding-bottom: 0; transition-delay: .35s; }
    .strip__panel > div { overflow: visible; }
}

/* ==========================================================================
   13 FAQ
   ========================================================================== */
.faq { padding: 0 0 var(--section-y); }
.faq__grid { display: grid; gap: 2.5rem; }
.faq__intro { display: grid; gap: 1.1rem; justify-items: start; align-content: start; }

.qa { border-top: 1px solid var(--line-strong); }
.qa:last-child { border-bottom: 1px solid var(--line-strong); }
.qa__q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 0; text-align: left;
    font: 600 clamp(1.05rem, 2.2vw, 1.3rem)/1.35 var(--font-body); color: var(--ink); transition: color .3s;
}
.qa__q i { flex: none; color: var(--aqua); font-size: 1.15rem; transition: transform .5s var(--ease-out); }
.qa__q:hover { color: var(--aqua-soft); }
.qa.is-open .qa__q i { transform: rotate(45deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.qa__a > div { overflow: hidden; min-height: 0; }
.qa__a p { padding-bottom: 1.5rem; color: var(--muted); max-width: 60ch; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }

@media (min-width: 900px) {
    .faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5rem; align-items: start; }
    .faq__intro { position: sticky; top: calc(var(--nav-h) + 2.5rem); }
}

/* ==========================================================================
   15 CONTACTO / FORMULARIO
   ========================================================================== */
.contact { padding: var(--section-y) 0 calc(var(--section-y) + 1rem); isolation: isolate; overflow: clip; }
.contact__bg {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 78%, transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 78%, transparent);
}
.contact__bg img { width: 100%; height: 114%; object-fit: cover; object-position: center top; opacity: .3; filter: grayscale(.4); }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: #0a3250; mix-blend-mode: color; opacity: .6; }

.contact__grid { display: grid; gap: 2.5rem; align-items: center; }
.contact__copy { display: grid; gap: 1.25rem; justify-items: start; }
.contact__title {
    font-family: var(--font-display); font-weight: 800; font-stretch: 110%;
    font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.03; letter-spacing: -.035em; text-wrap: balance; max-width: 16ch;
}
.contact__lead { max-width: 44ch; color: #bfd0dc; font-size: clamp(1.02rem, 1.7vw, 1.2rem); }

.points { display: grid; gap: .9rem; margin: .5rem 0; }
.points li { display: flex; align-items: center; gap: .9rem; color: var(--ink); font-weight: 500; }
.points i {
    display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%;
    background: rgba(76, 201, 217, .12); border: 1px solid rgba(76, 201, 217, .4); color: var(--aqua); font-size: 1.2rem;
}

.form {
    display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3.5vw, 2.4rem);
    border-radius: var(--r-lg); border: 1px solid var(--line-strong);
    background: linear-gradient(160deg, rgba(15, 50, 80, .66), rgba(4, 16, 28, .86));
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.form__title { font: 750 1.5rem/1.15 var(--font-display); font-stretch: 108%; letter-spacing: -.02em; }
.field { display: grid; gap: .5rem; }
.field-row { display: grid; gap: 1.1rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--steel-100); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 3.1rem; padding: .8rem 1rem; border-radius: var(--r-md);
    background: rgba(2, 9, 16, .6); border: 1px solid var(--line-strong); color: var(--ink);
    transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input::placeholder, .field textarea::placeholder { color: #8296a7; }
.field select {
    appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%234cc9d9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(76, 201, 217, .5); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(76, 201, 217, .18); background: rgba(2, 9, 16, .8);
}
.field.is-invalid input { border-color: #ff9a85; box-shadow: 0 0 0 4px rgba(255, 154, 133, .14); }
.field__err { min-height: 0; font-size: .82rem; color: #ffb4a3; }
.field__err:empty { display: none; }

.btn__spin { display: none; animation: spin .8s linear infinite; }
.form.is-sending .btn__icon { display: none; }
.form.is-sending .btn__spin { display: inline-block; }
.form.is-sending .btn { pointer-events: none; opacity: .85; }

.form__note { font-size: .82rem; line-height: 1.5; color: var(--muted); text-align: center; text-wrap: balance; }
.form__note.is-ok { color: var(--aqua-soft); }
.form__note.is-warn { color: #ffb4a3; }

@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; } }

/* ==========================================================================
   16 FOOTER
   ========================================================================== */
.footer { position: relative; overflow: clip; border-top: 1px solid var(--line); background: rgba(2, 7, 13, .72); padding-top: 3.5rem; }
.footer__grid { display: grid; gap: 1.75rem; }
.brand--footer .brand__logo { width: 44px; }
.footer__about { max-width: 42ch; color: var(--muted); }
.footer__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer__nav a { color: var(--steel-100); text-decoration: none; font-weight: 500; transition: color .3s; }
.footer__nav a:hover { color: var(--aqua); }

.footer__mark {
    margin: 2.5rem 0 -.18em; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
    font: 900 clamp(1.5rem, 7vw, 8.5rem)/1 var(--font-display); font-stretch: 118%; letter-spacing: -.045em; text-transform: uppercase;
    color: transparent; -webkit-text-stroke: 1px rgba(165, 177, 192, .22);
}
.footer__bottom p { padding-right: 4.5rem; }
.footer__bottom { padding: 1.25rem 0 1.75rem; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); background: rgba(2, 7, 13, .6); position: relative; }

@media (min-width: 900px) {
    .footer__bottom p { padding-right: 0; }
    .footer__grid { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 3rem; }
    .footer__about { justify-self: start; }
}

/* ==========================================================================
   17 BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.fab {
    position: fixed; z-index: var(--z-fab);
    right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
    display: grid; place-items: center; width: 3.7rem; height: 3.7rem; border-radius: 50%;
    background: #25d366; color: #fff; font-size: 2.1rem; text-decoration: none;
    box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .6), inset 0 0 0 1px rgba(255, 255, 255, .25);
    transition: scale .4s var(--ease-out), box-shadow .4s;
}
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: fab-pulse 2.8s ease-out infinite; }
@keyframes fab-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 75%, 100% { box-shadow: 0 0 0 22px rgba(37, 211, 102, 0); } }
.fab:hover { scale: 1.08; }
.fab:active { scale: .95; }
.fab__tip {
    position: absolute; right: calc(100% + .85rem); top: 50%; translate: 12px -50%;
    padding: .55rem .95rem; border-radius: var(--r-pill); white-space: nowrap;
    font: 600 .85rem/1 var(--font-body); color: var(--abyss-950); background: var(--steel-100);
    opacity: 0; pointer-events: none; transition: opacity .35s, translate .5s var(--ease-out);
}
.fab:hover .fab__tip, .fab:focus-visible .fab__tip, .fab.show-tip .fab__tip { opacity: 1; translate: 0 -50%; }
@media (max-width: 639px) { .fab__tip { display: none; } }

/* ==========================================================================
   18 REVEALS  (solo se ocultan cuando hay JS; si JS falla, todo se ve)
   ========================================================================== */
.js [data-reveal] {
    opacity: 0; transform: translate3d(0, 38px, 0);
    transition: opacity .9s var(--ease-out), transform 1.15s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Entrada del hero (se dispara cuando el loader empieza a abrirse) */
.js .hero [data-hero] { opacity: 0; transform: translate3d(0, 26px, 0); }
.js .line__in { transform: translate3d(0, 115%, 0); }
.js .hero__visual { opacity: 0; transform: scale(.84); }

.is-ready .hero [data-hero] {
    opacity: 1; transform: none;
    transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
    transition-delay: calc(var(--i, 0) * .12s + .55s);
}
.is-ready .line__in {
    transform: none; transition: transform 1.3s var(--ease-out);
    transition-delay: calc(var(--i, 0) * .14s + .35s);
}
.is-ready .hero__visual {
    opacity: 1; transform: none;
    transition: opacity 1.4s var(--ease-out) .3s, transform 1.9s var(--ease-out) .3s;
}

/* ==========================================================================
   19 MOVIMIENTO REDUCIDO  (se conserva todo el contenido, sin animación)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important;
        transition-delay: 0s !important; scroll-behavior: auto !important;
    }
    .js [data-reveal], .js .hero [data-hero], .js .line__in, .js .hero__visual { opacity: 1 !important; transform: none !important; }
    .js .w { opacity: 1; }
    .marquee__track { animation: none; transform: none; flex-wrap: wrap; width: 100%; }
    .hero__rays i { opacity: .55; }
    .btn--pulse::after, .fab::before { display: none; }
}
