/* ==========================================================================
   Psicoaprende · Sistema de diseño
   --------------------------------------------------------------------------
   1. Tokens        5. Header / nav       9. Terapias       13. Contacto/footer
   2. Base          6. Hero               10. Proceso       14. CTA persistente
   3. Utilidades    7. Secciones          11. Equipo        15. Cursor
   4. Botones       8. Reveals            12. Tests / blog  16. Páginas internas
   17. Contacto (página)  18. Terapias (páginas internas)
   19. Trastornos y evaluaciones  20. Sobre nosotros
   ========================================================================== */

/* 1. TOKENS ================================================================ */
:root {
    /* Paleta de marca (CLAUDE.md) */
    --lavender: #A9AEF2;
    --mint: #A6D9D1;
    --primary: #4F5EF0;
    --turquoise: #6FC0B8;
    --yellow: #F5EE8E;
    --navy: #2E2E8B;
    --teal: #1F9C93;
    --coral: #E8746C;

    /* Derivados para cumplir contraste AA como texto sobre fondo claro.
       (--teal 3.4:1 y --coral 2.9:1 no alcanzan 4.5:1; se usan solo en decoración.) */
    --primary-700: #3B49D6;  /* hover de botones */
    --teal-700: #14706A;     /* 5.8:1 sobre blanco */
    --coral-700: #B4453E;    /* 5.3:1 sobre blanco */

    /* Superficies y texto */
    --bg: #FBFAF6;           /* blanco cálido: menos clínico que #FFF */
    --surface: #FFFFFF;
    --tint-lavender: #F1F1FD;
    --tint-mint: #EEF8F6;
    --ink: #2E2E8B;          /* títulos */
    --text: #34375A;         /* cuerpo: 10.6:1 */
    --muted: #5E6283;        /* secundario: 5.9:1 */
    --line: #E6E4F2;

    /* Tipografía */
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --fs-hero: clamp(2.5rem, 1.6rem + 4.2vw, 4.6rem);
    --fs-h1: clamp(2.2rem, 1.6rem + 2.8vw, 3.6rem);
    --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
    --fs-h3: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
    --fs-lead: clamp(1.05rem, 1rem + .3vw, 1.2rem);

    /* Espaciado, forma y profundidad */
    --gutter: clamp(1rem, .6rem + 2vw, 2rem);
    --section: clamp(4.5rem, 3rem + 6vw, 8rem);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 32px;
    --shadow-sm: 0 1px 2px rgba(46, 46, 139, .06), 0 2px 8px rgba(46, 46, 139, .05);
    --shadow: 0 2px 4px rgba(46, 46, 139, .04), 0 12px 32px -8px rgba(46, 46, 139, .14);
    --shadow-lg: 0 4px 8px rgba(46, 46, 139, .05), 0 28px 60px -12px rgba(46, 46, 139, .25);

    /* Movimiento: curvas suaves y duraciones largas = sensación calmada */
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-soft: cubic-bezier(.45, 0, .2, 1);
    --dur: .5s;

    --header-h: 76px;
    color-scheme: light;
}

/* 2. BASE ================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

h1, h2, h3, h4 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.015em;
    font-variation-settings: "SOFT" 50;
    text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
dl, dd { margin: 0; }

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection { background: var(--yellow); color: var(--navy); }

#contenido:focus { outline: none; }

/* 3. UTILIDADES ============================================================ */
.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: .75rem; left: .75rem;
    z-index: 200;
    padding: .75rem 1.25rem;
    background: var(--navy);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    color: var(--teal-700);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.eyebrow--light { color: var(--mint); }

/* Tonos reutilizables (tarjetas, avatares, portadas) */
.tone-coral   { --tint: #FDECEA; --accent: var(--coral);     --accent-ink: var(--coral-700); }
.tone-primary { --tint: #ECEEFE; --accent: var(--primary);   --accent-ink: var(--primary); }
.tone-teal    { --tint: #E4F4F2; --accent: var(--turquoise); --accent-ink: var(--teal-700); }
.tone-navy    { --tint: #ECECF7; --accent: var(--lavender);  --accent-ink: var(--navy); }

.tone-bg-lavender { background: var(--lavender); color: var(--navy); }
.tone-bg-mint     { background: var(--mint); color: var(--navy); }
.tone-bg-yellow   { background: var(--yellow); color: var(--navy); }
.tone-bg-coral    { background: #F6C3BE; color: var(--navy); }
.tone-bg-primary  { background: var(--primary); color: #fff; }
.tone-bg-teal     { background: var(--turquoise); color: var(--navy); }

/* Texto provisional: ph() solo marca con data-placeholder (buscable con grep); sin efecto visual. */

/* 4. BOTONES =============================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 48px;               /* objetivo táctil cómodo */
    padding: .75rem 1.5rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
                border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
                box-shadow var(--dur) var(--ease-out);
}
.btn .icon { transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon:last-child { transform: translateX(3px); }

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 18px -6px rgba(79, 94, 240, .55);
}
.btn--primary:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -8px rgba(79, 94, 240, .6);
}

.btn--ghost {
    border-color: currentColor;
    color: var(--navy);
    background: transparent;
}
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--yellow); transform: translateY(-2px); }

.btn--block { width: 100%; }

.btn--disabled {
    background: var(--line);
    color: var(--muted);
    cursor: not-allowed;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 48px; height: 48px;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--navy);
    cursor: pointer;
    transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
                border-color var(--dur) var(--ease-out), opacity var(--dur);
}
.icon-btn:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: #fff; }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* 5. HEADER / NAVEGACIÓN =================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 250, 246, .86);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .4s, box-shadow .4s;
    view-transition-name: site-header; /* el header no "parpadea" al cambiar de página */
}
.site-header.is-scrolled {
    background: rgba(251, 250, 246, .96);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px -18px rgba(46, 46, 139, .35);
}

.site-header__inner {
    max-width: 1440px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--header-h);
}

/* Logotipo provisional en texto (el definitivo queda fuera de alcance, CLAUDE.md §4.4) */
.logo {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -.03em;
    text-decoration: none;
    line-height: 1;
}
.logo__psico { color: var(--navy); }
.logo__aprende { color: var(--primary); }
.logo__dot {
    align-self: flex-start;
    width: .3em; height: .3em;
    margin: .05em 0 0 .08em;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 1.5px var(--navy);
    transition: transform .6s var(--ease-out);
}
.logo:hover .logo__dot { transform: translateY(-.35em); }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-left: auto;
}

.header-cta { display: none; min-height: 46px; padding-inline: 1.35rem; white-space: nowrap; }

/* Botón hamburguesa */
.menu-btn {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--tint-lavender);
    cursor: pointer;
}
.menu-btn__bars,
.menu-btn__bars::before,
.menu-btn__bars::after {
    display: block;
    width: 20px; height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform .4s var(--ease-out), background-color .2s;
}
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { transform: translateY(-6px); }
.menu-btn__bars::after  { transform: translateY(6px); }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after  { transform: rotate(-45deg); }

/* Navegación: móvil primero (panel desplegable) */
.nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem var(--gutter) 2.5rem;
    background: var(--bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s .35s;
}
.nav-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
}
.nav-open { overflow: hidden; }

.nav__list { display: flex; flex-direction: column; }
.nav__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid var(--line);
}
.nav__link,
.nav__toggle--label {
    flex: 1;
    padding: 1rem 0;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    text-decoration: none;
    text-align: left;
}
.nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
    min-width: 48px; min-height: 48px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--navy);
    cursor: pointer;
}
.nav__toggle--label { display: flex; }
.nav__chevron { transition: transform .35s var(--ease-out); }
.nav__toggle[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }

.nav__sub {
    display: none;
    flex-basis: 100%;
    padding-bottom: .75rem;
}
.nav__toggle[aria-expanded="true"] + .nav__sub { display: block; }
.nav__link[aria-current="page"],
.nav__item.is-active > .nav__toggle--label { color: var(--primary); }
.nav__sublink {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .6rem 0 .6rem 1rem;
    border-left: 2px solid var(--line);
    color: var(--text);
    text-decoration: none;
}
.nav__sublink:hover,
.nav__sublink[aria-current="page"] { border-left-color: var(--primary); color: var(--primary); }

.nav__mobile-extra { display: grid; gap: 1rem; justify-items: center; }

@media (min-width: 640px) {
    .header-cta { display: inline-flex; }
}

