/* ==========================================================================
   ESCUCHA TU TRAUMA · Consultorio Psicoanalítico
   Concepto: "El clavado" — un descenso del consciente al inconsciente
   y de regreso a la superficie.
   Mobile-first · Paleta: azul rey · blanco · verde menta
   --------------------------------------------------------------------------
   01 Tokens        08 Ocean (pin)      15 Modalidades (horizontal)
   02 Base          09 Marquee          16 Adicciones
   03 Utilidades    10 Método (stack)   17 Primer paso (timeline)
   04 Loader        11 Raíz             18 FAQ
   05 Header/Menú   12 Foto (pin)       19 Contacto / Formulario
   06 Botones       13 Por qué iniciar  20 Footer
   07 Hero          14 Especialidades   21 Flotantes · Cursor · Medidor
   ========================================================================== */

/* ─────────────── 01 · TOKENS ─────────────── */
:root {
    --royal: #1743d6;
    --royal-2: #0f2fa8;
    --royal-deep: #0a1f78;
    --abyss: #050c2e;
    --mint: #6fe3c1;
    --mint-2: #a9f0d9;
    --mint-tint: #e4faf2;
    --ice: #eaf1ff;
    --paper: #f6f9ff;
    --ink: #0b1440;
    --ink-2: #38426e;
    --muted: #667098;
    --line: rgba(11, 20, 64, .12);
    --line-d: rgba(255, 255, 255, .16);

    --ff-d: 'Instrument Serif', 'Times New Roman', serif;
    --ff-b: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ff-m: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

    --vh: 100vh;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-io: cubic-bezier(.65, 0, .35, 1);
    --gutter: clamp(20px, 5vw, 64px);
    --header-h: 76px;
    --r: 28px;
}

/* ─────────────── 02 · BASE ─────────────── */
@supports (height: 100svh) { :root { --vh: 100svh; } } /* respaldo 100vh para Safari/iOS antiguos */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
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 {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--ff-b);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
::selection { background: var(--mint); color: var(--ink); }

:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; border-radius: 6px; }
[data-tone="dark"] :focus-visible { outline-color: var(--mint); }

.skip {
    position: fixed; left: 12px; top: -80px; z-index: 5000;
    background: var(--royal); color: #fff; padding: .8rem 1.1rem; border-radius: 12px;
    font-weight: 700; text-decoration: none; transition: top .3s;
}
.skip:focus { top: 12px; }

/* Tono por sección */
[data-tone="dark"] { --em: var(--mint); color: #fff; }
[data-tone="light"] { --em: var(--royal); color: var(--ink); }

/* ─────────────── 03 · UTILIDADES ─────────────── */
.container {
    position: relative; z-index: 2;
    width: 100%; max-width: 1280px; margin-inline: auto;
    padding-inline: var(--gutter);
}

.display {
    font-family: var(--ff-d); font-weight: 400; font-synthesis: none;
    font-size: clamp(2.3rem, 7vw, 4.6rem);
    line-height: 1.02; letter-spacing: -.015em;
    text-wrap: balance;
}
.display em { font-style: italic; color: var(--em, var(--royal)); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .8rem;
    font-family: var(--ff-m); font-size: .72rem; font-weight: 500;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--royal);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
[data-tone="dark"] .eyebrow { color: var(--mint); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.65; color: var(--ink-2); max-width: 36em; }
[data-tone="dark"] .lead { color: rgba(255, 255, 255, .78); }

.sec-head { max-width: 860px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 1.1rem; justify-items: start; }
.sec-sub { font-size: 1.08rem; color: var(--ink-2); max-width: 38em; }
[data-tone="dark"] .sec-sub { color: rgba(255, 255, 255, .72); }

.chip {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .5rem .95rem .5rem .8rem; border-radius: 999px;
    background: rgba(255, 255, 255, .7); border: 1px solid rgba(23, 67, 214, .16);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    font-size: .78rem; font-weight: 700; letter-spacing: .01em; color: var(--royal-deep);
}
.dot, .pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }
.dot::after, .pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--mint); animation: ping 2s var(--ease) infinite; }

/* Revelados */
.js .rv {
    opacity: 0; transform: translateY(34px);
    transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s),
                translate .6s var(--ease), box-shadow .6s var(--ease), background-color .4s;
}
.js .rv.in { opacity: 1; transform: none; }

.js .hi {
    opacity: 0; transform: translateY(26px);
    transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
html.is-ready .hi { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i, 0) * .13s); }

/* Titulares divididos en palabras */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .06em .16em; margin: -.06em -.06em -.16em; }
.wi { display: inline-block; }
.js [data-split] .wi {
    transform: translateY(115%) rotate(5deg); transform-origin: 0 100%;
    transition: transform 1.15s var(--ease) calc(var(--wi, 0) * .06s);
}
.js [data-split].in .wi, html.is-ready .hero-title .wi { transform: none; }
.sw { display: inline; }

/* ─────────────── 04 · LOADER ─────────────── */
#loader {
    position: fixed; inset: 0; z-index: 1000;
    display: grid; place-items: center; color: #fff;
    transition: transform 1.3s var(--ease-io);
    will-change: transform;
}
#loader.is-leaving { transform: translateY(-104%); }
#loader.is-gone { display: none; }
/* Seguro: si el JS o un CDN tardan demasiado, el loader nunca bloquea el sitio */
#loader { animation: ld-failsafe .01s 14s forwards; }
@keyframes ld-failsafe { to { visibility: hidden; opacity: 0; } }
.ld-bg {
    position: absolute; inset: 0;
    background: radial-gradient(900px 600px at 50% 38%, #1534a8 0%, var(--royal-deep) 48%, var(--abyss) 100%);
    overflow: hidden;
}
.ld-bg::before, .ld-bg::after {
    content: ''; position: absolute; inset: -20% 0;
    background-image: radial-gradient(rgba(111, 227, 193, .55) 1.2px, transparent 1.8px);
    background-size: 70px 110px; opacity: .22; animation: rise 14s linear infinite;
}
.ld-bg::after { background-size: 120px 170px; opacity: .14; animation-duration: 22s; animation-direction: reverse; }
.ld-core { position: relative; display: grid; justify-items: center; gap: 1rem; text-align: center; transition: opacity .5s, transform .8s var(--ease); }
#loader.is-leaving .ld-core { opacity: 0; transform: scale(.92); }

.ld-seal { position: relative; width: clamp(160px, 38vw, 220px); aspect-ratio: 1; margin-bottom: .6rem; }
.ld-seal img {
    position: absolute; inset: 15%; width: 70%; height: 70%;
    border-radius: 50%; animation: breathe 3.2s ease-in-out infinite;
    box-shadow: 0 0 60px 6px rgba(111, 227, 193, .28), 0 0 0 1px rgba(255, 255, 255, .2);
}
.ld-ring, .ld-spin { position: absolute; inset: 0; width: 100%; height: 100%; }
.ld-ring { transform: rotate(-90deg); }
.ld-track { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 2; }
.ld-bar { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 553; stroke-dashoffset: 553; filter: drop-shadow(0 0 8px rgba(111, 227, 193, .8)); }
.ld-spin { animation: spin 9s linear infinite; }
.ld-dash { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1; stroke-dasharray: 2 9; }
.ld-orbit { position: absolute; inset: 0; animation: spin 3.6s linear infinite; }
.ld-orbit::after { content: ''; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 3px rgba(255, 255, 255, .8); }
.ld-orbit.o2 { inset: 8%; animation-duration: 5.4s; animation-direction: reverse; }
.ld-orbit.o2::after { background: var(--mint); box-shadow: 0 0 14px 3px rgba(111, 227, 193, .9); }

.ld-brand { font-family: var(--ff-d); font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1; }
.ld-brand em { color: var(--mint); }
.ld-msg { font-family: var(--ff-m); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); min-height: 1.2em; transition: opacity .3s; }
.ld-count { font-family: var(--ff-m); font-size: 2.3rem; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.ld-count small { font-size: .9rem; margin-left: 2px; color: var(--mint); }
.ld-edge { position: absolute; left: 0; top: 100%; width: 100%; height: clamp(44px, 8vw, 110px); fill: var(--abyss); margin-top: -1px; }

/* ─────────────── 05 · HEADER / MENÚ ─────────────── */
#header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    padding: max(10px, env(safe-area-inset-top)) var(--gutter) 0;
    transition: transform .7s var(--ease);
}
#header.is-hidden { transform: translateY(-130%); }
.hd-pill {
    max-width: 1180px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .45rem .5rem .45rem .55rem; border-radius: 999px;
    background: rgba(255, 255, 255, .66); border: 1px solid rgba(255, 255, 255, .8);
    backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
    box-shadow: 0 12px 40px -14px rgba(10, 31, 120, .3);
    color: var(--ink);
    transition: background .5s, border-color .5s, color .5s, box-shadow .5s;
}
#header.on-dark .hd-pill { background: rgba(7, 16, 66, .55); border-color: rgba(255, 255, 255, .14); color: #fff; box-shadow: 0 12px 40px -14px rgba(0, 0, 0, .6); }
.hd-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; min-width: 0; }
.hd-seal { width: 44px; height: 44px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(111, 227, 193, .6), 0 6px 16px -6px rgba(23, 67, 214, .7); }
.hd-name { font-family: var(--ff-d); font-size: 1.32rem; line-height: 1; white-space: nowrap; }
.hd-name em { color: var(--royal); }
#header.on-dark .hd-name em { color: var(--mint); }
.hd-name small { display: block; margin-top: .22rem; font-family: var(--ff-m); font-size: .54rem; letter-spacing: .15em; text-transform: uppercase; opacity: .62; }
.hd-nav { display: none; align-items: center; gap: .3rem; }
.hd-nav a {
    position: relative; padding: .55rem .9rem; border-radius: 999px;
    font-size: .88rem; font-weight: 600; text-decoration: none; transition: background .3s;
}
.hd-nav a:hover { background: rgba(23, 67, 214, .09); }
#header.on-dark .hd-nav a:hover { background: rgba(255, 255, 255, .1); }
.hd-pill .hd-cta { display: none; }
.hd-burger { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--royal); flex: none; }
.hd-burger i { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease); }
.hd-burger i:nth-child(1) { top: 19px; }
.hd-burger i:nth-child(2) { top: 27px; }
.menu-open .hd-burger i:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .hd-burger i:nth-child(2) { top: 23px; transform: rotate(-45deg); }
.menu-open #header .hd-pill { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; color: #fff; }
.menu-open #header .hd-name em { color: var(--mint); }
.menu-open #header .hd-burger { background: var(--mint); }
.menu-open #header .hd-burger i { background: var(--ink); }

