/* ═══════════════════════════════════════════════════════════════
   LUCIANA GÓMEZ ZAMORA · Psicóloga Clínica y Psicoterapeuta
   Sistema de diseño: "Claridad clínica" (tema claro, mobile-first)
   Paleta derivada del logo: navy #0E3E54 + azul cielo #77C7E8
   ═══════════════════════════════════════════════════════════════ */

/* ───────── 1. TOKENS ───────── */
:root {
    /* Marca */
    --navy-950: #06202D;
    --navy-900: #0A2F42;
    --navy-800: #0E3E54;      /* color del logo */
    --navy-700: #175670;
    --navy-600: #216F91;
    --sky-600:  #2A9BCB;
    --sky-500:  #77C7E8;      /* acento del logo */
    --sky-400:  #98D5EE;
    --sky-300:  #BBE4F5;
    --sky-200:  #D8EFF9;
    --sky-100:  #EAF6FC;
    --sky-50:   #F4FAFE;

    /* Superficies y texto */
    --bg:       #F5F9FC;
    --surface:  #FFFFFF;
    --ink:      #082838;
    --ink-2:    #2F4E60;
    --ink-3:    #53707F;
    --line:     rgba(14, 62, 84, .12);
    --line-2:   rgba(14, 62, 84, .22);

    /* Tipografía */
    --f-display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
    --f-body:    'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono:    'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Forma: contenedores suaves, controles en píldora, campos 14px */
    --r-xl: 30px;
    --r-lg: 22px;
    --r-md: 16px;
    --r-sm: 12px;

    /* Sombras teñidas con el azul de marca (nunca negro puro) */
    --sh-sm: 0 1px 2px rgba(8, 40, 56, .05), 0 8px 24px -12px rgba(8, 40, 56, .14);
    --sh-md: 0 2px 4px rgba(8, 40, 56, .04), 0 24px 56px -24px rgba(8, 40, 56, .26);
    --sh-lg: 0 4px 8px rgba(8, 40, 56, .04), 0 40px 90px -36px rgba(8, 40, 56, .38);

    /* Movimiento */
    --ease: cubic-bezier(.16, 1, .3, 1);
    --ease-io: cubic-bezier(.76, 0, .24, 1);

    /* Layout */
    --nav-h: 64px;
    --gutter: 20px;

    /* Escala de capas */
    --z-nav: 100;
    --z-menu: 90;
    --z-fab: 110;
    --z-grain: 900;
    --z-loader: 1000;
}

@media (min-width: 768px)  { :root { --nav-h: 72px; --gutter: 32px; } }

/* ───────── 2. BASE ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); color-scheme: light; }
html.is-loading { overflow: hidden; }
body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--bg);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
i[class^="ph"] { line-height: 1; flex: none; }
::selection { background: var(--sky-400); color: var(--navy-950); }

:focus-visible { outline: 2.5px solid var(--navy-700); outline-offset: 3px; border-radius: 6px; }
.contact :focus-visible, .footer :focus-visible, .loader :focus-visible { outline-color: var(--sky-500); }

.wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.skip {
    position: fixed; left: 12px; top: -80px; z-index: 2000;
    padding: .7rem 1.1rem; border-radius: 999px;
    background: var(--navy-800); color: #fff; font-weight: 600;
    transition: top .3s var(--ease);
}
.skip:focus { top: 12px; }

/* Lenis (scroll suave) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Grano sutil: capa fija, sin eventos, para dar textura premium */
.grain {
    position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .05 0 0 0 0 .2 0 0 0 0 .3 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────── 3. TIPOGRAFÍA ───────── */
.display, .h2 {
    font-family: var(--f-display);
    font-weight: 600;
    letter-spacing: -.035em;
    color: var(--ink);
    text-wrap: balance;
    font-optical-sizing: auto;
}
.display { font-size: clamp(2.55rem, 9.4vw, 4.4rem); line-height: 1.02; }
.h2 { font-size: clamp(2rem, 6.4vw, 3.5rem); line-height: 1.04; }
.h2--light { color: #fff; }
h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 34rem; text-wrap: balance; }
.sub { font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--ink-2); max-width: 38rem; }
.sub--light { color: #C5DEEB; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--f-mono); font-weight: 500; font-size: .72rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--navy-700);
}
.eyebrow i { font-size: 1.15rem; color: var(--sky-600); }

.section { position: relative; padding-block: clamp(4.5rem, 11vw, 9rem); }
.sec-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.2rem, 5vw, 4rem); justify-items: start; }
.sec-head--center { justify-items: center; text-align: center; margin-inline: auto; }

/* Texto partido en palabras (lo genera app.js): entrada con máscara */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .05em .18em; margin: -.12em -.05em -.18em; }
[data-split] .w__in {
    display: inline-block; transform: translateY(118%);
    transition: transform 1.15s var(--ease); transition-delay: calc(var(--i, 0) * 65ms + var(--base, 0s));
}
[data-split].split-in .w__in { transform: none; }
.hero__title .line { display: block; }