@media (min-width: 1280px) {
    .menu-btn, .nav__mobile-extra { display: none; }
    .site-header__actions { margin-left: 0; }

    .nav {
        position: static;
        flex-direction: row;
        margin-left: auto;
        padding: 0;
        background: none;
        overflow: visible;
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: none;
    }
    .nav__list { flex-direction: row; align-items: center; gap: 0; }
    .nav__item { position: relative; flex-wrap: nowrap; border: 0; }

    .nav__link,
    .nav__toggle--label {
        flex: none;
        position: relative;
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: .5rem .7rem;
        border-radius: 999px;
        font-family: var(--font-body);
        font-size: .92rem;
        white-space: nowrap;
        font-weight: 600;
        transition: background-color .3s, color .3s;
    }
    .nav__item:not(.has-sub) .nav__link:hover,
    .nav__item.has-sub:hover > .nav__link,
    .nav__toggle--label:hover { background: var(--tint-lavender); }
    .nav__item.is-active > .nav__link,
    .nav__item.is-active > .nav__toggle--label { color: var(--primary); }
    /* Indicador de página actual: línea que crece (solo transform) */
    .nav__link::after,
    .nav__toggle--label::after {
        content: "";
        position: absolute;
        left: .7rem; right: .7rem; bottom: .2rem;
        height: 2px;
        border-radius: 2px;
        background: var(--primary);
        transform: scaleX(0);
        transition: transform .4s var(--ease-out);
    }
    .nav__item.is-active > .nav__link::after,
    .nav__item.is-active > .nav__toggle--label::after,
    .nav__link[aria-current="page"]::after { transform: scaleX(1); }
    .nav__item:hover > .nav__link::after { transform: scaleX(1); opacity: .5; }
    .nav__item.is-active:hover > .nav__link::after { opacity: 1; }
    .nav__link:focus-visible,
    .nav__toggle:focus-visible { outline-offset: 0; border-radius: 999px; }

    .nav__toggle:not(.nav__toggle--label) { min-width: 44px; min-height: 44px; justify-content: center; margin-left: -.6rem; border-radius: 50%; }
    .nav__toggle:not(.nav__toggle--label):hover { background: var(--tint-lavender); }
    .nav__toggle--label { gap: .25rem; }

    /* Submenú flotante: se abre con hover, foco dentro o botón (teclado) */
    .nav__sub {
        position: absolute;
        top: calc(100% + .5rem);
        left: 50%;
        display: block;
        min-width: 270px;
        padding: .6rem;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, 8px);
        transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s .3s;
    }
    .nav__sub::before { /* puente invisible para que el hover no se corte */
        content: "";
        position: absolute;
        inset: -.6rem 0 auto;
        height: .6rem;
    }
    .has-sub:hover > .nav__sub,
    .has-sub:focus-within > .nav__sub,
    .nav__toggle[aria-expanded="true"] + .nav__sub {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
        transition-delay: 0s;
    }
    .nav__sublink {
        padding: .6rem .9rem;
        border: 0;
        border-radius: var(--radius-sm);
        font-size: .95rem;
        transition: background-color .25s, color .25s, padding .3s var(--ease-out);
    }
    .nav__sublink:hover,
    .nav__sublink:focus-visible,
    .nav__sublink[aria-current="page"] { background: var(--tint-lavender); padding-left: 1.15rem; }
    .nav__sublink[aria-current="page"] { font-weight: 700; }
}

/* 6. HERO ================================================================== */
.hero {
    position: relative;
    padding: clamp(2.5rem, 1rem + 5vw, 5rem) 0 clamp(3rem, 2rem + 4vw, 5rem);
    isolation: isolate;
}

/* Manchas de color difusas con gradientes radiales (más baratas que filter: blur) */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.blob {
    position: absolute;
    width: 60vmax; height: 60vmax;
    border-radius: 50%;
    opacity: .55;
    will-change: transform;
    animation: drift 28s var(--ease-soft) infinite alternate;
}
.blob--lavender { top: -30vmax; right: -18vmax; background: radial-gradient(circle, var(--lavender) 0%, transparent 62%); }
.blob--mint     { bottom: -32vmax; left: -22vmax; background: radial-gradient(circle, var(--mint) 0%, transparent 62%); animation-duration: 34s; animation-delay: -8s; }
.blob--yellow   { top: 20%; left: 35%; width: 32vmax; height: 32vmax; background: radial-gradient(circle, var(--yellow) 0%, transparent 65%); opacity: .45; animation-duration: 40s; }

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); }
}

.hero__grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.hero__eyebrow {
    padding: .4rem .9rem .4rem .6rem;
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--navy);
    letter-spacing: .08em;
    animation: fade-up 1s var(--ease-out) both;
}
.hero__eyebrow-dot {
    width: .6rem; height: .6rem;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(31, 156, 147, .18);
}

.hero__title {
    font-size: var(--fs-hero);
    font-weight: 450;
    line-height: 1.04;
    letter-spacing: -.025em;
}
/* Entrada línea a línea: cada línea sube desde una máscara */
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span {
    display: block;
    animation: rise 1.1s var(--ease-out) both;
}
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Subrayado tipo marcador que "se pinta" después de la entrada del título */
.marker {
    padding: 0 .08em;
    background: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
    color: inherit;
    font-style: italic;
    animation: marker 1.1s var(--ease-out) 1s forwards;
}
@keyframes marker { to { background-size: 100% 100%; } }

.hero__lead {
    max-width: 36rem;
    margin-top: 1.5rem;
    color: var(--text);
    font-size: var(--fs-lead);
    animation: fade-up 1s var(--ease-out) .45s both;
}

/* Segmentación por audiencia */
.audience {
    margin-top: 2.25rem;
    animation: fade-up 1s var(--ease-out) .6s both;
}
.audience__title {
    margin-bottom: .85rem;
    color: var(--navy);
    font-weight: 700;
}
.audience__options { display: grid; gap: .85rem; }

.audience-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
}
.audience-card::before { /* relleno de color que crece desde el icono */
    content: "";
    position: absolute;
    left: 1.15rem; top: 50%;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--card-tint);
    transform: translateY(-50%) scale(1);
    transition: transform .8s var(--ease-out);
    z-index: 0;
}
.audience-card > * { position: relative; z-index: 1; }
.audience-card--kids   { --card-tint: #FFF9D6; --card-accent: var(--coral-700); }
.audience-card--adults { --card-tint: var(--tint-mint); --card-accent: var(--teal-700); }

.audience-card__icon {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    color: var(--card-accent);
}
.audience-card__icon .icon { width: 26px; height: 26px; }
.audience-card__text { display: grid; line-height: 1.3; }
.audience-card__text strong { color: var(--navy); font-size: 1.1rem; }
.audience-card__text small { color: var(--muted); font-size: .9rem; }
.audience-card__arrow {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--tint-lavender);
    color: var(--navy);
    transition: transform var(--dur) var(--ease-out), background-color var(--dur), color var(--dur);
}
.audience-card:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}
.audience-card:hover::before { transform: translateY(-50%) scale(14); }
.audience-card:hover .audience-card__arrow { background: var(--navy); color: #fff; transform: translateX(3px); }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem !important;
}
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: .4rem .95rem;
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--navy);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .3s, border-color .3s, transform .3s var(--ease-out);
}
.chip:hover { background: var(--yellow); border-color: var(--yellow); transform: translateY(-2px); }

/* Ilustración del hero */
.hero__art { display: none; }
.hero-art { width: 100%; height: auto; overflow: visible; }
.hero-art__shape {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: grow 1.4s var(--ease-out) var(--d, 0s) both;
}
.hero-art__orbit .hero-art__shape { transform-origin: center; }
.hero-art__float { animation: float 9s var(--ease-soft) 2s infinite alternate; }
.hero-art__orbit { animation: float 12s var(--ease-soft) 2.5s infinite alternate-reverse; }
.hero-art__sun { animation: grow 1.4s var(--ease-out) var(--d) both, breathe 7s var(--ease-soft) 2.5s infinite alternate; transform-origin: center; }

@keyframes grow { from { opacity: 0; transform: scale(.6) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-14px); } }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.08); } }

/* Cifras */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.stats__item {
    display: flex;
    flex-direction: column-reverse;
    gap: .15rem;
    padding: 1.25rem 1.35rem;
    background: rgba(255, 255, 255, .85);
}
.stats dd {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem);
    line-height: 1;
}
.stats dt { color: var(--muted); font-size: .9rem; }