#menu { position: fixed; inset: 0; z-index: 150; visibility: hidden; pointer-events: none; color: #fff; display: grid; grid-template-rows: 1fr auto; padding: calc(var(--header-h) + 1.5rem) var(--gutter) max(1.5rem, env(safe-area-inset-bottom)); transition: visibility 0s .9s; }
.menu-open #menu { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.mn-bg {
    position: absolute; inset: 0;
    background: radial-gradient(700px 500px at 80% 10%, #1b43c9, transparent 70%), linear-gradient(180deg, var(--royal-deep), var(--abyss));
    clip-path: circle(0 at calc(100% - 44px) 40px); transition: clip-path .95s var(--ease);
}
.menu-open .mn-bg { clip-path: circle(160% at calc(100% - 44px) 40px); }
.mn-nav { position: relative; display: grid; align-content: center; gap: .2rem; }
.mn-nav a {
    display: flex; align-items: baseline; gap: 1rem; padding: .35rem 0;
    font-family: var(--ff-d); font-size: clamp(2.3rem, 11vw, 3.6rem); line-height: 1.1; text-decoration: none;
    opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.mn-nav a small { font-family: var(--ff-m); font-size: .7rem; color: var(--mint); letter-spacing: .14em; }
.menu-open .mn-nav a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--k, 0) * .06s); }
.mn-foot { position: relative; display: grid; gap: .9rem; justify-items: start; opacity: 0; transition: opacity .6s .6s; }
.menu-open .mn-foot { opacity: 1; }
.mn-foot p { font-family: var(--ff-m); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

/* ─────────────── 06 · BOTONES ─────────────── */
.btn {
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
    min-height: 54px; padding: .95rem 1.5rem; border-radius: 999px;
    font-family: var(--ff-b); font-weight: 700; font-size: .95rem; letter-spacing: .005em; line-height: 1.2; text-decoration: none; text-align: center;
    translate: var(--tx, 0) var(--ty, 0);
    transition: translate .35s var(--ease), box-shadow .4s var(--ease), color .35s, border-color .35s;
    -webkit-tap-highlight-color: transparent;
}
.btn svg { flex: none; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px) rotate(-8deg); }
.btn::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: var(--hover-bg, var(--mint)); transform: translateY(102%); border-radius: 50% 50% 0 0 / 40% 40% 0 0;
    transition: transform .55s var(--ease), border-radius .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn-sm { min-height: 46px; padding: .7rem 1.15rem; font-size: .86rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--royal); color: #fff; --hover-bg: var(--ink);
    box-shadow: 0 14px 34px -12px rgba(23, 67, 214, .8), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg); animation: sheen 5.5s var(--ease) infinite;
}
.btn-primary:hover { box-shadow: 0 18px 44px -12px rgba(23, 67, 214, .9); }
.btn-mint { background: var(--mint); color: var(--ink); --hover-bg: #fff; box-shadow: 0 14px 40px -14px rgba(111, 227, 193, .9), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-ghost { color: var(--royal-deep); border: 1.5px solid rgba(23, 67, 214, .35); --hover-bg: var(--royal); background: rgba(255, 255, 255, .4); }
.btn-ghost:hover { color: #fff; border-color: var(--royal); }
.btn-ghost-d { color: #fff; border: 1.5px solid rgba(255, 255, 255, .4); --hover-bg: #fff; }
.btn-ghost-d:hover { color: var(--ink); border-color: #fff; }

.b-link {
    position: relative; display: inline-flex; align-items: center; gap: .6rem; align-self: flex-start;
    margin-top: auto; padding: .5rem 0; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--royal);
}
.b-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform-origin: left; transition: transform .5s var(--ease); }
.b-link:hover::after { transform: scaleX(.35); }
.b-link svg { transition: transform .45s var(--ease); }
.b-link:hover svg { transform: translateX(6px); }

/* ─────────────── 07 · HERO ─────────────── */
.hero {
    position: relative; min-height: var(--vh);
    padding: calc(var(--header-h) + 2.2rem) 0 clamp(7rem, 14vw, 9rem);
    background:
        radial-gradient(1000px 640px at 85% 8%, #dbe7ff 0%, transparent 62%),
        radial-gradient(800px 560px at 0% 100%, var(--mint-tint) 0%, transparent 60%),
        var(--paper);
    overflow: hidden;
}
.fx-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero .fx-canvas { opacity: .85; }
.hero-orbs i { position: absolute; z-index: 1; border-radius: 50%; filter: blur(70px); opacity: .45; pointer-events: none; animation: drift 16s ease-in-out infinite alternate; }
.hero-orbs i:nth-child(1) { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; right: -8%; top: 8%; background: var(--royal); opacity: .22; }
.hero-orbs i:nth-child(2) { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; left: -6%; bottom: 8%; background: var(--mint); animation-delay: -6s; }

.hero-grid { display: grid; gap: 2.6rem; align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; justify-items: start; }
.hero-title { font-size: clamp(3rem, 12.4vw, 6.25rem); line-height: .96; letter-spacing: -.02em; }
.hero-title .wi { transition-delay: calc(.35s + var(--wi, 0) * .08s); }
.hero-title em .wi {
    background: linear-gradient(100deg, var(--royal) 0%, #2a8bff 35%, #35c9a4 62%, var(--royal) 100%); background-size: 220% auto;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    animation: gradslide 7s linear infinite; padding-right: .06em;
}
.hero .lead { max-width: 33em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-points { list-style: none; display: grid; gap: .45rem; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.hero-points li { display: flex; align-items: center; gap: .55rem; }
.hero-points svg { color: var(--royal); flex: none; }

.hero-visual { position: relative; display: grid; place-items: center; padding: 1.5rem 0 2rem; }
.echo { position: absolute; left: 50%; top: 46%; width: min(86vw, 520px); aspect-ratio: 1; translate: -50% -50%; pointer-events: none; }
.echo i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(23, 67, 214, .38); opacity: 0; transform: scale(.55); animation: echo 7s var(--ease) infinite; }
.echo i:nth-child(2) { animation-delay: 1.75s; }
.echo i:nth-child(3) { animation-delay: 3.5s; }
.echo i:nth-child(4) { animation-delay: 5.25s; }

.portrait {
    --rx: 0deg; --ry: 0deg;
    position: relative; width: min(74vw, 340px);
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
    will-change: transform;
}
.portrait-frame {
    position: relative; aspect-ratio: 4 / 5; overflow: hidden;
    border-radius: 999px 999px 34px 34px; background: var(--royal-deep);
    box-shadow: 0 50px 90px -34px rgba(15, 47, 168, .7), 0 0 0 8px rgba(255, 255, 255, .55), 0 0 0 9px rgba(23, 67, 214, .18);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 16%; transform: scale(1.12); animation: kenburns 18s ease-in-out infinite alternate; }
.portrait-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(5, 12, 46, .5)), linear-gradient(135deg, rgba(23, 67, 214, .18), transparent 45%); }

.float-chip {
    position: absolute; display: flex; align-items: center; gap: .55rem;
    padding: .6rem .95rem; border-radius: 16px; white-space: nowrap;
    background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px -16px rgba(10, 31, 120, .45);
    font-size: .76rem; font-weight: 700; color: var(--royal-deep);
    transform: translateZ(60px); animation: floaty 6s ease-in-out infinite;
}
.float-chip svg { color: var(--royal); }
.float-chip.c1 { left: -14%; top: 18%; }
.float-chip.c2 { right: -12%; top: 46%; animation-delay: -2s; }
.float-chip.c3 { left: -8%; bottom: 14%; animation-delay: -4s; }

.seal { position: absolute; right: -8%; bottom: -7%; width: 38%; max-width: 128px; aspect-ratio: 1; transform: translateZ(90px); display: grid; place-items: center; }
.seal-ring { position: absolute; inset: -4%; width: 108%; height: 108%; animation: spin 24s linear infinite; }
.seal-ring text { font-family: var(--ff-m); font-size: 11.5px; font-weight: 500; fill: var(--royal-deep); }
.seal img { position: relative; z-index: 1; width: 62%; height: 62%; border-radius: 50%; box-shadow: 0 10px 30px -8px rgba(5, 12, 46, .6), 0 0 0 3px #fff; }
.seal::before { content: ''; position: absolute; inset: 4%; border-radius: 50%; background: #fff; box-shadow: 0 14px 34px -10px rgba(10, 31, 120, .5); }

.scroll-cue {
    position: absolute; z-index: 4; left: 50%; bottom: calc(clamp(44px, 7vw, 110px) + 8px); translate: -50% 0;
    display: none; flex-direction: column; align-items: center; gap: .5rem; text-decoration: none;
    font-family: var(--ff-m); font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--royal-deep);
}
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--royal), transparent); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }

/* Olas de transición entre secciones */
.seam { position: absolute; left: 0; width: 100%; height: clamp(44px, 8vw, 110px); overflow: hidden; pointer-events: none; z-index: 4; }
.seam-bottom { bottom: -1px; }
.seam-top { top: 1px; transform: translateY(-100%); }
.seam .w { position: absolute; left: 0; bottom: 0; width: 200%; max-width: none; height: 100%; fill: var(--fill); animation: wave 20s linear infinite; padding: 0; margin: 0; overflow: visible; display: block; }
.seam .w1 { opacity: .42; animation-duration: 30s; animation-direction: reverse; }

/* ─────────────── 08 · OCEAN (pin) ─────────────── */
.ocean { position: relative; background: var(--abyss); }
.ocean-pin {
    --p: 0;
    position: relative; min-height: var(--vh); display: grid; align-items: center; overflow: hidden;
    padding: calc(var(--header-h) + 2.5rem) 0 4.5rem; color: #fff;
    background: linear-gradient(180deg, var(--royal) 0%, var(--royal-2) 26%, var(--royal-deep) 60%, var(--abyss) 100%);
    background-size: 100% 270%; background-position: 50% calc(var(--p) * 100%);
}
.ocean-fx { position: absolute; inset: 0; pointer-events: none; }
.ocean-rays {
    position: absolute; left: -25%; right: -25%; top: -10%; height: 95%;
    background: repeating-conic-gradient(from 180deg at 50% -8%, rgba(255, 255, 255, .15) 0 2.5deg, transparent 2.5deg 8deg);
    -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0, #000 0, transparent 72%); mask-image: radial-gradient(ellipse 70% 100% at 50% 0, #000 0, transparent 72%);
    opacity: calc(1 - var(--p) * .92); animation: sway 14s ease-in-out infinite alternate; transform-origin: 50% 0;
}
.ocean-glow { position: absolute; width: 70vmax; height: 70vmax; left: -20vmax; bottom: -40vmax; border-radius: 50%; background: radial-gradient(circle, rgba(111, 227, 193, .26), transparent 62%); opacity: calc(.35 + var(--p) * .65); }

.ocean-grid { display: grid; gap: 1.6rem; padding-right: calc(var(--gutter) + 1.8rem); }
.ocean-stage { display: grid; }
.ocean-line { margin: 0; font-size: clamp(1.85rem, 5.8vw, 4.5rem); line-height: 1.06; max-width: 17em; text-wrap: pretty; }
.ocean-line.is-b { margin-top: 1.8rem; }
.gsap-ok .ocean-line { grid-area: 1 / 1; }
.gsap-ok .ocean-line.is-b { margin-top: 0; }
.gsap-ok .sw { opacity: .16; }
.ocean-cta { margin-top: .6rem; }

.gauge { --gp: 0; position: absolute; z-index: 3; right: calc(var(--gutter) * .55); top: calc(var(--header-h) + 3rem); bottom: 3.2rem; width: 14px; }
.g-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .22); }
.g-fill { position: absolute; inset: 0; background: var(--mint); transform-origin: top; transform: scaleY(var(--gp)); box-shadow: 0 0 12px rgba(111, 227, 193, .7); }
.g-orb { position: absolute; left: 50%; top: calc(var(--gp) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 6px rgba(111, 227, 193, .2), 0 0 30px 8px rgba(111, 227, 193, .55); }
.gauge ul { list-style: none; display: none; }
.gauge li { position: absolute; right: 26px; font-family: var(--ff-m); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: rgba(255, 255, 255, .35); transition: color .5s, transform .5s var(--ease); }
.gauge li:nth-child(1) { top: -.4rem; }
.gauge li:nth-child(2) { top: 50%; translate: 0 -50%; }
.gauge li:nth-child(3) { bottom: -.4rem; }
.gauge li.on { color: var(--mint); transform: translateX(-6px); }

/* ─────────────── 09 · MARQUEE ─────────────── */
.marquee-wrap { position: relative; z-index: 5; overflow-x: clip; padding: 1.6rem 0; margin: -1.6rem 0; pointer-events: none; }
.marquee {
    position: relative; background: var(--mint); color: var(--ink);
    padding: 1.4rem 0; overflow: hidden;
    transform: rotate(-1.4deg) scale(1.04); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .5);
}
.mq-row { overflow: hidden; white-space: nowrap; }
.mq-row + .mq-row { margin-top: .2rem; }
.mq-track { display: inline-flex; will-change: transform; }
.mq-track ul { display: flex; list-style: none; flex: none; }
.mq-track li { display: flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem; font-family: var(--ff-d); font-size: clamp(2.1rem, 6vw, 4.4rem); line-height: 1.15; }
.mq-track li::after { content: '✦'; font-size: .42em; color: var(--royal); }
.mq-alt li { font-style: italic; color: var(--royal-deep); font-size: clamp(1.6rem, 4.4vw, 3.2rem); }
.mq-alt li::after { color: var(--ink); }
html:not(.js-marquee) .mq-track { animation: marquee 40s linear infinite; }
html:not(.js-marquee) .mq-alt .mq-track { animation-direction: reverse; animation-duration: 48s; }