/* Revelado al hacer scroll */
.js [data-reveal] {
    opacity: 0; transform: translateY(34px);
    transition: opacity 1s var(--ease), transform 1.2s var(--ease);
    transition-delay: var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ───────── 4. BOTONES ───────── */
.btn {
    --h: 52px;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
    height: var(--h); padding: 0 1.55rem; border-radius: 999px;
    font-weight: 600; font-size: .98rem; letter-spacing: -.005em; white-space: nowrap;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .35s, border-color .35s;
}
.btn i { font-size: 1.3em; transition: transform .5s var(--ease); }
.btn::after {              /* relleno que sube al pasar el cursor */
    content: ''; position: absolute; inset: -1px; z-index: -1;
    background: var(--sky-500); transform: translateY(102%) scale(1.1); border-radius: 50% 50% 0 0 / 40% 40% 0 0;
    transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.btn:hover::after { transform: translateY(0) scale(1.1); border-radius: 0; }
.btn:hover i { transform: translate(2px, -2px); }
.btn:active { transform: scale(.975); }
.btn--sm { --h: 44px; padding: 0 1.2rem; font-size: .92rem; }
.btn--lg { --h: 58px; padding: 0 1.8rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--primary {
    background: var(--navy-800); color: #fff;
    box-shadow: 0 14px 32px -14px rgba(14, 62, 84, .75), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.btn--primary::before {    /* destello que recorre el botón de forma continua */
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .3) 50%, transparent 62%);
    background-size: 260% 100%; background-position: 160% 0;
    animation: sheen 5.5s ease-in-out infinite;
}
.btn--primary:hover { color: var(--navy-950); box-shadow: 0 18px 40px -14px rgba(42, 155, 203, .8); }
.btn--ghost { color: var(--navy-800); border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, .5); }
.btn--ghost::after { background: var(--navy-800); }
.btn--ghost:hover { color: #fff; border-color: var(--navy-800); }
.btn--light { background: #fff; color: var(--navy-800); box-shadow: 0 16px 36px -16px rgba(0, 0, 0, .5); }
.btn--light:hover { color: var(--navy-950); }

.link {
    display: inline-flex; align-items: center; gap: .5rem; width: fit-content;
    font-weight: 600; color: var(--navy-800);
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
    padding-bottom: 3px; transition: background-size .5s var(--ease);
}
.link:hover { background-size: 100% 1.5px; }
.link i { transition: transform .4s var(--ease); }
.link:hover i { transform: translate(3px, -3px); }

/* ───────── 5. LOADER ───────── */
.loader {
    position: fixed; inset: 0; z-index: var(--z-loader);
    display: grid; place-items: center; text-align: center;
    background: var(--navy-800); color: #fff; overflow: hidden;
    transition: transform 1.15s var(--ease-io), border-radius 1.15s var(--ease-io);
}
html:not(.js) .loader { display: none; }
.js .loader { animation: failsafe .01s 9s forwards; }     /* red de seguridad si el JS falla */
.loader.is-done { transform: translateY(-101%); border-radius: 0 0 50% 50% / 0 0 14vw 14vw; }
.loader__haze {
    position: absolute; width: 90vmax; aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%;
    background: radial-gradient(closest-side, rgba(119, 199, 232, .26), rgba(119, 199, 232, 0));
    animation: breathe 4.5s ease-in-out infinite;
}
.loader__core { position: relative; display: grid; justify-items: center; gap: .55rem; padding: 1.5rem; }
.loader__orb { position: relative; width: clamp(250px, 74vw, 340px); aspect-ratio: 1; margin-bottom: .6rem; }
.loader__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-track { fill: none; stroke: rgba(119, 199, 232, .16); stroke-width: 1.5; }
.ring-progress {
    fill: none; stroke: var(--sky-500); stroke-width: 2.6; stroke-linecap: round;
    stroke-dasharray: 100; stroke-dashoffset: 100;
    transform: rotate(-90deg); transform-origin: 50% 50%;
    filter: drop-shadow(0 0 6px rgba(119, 199, 232, .8));
}
.ring-dash { fill: none; stroke: rgba(119, 199, 232, .4); stroke-width: 1; stroke-dasharray: 2 7; transform-origin: 50% 50%; animation: spin 16s linear infinite; }
/* Logo real del cliente: su fondo navy es el mismo del loader, "lighten" lo funde sin dejar caja visible */
.loader__logo {
    --o1: 1; --o2: 1;
    position: absolute; left: 50%; top: 50%; width: 78%; height: auto; translate: -50% -50%;
    mix-blend-mode: lighten; filter: brightness(1.05) contrast(1.04); animation: breathe 3.2s ease-in-out infinite;
}
.loader__count { font-family: var(--f-display); font-weight: 500; font-size: 2.7rem; line-height: 1; margin-top: 1.1rem; font-variant-numeric: tabular-nums; }
.loader__count i { font-style: normal; font-size: 1.1rem; color: var(--sky-500); margin-left: .15rem; }
.loader__msg { font-size: .88rem; color: rgba(197, 222, 235, .85); min-height: 1.4em; }

/* ───────── 6. NAVEGACIÓN ───────── */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
    transition: transform .7s var(--ease), background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.is-scrolled {
    background: rgba(245, 249, 252, .78);
    -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
    box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-101%); }
.nav__bar { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__links { display: none; align-items: center; gap: .3rem; }
.nav__links a {
    position: relative; padding: .55rem .9rem; border-radius: 999px;
    font-size: .93rem; font-weight: 500; color: var(--ink-2); transition: color .3s, background-color .3s;
}
.nav__links a:hover { color: var(--navy-800); background: rgba(14, 62, 84, .06); }
.nav__links a.is-active { color: var(--navy-800); background: var(--sky-200); }
.nav__cta { display: none; }
.nav__progress { position: absolute; inset: auto 0 0 0; height: 2px; }
.nav__progress i { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--sky-500), var(--navy-700)); }

.brand { display: inline-flex; align-items: center; gap: .75rem; min-width: 0; }
/* Insignia con los píxeles reales del logo (img/logo.jpeg), recortados al símbolo */
.brand__badge {
    position: relative; width: 44px; height: 44px; border-radius: 14px; flex: none;
    background: #0E3E54 url(img/logo.jpeg) -26px -8.5px / 95px auto no-repeat;
    box-shadow: 0 8px 20px -10px rgba(14, 62, 84, .9), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.brand__txt { display: grid; line-height: 1.15; min-width: 0; }
.brand__txt strong { font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.brand__txt small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.brand--light .brand__txt strong { color: #fff; }
.brand--light .brand__txt small { color: #A9C8D9; }

.burger {
    position: relative; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line-2); background: rgba(255, 255, 255, .75);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Menú móvil: se abre con un círculo desde el botón */
.menu {
    position: fixed; inset: 0; z-index: var(--z-menu);
    display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
    padding: calc(var(--nav-h) + 1.5rem) var(--gutter) calc(1.6rem + env(safe-area-inset-bottom));
    background: var(--bg); overflow: hidden; visibility: hidden;
    clip-path: circle(0 at calc(100% - 42px) 32px);
    transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}
.menu-open .menu { visibility: visible; clip-path: circle(160% at calc(100% - 42px) 32px); transition-delay: 0s; }
.menu__psi {
    position: absolute; right: -22%; bottom: -8%; width: 90vw; max-width: 520px; aspect-ratio: 1; opacity: .5;
    background: linear-gradient(160deg, var(--sky-300), var(--sky-100));
    -webkit-mask: url(img/logo-mark.png) center / contain no-repeat; mask: url(img/logo-mark.png) center / contain no-repeat;
}
.menu__nav { position: relative; display: grid; gap: .2rem; }
.menu__nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: .55rem 0; border-bottom: 1px solid var(--line);
    font-family: var(--f-display); font-weight: 500; font-size: clamp(1.9rem, 8vw, 2.6rem); letter-spacing: -.03em; color: var(--ink);
    opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.menu__nav a i { font-size: 1.5rem; color: var(--sky-600); }
.menu-open .menu__nav a { opacity: 1; transform: none; }
.menu-open .menu__nav a:nth-child(1) { transition-delay: .25s; }
.menu-open .menu__nav a:nth-child(2) { transition-delay: .3s; }
.menu-open .menu__nav a:nth-child(3) { transition-delay: .35s; }
.menu-open .menu__nav a:nth-child(4) { transition-delay: .4s; }
.menu-open .menu__nav a:nth-child(5) { transition-delay: .45s; }
.menu-open .menu__nav a:nth-child(6) { transition-delay: .5s; }
.menu__foot { position: relative; display: grid; gap: .9rem; justify-items: stretch; }
.menu__foot p { text-align: center; font-size: .9rem; color: var(--ink-3); }

@media (min-width: 640px)  { .nav__cta { display: inline-flex; } }
@media (min-width: 1100px) { .nav__links { display: flex; } .burger { display: none; } }

/* ───────── 7. HERO ───────── */
.hero {
    position: relative; isolation: isolate; overflow: clip;
    min-height: 100dvh; display: grid; align-items: center;
    padding: calc(var(--nav-h) + 1.8rem) 0 6.5rem;
    background: linear-gradient(180deg, #EDF7FD 0%, var(--bg) 78%);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; will-change: transform; }
.aurora--a { width: 78vmax; aspect-ratio: 1; left: -34vmax; top: -34vmax; background: radial-gradient(closest-side, rgba(119, 199, 232, .6), rgba(119, 199, 232, 0)); animation: drift1 26s ease-in-out infinite alternate; }
.aurora--b { width: 64vmax; aspect-ratio: 1; right: -26vmax; top: -14vmax; background: radial-gradient(closest-side, rgba(33, 111, 145, .22), rgba(33, 111, 145, 0)); animation: drift2 32s ease-in-out infinite alternate; }
.aurora--c { width: 58vmax; aspect-ratio: 1; left: 12vw; bottom: -34vmax; background: radial-gradient(closest-side, rgba(187, 228, 245, .95), rgba(187, 228, 245, 0)); animation: drift3 28s ease-in-out infinite alternate; }
.hero__psi {
    position: absolute; right: -24%; top: 4%; width: min(92vw, 820px); aspect-ratio: 1; opacity: .5;
    background: linear-gradient(165deg, var(--sky-300) 0%, rgba(216, 239, 249, .55) 100%);
    -webkit-mask: url(img/logo-mark.png) center / contain no-repeat; mask: url(img/logo-mark.png) center / contain no-repeat;
    translate: calc(var(--px, 0) * var(--depth, 0) * 1px) calc(var(--py, 0) * var(--depth, 0) * 1px);
    --o1: .5; --o2: .34;
    animation: breathe 10s ease-in-out infinite;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__grid { display: grid; gap: 2.8rem; align-items: center; }
.hero__copy { display: grid; gap: 1.4rem; justify-items: start; }
.hero__title { margin-block: .2rem .2rem; }
.mark { position: relative; font-style: normal; color: var(--navy-700); white-space: nowrap; }
.mark .swash { position: absolute; left: 0; right: 0; bottom: -.04em; width: 100%; height: .3em; overflow: visible; }
.mark .swash path { fill: none; stroke: var(--sky-500); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.split-in .mark .swash path { animation: draw 1.3s var(--ease) 1.15s forwards; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }

.js .hero-in { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.is-ready .hero-in { opacity: 1; transform: none; }

/* Escenario del retrato */
.hero__stage { position: relative; width: min(76vw, 360px); aspect-ratio: 4 / 5; margin: 1.2rem auto 0; }
.orbit { position: absolute; left: 50%; top: 50%; translate: -50% -50%; aspect-ratio: 1; border-radius: 50%; }
.orbit--1 { width: 132%; border: 1.5px dashed rgba(14, 62, 84, .2); animation: spin 70s linear infinite; }
.orbit--2 { width: 158%; border: 1px solid rgba(42, 155, 203, .28); animation: spin 110s linear infinite reverse; }
.orbit--3 { width: 120%; background: radial-gradient(closest-side, rgba(119, 199, 232, .5), rgba(119, 199, 232, 0)); --o2: .6; animation: breathe 7s ease-in-out infinite; }
.orbit i { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--sky-500); box-shadow: 0 0 0 6px rgba(119, 199, 232, .25), 0 0 22px rgba(42, 155, 203, .85); }
.orbit--2 i { width: 9px; height: 9px; background: var(--navy-700); box-shadow: 0 0 0 5px rgba(14, 62, 84, .12); top: auto; bottom: 8%; left: 12%; }
.portrait {
    position: absolute; inset: 0; overflow: hidden;
    border-radius: 999px 999px var(--r-xl) var(--r-xl);
    background: var(--sky-200); box-shadow: var(--sh-lg), 0 0 0 8px rgba(255, 255, 255, .7);
    translate: calc(var(--px, 0) * var(--depth, 0) * 1px) calc(var(--py, 0) * var(--depth, 0) * 1px);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; transform: scale(1.04); animation: portraitIn 2.4s var(--ease) both; }
.portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 62, 84, 0) 55%, rgba(14, 62, 84, .22)); }

.glass {
    background: rgba(255, 255, 255, .68);
    -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 22px 50px -22px rgba(8, 40, 56, .4);
}
@media (prefers-reduced-transparency: reduce) { .glass { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.chip {
    position: absolute; display: flex; align-items: center; gap: .65rem;
    padding: .65rem .95rem .65rem .7rem; border-radius: 18px; font-size: .74rem; line-height: 1.25; color: var(--ink-3);
    translate: calc(var(--px, 0) * var(--depth, 0) * 1px) calc(var(--py, 0) * var(--depth, 0) * 1px);
}
.chip > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font-size: 1.2rem; color: var(--sky-500); background: var(--navy-800); }
.chip strong { display: block; font-family: var(--f-display); font-size: .86rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.chip--a { left: -9%; top: 12%; animation: float 6.5s ease-in-out infinite; }
.chip--b { right: -10%; top: 52%; animation: float 7.5s ease-in-out -2s infinite; }
.chip--c { display: none; left: -4%; bottom: 7%; animation: float 8s ease-in-out -4s infinite; }

@media (min-width: 640px) { .chip--c { display: flex; } .chip { font-size: .78rem; } }
@media (min-width: 960px) {
    .hero { padding-top: calc(var(--nav-h) + 1.5rem); padding-bottom: 7.5rem; }
    .hero__grid { grid-template-columns: 1.12fr .88fr; gap: 3rem; }
    .display { font-size: clamp(3rem, 4.3vw, 4rem); }
    .hero__title .line { white-space: nowrap; }                  /* dos líneas limpias en escritorio */
    .hero__stage { width: auto; height: min(58dvh, 560px); margin: 0 auto; }
    .hero__psi { right: -8%; top: 0; width: min(62vw, 860px); }
}
@media (min-width: 1280px) { .hero__grid { gap: 4rem; } }
@media (max-width: 519px) {
    .hero__cta { display: grid; width: 100%; }
    .hero__cta .btn { width: 100%; }
}

/* ───────── 8. FRANJA DE CIFRAS ───────── */
.trust { position: relative; z-index: 2; margin-top: -4rem; }
.glass-solid { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-md); }
.trust__grid { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: var(--line); gap: 1px; }
.trust__grid li { background: var(--surface); padding: 1.5rem 1.25rem 1.6rem; display: grid; gap: .35rem; align-content: start; }
.trust__grid strong { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.6rem, 8vw, 3.8rem); line-height: 1; letter-spacing: -.045em; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.trust__grid li > span { font-size: .9rem; line-height: 1.45; color: var(--ink-3); max-width: 22ch; }
@media (min-width: 900px) {
    .trust__grid { grid-template-columns: repeat(4, 1fr); }
    .trust__grid li { padding: 2rem 1.8rem 2.1rem; }
}

/* ───────── 9. MANIFIESTO ───────── */
.manifesto { position: relative; overflow: clip; padding-block: clamp(6rem, 15vw, 12rem); }
.manifesto__psi {
    position: absolute; left: -16%; top: 6%; width: min(78vw, 640px); aspect-ratio: 1; opacity: .28; pointer-events: none;
    background: linear-gradient(160deg, var(--sky-400), var(--sky-100));
    -webkit-mask: url(img/logo-mark.png) center / contain no-repeat; mask: url(img/logo-mark.png) center / contain no-repeat;
}
.manifesto__text {
    position: relative; max-width: 22em; font-family: var(--f-display); font-weight: 500;
    font-size: clamp(1.85rem, 5.6vw, 3.9rem); line-height: 1.12; letter-spacing: -.032em; color: var(--ink); text-wrap: pretty;
}
.manifesto__text .sw { display: inline; }
.st .manifesto__text .sw { opacity: .14; }
.manifesto__sig { position: relative; display: flex; align-items: center; gap: 1rem; margin-top: clamp(2rem, 5vw, 3.2rem); font-size: .92rem; color: var(--ink-3); }
.manifesto__sig img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--sky-500); }
.manifesto__sig strong { display: block; font-family: var(--f-display); font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; }

/* ───────── 10. CAMINO: imagen que se abre con el scroll ───────── */
.camino { position: relative; }
.camino__pin { position: relative; height: 100dvh; overflow: hidden; }
.camino__head { position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--nav-h) + 1.6rem); padding-inline: var(--gutter); text-align: center; }
.camino__head .h2 { max-width: 15ch; margin-inline: auto; }
/* --p (0 a 1) lo anima GSAP con el scroll; el recorte y el zoom se derivan de esa sola variable */
.camino__media { position: absolute; inset: 0; --p: 0; --ci-t: 40%; --ci-r: 9%; --ci-b: 9%; --ci-l: 9%; --ci-rad: 22px; }
.st .camino__media {
    clip-path: inset(calc(var(--ci-t) * (1 - var(--p))) calc(var(--ci-r) * (1 - var(--p))) calc(var(--ci-b) * (1 - var(--p))) calc(var(--ci-l) * (1 - var(--p))) round calc(var(--ci-rad) * (1 - var(--p))));
    will-change: clip-path;
}
.camino__media img { width: 100%; height: 100%; object-fit: cover; }
.st .camino__media img { transform: scale(calc(1.3 - .3 * var(--p))); will-change: transform; }
.camino__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 32, 45, 0) 25%, rgba(6, 32, 45, .82) 100%); }
.camino__over { position: absolute; inset: auto 0 0 0; display: grid; gap: 1.6rem; justify-items: start; padding: clamp(1.4rem, 6vw, 5rem); color: #fff; }
.camino__quote { max-width: 18ch; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.9rem, 6.2vw, 4.2rem); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.st .camino__over > * { opacity: 0; }
@media (min-width: 900px) { .camino__media { --ci-t: 34%; --ci-r: 28%; --ci-b: 7%; --ci-l: 28%; --ci-rad: 30px; } }
html:not(.st) .camino__head { position: relative; top: auto; padding-block: 5rem 2rem; }
html:not(.st) .camino__pin { height: auto; }
html:not(.st) .camino__media { position: relative; min-height: 70dvh; }

/* ───────── 11. ENFOQUE (bento) ───────── */
.bento { display: grid; gap: 1rem; }
.cell {
    position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .7rem;
    padding: clamp(1.4rem, 3vw, 2.1rem); border-radius: var(--r-xl); min-height: 250px;
    border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-sm);
}
.cell h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.cell p { color: var(--ink-2); font-size: .98rem; max-width: 36ch; }
.cell__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: auto; border-radius: 16px; font-size: 1.6rem; color: var(--navy-800); background: var(--sky-200); }
.cell__icon--light { background: rgba(119, 199, 232, .16); color: var(--sky-500); }
.cell--tint { background: linear-gradient(160deg, var(--sky-200), var(--sky-100) 70%); border-color: rgba(42, 155, 203, .18); }
.cell--tint .cell__icon { background: #fff; }
.cell--deep { color: #D4E8F2; background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); border-color: transparent; }
.cell--deep h3 { color: #fff; }
.cell--deep p { color: #BCD7E5; }
.cell__psi {
    position: absolute; z-index: -1; right: -8%; bottom: -30%; width: 62%; aspect-ratio: 1; opacity: .13; background: var(--sky-500);
    -webkit-mask: url(img/logo-mark.png) center / contain no-repeat; mask: url(img/logo-mark.png) center / contain no-repeat;
}
.cell--cycle { min-height: 470px; background: radial-gradient(120% 80% at 50% 0%, var(--sky-100), #fff 62%); }
.cell--cycle .cell__body { display: grid; gap: .6rem; position: relative; z-index: 1; }

.spot::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s;
    background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(119, 199, 232, .34), transparent 62%);
}
.spot:hover::before { opacity: 1; }

/* Diagrama del modelo cognitivo-conductual */
.cycle { position: relative; width: min(72%, 300px); aspect-ratio: 1; margin: 1.6rem auto 2.2rem; }
.cycle__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(14, 62, 84, .26); animation: spin 60s linear infinite reverse; }
.cycle__ring--2 { inset: 14%; border: 1px solid rgba(42, 155, 203, .3); animation: none; }
.cycle__spark { position: absolute; inset: 0; animation: spin 9s linear infinite; }
.cycle__spark::after { content: ''; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--sky-500); box-shadow: 0 0 0 7px rgba(119, 199, 232, .25), 0 0 26px rgba(42, 155, 203, .95); }
.cycle__core { position: absolute; inset: 35%; display: grid; place-items: center; border-radius: 50%; background: var(--navy-800); box-shadow: 0 16px 36px -14px rgba(14, 62, 84, .8), 0 0 0 8px rgba(119, 199, 232, .22); animation: breathe 5s ease-in-out infinite; }
.cycle__mark { width: 56%; aspect-ratio: 1; background: var(--sky-500); -webkit-mask: url(img/logo-mark.png) center / contain no-repeat; mask: url(img/logo-mark.png) center / contain no-repeat; }
.node {
    position: absolute; translate: -50% -50%; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
    padding: .5rem .85rem .5rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--ink);
    background: #fff; border: 1px solid var(--line-2); box-shadow: var(--sh-md);
    animation: bob 5s ease-in-out infinite;
}
.node i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .95rem; color: var(--navy-800); background: var(--sky-200); }
.node--1 { left: 50%; top: 0; }
.node--2 { left: 93.3%; top: 75%; animation-delay: -1.7s; }
.node--3 { left: 6.7%; top: 75%; animation-delay: -3.4s; }