@media (min-width: 640px) {
    .audience__options { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
    .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
    .hero__art { display: block; width: 100%; max-width: 480px; justify-self: end; }
}

/* 7. SECCIONES ============================================================= */
.section { padding-block: var(--section); position: relative; }
.section--compact { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.section--tint { background: var(--tint-lavender); }
.section--tint-mint { background: var(--tint-mint); }
.section--tint,
.section--tint-mint { border-radius: var(--radius-lg); margin-inline: clamp(0rem, -1rem + 2vw, 1.25rem); }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.section-head--row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: none;
}
.section-title { font-size: var(--fs-h2); }
.section-lead { margin-top: 1rem; color: var(--muted); font-size: var(--fs-lead); max-width: 38rem; }
.section-foot { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }

@media (max-width: 639px) {
    .section-title br { display: none; }
}

/* 8. REVEALS AL HACER SCROLL =============================================== */
/* Solo se ocultan si hay JS (clase .js en <html>); sin JS el contenido se ve siempre. */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
    transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* 9. TERAPIAS ============================================================== */
.therapy-grid {
    display: grid;
    gap: 1.25rem;
}
.therapy-grid > li { display: flex; }

/* Tarjeta con profundidad: inclinación 3D sutil (JS) + sombra en capas + luz que sigue al puntero */
.therapy-card {
    --rx: 0deg; --ry: 0deg; --lift: 0px;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    isolation: isolate;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
    transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .6s;
}
.therapy-card::before { /* círculo de color que se expande detrás del icono */
    content: "";
    position: absolute;
    top: 1.75rem; left: 1.75rem;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--tint);
    z-index: -1;
    transition: transform 1s var(--ease-out);
}
.therapy-card::after { /* reflejo de luz que sigue al puntero */
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .55), transparent 45%);
    opacity: 0;
    transition: opacity .5s;
    pointer-events: none;
}
.therapy-card:hover {
    --lift: -8px;
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}
.therapy-card:hover::before { transform: scale(9); }
.therapy-card:hover::after { opacity: 1; }

.therapy-card__num {
    position: absolute;
    top: 1.5rem; right: 1.75rem;
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-size: .95rem;
    opacity: .7;
}
.therapy-card__icon {
    display: grid;
    place-items: center;
    width: 64px; height: 64px;
    margin-bottom: 2.5rem;
    border-radius: 50%;
    color: var(--accent-ink);
    transition: transform .6s var(--ease-out);
}
.therapy-card__icon .icon { width: 30px; height: 30px; }
.therapy-card:hover .therapy-card__icon { transform: translateY(-4px) rotate(-6deg); }

.therapy-card__title { font-size: var(--fs-h3); }
.therapy-card__text { margin-top: .75rem; color: var(--muted); font-size: .98rem; }
.therapy-card__more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--accent-ink);
    font-weight: 600;
}
.therapy-card__more .icon { transition: transform var(--dur) var(--ease-out); }
.therapy-card:hover .therapy-card__more .icon { transform: translateX(4px); }

@media (min-width: 640px) { .therapy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .therapy-grid { grid-template-columns: repeat(4, 1fr); } }

/* 10. PROCESO (timeline ligado al scroll) ================================== */
.steps { --progress: 0; position: relative; }
.steps__list { display: grid; gap: 2rem; position: relative; }