/* ─────────────── 10 · MÉTODO (cartas apiladas) ─────────────── */
.method {
    position: relative; padding: clamp(6rem, 13vw, 10rem) 0 clamp(4rem, 8vw, 7rem);
    background: linear-gradient(180deg, var(--abyss) 0%, #07124a 55%, var(--royal-deep) 100%);
}
.m-stack { display: grid; gap: 1.4rem; }
.m-card {
    position: relative; display: grid; gap: 1.8rem; align-items: center;
    padding: clamp(1.4rem, 4vw, 3.2rem); border-radius: var(--r); overflow: hidden;
    border: 1px solid var(--line-d); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
    background: linear-gradient(155deg, #1030a6 0%, #0b2085 55%, #08166a 100%);
    transform-origin: 50% 0;
}
.m-card:nth-child(2) { background: linear-gradient(155deg, #0e2a9a 0%, #0a1c76 55%, #07125a 100%); }
.m-card:nth-child(3) { background: linear-gradient(155deg, #0b2386 0%, #081763 55%, #060f48 100%); }
.m-shade { position: absolute; inset: 0; z-index: 5; background: var(--abyss); opacity: 0; pointer-events: none; }
.m-body { position: relative; z-index: 2; display: grid; gap: 1.1rem; justify-items: start; }
.m-num { font-family: var(--ff-d); font-size: clamp(4rem, 12vw, 7.5rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(111, 227, 193, .75); }
.m-title { font-family: var(--ff-d); font-weight: 400; font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
.m-title em { color: var(--mint); }
.m-body > p { color: rgba(255, 255, 255, .8); font-size: 1.02rem; max-width: 34em; }
.m-quote { padding: .2rem 0 .2rem 1.1rem; border-left: 2px solid var(--mint); }
.m-quote p { font-family: var(--ff-d); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.25; }
.m-quote footer { margin-top: .5rem; font-family: var(--ff-m); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.m-quote cite { font-style: normal; }

.m-art { position: relative; z-index: 2; aspect-ratio: 1; width: 100%; max-width: 440px; justify-self: center; border-radius: 24px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02) 70%); border: 1px solid var(--line-d); }

/* 01 · loop */
.art-loop svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-loop .o { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1; stroke-dasharray: 3 6; }
.art-loop .orb { transform-origin: 160px 160px; animation: spin 9s linear infinite; }
.art-loop .orb2 { animation-duration: 14s; animation-direction: reverse; }
.art-loop .orb3 { animation-duration: 21s; }
.art-loop .orb circle { fill: var(--mint); filter: drop-shadow(0 0 6px rgba(111, 227, 193, .9)); }
.switch { position: relative; z-index: 2; display: grid; justify-items: center; gap: .5rem; padding: .9rem 1.1rem 1rem; border-radius: 18px; background: rgba(5, 12, 46, .78); border: 1px solid var(--line-d); backdrop-filter: blur(8px); }
.switch small { font-family: var(--ff-m); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.sw-track { position: relative; width: 56px; height: 30px; border-radius: 99px; background: rgba(255, 255, 255, .14); animation: swbg 8s var(--ease-io) infinite; }
.sw-track i { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; animation: swknob 8s var(--ease-io) infinite; }
.switch b { position: absolute; bottom: .95rem; font-family: var(--ff-m); font-size: .62rem; font-weight: 500; letter-spacing: .1em; }
.switch .sw-on { right: .9rem; color: rgba(255, 255, 255, .8); animation: swon 8s infinite; }
.switch .sw-off { left: .9rem; color: var(--mint); animation: swoff 8s infinite; }

/* 02 · lente */
.art-lens { --lx: 50%; --ly: 50%; background: radial-gradient(circle at 50% 40%, #11299b, #050d3c); touch-action: pan-y; }
.lens-words { position: absolute; inset: 0; list-style: none; -webkit-mask-image: radial-gradient(circle 100px at var(--lx) var(--ly), #000 25%, transparent 100%); mask-image: radial-gradient(circle 100px at var(--lx) var(--ly), #000 25%, transparent 100%); }
.lens-words li { position: absolute; left: var(--x); top: var(--y); font-family: var(--ff-d); font-style: italic; font-size: clamp(1.25rem, 3.4vw, 1.85rem); color: var(--mint); white-space: nowrap; text-shadow: 0 0 20px rgba(111, 227, 193, .6); }
.lens-base { -webkit-mask-image: none; mask-image: none; opacity: .13; }
.lens-base li { text-shadow: none; }
.lens-glow { position: absolute; width: 220px; height: 220px; left: calc(var(--lx) - 110px); top: calc(var(--ly) - 110px); border-radius: 50%; background: radial-gradient(circle, rgba(111, 227, 193, .26), transparent 68%); pointer-events: none; }
.lens-hint { position: absolute; left: 50%; bottom: 1rem; translate: -50% 0; font-family: var(--ff-m); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

/* 03 · ondas */
.art-ripple i { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(111, 227, 193, .75); opacity: 0; transform: translate(-50%, -50%) scale(.3); animation: ripple 5.4s var(--ease) infinite; }
.art-ripple i:nth-child(2) { animation-delay: 1.8s; }
.art-ripple i:nth-child(3) { animation-delay: 3.6s; }
.art-ripple .q { position: relative; z-index: 2; padding: 0 14%; text-align: center; font-family: var(--ff-d); font-style: italic; font-size: clamp(1.3rem, 3.6vw, 1.75rem); line-height: 1.2; text-wrap: balance; }

/* ─────────────── 11 · RAÍZ ─────────────── */
.root { position: relative; padding: clamp(5rem, 12vw, 9rem) 0; background: linear-gradient(180deg, var(--royal-deep) 0%, #07124a 55%, var(--abyss) 100%); }
.root-grid { display: grid; gap: 3rem; align-items: center; }
.root-copy { display: grid; gap: 1.4rem; justify-items: start; }
.compare { display: grid; gap: 1rem; width: 100%; margin: .6rem 0; }
.cmp { padding: 1.3rem 1.4rem 1.4rem; border-radius: 22px; border: 1px solid var(--line-d); background: rgba(255, 255, 255, .04); display: grid; gap: .5rem; }
.cmp h3 { font-family: var(--ff-b); font-size: 1.02rem; font-weight: 700; }
.cmp p { font-size: .95rem; color: rgba(255, 255, 255, .72); }
.cmp-ico { color: rgba(255, 255, 255, .55); }
.cmp-pill { opacity: .85; }
.cmp-root { background: linear-gradient(160deg, rgba(111, 227, 193, .18), rgba(111, 227, 193, .04)); border-color: rgba(111, 227, 193, .5); }
.cmp-root .cmp-ico { color: var(--mint); }
.cmp-root p { color: rgba(255, 255, 255, .88); }
.root-statement { font-family: var(--ff-d); font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.12; max-width: 18em; }
.root-statement em { color: var(--mint); }
.root-art svg { width: 100%; max-width: 520px; margin-inline: auto; overflow: visible; }
.r-stem { stroke: var(--mint-2); stroke-width: 2.6; fill: none; stroke-linecap: round; }
.r-leaf { fill: rgba(111, 227, 193, .85); }
.r-lbl { fill: rgba(255, 255, 255, .5); font: 500 9px var(--ff-m); letter-spacing: .2em; }
.root-path { stroke: var(--mint); stroke-width: 2.4; stroke-dasharray: 1 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(111, 227, 193, .6)); }
.root-path.thin { stroke-width: 1.5; opacity: .8; }
.gsap-ok .root-path { stroke-dashoffset: 1; }
.root-node { transform-box: fill-box; transform-origin: center; }
.gsap-ok .root-node { opacity: 0; }
.root-node circle { fill: var(--mint); filter: drop-shadow(0 0 8px rgba(111, 227, 193, .9)); }
.root-node text { fill: rgba(255, 255, 255, .88); font: 500 12.5px var(--ff-m); letter-spacing: .06em; }

/* ─────────────── 12 · FOTO QUE SE ABRE (pin) ─────────────── */
.voice { position: relative; background: var(--abyss); color: #fff; }
.voice-pin { position: relative; height: var(--vh); min-height: 580px; overflow: hidden; }
.voice-frame {
    --ct: 0%; --cs: 0%; --cr: 0px;
    position: absolute; inset: 0; overflow: hidden;
    clip-path: inset(var(--ct) var(--cs) var(--ct) var(--cs) round var(--cr)); will-change: clip-path;
    background: radial-gradient(ellipse at 75% 35%, #232f68 0%, #151e50 50%, #0a1140 100%);
}
.voice-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: saturate(1.15) contrast(1.04); transform-origin: 50% 100%; }
.voice-scrim {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(0deg, rgba(5, 12, 46, .96) 0%, rgba(5, 12, 46, .62) 42%, transparent 72%),
        linear-gradient(180deg, rgba(23, 67, 214, .3), transparent 38%);
}
/* Escritorio: la foto (1024 px) se muestra REDUCIDA y pegada a la derecha, no ampliada.
   Así se ve nítida y su fondo azul se funde con el del marco. */
@media (min-width: 900px) {
    .voice-img {
        --vx: 100%;
        position: absolute; top: 0; left: var(--vx); translate: calc(var(--vx) * -1) 0;
        width: auto; max-width: none; height: 100%; aspect-ratio: 4 / 5; object-fit: cover;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%, #000 93%, rgba(0, 0, 0, .55) 100%); mask-image: linear-gradient(90deg, transparent 0, #000 26%, #000 93%, rgba(0, 0, 0, .55) 100%);
    }
    .voice-scrim {
        background:
            linear-gradient(90deg, rgba(5, 12, 46, .6) 0%, transparent 52%),
            linear-gradient(0deg, rgba(5, 12, 46, .55) 0%, transparent 30%),
            linear-gradient(180deg, rgba(23, 67, 214, .22), transparent 30%);
    }
}
.voice-hint { position: absolute; z-index: 3; top: calc(var(--header-h) + 1.4rem); left: 0; right: 0; justify-content: center; color: var(--mint); }
.voice-copy { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding-bottom: clamp(4.5rem, 12vh, 8rem); display: grid; gap: 1.3rem; justify-items: start; }
.voice-quote .display { font-size: clamp(1.9rem, 5.2vw, 4rem); max-width: 14em; }
.voice-quote footer { margin-top: .8rem; font-family: var(--ff-m); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mint); }
.voice-quote cite { font-style: normal; }
.voice-text { max-width: 34rem; font-size: 1rem; color: rgba(255, 255, 255, .86); }
.gsap-ok .vr { opacity: 0; }

/* ─────────────── 13 · POR QUÉ INICIAR ─────────────── */
.why { position: relative; padding: clamp(6rem, 13vw, 10rem) 0 clamp(3rem, 6vw, 5rem); background: var(--paper); }
.why-grid { display: grid; gap: 2.4rem; }
.why-aside { display: grid; gap: 1.4rem; justify-items: start; align-self: start; }
.why-list { list-style: none; }
.why-item { display: grid; gap: .9rem; align-content: center; min-height: 36svh; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.js .why-item { opacity: .25; transition: opacity .8s var(--ease); }
.js .why-item.is-active { opacity: 1; }
.why-n { font-family: var(--ff-m); font-size: .78rem; letter-spacing: .16em; color: var(--royal); }
.why-item p { font-family: var(--ff-d); font-size: clamp(1.65rem, 4.2vw, 2.9rem); line-height: 1.14; text-wrap: pretty; }
.why-item em { color: var(--royal); }

/* ─────────────── 13b · SOBRE MÍ ─────────────── */
.about { position: relative; padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 7vw, 6rem); background: var(--paper); }
.about-grid { display: grid; gap: 2.6rem; }
.about-aside { display: grid; gap: 1.4rem; justify-items: start; align-self: start; }
.about-id {
    display: inline-flex; align-items: center; gap: .9rem; padding: .65rem 1.15rem; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 34px -24px rgba(10, 31, 120, .4);
}
.about-id span { font-family: var(--ff-m); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.about-id strong { font-family: var(--ff-m); font-size: .95rem; font-weight: 500; letter-spacing: .06em; color: var(--royal-deep); }
.about-main { display: grid; gap: clamp(2.4rem, 5vw, 3.6rem); }
.about-h { margin-bottom: 1.1rem; font-family: var(--ff-m); font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--royal); }
.creds { list-style: none; }
.creds li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.creds li:last-child { border-bottom: 1px solid var(--line); }
.cred-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-tint); color: var(--royal); }
.creds strong { display: block; font-family: var(--ff-d); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.15; text-wrap: balance; }
.cred-by { display: block; margin-top: .4rem; font-size: .92rem; color: var(--ink-2); }
.cred-tag {
    display: inline-block; margin-left: .45rem; padding: .18rem .65rem; border-radius: 999px; vertical-align: middle;
    font-family: var(--ff-m); font-size: .6rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
    color: var(--royal-deep); background: var(--ice); border: 1px solid rgba(23, 67, 214, .14);
}
.ap-grid { display: grid; gap: 1rem; }
.b-card.ap-card { gap: .7rem; padding: 1.4rem 1.5rem; }
.b-card.ap-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }

/* ─────────────── 14 · ESPECIALIDADES ─────────────── */
.spec { position: relative; padding: clamp(4rem, 9vw, 8rem) 0 clamp(5rem, 10vw, 8rem); background: linear-gradient(180deg, var(--paper), var(--ice)); }
.bento { display: grid; gap: 1rem; }
.b-card {
    --px: 50%; --py: 0%;
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.4rem);
    border-radius: var(--r); background: #fff; border: 1px solid var(--line);
    box-shadow: 0 20px 50px -34px rgba(10, 31, 120, .35);
}
.b-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(440px circle at var(--px) var(--py), rgba(23, 67, 214, .11), transparent 62%); opacity: 0; transition: opacity .4s; }
.b-card:hover::before { opacity: 1; }
.b-card:hover { translate: 0 -6px; box-shadow: 0 34px 70px -34px rgba(23, 67, 214, .5); }
.b-icon { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: var(--mint-tint); color: var(--royal); }
.b-kicker { font-family: var(--ff-m); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--royal); }
.b-card h3 { font-family: var(--ff-d); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.08; text-wrap: balance; }
.b-card > p { color: var(--ink-2); }
.ticks { list-style: none; display: grid; gap: .65rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; color: var(--ink-2); }
.ticks svg { flex: none; margin-top: .2rem; color: var(--royal); }
.b-d { background: linear-gradient(150deg, var(--royal), var(--royal-deep)); color: #fff; border-color: transparent; }
.b-d::before { background: radial-gradient(440px circle at var(--px) var(--py), rgba(111, 227, 193, .22), transparent 62%); }
.b-d .b-icon { background: rgba(255, 255, 255, .12); color: var(--mint); }
.b-d .b-kicker, .b-d .b-link { color: var(--mint); }
.b-d > p { color: rgba(255, 255, 255, .8); }

/* ─────────────── 15 · MODALIDADES (horizontal) ─────────────── */
.hz { position: relative; background: linear-gradient(180deg, var(--ice), var(--mint-tint)); }
.hz-pin { position: relative; min-height: var(--vh); display: flex; align-items: center; overflow-x: auto; padding: calc(var(--header-h) + 1.5rem) 0 5rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hz-pin::-webkit-scrollbar { display: none; }
.gsap-ok .hz-pin { overflow: hidden; scroll-snap-type: none; }
.hz-track { display: flex; align-items: stretch; gap: 1rem; padding-inline: var(--gutter); width: max-content; }
.hz-intro { flex: 0 0 min(80vw, 440px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.2rem; scroll-snap-align: start; padding-right: 1rem; }
.hz-arrow { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--royal); color: #fff; animation: nudge 2s var(--ease) infinite; }
.hz-card {
    --px: 50%; --py: 0%;
    position: relative; isolation: isolate; overflow: hidden; flex: 0 0 min(80vw, 390px); scroll-snap-align: center;
    display: flex; flex-direction: column; gap: 1rem; padding: 1.6rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line);
    box-shadow: 0 30px 70px -40px rgba(10, 31, 120, .45);
}
.hz-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--px) var(--py), rgba(111, 227, 193, .3), transparent 62%); opacity: 0; transition: opacity .4s; }
.hz-card:hover::before { opacity: 1; }
.hz-num { position: absolute; top: 1.2rem; right: 1.5rem; font-family: var(--ff-d); font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(23, 67, 214, .35); }
.hz-tag { font-family: var(--ff-m); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--royal); }
.hz-card h3 { font-family: var(--ff-d); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.06; }
.hz-card > p { color: var(--ink-2); font-size: .98rem; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.pills li { padding: .35rem .8rem; border-radius: 999px; font-size: .76rem; font-weight: 700; color: var(--royal-deep); background: var(--ice); border: 1px solid rgba(23, 67, 214, .14); }
.hz-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 2.2rem; height: 2px; background: var(--line); display: none; }
.gsap-ok .hz-progress { display: block; }
.hz-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--royal), var(--mint)); transform-origin: left; transform: scaleX(0); }

.hz-art { position: relative; width: 100%; height: 108px; margin-bottom: .4rem; display: grid; place-items: center; }
.a-solo i { width: 78px; height: 78px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #5b86ff, var(--royal) 60%, var(--royal-deep)); box-shadow: 0 0 0 14px rgba(23, 67, 214, .08), 0 0 0 30px rgba(23, 67, 214, .05); animation: breathe 4s ease-in-out infinite; }
.a-duo i { position: absolute; width: 74px; height: 74px; border-radius: 50%; mix-blend-mode: multiply; }
.a-duo i:nth-child(1) { background: var(--royal); opacity: .85; animation: duoL 5s ease-in-out infinite alternate; }
.a-duo i:nth-child(2) { background: var(--mint); animation: duoR 5s ease-in-out infinite alternate; }
.a-teen i { width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(from 0deg, var(--royal), var(--mint), var(--royal)); animation: spin 8s linear infinite; }
.a-teen b { position: absolute; width: 100px; height: 100px; border-radius: 50%; border: 1px dashed rgba(23, 67, 214, .5); animation: spin 14s linear infinite reverse; }
.a-teen b::after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.a-sun { align-items: end; overflow: hidden; border-radius: 16px; background: linear-gradient(180deg, #dce8ff, var(--mint-tint)); }
.a-sun i { width: 88px; height: 44px; border-radius: 88px 88px 0 0; background: linear-gradient(180deg, #ffffff, var(--mint)); box-shadow: 0 0 40px 10px rgba(111, 227, 193, .55); animation: sunrise 6s ease-in-out infinite alternate; }

/* ─────────────── 16 · ADICCIONES ─────────────── */
.addict {
    position: relative; overflow-x: clip; padding: clamp(6.5rem, 13vw, 10.5rem) 0 clamp(5rem, 10vw, 8rem);
    background: radial-gradient(900px 600px at 18% 30%, rgba(23, 67, 214, .55), transparent 70%), linear-gradient(180deg, var(--royal-deep), var(--abyss));
}
.addict .fx-canvas { opacity: .6; mix-blend-mode: screen; }
.addict-grid { display: grid; gap: 3.2rem; align-items: center; }
.addict-seal { position: relative; width: min(74vw, 380px); aspect-ratio: 1; margin-inline: auto; }
.addict-seal img { position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 50px 120px -24px rgba(23, 67, 214, .9), 0 0 140px rgba(111, 227, 193, .22); animation: floaty 7s ease-in-out infinite; }
.seal-orbit i { position: absolute; border-radius: 50%; border: 1px solid rgba(111, 227, 193, .4); animation: spin 36s linear infinite; }
.seal-orbit i:nth-child(1) { inset: -9%; border-style: dashed; }
.seal-orbit i:nth-child(2) { inset: -19%; border-color: rgba(255, 255, 255, .18); animation-direction: reverse; animation-duration: 52s; }
.seal-orbit i:nth-child(3) { inset: -30%; border-color: rgba(111, 227, 193, .16); animation-duration: 70s; }
.seal-orbit i::after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px 2px var(--mint); }
.addict-copy { display: grid; gap: 1.4rem; justify-items: start; }
.ticks-d li { color: rgba(255, 255, 255, .86); }
.ticks-d svg { color: var(--mint); }
.addict-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: .4rem; }

/* ─────────────── 17 · PRIMER PASO ─────────────── */
.steps { position: relative; padding: clamp(6.5rem, 13vw, 10rem) 0 clamp(4rem, 8vw, 7rem); background: var(--paper); }
.steps-grid { display: grid; gap: 3rem; }
.steps-head { align-self: start; margin-bottom: 0; }
.tl { position: relative; list-style: none; display: grid; gap: 2.4rem; padding-left: 3.6rem; }
.tl-line { position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--royal), var(--mint)); transform-origin: top; }
.gsap-ok .tl-fill { transform: scaleY(0); }
.tl-item { position: relative; display: grid; gap: .4rem; }
.js .tl-item { opacity: .38; transition: opacity .7s var(--ease); }
.js .tl-item.on { opacity: 1; }
.tl-dot { position: absolute; left: -3.6rem; top: -.15rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-family: var(--ff-m); font-weight: 500; font-size: .9rem; color: var(--ink-2); transition: background .5s, color .5s, border-color .5s, box-shadow .6s; }
.tl-item.on .tl-dot { background: var(--royal); color: #fff; border-color: var(--royal); box-shadow: 0 0 0 9px rgba(23, 67, 214, .12); }
.tl-item h3 { font-family: var(--ff-d); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.1; }
.tl-item p { color: var(--ink-2); max-width: 30em; }

/* ─────────────── 17b · OPINIONES ─────────────── */
/* Filas de opiniones que pasan solas (app.js las arma: 3 filas en escritorio, 2 en móvil/tablet). Sin JS se ven como una tira deslizable. */
.ops {
    --cw: min(78vw, 300px); --ww: min(86vw, 340px); --rg: clamp(.9rem, 1.6vw, 1.4rem);
    position: relative; overflow-x: clip;
    padding: clamp(5rem, 11vw, 8rem) 0 clamp(4.5rem, 9vw, 7rem);
    background:
        radial-gradient(760px 480px at 88% 6%, rgba(23, 67, 214, .55), transparent 70%),
        radial-gradient(640px 420px at 6% 96%, rgba(111, 227, 193, .12), transparent 70%),
        linear-gradient(180deg, var(--royal-deep) 0%, #07124a 62%, var(--abyss) 100%);
}

.ops-head { display: grid; gap: 1.2rem; justify-items: center; text-align: center; margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.ops-title { font-size: clamp(2.3rem, 7vw, 4.2rem); }
.ops-sub { max-width: 36em; font-size: 1.05rem; color: rgba(255, 255, 255, .78); }
.ops-rate {
    display: inline-flex; align-items: center; gap: .75rem; padding: .55rem 1.05rem .55rem .85rem; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid var(--line-d);
    font-size: .82rem; font-weight: 700; color: #fff;
}
.op-stars { flex: none; color: #f5b301; }

/* Sin JS: tira deslizable */
.ops-rows { position: relative; display: flex; align-items: flex-start; gap: var(--rg); overflow-x: auto; padding: 1.2rem var(--gutter) 1.6rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.ops-rows > .op-card { scroll-snap-align: center; }

/* Con JS: filas que se desplazan */
.ops-rows.is-built { display: grid; gap: .1rem; overflow: visible; padding: 0; scroll-snap-type: none; }
.op-row {
    overflow: hidden; padding-block: 1.1rem;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4.5%, #000 95.5%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4.5%, #000 95.5%, transparent 100%);
}
.op-lane { display: flex; width: max-content; will-change: transform; }
.op-set { display: flex; flex: none; align-items: center; gap: var(--rg); padding-right: var(--rg); }
.ops-rows.is-static .op-row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: thin; }

.op-card {
    position: relative; flex: 0 0 var(--cw);
    display: flex; flex-direction: column; gap: 1.15rem; padding: clamp(1.4rem, 3vw, 1.9rem);
    border-radius: var(--r); background: #fff; color: var(--ink);
    box-shadow: 0 40px 80px -38px rgba(0, 0, 0, .8);
    transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.op-card.is-wide { flex-basis: var(--ww); }
.op-card::before {
    content: '“'; position: absolute; top: .55rem; right: 1.4rem; font-family: var(--ff-d); font-size: 5.6rem; line-height: 1;
    color: rgba(23, 67, 214, .13); pointer-events: none;
}
@media (hover: hover) {
    .op-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--mint), 0 0 50px -8px rgba(111, 227, 193, .55), 0 40px 80px -34px rgba(0, 0, 0, .8); }
}
.op-text { margin: 0; font-size: 1rem; line-height: 1.62; font-weight: 500; color: var(--ink); }
.op-text p + p { margin-top: .8em; }
.op-by { margin-top: auto; padding-top: 1.1rem; display: flex; align-items: center; gap: .85rem; border-top: 1px solid var(--line); }
.op-av {
    flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--ff-d); font-size: 1.5rem; line-height: 1; color: #fff; background: linear-gradient(140deg, var(--royal), #2a8bff);
}
.op-card:nth-child(4n+2) .op-av { background: linear-gradient(140deg, #14a37f, var(--mint)); color: var(--ink); }
.op-card:nth-child(4n+3) .op-av { background: linear-gradient(140deg, var(--royal-deep), var(--royal)); }
.op-card:nth-child(4n) .op-av { background: linear-gradient(140deg, #7a5cff, #b79bff); }
.op-who { display: grid; min-width: 0; line-height: 1.25; }
.op-who strong { font-size: .98rem; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.op-who small { margin-top: .15rem; font-family: var(--ff-m); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Opiniones largas: se muestran recortadas (9 líneas) y se leen completas en una ventana */
.ops-rows.is-built .op-text { max-height: calc(1.62em * 9); overflow: hidden; }
.ops-rows.is-built .op-card.is-clipped .op-text { -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); }
.op-more { display: none; position: relative; align-self: flex-start; margin-top: -.5rem; padding: .35rem 0; font-family: var(--ff-b); font-size: .9rem; font-weight: 700; color: var(--royal); }
.op-more::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; }
.op-card.is-clipped .op-more { display: inline-block; }

.ops-foot { display: grid; justify-items: center; gap: .8rem; margin-top: clamp(1.6rem, 4vw, 2.6rem); text-align: center; }
.ops-note { font-size: .78rem; color: rgba(255, 255, 255, .6); }

/* Ventana con la opinión completa */
html.modal-open { overflow: hidden; }
.op-modal { width: min(92vw, 640px); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.op-modal::backdrop { background: rgba(5, 12, 46, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.op-modal[open] .op-modal-card { animation: opIn .5s var(--ease); }
.op-modal:focus-visible, .op-modal-card:focus-visible { outline: none; }
.op-modal-card { position: relative; max-height: 86svh; overflow: auto; overscroll-behavior: contain; padding: clamp(1.5rem, 4vw, 2.3rem); border-radius: var(--r); background: #fff; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9); }
.op-modal-body { display: flex; flex-direction: column; gap: 1.15rem; padding-top: .4rem; }
.op-modal-body .op-text { font-size: 1.08rem; }
.op-modal-x { position: absolute; top: .9rem; right: .9rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ice); color: var(--royal-deep); transition: background-color .3s, color .3s; }
.op-modal-x:hover { background: var(--royal); color: #fff; }
@keyframes opIn { from { opacity: 0; transform: translateY(26px) scale(.97); } }

@media (min-width: 700px) {
    .ops { --cw: 360px; --ww: 500px; }
}
@media (min-width: 1024px) {
    .ops { --cw: 380px; --ww: 520px; }
}

/* ─────────────── 18 · FAQ ─────────────── */
.faq { position: relative; padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 10vw, 8rem); background: var(--paper); }
.faq-grid { display: grid; gap: 2.2rem; }
.faq .sec-head { margin-bottom: 0; }
.acc { display: grid; border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.35rem 0; text-align: left; font-family: var(--ff-d); font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.2; }
.acc-btn i { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); transition: background .4s, border-color .4s, transform .6s var(--ease); }
.acc-btn i::before, .acc-btn i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.8px; background: var(--royal); translate: -50% -50%; transition: transform .5s var(--ease), background .4s; }
.acc-btn i::after { transform: rotate(90deg); }
.acc-btn:hover i { border-color: var(--royal); }
.acc-btn[aria-expanded="true"] i { background: var(--royal); border-color: var(--royal); transform: rotate(180deg); }
.acc-btn[aria-expanded="true"] i::before, .acc-btn[aria-expanded="true"] i::after { background: #fff; }
.acc-btn[aria-expanded="true"] i::after { transform: rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 0 1.5rem; max-width: 38em; color: var(--ink-2); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }

/* ─────────────── 19 · CONTACTO / FORM ─────────────── */
.final { position: relative; overflow-x: clip; padding: clamp(5.5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem); background: linear-gradient(180deg, var(--paper) 0%, var(--mint-tint) 50%, #cdf3e6 100%); }
.final .fx-canvas { z-index: 1; pointer-events: none; }
.final-top { display: grid; gap: 1.4rem; justify-items: center; text-align: center; margin-bottom: clamp(3.5rem, 8vw, 6rem); }
.quantum p { font-size: clamp(1.7rem, 4.4vw, 3.5rem); line-height: 1.12; max-width: 20em; margin-inline: auto; }
.observe-hint { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--ff-m); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.observe-hint span { width: 8px; height: 8px; border-radius: 50%; background: var(--royal); animation: ping 2s infinite; position: relative; }
.final-grid { display: grid; gap: 2.4rem; align-items: start; }
.final-copy { display: grid; gap: 1.3rem; justify-items: start; }
.contact-list { list-style: none; display: grid; gap: .9rem; margin-top: .6rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; }
.cl-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--royal); box-shadow: 0 10px 24px -14px rgba(10, 31, 120, .5); flex: none; }
.contact-list strong { display: block; font-size: .95rem; }
.contact-list span:not(.cl-ico), .contact-list a { font-size: .9rem; color: var(--ink-2); }
.contact-list a:hover { color: var(--royal); }

.final-card { padding: clamp(1.4rem, 3.5vw, 2.6rem); border-radius: var(--r); background: rgba(255, 255, 255, .84); border: 1px solid #fff; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 50px 100px -50px rgba(23, 67, 214, .55); }
.final-card form { display: grid; gap: 1.1rem; }
.final-card h3 { font-family: var(--ff-d); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.05; }
.form-sub { color: var(--ink-2); font-size: .95rem; margin-top: -.5rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .84rem; font-weight: 700; }
.field label span { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; padding: .95rem 1.05rem; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
    font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .3s, box-shadow .3s; appearance: none; -webkit-appearance: none; resize: vertical;
}
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%231743d6' stroke-width='2' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 1.1rem center; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(23, 67, 214, .15); }
.field.invalid input, .field.invalid select { border-color: #d6336c; box-shadow: 0 0 0 4px rgba(214, 51, 108, .12); }
.err { min-height: 0; font-size: .8rem; font-weight: 600; color: #c2255c; }
.form-note { font-size: .78rem; color: var(--muted); text-align: center; }
.btn.is-sent { background: #1fa971; }

.review-wrap { margin-top: clamp(3rem, 6vw, 5rem); }
.review { display: grid; gap: 1.2rem; align-items: center; padding: 1.5rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(10, 31, 120, .4); }
.stars { display: flex; gap: .2rem; color: #f5b301; }
.review h3 { font-family: var(--ff-d); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.review p { color: var(--ink-2); font-size: .95rem; }

/* ─────────────── 20 · FOOTER ─────────────── */
.footer { position: relative; overflow-x: clip; background: var(--abyss); color: rgba(255, 255, 255, .76); padding: clamp(5.5rem, 10vw, 8rem) 0 0; }
.ft-top { display: grid; gap: 2.4rem; padding-bottom: 2.6rem; border-bottom: 1px solid var(--line-d); }
.ft-brand { display: grid; align-content: start; gap: 1.1rem; justify-items: start; max-width: 28rem; }
.ft-brand img { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(111, 227, 193, .5); }
.ft-col { display: grid; align-content: start; gap: .1rem; }
.ft-col h4 { margin-bottom: .6rem; font-family: var(--ff-m); font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--mint); }
.ft-col a { display: block; padding: .3rem 0; text-decoration: none; transition: color .3s, translate .4s var(--ease); }
.ft-col a:hover { color: var(--mint); translate: 6px 0; }
.ft-crisis { margin: 2rem 0; padding: 1rem 1.2rem; border: 1px solid rgba(111, 227, 193, .4); border-radius: 16px; background: rgba(111, 227, 193, .07); font-size: .88rem; color: rgba(255, 255, 255, .86); }
.ft-crisis strong { color: var(--mint); }
.ft-bottom { display: grid; gap: .3rem; padding-bottom: 2rem; font-size: .78rem; color: rgba(255, 255, 255, .55); }
.ft-mark { overflow: hidden; line-height: .78; text-align: center; user-select: none; pointer-events: none; }
.ft-mark span { display: block; white-space: nowrap; font-family: var(--ff-d); font-size: clamp(3.2rem, 14vw, 14rem); letter-spacing: -.03em; background: linear-gradient(180deg, rgba(111, 227, 193, .5), rgba(23, 67, 214, .0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .12em; }

/* ─────────────── 21 · FLOTANTES · CURSOR · MEDIDOR ─────────────── */
#progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; background: linear-gradient(90deg, var(--royal), var(--mint)); transform-origin: left; transform: scaleX(0); pointer-events: none; }
#dust { position: fixed; inset: 0; z-index: 80; width: 100%; height: 100%; pointer-events: none; }
.grain { position: fixed; inset: 0; z-index: 85; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 250; display: flex; align-items: center; gap: .7rem; text-decoration: none; opacity: 0; translate: 0 24px; pointer-events: none; transition: opacity .7s, translate .7s var(--ease); }
html.is-ready .wa-float { opacity: 1; translate: 0; pointer-events: auto; transition-delay: 1.2s; }
.wa-btn { position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 16px 36px -10px rgba(37, 211, 102, .8); transition: transform .4s var(--ease); }
.wa-float:hover .wa-btn { transform: scale(1.08) rotate(-6deg); }
.wa-ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s var(--ease) infinite; }
.wa-tip { display: none; padding: .7rem 1rem; border-radius: 14px; background: #fff; color: var(--ink); font-size: .84rem; font-weight: 700; box-shadow: 0 16px 40px -14px rgba(10, 31, 120, .5); opacity: 0; translate: 14px 0; transition: opacity .5s, translate .5s var(--ease); }
.wa-float.tip-on .wa-tip { opacity: 1; translate: 0; }

#cursor { position: fixed; left: 0; top: 0; z-index: 2000; pointer-events: none; display: none; mix-blend-mode: difference; }
.c-dot, .c-ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.c-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.c-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid #fff; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s; }
#cursor.is-hover .c-ring { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: #fff; }
html.has-cursor #cursor { display: block; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor input, html.has-cursor select, html.has-cursor textarea { cursor: none; }

#depth { position: fixed; z-index: 90; display: none; align-items: center; gap: .6rem; font-family: var(--ff-m); color: var(--ink); transition: color .6s, opacity .5s; pointer-events: none; }
#depth.is-muted { opacity: 0; }
body.tone-dark #depth { color: #fff; }
.dp-label, .dp-zone { writing-mode: vertical-rl; text-transform: uppercase; letter-spacing: .24em; font-size: .58rem; opacity: .6; white-space: nowrap; }
.dp-track { position: relative; width: 1px; height: 28vh; }
.dp-track::before { content: ''; position: absolute; inset: 0; background: currentColor; opacity: .25; }
.dp-fill { position: absolute; left: 0; top: 0; width: 1px; height: calc(var(--dp, 0) * 100%); background: var(--mint); }
.dp-mark { position: absolute; left: 50%; top: calc(var(--dp, 0) * 100%); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(111, 227, 193, .25), 0 0 18px rgba(111, 227, 193, .8); }
.dp-read { display: flex; align-items: baseline; gap: 2px; }
.dp-read strong { font-size: .95rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.dp-read small { font-size: .58rem; opacity: .6; }

/* ─────────────── ANIMACIONES ─────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes rise { to { transform: translateY(-110px); } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes drift { to { translate: 6vw -4vh; scale: 1.18; } }
@keyframes kenburns { to { transform: scale(1.2) translate(-1.5%, -1%); } }
@keyframes echo { 0% { transform: scale(.52); opacity: 0; } 12% { opacity: .75; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes gradslide { to { background-position: 220% center; } }
@keyframes sheen { 0%, 55% { left: -60%; } 100% { left: 140%; } }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes wave { to { transform: translateX(-50%); } }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ripple { 0% { transform: translate(-50%, -50%) scale(.3); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(3.6); opacity: 0; } }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 12px 0; } }
@keyframes duoL { to { translate: 14px 0; } }
@keyframes duoR { to { translate: -14px 0; } }
@keyframes sunrise { from { translate: 0 22px; } to { translate: 0 -2px; } }
@keyframes swknob { 0%, 38% { transform: translateX(26px); background: #fff; } 50%, 88% { transform: translateX(0); background: var(--mint); } 100% { transform: translateX(26px); background: #fff; } }
@keyframes swbg { 0%, 38% { background: rgba(255, 255, 255, .14); } 50%, 88% { background: rgba(111, 227, 193, .3); } 100% { background: rgba(255, 255, 255, .14); } }
@keyframes swon { 0%, 38% { opacity: 1; } 50%, 88% { opacity: .25; } 100% { opacity: 1; } }
@keyframes swoff { 0%, 38% { opacity: .25; } 50%, 88% { opacity: 1; } 100% { opacity: .25; } }

/* ═════════════════════ RESPONSIVE (mobile-first) ═════════════════════ */
@media (min-width: 560px) {
    .wa-tip { display: block; }
    .hero-cta .btn { flex: 0 0 auto; }
}

@media (min-width: 700px) {
    :root { --header-h: 84px; }
    .compare { grid-template-columns: 1fr 1fr; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .ap-grid { grid-template-columns: repeat(2, 1fr); }
    .ap-grid .ap-card:last-child { grid-column: 1 / -1; }
    .hd-pill .hd-cta { display: inline-flex; }
    .review { grid-template-columns: auto 1fr auto; gap: 1.6rem; padding: 1.6rem 2rem; }
    .gauge ul { display: block; }
    .ft-bottom { grid-template-columns: 1fr auto; gap: 2rem; }
    .scroll-cue { display: flex; }
    #depth { left: 14px; bottom: 14px; top: auto; padding: .5rem .85rem; border-radius: 999px; background: rgba(7, 16, 66, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; }
    #depth .dp-label, #depth .dp-track, #depth .dp-zone { display: none; }
    #depth { display: flex; }
}

@media (min-width: 1024px) {
    .hd-nav { display: flex; }
    .hd-burger { display: none; }
    .hd-pill { padding: .5rem .55rem .5rem .8rem; }
    .hd-cta { margin-left: .4rem; }

    .hero { padding-top: calc(var(--header-h) + 3rem); }
    .hero-grid { grid-template-columns: 1.12fr .88fr; gap: 3rem; }
    .portrait { width: min(32vw, 430px); }
    .echo { width: min(46vw, 640px); }
    .float-chip { font-size: .82rem; }
    .float-chip.c1 { left: -22%; }
    .float-chip.c2 { right: -20%; }
    .float-chip.c3 { left: -14%; }

    .ocean-grid { padding-right: calc(var(--gutter) + 4rem); }
    .gauge { right: calc(var(--gutter) * .7); }

    .m-card { grid-template-columns: 1.1fr .9fr; gap: 3.2rem; position: sticky; top: calc(var(--header-h) + 1rem + var(--i) * 1.2rem); min-height: min(68svh, 600px); margin-bottom: 7vh; }
    .m-stack { gap: 0; }

    .root-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }

    .why-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; }
    .why-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
    .why-item { min-height: 52svh; }

    .about-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; }
    .about-aside { position: sticky; top: calc(var(--header-h) + 2rem); }

    .bento { grid-template-columns: repeat(12, 1fr); }
    .b-a { grid-column: span 7; }
    .b-b { grid-column: span 5; }
    .b-c { grid-column: span 5; }
    .b-d { grid-column: span 7; }

    .hz-intro { flex-basis: 520px; }
    .hz-card { flex-basis: 410px; padding: 2rem; }

    .addict-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; }

    .steps-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
    .steps-head { position: sticky; top: calc(var(--header-h) + 2rem); }

    .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; }
    .faq .sec-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }

    .final-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .ft-top { grid-template-columns: 1.5fr 1fr 1fr; gap: 4rem; }
}

@media (min-width: 1360px) {
    #depth { left: auto; right: 16px; bottom: auto; top: 50%; translate: 0 -50%; flex-direction: column; gap: .8rem; padding: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--ink); }
    body.tone-dark #depth { color: #fff; }
    #depth .dp-label, #depth .dp-track, #depth .dp-zone { display: block; }
    #depth .dp-label, #depth .dp-zone { writing-mode: vertical-rl; }
    .dp-zone { max-height: 22vh; overflow: hidden; text-overflow: ellipsis; }
}

@media (hover: none) {
    .b-card:hover, .hz-card:hover { translate: none; }
}

/* Accesibilidad: movimiento reducido */
@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 .rv, .js .hi { opacity: 1; transform: none; }
    .js [data-split] .wi { transform: none; }
    .js .why-item, .js .tl-item { opacity: 1; }
}