@media (min-width: 900px) {
    .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(250px, auto); gap: 1.1rem; }
    .cell--cycle { grid-column: span 6; grid-row: span 2; }
    .cell--tint, .cell--plain { grid-column: span 3; }
    .cell--deep { grid-column: span 6; }
}

/* ───────── 12. ESPECIALIDADES (galería horizontal) ───────── */
.specs { position: relative; padding-block: clamp(4.5rem, 10vw, 8rem); background: linear-gradient(180deg, var(--bg), var(--sky-50) 50%, var(--bg)); overflow: clip; }
.specs__intro { display: grid; gap: 1rem; justify-items: start; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.specs__viewport { overflow-x: auto; scroll-snap-type: x proximity; padding: .4rem var(--gutter) 1.6rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.specs__viewport::-webkit-scrollbar { display: none; }
.specs__track { display: flex; gap: 1rem; width: max-content; }
.spec {
    position: relative; isolation: isolate; overflow: hidden; scroll-snap-align: center;
    flex: 0 0 min(80vw, 340px); display: flex; flex-direction: column; min-height: 470px;
    border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm);
    transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.spec:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.spec__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.spec__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform 1.4s var(--ease); }
.spec:hover .spec__media img { transform: scale(1.07); }
.spec__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(119, 199, 232, .1), rgba(14, 62, 84, .28)); mix-blend-mode: multiply; }
.spec__body { display: flex; flex-direction: column; gap: .65rem; flex: 1; padding: 1.35rem 1.5rem 1.6rem; }
.spec h3 { font-size: 1.45rem; }
.spec p { font-size: .96rem; color: var(--ink-2); }
.spec .link { margin-top: auto; padding-top: .7rem; }
.spec__art { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, var(--navy-700), var(--navy-900)); }
.spec__art::before, .spec__art::after { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(119, 199, 232, .3); animation: ripple 5s ease-out infinite; }
.spec__art::after { animation-delay: -2.5s; }
.spec__art i { position: relative; z-index: 1; font-size: 4.6rem; color: var(--sky-500); animation: bob 6s ease-in-out infinite; }
.spec--tone2 .spec__art { background: linear-gradient(145deg, var(--sky-400), var(--sky-200)); }
.spec--tone2 .spec__art i { color: var(--navy-800); }
.spec--tone2 .spec__art::before, .spec--tone2 .spec__art::after { border-color: rgba(14, 62, 84, .25); }
.spec--tone3 .spec__art { background: linear-gradient(145deg, var(--navy-600), var(--navy-800)); }
.spec--cta {
    justify-content: flex-end; gap: 1rem; padding: 1.8rem; color: #CFE5F0; border: 0;
    background: linear-gradient(155deg, var(--navy-700), var(--navy-950));
}
.spec--cta:hover { transform: none; }
.spec--cta h3 { color: #fff; font-size: 1.9rem; }
.spec--cta p { color: #BCD7E5; font-size: 1rem; }
.spec__psi { --o1: .14; --o2: .22; position: absolute; z-index: -1; right: -18%; top: -6%; width: 78%; aspect-ratio: 1; opacity: .14; background: var(--sky-500); -webkit-mask: url(img/logo-mark.png) center / contain no-repeat; mask: url(img/logo-mark.png) center / contain no-repeat; animation: breathe 9s ease-in-out infinite; }
.spec--cta .btn { justify-self: start; }

/* Escritorio sin JS: cuadrícula. Con JS: se fija y recorre en horizontal */
@media (min-width: 1024px) {
    html:not(.st-h) .specs__viewport { overflow: visible; padding-inline: 0; width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
    html:not(.st-h) .specs__track { display: grid; grid-template-columns: repeat(3, 1fr); width: auto; gap: 1.1rem; }
    html:not(.st-h) .spec { flex: none; }

    .st-h .specs { padding-block: 0; }
    .st-h .specs__frame { height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 2rem; padding-top: calc(var(--nav-h) + .5rem); }
    .st-h .specs__intro { margin-bottom: 0; }
    .st-h .specs__viewport { overflow: visible; padding: 0; scroll-snap-type: none; }
    .st-h .specs__track { gap: 1.4rem; padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2)); }
    .st-h .spec { flex: 0 0 clamp(340px, 27vw, 420px); min-height: min(54dvh, 500px); scroll-snap-align: none; }
    .st-h .spec--cta { flex-basis: clamp(360px, 30vw, 460px); }
}

/* ───────── 13. PARA QUIÉN ───────── */
.aud { display: grid; gap: .9rem; }
.aud__item {
    position: relative; isolation: isolate; overflow: hidden; display: grid; gap: .8rem; align-content: start;
    padding: 1.6rem; border-radius: var(--r-xl); background: linear-gradient(180deg, var(--surface) 35%, var(--sky-100)); border: 1px solid var(--line);
    transition: flex-grow .9s var(--ease), background-color .6s, border-color .6s, box-shadow .6s;
    box-shadow: var(--sh-sm);
}
.aud__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; font-size: 1.7rem; color: var(--navy-800); background: var(--sky-200); transition: background-color .6s, color .6s, transform .8s var(--ease); }
.aud__item h3 { font-size: 1.55rem; transition: color .6s; }
.aud__item p { font-size: .98rem; color: var(--ink-2); max-width: 32ch; transition: color .6s, opacity .6s .15s, transform .8s var(--ease) .1s; }
@media (min-width: 640px) and (max-width: 1199px) { .aud { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) {
    /* Acordeón de paneles: el activo se expande y revela su texto */
    .aud { display: flex; gap: 1rem; height: 440px; }
    .aud__item { display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 0; min-width: 0; gap: .6rem; cursor: pointer; padding: 1.7rem 1.5rem; }
    .aud__icon { margin-bottom: auto; }
    .aud__item h3 { font-size: 1.1rem; overflow-wrap: anywhere; hyphens: auto; transition: color .6s, font-size .8s var(--ease); }
    .aud__item p { max-height: 0; opacity: 0; transform: translateY(14px); transition: max-height .9s var(--ease), color .6s, opacity .6s, transform .8s var(--ease); }
    .aud__item.is-open { flex-grow: 2.4; color: #fff; background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); border-color: transparent; box-shadow: var(--sh-lg); }
    .aud__item.is-open h3 { color: #fff; font-size: 1.9rem; }
    .aud__item.is-open p { max-height: 12em; opacity: 1; transform: none; color: #C5DEEB; transition-delay: 0s, 0s, .2s, .2s; }
    .aud__item.is-open .aud__icon { background: rgba(119, 199, 232, .18); color: var(--sky-500); transform: rotate(-8deg) scale(1.08); }
    .aud__item:not(.is-open):hover { background: var(--sky-100); }
}
@media (min-width: 1400px) { .aud__item h3 { font-size: 1.3rem; } }

/* ───────── 14. TRAYECTORIA ───────── */
.career { background: linear-gradient(180deg, var(--bg), #EEF7FC 40%, var(--bg)); }
.career__grid { display: grid; gap: 2.6rem; }
.career__intro { display: grid; gap: 1.2rem; align-content: start; justify-items: start; }
.creds { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.creds li { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem .55rem .8rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--navy-800); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.creds i { font-size: 1.15rem; color: var(--sky-600); }

.timeline { position: relative; display: grid; gap: 1.1rem; padding-left: 3.4rem; }
.timeline__rail { position: absolute; left: calc(1.2rem - 1px); top: 1.6rem; bottom: 1.6rem; width: 2px; background: var(--line); border-radius: 2px; }
.timeline__rail i { display: block; height: 100%; transform: scaleY(0); transform-origin: 50% 0; background: linear-gradient(180deg, var(--sky-500), var(--navy-700)); border-radius: 2px; }
html:not(.st) .timeline__rail i { transform: none; }
.tl { position: relative; display: grid; gap: .5rem; padding: 1.35rem 1.5rem 1.5rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.tl h3 { font-size: 1.3rem; }
.tl p { font-size: .97rem; color: var(--ink-2); }
.tl__dot { position: absolute; left: -3.4rem; top: 1.15rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; font-size: 1.15rem; color: var(--navy-700); background: #fff; border: 1.5px solid var(--line-2); transition: background-color .6s, color .6s, border-color .6s, transform .8s var(--ease); }
.tl.is-on .tl__dot { background: var(--navy-800); color: var(--sky-500); border-color: var(--navy-800); transform: scale(1.12); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .5rem; }
.tags li { padding: .35rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--navy-800); background: var(--sky-100); border: 1px solid rgba(42, 155, 203, .22); }
@media (min-width: 960px) {
    .career__grid { grid-template-columns: .85fr 1.15fr; gap: 4.5rem; align-items: start; }
    .career__intro { position: sticky; top: calc(var(--nav-h) + 2rem); }
}

/* ───────── 15. MODALIDADES ───────── */
.modes__wrap { display: grid; gap: 1.6rem; justify-items: center; }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.seg__btn { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-width: 8.2rem; padding: .85rem 1.3rem; border-radius: 999px; font-weight: 600; color: var(--ink-2); transition: color .4s; }
.seg__btn.is-on { color: #fff; }
.seg__btn i { font-size: 1.15rem; }
.seg__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--navy-800); box-shadow: 0 10px 22px -10px rgba(14, 62, 84, .9); transition: translate .7s var(--ease); }
.seg[data-on="1"] .seg__thumb { translate: 100% 0; }
.modes__stage { width: 100%; }
.mode { display: none; overflow: hidden; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-md); }
.mode.is-on { display: grid; animation: modeIn .9s var(--ease) both; }
.mode__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.mode__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
.mode__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(119, 199, 232, .12), rgba(14, 62, 84, .3)); mix-blend-mode: multiply; }
.mode__body { display: grid; gap: 1.2rem; align-content: center; justify-items: start; padding: clamp(1.5rem, 4vw, 3rem); }
.mode__body h3 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.ticks { display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-2); }
.ticks i { font-size: 1.35rem; color: var(--sky-600); margin-top: .1rem; }
@media (min-width: 900px) {
    .mode.is-on { grid-template-columns: 1.05fr .95fr; }
    .mode__media { aspect-ratio: auto; min-height: 420px; }
}

/* ───────── 16. PROCESO (tarjetas apiladas) ───────── */
.process { background: linear-gradient(180deg, var(--bg), var(--sky-50)); }
.stack { display: grid; }
.step { position: sticky; top: calc(var(--nav-h) + 1rem + var(--i) * 14px); padding-bottom: 1.1rem; }
.step__card {
    display: grid; overflow: hidden; border-radius: var(--r-xl); background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--sh-lg); transform-origin: 50% 0; will-change: transform;
}
.step:nth-child(2) .step__card { background: linear-gradient(180deg, #fff, var(--sky-50)); }
.step:nth-child(3) .step__card { background: linear-gradient(180deg, #fff, var(--sky-100)); }
.step__body { display: grid; gap: .8rem; align-content: center; justify-items: start; padding: clamp(1.4rem, 4vw, 3.2rem); }
.step__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; font-size: 1.7rem; color: var(--sky-500); background: var(--navy-800); box-shadow: 0 12px 26px -12px rgba(14, 62, 84, .9); margin-bottom: .4rem; }
.step h3 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.03em; }
.step p { font-size: clamp(.98rem, 1.8vw, 1.08rem); color: var(--ink-2); max-width: 38ch; }
.step__visual { position: relative; min-height: 190px; overflow: hidden; }
.step__visual--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
.step__visual--photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(119, 199, 232, .1), rgba(14, 62, 84, .3)); mix-blend-mode: multiply; }
.step__visual--orb { display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, var(--sky-200), var(--sky-100) 58%, #fff); }
.step__visual--orb2 { background: radial-gradient(circle at 50% 42%, var(--sky-300), var(--sky-200) 55%, var(--sky-100)); }
.step__visual--orb span { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(23, 86, 112, .3); animation: ripple 6s ease-out infinite; }
.step__visual--orb span:nth-child(2) { animation-delay: -2s; }
.step__visual--orb span:nth-child(3) { animation-delay: -4s; }
.step__visual--orb i { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; font-size: 2.8rem; color: var(--sky-500); background: var(--navy-800); box-shadow: 0 0 0 10px rgba(14, 62, 84, .08), 0 24px 44px -16px rgba(14, 62, 84, .7); animation: bob 6s ease-in-out infinite; }
.process__cta { display: flex; justify-content: center; margin-top: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 800px) {
    .step { top: calc(var(--nav-h) + 1.4rem + var(--i) * 18px); }
    .step__card { grid-template-columns: 1.05fr .95fr; min-height: min(60dvh, 460px); }
    .step__visual { min-height: 0; }
}

/* ───────── 17. OPINIONES ───────── */
.reviews { overflow: clip; }
.stars { display: inline-flex; gap: .15rem; color: var(--sky-600); font-size: 1.05rem; }
.stars-row { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .7rem; font-size: .92rem; color: var(--ink-3); }
.stars-row .stars { font-size: 1.25rem; }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--navy-800); background: linear-gradient(145deg, var(--sky-300), var(--sky-100)); box-shadow: inset 0 0 0 1px rgba(42, 155, 203, .25); }
.feature {
    position: relative; max-width: 900px; margin: 0 auto; padding: clamp(1.8rem, 5vw, 3.4rem); border-radius: var(--r-xl);
    background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); color: #fff; box-shadow: var(--sh-lg); overflow: hidden;
}
.feature__q { position: absolute; right: 1.2rem; top: .6rem; font-size: clamp(5rem, 16vw, 9rem); color: rgba(119, 199, 232, .14); }
.feature blockquote p { position: relative; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.4rem, 3.8vw, 2.3rem); line-height: 1.18; letter-spacing: -.028em; text-wrap: balance; }
.feature figcaption { position: relative; display: flex; align-items: center; gap: .8rem; margin-top: 1.6rem; font-size: .88rem; color: #B9D6E5; }
.feature figcaption strong, .rev footer strong { display: block; color: #fff; font-weight: 600; font-size: .95rem; }
.feature .avatar { background: rgba(119, 199, 232, .2); color: var(--sky-500); box-shadow: inset 0 0 0 1px rgba(119, 199, 232, .35); }

.marquee {
    display: grid; gap: 1.1rem; margin-top: clamp(2.6rem, 6vw, 4rem); overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__row { display: flex; width: max-content; animation: marquee var(--dur, 80s) linear infinite; }
.marquee__row[data-dir="-1"] { animation-direction: reverse; --dur: 95s; }
.marquee:hover .marquee__row, .marquee:focus-within .marquee__row { animation-play-state: paused; }
.rev {
    flex: 0 0 min(78vw, 350px); margin-right: 1.1rem; display: flex; flex-direction: column; gap: .9rem; padding: 1.4rem;
    border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.rev p { font-size: .98rem; line-height: 1.55; color: var(--ink-2); }
.rev footer { display: flex; align-items: center; gap: .75rem; margin-top: auto; font-size: .8rem; color: var(--ink-3); }
.rev footer strong { color: var(--ink); }
.reviews__cta { display: flex; justify-content: center; margin-top: clamp(2.2rem, 5vw, 3.5rem); }

/* ───────── 18. PREGUNTAS ───────── */
.faq__grid { display: grid; gap: 2rem; }
.faq .sec-head { margin-bottom: 0; }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item h3 { font-size: inherit; }
.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(--f-display); font-weight: 500; font-size: clamp(1.1rem, 2.6vw, 1.35rem); letter-spacing: -.02em; color: var(--ink); transition: color .3s; }
.acc__btn:hover { color: var(--navy-600); }
.acc__btn i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 1.1rem; color: var(--navy-800); background: var(--sky-100); border: 1px solid var(--line); transition: transform .6s var(--ease), background-color .4s, color .4s; }
.acc__item.is-open .acc__btn i { transform: rotate(135deg); background: var(--navy-800); color: #fff; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 3rem 1.5rem 0; color: var(--ink-2); max-width: 60ch; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
@media (min-width: 960px) {
    .faq__grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: start; }
    .faq .sec-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
}

/* ───────── 19. CONTACTO ───────── */
.contact {
    position: relative; isolation: isolate; overflow: clip; color: #fff;
    padding-block: clamp(5rem, 10vw, 8rem) clamp(4rem, 8vw, 6rem);
    border-radius: 36px 36px 0 0;
    background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.contact__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora--d { width: 60vmax; aspect-ratio: 1; left: -24vmax; top: -22vmax; background: radial-gradient(closest-side, rgba(119, 199, 232, .3), rgba(119, 199, 232, 0)); animation: drift1 24s ease-in-out infinite alternate; }
.aurora--e { width: 52vmax; aspect-ratio: 1; right: -22vmax; bottom: -22vmax; background: radial-gradient(closest-side, rgba(42, 155, 203, .3), rgba(42, 155, 203, 0)); animation: drift2 28s ease-in-out infinite alternate; }
.contact__psi { --o1: .07; --o2: .13; position: absolute; right: -14%; top: 4%; width: min(80vw, 620px); aspect-ratio: 1; opacity: .07; background: var(--sky-500); -webkit-mask: url(img/logo-mark.png) center / contain no-repeat; mask: url(img/logo-mark.png) center / contain no-repeat; animation: breathe 11s ease-in-out infinite; }
.contact__grid { display: grid; gap: 2.6rem; align-items: start; }
.contact__copy { display: grid; gap: 1.3rem; justify-items: start; }
.contact__cards { display: grid; gap: .8rem; width: 100%; margin-top: 1rem; }
.ccard {
    display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.25rem; border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: background-color .4s, transform .5s var(--ease), border-color .4s;
}
a.ccard:hover { background: rgba(255, 255, 255, .13); border-color: rgba(119, 199, 232, .6); transform: translateY(-3px); }
.ccard > i:first-child { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.6rem; color: var(--sky-500); background: rgba(119, 199, 232, .14); }
.ccard span { display: grid; line-height: 1.3; }
.ccard small { font-size: .8rem; color: #BCD7E5; }
.ccard strong { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; color: #fff; }
.ccard__go { margin-left: auto; font-size: 1.3rem; color: var(--sky-500); transition: transform .4s var(--ease); }
a.ccard:hover .ccard__go { transform: translate(3px, -3px); }

.form { display: grid; gap: 1.15rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--r-xl); background: var(--surface); color: var(--ink-2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); }
.form__title { font-size: clamp(1.5rem, 3.4vw, 1.9rem); letter-spacing: -.03em; }
.field { display: grid; gap: .5rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: .9rem; font-weight: 600; color: var(--ink); padding: 0; }
.field label em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field input[type="text"], .field select, .field textarea {
    width: 100%; padding: .9rem 1rem; border-radius: 14px; font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--sky-50); border: 1.5px solid var(--line-2); transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 256 256'%3E%3Cpath fill='%2353707F' d='M213.7 101.7l-80 80a8 8 0 0 1-11.4 0l-80-80a8 8 0 0 1 11.4-11.4L128 164.7l74.3-74.4a8 8 0 0 1 11.4 11.4Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.field select:invalid { color: var(--ink-3); }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(42, 155, 203, .22); }
.field.has-error input, .field.has-error select { border-color: #B3261E; background: #FFF6F5; }
.field__err { min-height: 0; font-size: .84rem; font-weight: 500; color: #B3261E; }
.pills { display: flex; gap: .6rem; }
.pills label { position: relative; flex: 1; }
.pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pills span { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1rem; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink-2); background: var(--sky-50); border: 1.5px solid var(--line-2); transition: background-color .35s, color .35s, border-color .35s; }
.pills input:checked + span { color: #fff; background: var(--navy-800); border-color: var(--navy-800); }
.pills input:focus-visible + span { outline: 2.5px solid var(--navy-700); outline-offset: 3px; }
.form__note { font-size: .84rem; line-height: 1.5; color: var(--ink-3); text-align: center; }
.form.is-sent .form__note { color: var(--navy-700); font-weight: 600; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }

/* ───────── 20. PIE ───────── */
.footer { background: var(--navy-900); color: #A9C8D9; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__grid { display: grid; gap: 2.2rem; padding-bottom: 2.6rem; }
.footer__brand { display: grid; gap: 1.3rem; max-width: 30rem; }
.footer__brand p { font-size: .95rem; }
.footer__logo {
    width: min(100%, 230px); overflow: hidden; border-radius: var(--r-lg);
    box-shadow: 0 0 0 1px rgba(119, 199, 232, .28), 0 28px 50px -26px rgba(0, 0, 0, .65);
    transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.footer__logo:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(119, 199, 232, .55), 0 32px 56px -24px rgba(0, 0, 0, .7); }
.footer__logo img { width: 100%; height: auto; }
.footer__col { display: grid; gap: .55rem; align-content: start; font-size: .94rem; }
.footer__col h4 { margin-bottom: .3rem; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: #fff; }
.footer__col a { width: fit-content; color: #A9C8D9; transition: color .3s; }
.footer__col a:hover { color: var(--sky-500); }
.footer__col a span { color: #fff; font-weight: 500; }
.footer__legal { display: grid; gap: .6rem; padding-block: 1.6rem calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; line-height: 1.55; color: #8DB0C3; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; } }

/* ───────── 21. WHATSAPP FLOTANTE ───────── */
.fab { position: fixed; z-index: var(--z-fab); right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .7rem; }
.js .fab { opacity: 0; translate: 0 24px; pointer-events: none; transition: opacity .8s var(--ease), translate .9s var(--ease); }
.is-ready .fab { opacity: 1; translate: 0 0; pointer-events: auto; transition-delay: 1.6s; }
.menu-open .fab { opacity: 0; pointer-events: none; transition-delay: 0s; }
.fab__btn { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; font-size: 1.95rem; color: #fff; background: var(--navy-800); border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 18px 36px -10px rgba(8, 40, 56, .75), inset 0 1px 0 rgba(255, 255, 255, .18); transition: transform .5s var(--ease), background-color .3s; }
.fab:hover .fab__btn { transform: scale(1.08) rotate(-6deg); background: var(--navy-700); }
.fab__pulse { position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--sky-500); animation: pulse 2.6s ease-out infinite; }
.fab__tip { padding: .65rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 600; white-space: nowrap; color: var(--navy-800); background: #fff; box-shadow: var(--sh-md); border: 1px solid var(--line); opacity: 0; translate: 12px 0; pointer-events: none; transition: opacity .5s var(--ease), translate .6s var(--ease); }
.show-tip .fab__tip, .fab:hover .fab__tip, .fab:focus-visible .fab__tip { opacity: 1; translate: 0 0; }

/* ───────── 22. ANIMACIONES ───────── */
@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { 0%, 100% { scale: 1; opacity: var(--o1, 1); } 50% { scale: 1.07; opacity: var(--o2, .8); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes drift1 { to { transform: translate(14vmax, 10vmax) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-12vmax, 14vmax) scale(.92); } }
@keyframes drift3 { to { transform: translate(-14vmax, -8vmax) scale(1.15); } }
@keyframes sheen { 0% { background-position: 160% 0; } 55%, 100% { background-position: -60% 0; } }
@keyframes ripple { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes modeIn { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes portraitIn { from { transform: scale(1.25); filter: blur(8px); } to { transform: scale(1.04); filter: none; } }
@keyframes failsafe { to { opacity: 0; visibility: hidden; } }

/* ───────── 23. 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; }
    .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .marquee__row { animation: none; }
    .js [data-reveal], .js .hero-in { opacity: 1; transform: none; }
    [data-split] .w__in { transform: none; }
    .mark .swash path { stroke-dashoffset: 0; }
}