/* Línea base + relleno (vertical en móvil, horizontal en escritorio) */
.steps__track {
    position: absolute;
    top: 28px; bottom: 28px;
    left: 27px;
    width: 2px;
    background: rgba(46, 46, 139, .12);
    border-radius: 2px;
}
.steps__fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(var(--primary), var(--teal));
    border-radius: inherit;
    transform-origin: top;
    transform: scaleY(var(--progress));
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1.25rem;
    align-items: start;
}
.step__num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid rgba(46, 46, 139, .15);
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.35rem;
    transition: background-color .7s var(--ease-out), border-color .7s, color .7s, transform .7s var(--ease-out), box-shadow .7s;
}
.step.is-active .step__num {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 0 0 8px rgba(79, 94, 240, .14);
}
.step__body {
    padding: 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.step__label {
    margin-bottom: .35rem;
    color: var(--teal-700);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.step__title { font-size: var(--fs-h3); }
.step__text { margin-top: .6rem; color: var(--muted); }

@media (min-width: 900px) {
    .steps__list { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .steps__track {
        top: 27px; bottom: auto;
        left: 28px; right: calc(33.333% - 28px);
        width: auto; height: 2px;
    }
    .steps__fill {
        background: linear-gradient(90deg, var(--primary), var(--teal));
        transform-origin: left;
        transform: scaleX(var(--progress));
    }
    .step { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* 11. EQUIPO =============================================================== */
.team { display: grid; gap: 1.5rem; }

.avatar {
    display: grid;
    place-items: center;
    width: 72px; height: 72px;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    flex-shrink: 0;
}
.avatar--lg { width: 88px; height: 88px; font-size: 1.9rem; }
.avatar--xl { width: 120px; height: 120px; font-size: 2.6rem; }

.director-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    background: linear-gradient(135deg, var(--tint-lavender), var(--tint-mint));
    border-radius: var(--radius-lg);
}
.director-card .eyebrow { margin-bottom: .4rem; }
.director-card__name { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.director-card__title { margin-top: .25rem; color: var(--navy); font-weight: 600; }
.director-card__text { margin-top: .75rem; color: var(--text); max-width: 34rem; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
}
.team-grid > li { display: flex; }

.member-card {
    --rx: 0deg; --ry: 0deg; --lift: 0px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
    transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .6s;
}
.member-card .avatar {
    margin-bottom: 1.1rem;
    transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out);
}
.member-card:hover { --lift: -6px; border-color: transparent; box-shadow: var(--shadow-lg); }
.member-card:hover .avatar { transform: translateY(-4px) scale(1.05); box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px var(--line); }

.member-card__name { color: var(--navy); font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; }
.member-card__role { margin-top: .3rem; color: var(--muted); font-size: .95rem; }
.member-card__more {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--tint-lavender);
    color: var(--navy);
    transition: background-color .4s, color .4s, transform .6s var(--ease-out);
}
.member-card:hover .member-card__more { background: var(--navy); color: #fff; transform: rotate(45deg); }

@media (min-width: 640px) {
    .director-card { flex-direction: row; align-items: center; }
}
@media (min-width: 1100px) {
    .team { grid-template-columns: .9fr 2.1fr; align-items: stretch; }
    .director-card { flex-direction: column; align-items: flex-start; justify-content: center; }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Modal de especialista (<dialog> nativo: foco atrapado y Esc de serie) */
.member-dialog {
    width: min(92vw, 520px);
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
}
.member-dialog::backdrop {
    background: rgba(46, 46, 139, .28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.member-dialog[open] { animation: dialog-in .55s var(--ease-out); }
.member-dialog[open]::backdrop { animation: fade-in .4s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.member-dialog__close-form { position: absolute; top: 1rem; right: 1rem; margin: 0; }
.member-dialog__close {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--tint-lavender);
    color: var(--navy);
    cursor: pointer;
}
.member-dialog__head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; padding-right: 3rem; }
.member-dialog__name { font-size: 1.6rem; }
.member-dialog__role { margin-top: .25rem; color: var(--muted); }
.member-dialog__bio { margin-bottom: 1.75rem; }

/* 12. TESTS / BLOG ========================================================= */
.tests-grid { display: grid; gap: 1.25rem; }
.test-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.test-card__icon {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    background: var(--tint-mint);
    color: var(--teal-700);
}
.test-card__kicker { color: var(--muted); font-size: .9rem; font-weight: 600; }
.test-card__title { margin-top: .15rem; font-size: 1.75rem; }
.test-card__text { margin: .6rem 0 1.5rem; color: var(--muted); }
.test-card .btn { margin-top: auto; }
.test-card__note { margin-top: .6rem; color: var(--muted); font-size: .85rem; text-align: center; }

@media (min-width: 800px) { .tests-grid { grid-template-columns: repeat(3, 1fr); } }

.carousel-controls { display: flex; gap: .5rem; }

.carousel { margin-inline: calc(var(--gutter) * -1); }
.carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(82%, 360px);
    gap: 1.25rem;
    padding: .5rem var(--gutter) 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: var(--lavender) transparent;
    overscroll-behavior-x: contain;
}
.carousel__track:focus-visible { outline-offset: -3px; }
.carousel__slide { display: flex; scroll-snap-align: start; }

.post-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .6s;
}
.post-card__cover {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.post-card__cover-icon {
    width: 56px; height: 56px;
    color: var(--navy);
    opacity: .75;
    transition: transform 1s var(--ease-out);
}
.tone-cover-coral   { background: radial-gradient(circle at 20% 20%, #FFF4C9, transparent 55%), linear-gradient(135deg, #FBD9D5, #F6C3BE); }
.tone-cover-primary { background: radial-gradient(circle at 80% 20%, var(--yellow), transparent 50%), linear-gradient(135deg, #DADDFB, var(--lavender)); }
.tone-cover-teal    { background: radial-gradient(circle at 20% 80%, #fff, transparent 50%), linear-gradient(135deg, #D6EFEB, var(--mint)); }
.tone-cover-navy    { background: radial-gradient(circle at 70% 70%, var(--mint), transparent 55%), linear-gradient(135deg, var(--lavender), #C9CCF6); }

.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.post-card__meta { display: flex; gap: .5rem; color: var(--muted); font-size: .85rem; }
.post-card__cat { color: var(--teal-700); font-weight: 700; }
.post-card__title {
    margin-top: .5rem;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.25;
}
.post-card__excerpt { margin-top: .5rem; color: var(--muted); font-size: .95rem; }
.post-card__more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    padding-top: 1.25rem;
    color: var(--primary);
    font-weight: 600;
}
.post-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-lg); }
.post-card:hover .post-card__cover-icon { transform: scale(1.15) rotate(-6deg); }

/* 13. CONTACTO / FOOTER ==================================================== */
.contact-band {
    margin: var(--section) clamp(0rem, -1rem + 2vw, 1.25rem) 0;
    padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
    background: var(--navy);
    border-radius: var(--radius-lg);
    color: #E9EAFB;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}
.contact-band::before {
    content: "";
    position: absolute;
    right: -20%; top: -40%;
    width: 70%; aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 94, 240, .55), transparent 65%);
    z-index: -1;
}
.contact-band :focus-visible { outline-color: var(--yellow); }

.contact-band__grid { display: grid; gap: 2.5rem; align-items: center; }
.contact-band__title { color: #fff; font-size: var(--fs-h2); }
.contact-band__lead { margin-top: 1rem; max-width: 32rem; color: #D5D7F6; font-size: var(--fs-lead); }

.contact-list { display: grid; gap: .75rem; margin: 2rem 0 !important; }
.contact-list__item {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}
.contact-list__item small { display: block; color: var(--mint); font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.contact-list__icon {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    transition: background-color .4s, color .4s, transform .5s var(--ease-out);
}
.contact-list__item:hover .contact-list__icon { background: var(--yellow); color: var(--navy); transform: rotate(-8deg); }

.map-card {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
    transition: transform .7s var(--ease-out);
}
.map-card__art { width: 100%; height: auto; aspect-ratio: 4 / 3; transition: transform 1.2s var(--ease-out); }
.map-card__txt text {
    fill: var(--navy);
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .02em;
    paint-order: stroke;
    stroke: #fff;
    stroke-width: 2.5px;
    stroke-linejoin: round;
}
.map-card:hover { transform: translateY(-4px); }
.map-card:hover .map-card__art { transform: scale(1.04); }
.map-card__pulse { transform-box: fill-box; transform-origin: center; animation: pulse 4s var(--ease-soft) infinite; }
@keyframes pulse { 0%, 100% { transform: scale(.8); opacity: .25; } 50% { transform: scale(1.25); opacity: .08; } }

.map-card__label {
    position: absolute;
    left: 1rem; right: 1rem; bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    color: var(--text);
    line-height: 1.35;
}
.map-card__label strong { display: block; color: var(--navy); }
.map-card__label small { color: var(--muted); font-size: .88rem; }
.map-card__icon {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--tint-lavender);
    color: var(--primary);
}
.map-card__go {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    margin-left: auto;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    transition: transform .6s var(--ease-out);
}
.map-card:hover .map-card__go { transform: rotate(45deg); }

@media (min-width: 900px) {
    .contact-band__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.site-footer { padding: clamp(3rem, 2rem + 3vw, 5rem) 0 calc(2rem + var(--mobile-cta-h, 0px)); }
.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 2.5rem 2rem;
}
.site-footer__brand { grid-column: 1 / -1; max-width: 26rem; }
.site-footer__tagline { margin: 1rem 0 1.25rem; color: var(--muted); font-size: .95rem; }
.site-footer__heading { margin-bottom: .75rem; color: var(--navy); font-weight: 700; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer__col a { color: var(--text); font-size: .95rem; text-decoration: none; }
.site-footer__col a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

.social { display: flex; gap: .5rem; }
.social__link {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--navy);
    transition: background-color .4s, color .4s, border-color .4s;
}
.social__link:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .9rem;
}
.site-footer__bottom a { color: inherit; }

@media (min-width: 1100px) {
    .site-footer__grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
    .site-footer__brand { grid-column: auto; }
}

/* 14. CTA PERSISTENTE ====================================================== */
/* Móvil: barra inferior fija */
:root { --mobile-cta-h: 76px; }
.mobile-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .6rem;
    padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(251, 250, 246, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transition: transform .5s var(--ease-out);
    view-transition-name: mobile-cta;
}
.mobile-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 52px;
    padding: 0 1.25rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.mobile-cta__btn--ghost { background: var(--tint-lavender); color: var(--navy); }
.nav-open .mobile-cta { transform: translateY(110%); }

/* Escritorio: botón flotante con opciones */
.fab { display: none; }

@media (min-width: 768px) {
    :root { --mobile-cta-h: 0px; }
    .mobile-cta { display: none; }

    .fab {
        position: fixed;
        right: clamp(1rem, .5rem + 1.5vw, 2rem);
        bottom: clamp(1rem, .5rem + 1.5vw, 2rem);
        z-index: 45;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: .75rem;
        transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), visibility 0s;
        view-transition-name: fab;
    }
    /* Se retira cuando el bloque de contacto está en pantalla (evita duplicar CTA) */
    .fab.is-hidden:not(.is-open) {
        opacity: 0;
        visibility: hidden;
        transform: translateY(16px);
        transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), visibility 0s .5s;
    }

    .fab__button {
        display: inline-flex;
        align-items: center;
        gap: .6rem;
        min-height: 56px;
        padding: 0 1.4rem 0 1.1rem;
        border: 0;
        border-radius: 999px;
        background: var(--primary);
        color: #fff;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 16px 36px -12px rgba(79, 94, 240, .7);
        transition: background-color .4s, transform .5s var(--ease-out), box-shadow .5s;
    }
    .fab__button:hover { background: var(--primary-700); transform: translateY(-3px); }
    .fab__icon { display: grid; }
    .fab__icon--close { display: none; }
    .fab.is-open .fab__button { background: var(--navy); }
    .fab.is-open .fab__icon--open { display: none; }
    .fab.is-open .fab__icon--close { display: grid; }

    .fab__panel {
        width: 320px;
        padding: .75rem;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        transform-origin: bottom right;
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px) scale(.96);
        transition: opacity .4s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s;
    }
    .fab.is-open .fab__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .fab__title { padding: .5rem .75rem .6rem; color: var(--navy); font-weight: 700; }
    .fab__option {
        display: flex;
        align-items: center;
        gap: .85rem;
        padding: .65rem .75rem;
        border-radius: var(--radius-sm);
        color: var(--text);
        text-decoration: none;
        line-height: 1.3;
        transition: background-color .3s;
    }
    .fab__option strong { display: block; color: var(--navy); font-size: .95rem; }
    .fab__option small { color: var(--muted); font-size: .85rem; }
    .fab__option:hover { background: var(--tint-lavender); }
    .fab__option-icon {
        display: grid;
        place-items: center;
        width: 40px; height: 40px;
        flex-shrink: 0;
        border-radius: 50%;
        background: var(--tint-mint);
        color: var(--teal-700);
    }
}

/* 15. CURSOR PERSONALIZADO ================================================= */
/* Lo crea el JS solo en punteros finos y sin reduced-motion. El cursor nativo se
   oculta únicamente mientras el personalizado es visible (html.has-cursor). */
.cursor { display: none; }

@media (pointer: fine) {
    .has-cursor,
    .has-cursor a,
    .has-cursor button,
    .has-cursor [data-cursor] { cursor: none; }
    /* Campos de texto y selección conservan el cursor nativo (precisión) */
    .has-cursor input,
    .has-cursor textarea,
    .has-cursor select,
    .has-cursor [contenteditable] { cursor: auto; }

    .cursor {
        position: fixed;
        top: 0; left: 0;
        z-index: 1000;
        display: block;
        pointer-events: none;
    }

    /* Punto y anillo: SOLO posición (transform desde JS). Sin tamaño propio en el
       anillo, para que nada de lo que cambie su aspecto afecte al desplazamiento. */
    .cursor__dot,
    .cursor__ring {
        position: fixed;
        top: 0; left: 0;
        will-change: transform;
    }
    .cursor__dot {
        width: 8px; height: 8px;
        margin: -4px 0 0 -4px;
        border-radius: 50%;
        background: var(--navy);
        transition: opacity .3s, background-color .25s;
    }
    .cursor__ring { width: 0; height: 0; transition: opacity .3s; }

    /* Círculo visible: centrado sobre el anillo con left/top negativos (no con transform),
       así "scale" encoge desde el centro sin mover el círculo. */
    .cursor__circle {
        --size: 40px;
        position: absolute;
        left: calc(var(--size) / -2);
        top: calc(var(--size) / -2);
        display: grid;
        place-items: center;
        width: var(--size);
        height: var(--size);
        border: 1.5px solid rgba(46, 46, 139, .45);
        border-radius: 50%;
        transition: width .45s var(--ease-out), height .45s var(--ease-out),
                    left .45s var(--ease-out), top .45s var(--ease-out),
                    background-color .45s, border-color .45s,
                    scale .25s var(--ease-out);
    }
    .cursor__label {
        color: #fff;
        font-size: .78rem;
        font-weight: 700;
        letter-spacing: .02em;
        white-space: nowrap;
        opacity: 0;
        transform: scale(.6);
        transition: opacity .3s, transform .45s var(--ease-out);
    }

    /* Estado: enlace/botón genérico */
    .cursor.is-link .cursor__circle { --size: 56px; border-color: var(--primary); background: rgba(79, 94, 240, .08); }
    .cursor.is-link .cursor__dot { background: var(--primary); }

    /* Estado: tarjeta → círculo grande con "Ver más" */
    .cursor.is-card .cursor__circle { --size: 92px; border-color: transparent; background: rgba(46, 46, 139, .88); }
    .cursor.is-card .cursor__dot { opacity: 0; }
    .cursor.is-card .cursor__label { opacity: 1; transform: none; }

    /* Estado: CTA → coral con "Llamar"/"Agendar" */
    .cursor.is-cta .cursor__circle { --size: 80px; border-color: transparent; background: var(--coral-700); }
    .cursor.is-cta .cursor__dot { opacity: 0; }
    .cursor.is-cta .cursor__label { opacity: 1; transform: none; }

    /* Tema oscuro (sobre fondos navy/primary): punto y anillo claros; en tarjeta el círculo
       pasa a blanco con texto navy (>10:1) y en CTA a amarillo con texto navy (>10:1). */
    .cursor--on-dark .cursor__dot { background: var(--yellow); }
    .cursor--on-dark .cursor__circle { border-color: rgba(255, 255, 255, .7); }
    .cursor--on-dark.is-link .cursor__circle { border-color: var(--yellow); background: rgba(245, 238, 142, .14); }
    .cursor--on-dark.is-link .cursor__dot { background: var(--yellow); }
    .cursor--on-dark.is-card .cursor__circle,
    .cursor--on-dark.is-cta .cursor__circle { border-color: transparent; background: #fff; }
    .cursor--on-dark.is-cta .cursor__circle { background: var(--yellow); }
    .cursor--on-dark.is-card .cursor__label,
    .cursor--on-dark.is-cta .cursor__label { color: var(--navy); }

    /* Clic: el círculo se encoge en su sitio (y vuelve con la misma transición al soltar) */
    .cursor.is-pressed .cursor__circle { scale: .85; }

    .cursor.is-hidden .cursor__dot,
    .cursor.is-hidden .cursor__ring { opacity: 0; }
}

/* 16. PÁGINAS INTERNAS ===================================================== */
.page-hero {
    position: relative;
    padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(2.5rem, 2rem + 3vw, 4rem);
    isolation: isolate;
}
.page-hero__title { font-size: var(--fs-h1); max-width: 20ch; animation: fade-up 1s var(--ease-out) both; }
.page-hero__lead { max-width: 40rem; margin-top: 1.25rem; color: var(--muted); font-size: var(--fs-lead); animation: fade-up 1s var(--ease-out) .15s both; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem !important;
}
.link-grid > li { display: flex; }
.link-card {
    --rx: 0deg; --ry: 0deg; --lift: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.4rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-decoration: none;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
    transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.link-card:hover { --lift: -5px; box-shadow: var(--shadow-lg); }

.notice {
    display: grid;
    gap: 1.25rem;
    align-items: center;
    padding: 1.75rem;
    background: var(--tint-lavender);
    border-radius: var(--radius-lg);
}
.notice__icon {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--navy);
}
.notice__title { color: var(--navy); font-weight: 700; }
@media (min-width: 800px) { .notice { grid-template-columns: auto 1fr auto; } }

.debug { margin-top: 2.5rem; padding: 1.5rem; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.debug__file { color: var(--muted); font-size: .9rem; }
.debug pre { margin-top: 1rem; padding: 1rem; background: var(--navy); color: #E9EAFB; border-radius: var(--radius-sm); overflow-x: auto; font-size: .8rem; }

/* 17. PÁGINA DE CONTACTO =================================================== */
.contact-page__grid { display: grid; gap: 2.5rem; align-items: start; }

.contact-form-card {
    padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.contact-form-card__title { font-size: var(--fs-h2); }
.contact-form-card__lead { margin: .75rem 0 1.75rem; color: var(--muted); font-size: var(--fs-lead); }

.contact-form { display: grid; gap: 1.4rem; }
.contact-form[hidden], .form-success[hidden], .form-alert[hidden] { display: none; }
.contact-form__note { margin: 0; color: var(--muted); font-size: .9rem; }

.field { display: grid; align-content: start; gap: .45rem; min-width: 0; }
.field-row { display: grid; align-items: start; gap: 1.4rem; }
.field__label { color: var(--navy); font-weight: 600; font-size: .98rem; }
.field__label [aria-hidden="true"] { color: var(--coral-700); }
.field__optional { color: var(--muted); font-weight: 500; }

.field__control {
    width: 100%;
    min-height: 52px;
    padding: .8rem 1rem;
    background: var(--bg);
    border: 1.5px solid var(--muted);   /* 5.9:1: borde de campo legible (UI >= 3:1) */
    border-radius: var(--radius-sm);
    color: var(--text);
    font: inherit;
    line-height: 1.4;
    transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .3s;
}
.field__control--area { min-height: 9rem; resize: vertical; }
.field__control:hover { border-color: var(--navy); }
.field__control:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
    background: var(--surface);
}
.field__control[aria-invalid="true"] { border-color: var(--coral-700); background: #FDECEA; }

.field__select { position: relative; }
.field__select select { appearance: none; -webkit-appearance: none; padding-right: 3rem; cursor: pointer; }
.field__select .icon { position: absolute; right: 1rem; top: 50%; translate: 0 -50%; color: var(--navy); pointer-events: none; }

.field__hint { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.field__hint--row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; }
.field__counter { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.field__counter.is-near { color: var(--coral-700); font-weight: 600; }

.field__error {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    margin: 0;
    color: var(--coral-700);   /* 5.3:1 sobre blanco */
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.4;
}
.field__error[hidden] { display: none; }
.field__error .icon { margin-top: .1em; }

/* Casilla de autorización: objetivo táctil >= 44px */
.check { display: flex; align-items: flex-start; gap: .85rem; }
.check__input {
    appearance: none; -webkit-appearance: none;
    flex-shrink: 0;
    width: 28px; height: 28px;
    margin: .1rem 0 0;
    background: var(--bg);
    border: 1.5px solid var(--muted);
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.check__input::after {
    content: "";
    width: 7px; height: 13px;
    margin-top: -2px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    rotate: 45deg;
    scale: 0;
    transition: scale .3s var(--ease-out);
}
.check__input:checked { background: var(--primary); border-color: var(--primary); }
.check__input:checked::after { scale: 1; }
.check__input:hover { border-color: var(--navy); }
.check__input[aria-invalid="true"] { border-color: var(--coral-700); background: #FDECEA; }
.check__input:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.check__label { padding-block: .3rem; font-size: .95rem; line-height: 1.5; cursor: pointer; }
.check__label a { color: var(--primary); text-underline-offset: 3px; }
.check__label a:hover { color: var(--primary-700); }

/* Honeypot: fuera de pantalla (nunca display:none) */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.contact-form__actions { display: grid; gap: 1rem; justify-items: start; }
.contact-form__privacy { margin: 0; color: var(--muted); font-size: .85rem; max-width: 34rem; }
.contact-form [data-submit] { width: 100%; }
.contact-form [data-submit][aria-disabled="true"] { opacity: .75; cursor: progress; transform: none; }
.contact-form [data-submit][aria-disabled="true"]:hover { background: var(--primary); box-shadow: none; }

/* Resultado del envío */
.form-alert {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: #FDECEA;
    border: 1.5px solid var(--coral-700);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
}
.form-alert .icon { margin-top: .15em; color: var(--coral-700); }
.form-alert p { margin: 0; }
.form-alert a { color: var(--navy); font-weight: 700; }

.form-success {
    display: grid;
    justify-items: start;
    gap: .75rem;
    padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
    background: var(--tint-mint);
    border-radius: var(--radius);
    animation: fade-up .9s var(--ease-out) both;
}
.form-success:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: var(--radius); }
.form-success__icon {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--navy);
}
.form-success__icon .icon { width: 1.6rem; height: 1.6rem; }
.form-success__title { font-size: var(--fs-h3); }
.form-success p { margin: 0; }
.form-success__alt { color: var(--muted); font-size: .95rem; }
.form-success__alt a { color: var(--navy); font-weight: 700; }
.form-success .btn { margin-top: .5rem; }

/* Otras vías de contacto */
.contact-aside__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.contact-aside__lead { margin: .75rem 0 1.5rem; color: var(--muted); }

.contact-methods { display: grid; gap: .75rem; }
.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 64px;
    padding: .8rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--navy);
    font-style: normal;
    text-decoration: none;
    word-break: break-word;
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s;
}
a.contact-method:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--lavender); }
.contact-method small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.contact-method strong { display: block; font-size: 1.05rem; }
.contact-method address { font-style: normal; color: var(--text); font-size: .95rem; line-height: 1.5; }
.contact-method address strong { color: var(--navy); }
.contact-method--static { align-items: flex-start; }
.contact-method__icon {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--tint-lavender);
    color: var(--primary);
    transition: background-color .4s, color .4s, transform .5s var(--ease-out);
}
a.contact-method:hover .contact-method__icon { background: var(--yellow); color: var(--navy); transform: rotate(-8deg); }

.contact-aside__map { margin-top: 1.5rem; }
.contact-aside__map .map-card { box-shadow: var(--shadow); }
.contact-aside__social { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.contact-aside__social-title { margin: 0; color: var(--navy); font-weight: 700; }

@media (min-width: 768px) {
    .field-row { grid-template-columns: 1fr 1fr; }
    .contact-form [data-submit] { width: auto; }
}
@media (min-width: 1100px) {
    .contact-page__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3.5rem; }
    .contact-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* TRANSICIONES DE PÁGINA ==================================================
   View Transitions API entre documentos (Chrome/Edge 126+, Safari 18.2+).
   Navegadores sin soporte simplemente cargan la página como siempre. */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out .35s var(--ease-soft) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* MOVIMIENTO REDUCIDO =====================================================
   Público potencialmente en momentos de ansiedad: si el sistema lo pide,
   se elimina todo movimiento no esencial (CLAUDE.md §6). */
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
    .blob, .hero-art__float, .hero-art__orbit, .map-card__pulse { animation: none !important; }
    .marker { background-size: 100% 100%; }
}

/* 18. TERAPIAS (páginas internas) ========================================== */
/* El tono de cada terapia llega con .tone-* (--tint, --accent, --accent-ink). */

/* Hero de terapia: icono grande con anillo suave (decorativo) */
.therapy-hero__grid { display: grid; gap: 2rem; align-items: center; }
.therapy-hero__title { max-width: 24ch; }
.therapy-hero__art {
    position: relative;
    display: none;
    place-items: center;
    width: clamp(180px, 22vw, 280px);
    aspect-ratio: 1;
    justify-self: center;
}
.therapy-hero__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--tint);
    box-shadow: inset 0 0 0 1.5px var(--accent);
}
.therapy-hero__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent-ink);
    box-shadow: var(--shadow);
}
.therapy-hero__icon .icon { width: 50%; height: 50%; }
@media (min-width: 900px) {
    .therapy-hero__grid { grid-template-columns: 1fr auto; gap: 3rem; }
    .therapy-hero__art { display: grid; }
}

/* Bloques en dos columnas (título a la izquierda, contenido a la derecha) */
.t-split { display: grid; gap: 1.5rem; }
.t-split > :first-child .section-title { max-width: 14ch; }
.t-split .section-lead { max-width: 28rem; }
@media (min-width: 900px) {
    .t-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 4rem; align-items: start; }
}
.t-band { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.t-prose { display: grid; gap: 1.1rem; max-width: 40rem; font-size: var(--fs-lead); }
.t-prose p { margin: 0; }

/* Tarjetas de público / principios */
.t-cards { display: grid; gap: 1rem; }
.t-card {
    position: relative;
    padding: 1.5rem 1.5rem 1.6rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent, var(--primary));
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.t-card__num { display: block; margin-bottom: .5rem; color: var(--accent-ink, var(--primary)); font-family: var(--font-display); font-size: .95rem; }
.t-card__title { font-size: var(--fs-h3); }
.t-card__text { margin: .5rem 0 0; color: var(--muted); }
@media (min-width: 768px) { .t-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .t-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

/* Áreas de trabajo */
.focus-grid { display: grid; gap: 1rem; }
.focus-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.35rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.focus-item__dot {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--tint);
    color: var(--accent-ink);
}
.focus-item__title { font-size: 1.1rem; }
.focus-item__text { margin: .3rem 0 0; color: var(--muted); font-size: .96rem; }
@media (min-width: 640px) { .focus-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .focus-grid { grid-template-columns: repeat(3, 1fr); } }

/* Señales: lista visual con marca de verificación */
.signal-list { display: grid; gap: .75rem; }
.signal {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
}
.signal__icon {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--tint);
    color: var(--accent-ink);
}
.signal__icon .icon { width: 1.1rem; height: 1.1rem; }

/* Pasos de una sesión */
.session-steps { display: grid; gap: 1rem; }
.session-step {
    padding: 1.4rem 1.5rem 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.session-step__num {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    margin-bottom: .9rem;
    border-radius: 50%;
    background: var(--tint, var(--tint-lavender));
    box-shadow: inset 0 0 0 2px var(--accent, var(--primary));
    color: var(--accent-ink, var(--navy));
    font-family: var(--font-display);
    font-size: 1.2rem;
}
.session-step__title { font-size: var(--fs-h3); }
.session-step__text { margin: .45rem 0 0; color: var(--muted); }
@media (min-width: 768px) { .session-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .session-steps { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } }

/* FAQ accesible con <details>/<summary> nativo */
.faq { display: grid; gap: .75rem; }
.faq__item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: box-shadow .4s var(--ease-out), border-color .4s;
}
.faq__item[open] { border-color: var(--lavender); box-shadow: var(--shadow-sm); }
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 56px;
    padding: .9rem 1.25rem;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q .icon { transition: transform .4s var(--ease-out); }
.faq__item[open] .faq__q .icon { transform: rotate(180deg); }
.faq__q:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.faq__a { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--text); max-width: 42rem; }

/* Enlaces relacionados */
.related-list { display: grid; gap: .75rem; }
.related-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
    padding: 1.1rem 1.35rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--navy);
    text-decoration: none;
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s;
}
.related-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--lavender); }
.related-link .icon { transition: transform var(--dur) var(--ease-out); }
.related-link:hover .icon { transform: translateX(4px); }
.related-link__title { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.related-link__text { display: block; margin-top: .2rem; color: var(--muted); font-size: .95rem; }
@media (min-width: 900px) { .related-list { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }

/* "Otras terapias": 3 tarjetas reutilizando .therapy-card */
.therapy-grid--3 .therapy-card__icon { margin-bottom: 1.5rem; }
@media (min-width: 640px) { .therapy-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* CTA final */
.cta-panel {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    padding: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
    background: var(--tint-lavender);
    border-radius: var(--radius-lg);
}
.therapy-page .cta-panel { background: var(--tint); }
.cta-panel__title { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); }
.cta-panel__text { margin: .75rem 0 0; max-width: 34rem; color: var(--text); font-size: var(--fs-lead); }
.cta-panel .btn { justify-self: start; }
@media (min-width: 900px) { .cta-panel { grid-template-columns: 1fr auto; gap: 3rem; } }
.t-cta-wrap { padding-bottom: 0; }

/* Hub: 4 tarjetas ampliadas */
.hub-grid { display: grid; gap: 1.25rem; }
.hub-grid > li { display: flex; }
.hub-card {
    --rx: 0deg; --ry: 0deg; --lift: 0px;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
    transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .6s;
}
.hub-card:hover, .hub-card:focus-within { --lift: -6px; box-shadow: var(--shadow-lg); border-color: var(--accent); }
.hub-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.hub-card__icon {
    display: grid;
    place-items: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--tint);
    color: var(--accent-ink);
    transition: transform .6s var(--ease-out);
}
.hub-card__icon .icon { width: 30px; height: 30px; }
.hub-card:hover .hub-card__icon { transform: rotate(-6deg) translateY(-3px); }
.hub-card__num { color: var(--accent-ink); font-family: var(--font-display); opacity: .75; }
.hub-card__title { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.hub-card__link { color: inherit; text-decoration: none; }
.hub-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* toda la tarjeta es clicable */
.hub-card__link:focus-visible { outline: none; }
.hub-card:has(.hub-card__link:focus-visible) { outline: 3px solid var(--primary); outline-offset: 3px; }
.hub-card__summary { margin: .75rem 0 0; color: var(--text); }
.hub-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0 !important; }
.hub-card__tags li {
    padding: .25rem .8rem;
    background: var(--tint);
    border-radius: 999px;
    color: var(--navy);
    font-size: .85rem;
    font-weight: 600;
}
.hub-card__points { display: grid; gap: .5rem; margin: 1.1rem 0 0 !important; color: var(--text); font-size: .96rem; }
.hub-card__points li { display: flex; gap: .6rem; align-items: flex-start; }
.hub-card__check { color: var(--accent-ink); margin-top: .15em; }
.hub-card__more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--accent-ink);
    font-weight: 600;
}
.hub-card__more .icon { transition: transform var(--dur) var(--ease-out); }
.hub-card:hover .hub-card__more .icon { transform: translateX(4px); }
@media (min-width: 768px) { .hub-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }

/* Hub: guía "¿No sabes por dónde empezar?" (filas grandes, claras en móvil) */
.guide-list { display: grid; gap: .65rem; }
.guide-row {
    display: grid;
    gap: .5rem;
    min-height: 64px;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 5px solid var(--accent);
    border-radius: var(--radius);
    color: var(--navy);
    text-decoration: none;
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.guide-row:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.guide-row__need { font-weight: 600; line-height: 1.35; }
.guide-row__to { display: flex; align-items: center; gap: .6rem; color: var(--accent-ink); font-weight: 600; font-size: .95rem; }
.guide-row__to > .icon:last-child { margin-left: auto; transition: transform var(--dur) var(--ease-out); }
.guide-row:hover .guide-row__to > .icon:last-child { transform: translateX(4px); }
.guide-row__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); }
.guide-row__icon .icon { width: 1.1rem; height: 1.1rem; }
@media (min-width: 640px) {
    .guide-row { grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; }
    .guide-row__to > .icon:last-child { margin-left: .25rem; }
}

/* 19. TRASTORNOS Y EVALUACIONES ============================================ */
/* Reutiliza .therapy-hero, .t-split, .t-cards, .signal-list, .session-steps, .faq, .hub-card, .guide-row (sección 18).
   Evaluaciones: lenguaje "de valoración" (lista de verificación, línea de tiempo, entregables).
   Trastornos por edad: acordeones calmados y aviso sereno. */

/* Evaluación: áreas evaluadas como lista de verificación */
.area-list { display: grid; gap: .85rem; }
.area-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem 1.3rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.area-item__check {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--tint);
    box-shadow: inset 0 0 0 1.5px var(--accent);
    color: var(--accent-ink);
}
.area-item__check .icon { width: 1.15rem; height: 1.15rem; }
.area-item__title { font-size: 1.1rem; }
.area-item__text { margin: .3rem 0 0; color: var(--muted); font-size: .96rem; }
@media (min-width: 768px) { .area-list { grid-template-columns: repeat(2, 1fr); } }

/* Evaluación: proceso en línea de tiempo vertical */
.timeline { position: relative; display: grid; gap: 1.5rem; }
.timeline::before {
    content: "";
    position: absolute;
    left: 21px; top: 22px; bottom: 22px;
    width: 2px;
    background: var(--line);
}
.timeline__item { position: relative; display: flex; gap: 1.1rem; align-items: flex-start; }
.timeline__num {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: inset 0 0 0 2px var(--accent, var(--primary));
    color: var(--accent-ink, var(--navy));
    font-family: var(--font-display);
    font-size: 1.15rem;
}
.timeline__body { padding-top: .35rem; }
.timeline__title { font-size: var(--fs-h3); }
.timeline__text { margin: .4rem 0 0; color: var(--muted); max-width: 36rem; }

/* Evaluación: "¿Qué recibes al final?" destacado */
.deliver {
    display: grid;
    gap: 1.5rem;
    padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
    background: var(--tint);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-lg);
}
.deliver__head { display: flex; align-items: center; gap: 1rem; }
.deliver__icon {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent-ink);
    box-shadow: var(--shadow-sm);
}
.deliver__icon .icon { width: 1.6rem; height: 1.6rem; }
.deliver__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.deliver__list { display: grid; gap: .75rem; }
.deliver__list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--text); font-size: 1.02rem; }
.deliver__check { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--surface); color: var(--accent-ink); }
.deliver__check .icon { width: 1rem; height: 1rem; }
@media (min-width: 900px) { .deliver__list { grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; } }

/* Evaluación: cómo prepararse */
.prepare-list { display: grid; gap: .6rem; }
.prepare-list li {
    padding: .9rem 1.2rem .9rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent, var(--lavender));
    border-radius: var(--radius-sm);
    color: var(--text);
}

/* Trastornos por edad: condición como acordeón nativo */
.cond-list { display: grid; gap: .75rem; }
.cond {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: box-shadow .4s var(--ease-out), border-color .4s;
}
.cond[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.cond__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 60px;
    padding: .9rem 1.25rem;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
}
.cond__summary::-webkit-details-marker { display: none; }
.cond__summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.cond__summary .icon { transition: transform .4s var(--ease-out); }
.cond[open] .cond__summary .icon { transform: rotate(180deg); }
.cond__name { font-size: 1.2rem; }
.cond__body { padding: 0 1.25rem 1.4rem; }
.cond__text { margin: 0; color: var(--text); max-width: 40rem; }
.cond__label {
    margin: 1.2rem 0 .5rem;
    color: var(--accent-ink);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.cond__signs { display: grid; gap: .4rem; color: var(--text); }
.cond__signs li { position: relative; padding-left: 1.2rem; }
.cond__signs li::before {
    content: "";
    position: absolute;
    left: 0; top: .6em;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
.cond__links { display: flex; flex-wrap: wrap; gap: .5rem; }
.cond-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: .4rem 1rem;
    background: var(--tint);
    border-radius: 999px;
    color: var(--navy);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .3s, transform .3s var(--ease-out);
}
.cond-chip--eval { background: var(--tint-lavender); }
.cond-chip:hover { background: var(--yellow); transform: translateY(-2px); }
.cond-chip .icon { width: 1.1rem; height: 1.1rem; }

/* Aviso sereno: visible pero no dominante (sin rojo ni iconos de alarma) */
.calm-note {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: clamp(1.25rem, 1rem + 1.2vw, 1.9rem);
    background: var(--tint-lavender);
    border-left: 4px solid var(--lavender);
    border-radius: var(--radius);
}
.calm-note__icon {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--navy);
}
.calm-note__title { font-size: 1.2rem; }
.calm-note__text { margin: .4rem 0 0; color: var(--text); max-width: 46rem; }
.calm-note-wrap { padding-block: clamp(1rem, 1rem + 1vw, 2rem); }

/* Hub: comparación entre evaluaciones (apiladas en móvil, 2 columnas desde 768px) */
.compare { display: grid; gap: 1rem; }
.compare__col {
    display: flex;
    flex-direction: column;
    padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 5px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.compare__title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); }
.compare__list { display: grid; gap: 1rem; margin: 1.1rem 0 0; }
.compare__list dt { color: var(--accent-ink); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.compare__list dd { margin: .25rem 0 0; color: var(--text); }
.compare__link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 44px;
    margin-top: auto;
    padding-top: 1.25rem;
    color: var(--accent-ink);
    font-weight: 600;
    text-decoration: none;
}
.compare__link .icon { transition: transform var(--dur) var(--ease-out); }
.compare__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.compare__link:hover .icon { transform: translateX(4px); }
@media (min-width: 768px) { .compare { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }

/* SOBRE NOSOTROS (home) ===================================================== */
/* Capítulo nuevo: bloque azul marino con esquinas redondeadas; el logo va en tarjeta blanca. */
.about { overflow: hidden; }
.about--navy {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-lg);
    margin-inline: clamp(0rem, -1rem + 2vw, 1.25rem);
}
.about--navy::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: var(--primary);
    opacity: .45;
    pointer-events: none;
}
.about--navy > .container { position: relative; }
.about--navy .eyebrow { color: var(--yellow); }
.about--navy .section-title { color: #fff; }
.about--navy :focus-visible { outline-color: var(--yellow); }
.about__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: center; }
.about__lead { max-width: 36rem; color: #E9EAFB; }
.about__director { margin-top: 1.25rem; max-width: 36rem; color: #E9EAFB; }
.about__director strong { color: #fff; }
.about__area,
.about__area:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
    cursor: default;
    transform: none;
}
.about__cta { margin-top: 2rem; }

.about__visual { display: grid; place-items: center; }
.logo-slot {
    margin: 0;
    display: grid;
    place-items: center;
    width: min(100%, 26rem);
    aspect-ratio: 4 / 3;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform .6s var(--ease-out);
}
.logo-slot:hover { transform: translateY(-4px); }
.logo-slot img { width: 100%; height: 100%; object-fit: contain; }
.logo-slot.is-empty { border: 2px dashed var(--lavender); }
.logo-slot__ph {
    display: grid;
    justify-items: center;
    gap: .35rem;
    text-align: center;
    color: var(--navy);
    font-weight: 600;
}
.logo-slot__ph .icon { width: 36px; height: 36px; color: var(--primary); }
.logo-slot__ph small { color: var(--muted); font-weight: 500; font-size: .85rem; }

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}
.facts__item {
    display: flex;
    flex-direction: column-reverse;
    gap: .25rem;
    padding: 1.1rem;
    background: var(--tint-lavender);
    border-radius: var(--radius);
}
.facts__item:nth-child(even) { background: var(--tint-mint); }
.facts dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.6rem);
    line-height: 1.1;
    color: var(--navy);
}
.facts dt { color: var(--muted); font-size: .9rem; }
@media (max-width: 479px) { .facts { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1.05fr 1fr; } }

/* 20. SOBRE NOSOTROS ======================================================= */
.sn-page { --subnav-h: 56px; }

/* Anclas: el header (scroll-padding de html) + la subnavegación no tapan el destino */
.sn-section[id],
.member-card[id] { scroll-margin-top: var(--subnav-h); }

.sn-hero__grid { display: grid; gap: 2rem; align-items: center; }
.sn-hero__title { max-width: 18ch; }
.sn-hero__art { display: none; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 559px) {
    .stats--3 { grid-template-columns: 1fr; }
    .stats--3 .stats__item { flex-direction: row-reverse; align-items: baseline; justify-content: space-between; }
}
@media (min-width: 900px) {
    .sn-hero__grid { grid-template-columns: 1.2fr .8fr; gap: 3rem; }
    .sn-hero__art { display: block; width: 100%; max-width: 420px; justify-self: end; }
}

/* Ilustración: colores solo desde la paleta */
.sn-art__a { fill: var(--lavender); }
.sn-art__b { fill: var(--mint); }
.sn-art__c { fill: var(--bg); }
.sn-art__sun { fill: var(--yellow); }
.sn-art__wave1, .sn-art__wave2 { fill: none; stroke-width: 9; stroke-linecap: round; }
.sn-art__wave1 { stroke: var(--primary); }
.sn-art__wave2 { stroke: var(--turquoise); }
.sn-art__dot--1 { fill: var(--coral); }
.sn-art__dot--2 { fill: var(--primary); }
.sn-art__dot--3 { fill: var(--teal); }
.sn-art__dot--4 { fill: var(--navy); }

/* Subnavegación sticky bajo el header; se desplaza en horizontal en móvil */
.subnav {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    background: rgba(251, 250, 246, .94);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-block: 1px solid var(--line);
}
.subnav__inner {
    min-height: var(--subnav-h, 56px);
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav__list { display: flex; gap: .4rem; white-space: nowrap; }
.subnav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .4rem 1.1rem;
    border-radius: 999px;
    color: var(--navy);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
}
.subnav__link:hover { background: var(--tint-lavender); }
.subnav__link[aria-current="true"] { background: var(--navy); color: var(--surface); }
@media (max-width: 639px) {
    .subnav__inner {
        -webkit-mask-image: linear-gradient(90deg, black calc(100% - 28px), transparent);
        mask-image: linear-gradient(90deg, black calc(100% - 28px), transparent);
    }
}

.sn-block { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.section-head--sm { margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.sn-subtitle { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem); }

/* ¿Quiénes somos? */
.sn-about { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .sn-about { grid-template-columns: 1.15fr 1fr; gap: 4rem; } }

.sn-history {
    padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
    background: linear-gradient(135deg, var(--tint-lavender), var(--tint-mint));
    border-radius: var(--radius-lg);
}
.sn-history__line { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.sn-history__node { display: flex; flex-direction: column; gap: .15rem; flex-shrink: 0; }
.sn-history__node small { color: var(--muted); font-size: .85rem; }
.sn-history__node strong {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem);
    font-weight: 500;
    line-height: 1;
}
.sn-history__node--now { text-align: right; }
.sn-history__rail {
    position: relative;
    flex: 1;
    height: 2px;
    margin-top: 1.1rem;
    background: rgba(46, 46, 139, .15);
    border-radius: 2px;
}
.sn-history__rail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--primary), var(--teal));
    border-radius: inherit;
    transform-origin: left;
    transition: transform 1.6s var(--ease-soft) .4s;
}
.js [data-reveal]:not(.is-visible) .sn-history__rail::after { transform: scaleX(0); }
.sn-history__title { font-size: var(--fs-h3); }
.sn-history__text { margin-top: .6rem; color: var(--text); }

.sn-duo { display: grid; gap: 1rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.sn-duo__card {
    padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.sn-duo__icon {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--tint);
    color: var(--accent-ink);
}
.sn-duo__title { font-size: var(--fs-h3); margin-bottom: .5rem; }
.sn-duo__card p:last-child { color: var(--text); }
@media (min-width: 768px) { .sn-duo { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }

.sn-areas { display: grid; gap: 1rem; }
.sn-area {
    padding: 1.5rem;
    background: var(--tint);
    border-radius: var(--radius);
}
.sn-area__icon {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent-ink);
    box-shadow: var(--shadow-sm);
}
.sn-area__icon .icon { width: 26px; height: 26px; }
.sn-area__name { font-size: 1.25rem; }
.sn-area__text { margin-top: .5rem; color: var(--text); font-size: .98rem; }
.sn-areas__more { margin-top: 1.75rem; }
@media (min-width: 640px) { .sn-areas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sn-areas { grid-template-columns: repeat(4, 1fr); } }

.sn-values { display: grid; gap: 1rem; }
.sn-value {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.sn-value__icon {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--tint-mint);
    color: var(--teal-700);
}
.sn-value__icon .icon { width: 1.1rem; height: 1.1rem; }
.sn-value__title { font-size: 1.1rem; }
.sn-value__text { margin-top: .25rem; color: var(--muted); font-size: .96rem; }
@media (min-width: 640px) { .sn-values { grid-template-columns: repeat(2, 1fr); } }

.sn-foundation {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
    background: var(--navy);
    color: var(--tint-lavender);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.sn-foundation :focus-visible { outline-color: var(--yellow); }
.sn-foundation .eyebrow { margin-bottom: .6rem; }
.sn-foundation__icon {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--navy);
}
.sn-foundation__icon .icon { width: 26px; height: 26px; }
.sn-foundation__title { color: var(--surface); font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2rem); max-width: 28ch; }
.sn-foundation__text { margin-top: .9rem; max-width: 40rem; color: var(--tint-lavender); }
@media (min-width: 768px) { .sn-foundation { flex-direction: row; align-items: center; gap: 2rem; } }

/* Equipo */
.director-card--wide { margin-bottom: 1.5rem; background: var(--surface); box-shadow: var(--shadow-sm); }
@media (min-width: 1100px) {
    .director-card--wide { flex-direction: row; align-items: center; }
}
.director-card__body .director-card__text + .director-card__text { margin-top: .6rem; }

.team-grid--full { grid-template-columns: 1fr; }
@media (min-width: 640px) { .team-grid--full { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .team-grid--full { grid-template-columns: repeat(3, 1fr); } }

.member-card--full[data-member] { cursor: pointer; }
.member-card--full .member-card__name { font-size: 1.3rem; }
.member-card__area { margin-top: .3rem; color: var(--teal-700); font-weight: 700; font-size: .95rem; }
.member-card__bio { margin-top: .85rem; color: var(--text); font-size: .98rem; }
.member-card:target { box-shadow: 0 0 0 3px var(--lavender), var(--shadow-lg); border-color: transparent; }

.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.tag {
    padding: .2rem .7rem;
    background: var(--tint-lavender);
    border-radius: 999px;
    color: var(--navy);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Botón "Ver ficha": solo con JS (sin JS la tarjeta ya muestra toda su info); cubre la tarjeta entera */
.member-card__open { display: none; }
.js .member-card__open {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 44px;
    margin-top: auto;
    padding: .9rem 0 0;
    border: 0;
    background: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
}
.js .member-card__open::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
}
.js .member-card__open:focus-visible { outline: none; }
.js .member-card__open:focus-visible::after { outline: 3px solid var(--primary); outline-offset: -3px; }
.js .member-card--full .member-card__bio {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}
.member-card__open .icon { transition: transform .5s var(--ease-out); }
.member-card:hover .member-card__open .icon { transform: translate(2px, -2px); }

.member-dialog--rich { width: min(92vw, 560px); max-height: 90vh; overflow-y: auto; }
.member-dialog__tags { margin: 0 0 1.25rem; }
.member-dialog__role { color: var(--teal-700); font-weight: 700; }

.sn-note {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    max-width: 46rem;
    margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
    padding: 1.1rem 1.3rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.sn-note__icon {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--navy);
}
.sn-note a { color: var(--primary); font-weight: 700; white-space: nowrap; }

/* Proceso: detalle ampliado por paso */
.step__details { display: grid; gap: .55rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.step__details li { display: flex; gap: .65rem; align-items: flex-start; color: var(--text); font-size: .96rem; }
.step__check {
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    margin-top: .12rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--tint-mint);
    color: var(--teal-700);
}
.step__check .icon { width: .8rem; height: .8rem; }
.sn-page .step__body { height: 100%; }
