/* ==========================================================================
   Asociación Anadahata — hoja de estilos
   Mobile-first. Puntos de corte (rem = 16px de referencia del navegador):
     40rem  = 640px    móvil grande
     64rem  = 1024px   tablet horizontal / escritorio estándar
     120rem = 1920px   Full HD
     160rem = 2560px   QHD / ultra wide
     200rem = 3200px   ultra wide 3440×1440
   ========================================================================== */

/* ---------- Fuentes (autohospedadas: sin peticiones a terceros) ---------- */
@font-face {
    font-family: "Nunito";
    src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Fredoka";
    src: url("../fonts/fredoka-latin-wght-normal.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
    --ink: #1f3a5f;
    --text: #40546d;
    --muted: #64768d;

    --blue: #3d74b6;
    --sky: #9cc3f0;
    --green: #7dd3bf;
    --orange: #f6b26b;
    --pink: #f4b6c6;
    --yellow: #f8e28f;
    --lav: #c9b9ee;

    --blue-soft: #dbe9f9;
    --green-soft: #d8f2ea;
    --orange-soft: #fde8d0;
    --pink-soft: #fce0e8;
    --yellow-soft: #fdf3c9;
    --lav-soft: #ebe4f9;

    --bg: #fffaf5;
    --paper: #ffffff;
    --line: #c9d8ea;

    --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: "Fredoka", "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;

    --gutter: clamp(1.25rem, 4.5vw, 3rem);
    --container: 78rem;
    --radius: 2rem;
    --shadow: 0 24px 60px -34px rgba(31, 58, 95, 0.45);
}

/* Escalado para pantallas grandes: todo va en rem, así crece de forma proporcional */
@media (min-width: 120rem) {
    html {
        font-size: 112.5%;
    }
}

@media (min-width: 160rem) {
    html {
        font-size: 131.25%;
    }

    :root {
        --container: 90rem;
    }
}

@media (min-width: 200rem) {
    html {
        font-size: 150%;
    }
}

/* ---------- Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    position: relative;
    overflow-x: clip;
    font-family: var(--font-body);
    font-size: clamp(1.0625rem, 1.02rem + 0.18vw, 1.1875rem);
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg {
    max-width: 100%;
    height: auto;
}

[hidden] {
    display: none !important;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.005em;
    text-wrap: balance;
    margin: 0 0 0.6em;
}

h1 {
    font-size: clamp(2.05rem, 1.35rem + 2.7vw, 3.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.6rem);
}

h3 {
    font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.55rem);
}

p {
    margin: 0 0 1.1em;
    text-wrap: pretty;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--blue);
    text-underline-offset: 0.2em;
    text-decoration-thickness: 0.09em;
}

a:hover {
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
    border-radius: 0.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

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

.lead {
    font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
    line-height: 1.55;
    color: var(--text);
}

.big {
    font-size: clamp(1.2rem, 1.1rem + 0.55vw, 1.5rem);
    line-height: 1.55;
    color: var(--ink);
    font-weight: 600;
}

.prose-wide {
    max-width: 68ch;
}

.split {
    display: grid;
    gap: clamp(1.25rem, 4vw, 4rem);
    align-items: start;
}

@media (min-width: 52rem) {
    .split {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    }
}

/* ---------- Iconos ---------- */
.icon {
    width: 1.4rem;
    height: 1.4rem;
    flex: none;
}

.icon--lg {
    width: 2.4rem;
    height: 2.4rem;
}

.icon--xl {
    width: 3.2rem;
    height: 3.2rem;
}

.icon--quote {
    width: 2.6rem;
    height: 2.6rem;
    fill: currentColor;
    stroke: none;
}

/* ---------- Fondo pastel (manchas de color detrás de la cabecera) ---------- */
.bg-blobs {
    position: absolute;
    inset: 0 0 auto 0;
    height: 70rem;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(34rem 20rem at 4% 0%, rgba(248, 226, 143, 0.6), transparent 70%),
    radial-gradient(34rem 20rem at 38% -3%, rgba(244, 182, 198, 0.55), transparent 70%),
    radial-gradient(34rem 20rem at 68% -2%, rgba(125, 211, 191, 0.5), transparent 70%),
    radial-gradient(30rem 24rem at 100% 6%, rgba(156, 195, 240, 0.65), transparent 70%),
    radial-gradient(28rem 26rem at 0% 46%, rgba(156, 195, 240, 0.35), transparent 70%),
    radial-gradient(28rem 26rem at 100% 62%, rgba(125, 211, 191, 0.3), transparent 70%);
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.7rem 1.6rem;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.06rem;
    line-height: 1.2;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 18px -10px rgba(31, 58, 95, 0.55);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -10px rgba(31, 58, 95, 0.55);
}

.btn--blue {
    background: var(--blue);
    color: #fff;
}

.btn--blue:hover {
    color: #fff;
    background: #336aa8;
}

.btn--green {
    background: var(--green);
}

.btn--orange {
    background: var(--orange);
}

.btn--lg {
    min-height: 3.4rem;
    padding-inline: 2.2rem;
    font-size: 1.15rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
    color: var(--blue);
    text-decoration: none;
    border-bottom: 3px solid var(--sky);
    padding-bottom: 0.1rem;
}

.link-arrow:hover {
    border-color: var(--blue);
}

/* ==========================================================================
   Cabecera
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 250, 245, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px -20px rgba(31, 58, 95, 0.5);
}

.topbar {
    position: relative;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem var(--gutter);
}

.brand {
    text-decoration: none;
    display: inline-block;
    line-height: 1;
}

.brand-row {
    display: none;
}

.nav-toggle, .search-toggle {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 6px 14px -8px rgba(31, 58, 95, 0.55);
}

.nav-toggle {
    margin-left: auto;
}

.nav-toggle .icon--close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon--open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon--close {
    display: block;
}

.no-js .search-toggle, .no-js .nav-toggle {
    display: none;
}

/* Menú móvil desplegable */
.nav {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% + 0.25rem);
    background: #fff;
    border-radius: 1.75rem;
    padding: 0.75rem;
    box-shadow: var(--shadow);
}

.js .nav {
    display: none;
}

.js .nav.is-open {
    display: block;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.15rem;
}

.nav a {
    display: block;
    padding: 0.85rem 1.1rem;
    border-radius: 1.1rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
}

.nav a:hover {
    background: var(--blue-soft);
}

.nav a[aria-current="page"] {
    background: var(--yellow-soft);
    box-shadow: inset 0.3rem 0 0 var(--orange);
}

.search-panel {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% + 0.25rem);
    z-index: 5;
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem;
    background: #fff;
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.search-panel[hidden] {
    display: none;
}

.search-panel input {
    flex: 1;
    min-width: 0;
    font: inherit;
    color: var(--ink);
    border: 0;
    background: transparent;
    padding: 0.4rem 1rem;
}

.search-panel input:focus-visible {
    outline: none;
}

.search-panel:focus-within {
    box-shadow: 0 0 0 3px var(--ink), var(--shadow);
}

/* Escritorio: menú centrado, logo debajo (como en el diseño del cliente) */
@media (min-width: 64rem) {
    .site-header {
        position: relative;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
    }

    .brand--compact, .nav-toggle {
        display: none;
    }

    .topbar__inner {
        justify-content: center;
        padding-top: 1.6rem;
        padding-bottom: 0;
    }

    .nav, .js .nav {
        position: static;
        display: block;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .nav ul {
        display: flex;
        gap: clamp(1rem, 2.8vw, 3.25rem);
    }

    .nav a {
        padding: 0.4rem 0.15rem;
        border-radius: 0;
        font-size: 0.98rem;
        background: transparent;
        border-bottom: 3px solid transparent;
    }

    .nav a:hover {
        background: transparent;
        border-bottom-color: var(--sky);
    }

    .nav a[aria-current="page"] {
        background: transparent;
        box-shadow: none;
        border-bottom-color: var(--orange);
    }

    .search-toggle {
        position: absolute;
        right: var(--gutter);
        top: 1.2rem;
        width: 2.75rem;
        height: 2.75rem;
        background: rgba(255, 255, 255, 0.85);
    }

    .search-panel {
        left: 50%;
        right: auto;
        width: min(34rem, calc(100% - 2 * var(--gutter)));
        transform: translateX(-50%);
    }

    .brand-row {
        display: block;
        text-align: center;
        padding: clamp(0.75rem, 1.5vw, 1.5rem) var(--gutter) 0;
    }

}

/* ==========================================================================
   Secciones genéricas
   ========================================================================== */
.section {
    padding-block: clamp(2.5rem, 6vw, 6rem);
}

.section--tint {
    background: linear-gradient(180deg, #f2f8fe, #f7f3fd);
    border-radius: clamp(1.75rem, 5vw, 4.5rem);
    margin-inline: clamp(0.5rem, 2vw, 2.5rem);
}

.section-head {
    max-width: 52rem;
    margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}

.section-head .lead {
    margin-top: 0.25rem;
}

/* Cabecera de páginas interiores */
.page-hero {
    padding-block: clamp(1rem, 3vw, 2.5rem) 0;
    --tone: var(--blue-soft);
}

.page-hero--blue {
    --tone: var(--blue-soft);
}

.page-hero--green {
    --tone: var(--green-soft);
}

.page-hero--orange {
    --tone: var(--orange-soft);
}

.page-hero--pink {
    --tone: var(--pink-soft);
}

.page-hero--lav {
    --tone: var(--lav-soft);
}

.page-hero .wrap {
    background: var(--tone);
    border-radius: clamp(2rem, 5vw, 4rem);
    padding: clamp(2rem, 5.5vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 0.35em;
}

.page-hero .lead {
    max-width: 44rem;
    margin-inline: auto;
    color: var(--ink);
}

/* ==========================================================================
   Inicio: hero
   ========================================================================== */
.hero {
    padding-block: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 4vw, 3.5rem);
}

.hero__grid {
    display: grid;
    gap: clamp(1.75rem, 4vw, 4rem);
    align-items: center;
}

.hero__text h1 {
    max-width: 20ch;
}

.hero__text .lead {
    max-width: 30rem;
    margin-bottom: 1.75rem;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__media {
    width: min(100%, 28rem);
    margin-inline: auto;
}

.hero__circle {
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: clamp(6px, 0.9vw, 12px) solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 30px 70px -30px rgba(61, 116, 182, 0.55);
    background: var(--yellow-soft);
}

.hero__circle img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 56rem) {
    .hero__grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    }

    .hero__media {
        width: 100%;
        max-width: 36rem;
        justify-self: end;
    }
}

/* Un único momento orquestado al cargar: el texto del hero entra escalonado */
@media (prefers-reduced-motion: no-preference) {
    .hero__text > *, .hero__circle {
        animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .hero__text h1 {
        animation-delay: 0.05s;
    }

    .hero__text .lead {
        animation-delay: 0.16s;
    }

    .hero__text .btn-row {
        animation-delay: 0.28s;
    }

    .hero__circle {
        animation-delay: 0.2s;
        animation-name: pop;
    }

    @keyframes rise {
        from {
            opacity: 0;
            transform: translateY(1rem);
        }
    }
    @keyframes pop {
        from {
            opacity: 0;
            transform: scale(0.94);
        }
    }
}

/* ---------- Tarjetas "nube" ---------- */
.clouds {
    padding-bottom: clamp(1rem, 3vw, 3rem);
}

.clouds__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(1rem, 2.4vw, 2.5rem);
}

@media (min-width: 40rem) {
    .clouds__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.cloud {
    --tone: linear-gradient(160deg, #d6e6fa, #a9cdf2);
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: clamp(15rem, 21vw, 22rem);
    height: 100%;
    padding: 1.5rem 1rem 1.6rem;
    text-decoration: none;
    color: var(--ink);
    text-align: center;
}

.cloud--orange {
    --tone: linear-gradient(160deg, #fde9d2, #f8c993);
}

.cloud--green {
    --tone: linear-gradient(160deg, #d8f3ea, #a8e1d0);
}

.cloud__blob {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--tone);
    border-radius: 54% 46% 50% 50% / 52% 48% 52% 48%;
    transition: border-radius 0.5s ease, transform 0.3s ease;
}

.cloud:nth-child(1) .cloud__blob {
    border-radius: 52% 48% 56% 44% / 56% 44% 52% 48%;
}

.cloud:hover .cloud__blob {
    border-radius: 46% 54% 44% 56% / 50% 54% 46% 50%;
    transform: scale(1.02);
}

.cloud:focus-visible {
    outline-offset: 6px;
    border-radius: 3rem;
}

.cloud__medal {
    display: grid;
    place-items: center;
    width: clamp(7.5rem, 11vw, 11rem);
    aspect-ratio: 1;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 24px -14px rgba(31, 58, 95, 0.5);
    margin-bottom: -1.1rem;
    position: relative;
    z-index: 1;
}

.illu {
    width: 88%;
    height: auto;
}

.cloud__label {
    position: relative;
    z-index: 2;
    max-width: 92%;
    background: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.25rem);
    line-height: 1.25;
    color: var(--ink);
    box-shadow: 0 10px 24px -14px rgba(31, 58, 95, 0.5);
}

/* ---------- Bloque de presentación + valores ---------- */
.intro__grid {
    display: grid;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

@media (min-width: 60rem) {
    .intro__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.values {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 40rem) {
    .values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .values--row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.value {
    --tone: var(--blue-soft);
    background: var(--tone);
    border-radius: 1.75rem 1.75rem 1.75rem 0.5rem;
    padding: 1.4rem 1.5rem 1.5rem;
}

.value h3 {
    margin-bottom: 0.3em;
}

.value p {
    margin: 0;
    color: var(--ink);
}

.value--pink {
    --tone: var(--pink-soft);
}

.value--green {
    --tone: var(--green-soft);
}

.value--yellow {
    --tone: var(--yellow-soft);
}

.value--blue {
    --tone: var(--blue-soft);
}

.neuro .section-head {
    margin-inline: auto;
    text-align: center;
}

.chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.chip {
    --tone: var(--blue-soft);
    display: inline-flex;
    align-items: center;
    min-height: 3.2rem;
    padding: 0.7rem 1.7rem;
    background: var(--tone);
    color: var(--ink);
    border-radius: 999px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.12rem;
    transition: transform 0.16s ease;
}

.chip:hover {
    color: var(--ink);
    transform: translateY(-2px);
}

.chip--blue {
    --tone: #cfe3fa;
}

.chip--orange {
    --tone: #fbd9b0;
}

.chip--lav {
    --tone: #dfd4f6;
}

.chip--pink {
    --tone: #f9cbd8;
}

/* ---------- Banda de cierre ---------- */
.cta-band {
    padding-block: clamp(2.5rem, 5vw, 5rem);
}

.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2.5rem;
    background: linear-gradient(120deg, #d3e5fa, #d8f2ea 70%, #fdf0c9);
    border-radius: clamp(2rem, 5vw, 3.5rem);
    padding: clamp(1.75rem, 4.5vw, 3.75rem);
}

.cta-band__text {
    margin: 0;
    max-width: 34ch;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.3rem);
    line-height: 1.2;
}

/* ==========================================================================
   Quiénes somos
   ========================================================================== */
.duo {
    display: grid;
    gap: clamp(1rem, 2.5vw, 2rem);
}

@media (min-width: 52rem) {
    .duo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.panel {
    --tone: var(--green-soft);
    background: var(--tone);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3.5vw, 3rem);
}

.panel--green {
    --tone: var(--green-soft);
}

.panel--lav {
    --tone: var(--lav-soft);
}

.panel p {
    color: var(--ink);
}

.panel--center {
    text-align: center;
}

.panel--center > * {
    margin-inline: auto;
    max-width: 48rem;
}

.pullquote {
    position: relative;
    margin: clamp(1.75rem, 4vw, 3rem) 0 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.5rem, 4vw, 3.5rem);
}

.pullquote .icon--quote {
    color: var(--orange);
    margin-bottom: 0.25rem;
}

.pullquote p {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--ink);
    font-size: clamp(1.25rem, 1.05rem + 1vw, 1.9rem);
    line-height: 1.35;
    text-wrap: balance;
}

.pullquote--big {
    text-align: center;
}

.pullquote--big .icon--quote {
    margin-inline: auto;
    display: block;
    color: var(--pink);
}

/* Línea de tiempo */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
    position: relative;
}

.tl {
    display: grid;
    gap: 0.9rem;
}

.tl__mark span {
    --tone: var(--pink);
    display: inline-block;
    background: var(--tone);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.2;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
}

.tl__mark--pink span {
    --tone: var(--pink);
}

.tl__mark--green span {
    --tone: var(--green);
}

.tl__mark--orange span {
    --tone: var(--orange);
}

.tl__mark--blue span {
    --tone: var(--sky);
}

.tl__body {
    background: #fff;
    border-radius: var(--radius);
    padding: clamp(1.4rem, 3.5vw, 2.75rem);
    box-shadow: var(--shadow);
}

.tl__body h3 {
    font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
}

.tl__cols {
    display: grid;
    gap: 1.75rem;
    align-items: start;
}

@media (min-width: 52rem) {
    .timeline::before {
        content: "";
        position: absolute;
        left: 4.4rem;
        top: 1rem;
        bottom: 1rem;
        width: 0.3rem;
        border-radius: 1rem;
        background: repeating-linear-gradient(to bottom, var(--lav) 0 0.7rem, transparent 0.7rem 1.4rem);
    }

    .tl {
        grid-template-columns: 9rem minmax(0, 1fr);
        gap: 1.5rem;
    }

    .tl__mark {
        position: relative;
        z-index: 1;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 1.6rem;
    }

    .tl__mark span {
        text-align: center;
        box-shadow: 0 0 0 0.5rem var(--bg);
    }

    .section--tint .tl__mark span {
        box-shadow: 0 0 0 0.5rem #f5f5fd;
    }

    .tl__cols {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        gap: 2.5rem;
    }

    .tl__cols--flip {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    }

    .tl__cols--flip > :last-child {
        order: -1;
    }
}

.photo {
    margin: 0;
}

.photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 1.75rem;
}

.photo figcaption {
    margin-top: 0.6rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.photo__ph {
    aspect-ratio: 4 / 5;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.3rem;
    text-align: center;
    padding: 1rem;
    border: 3px dashed var(--sky);
    border-radius: 1.75rem;
    color: #4a6a92;
    background: repeating-linear-gradient(45deg, #f6faff 0 0.9rem, #edf4fc 0.9rem 1.8rem);
}

.photo__ph span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--ink);
}

.photo__ph small {
    font-size: 0.85rem;
    max-width: 18ch;
    line-height: 1.35;
}

.photo__file {
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    opacity: 0.75;
}

/* ==========================================================================
   TDAH y TEA
   ========================================================================== */
.neuro-grid {
    display: grid;
    gap: clamp(1rem, 2.5vw, 2rem);
}

@media (min-width: 52rem) {
    .neuro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .neuro-card--wide {
        grid-column: 1 / -1;
    }
}

.neuro-card {
    --tone: var(--blue-soft);
    background: var(--tone);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3.2vw, 2.75rem);
}

.neuro-card--blue {
    --tone: #dbe9f9;
}

.neuro-card--orange {
    --tone: #fde8d0;
}

.neuro-card--lav {
    --tone: #ebe4f9;
}

.neuro-card--pink {
    --tone: #fce0e8;
}

.neuro-card p {
    color: var(--ink);
}

@media (min-width: 52rem) {
    .neuro-card--split {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
        gap: 1rem 3rem;
        align-items: start;
    }

    .neuro-card--split h2 {
        margin: 0;
    }
}

.note {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1.25rem;
    padding: 1rem 1.25rem;
    font-size: 0.98em;
}

.defs {
    display: grid;
    gap: 0.8rem;
    margin: 1.25rem 0 0;
}

.defs > div {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1.25rem;
    padding: 1rem 1.25rem;
}

.defs dt {
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.15rem;
}

.defs dd {
    margin: 0;
    color: var(--text);
}

.defs--cols {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

/* ==========================================================================
   Servicios, calendario, colaborar
   ========================================================================== */
.services {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(1rem, 2.5vw, 2rem);
}

.service {
    --tone: var(--blue-soft);
    display: grid;
    gap: 1.25rem;
    align-items: center;
    justify-items: start;
    background: var(--tone);
    border-radius: clamp(2rem, 5vw, 3.5rem);
    padding: clamp(1.25rem, 3.5vw, 2.75rem);
}

.service--blue {
    --tone: #d6e6fa;
}

.service--orange {
    --tone: #fde4c8;
}

.service--green {
    --tone: #d3f1e8;
}

.service__art {
    display: grid;
    place-items: center;
    width: clamp(8rem, 22vw, 14rem);
    aspect-ratio: 1;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 12px 28px -16px rgba(31, 58, 95, 0.55);
}

.service__body {
    display: grid;
    gap: 1rem;
    justify-items: start;
}

.service__body h2 {
    margin: 0;
}

@media (min-width: 44rem) {
    .service {
        grid-template-columns: clamp(9rem, 20vw, 14rem) minmax(0, 1fr);
        gap: clamp(1.5rem, 4vw, 3.5rem);
    }

    .service:nth-child(even) {
        grid-template-columns: minmax(0, 1fr) clamp(9rem, 20vw, 14rem);
    }

    .service:nth-child(even) .service__art {
        order: 2;
    }
}

.pending {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
    padding: 0.75rem 1rem;
    max-width: 40rem;
    background: rgba(255, 255, 255, 0.65);
    border: 2px dashed rgba(31, 58, 95, 0.3);
    border-radius: 1.1rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--ink);
}

.pending__dot {
    flex: none;
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.4em;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 3px rgba(248, 226, 143, 0.5);
}

.empty {
    max-width: 42rem;
    margin-inline: auto;
    text-align: center;
    background: #fff;
    border-radius: clamp(2rem, 5vw, 3.5rem);
    box-shadow: var(--shadow);
    padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem);
}

.empty__icon {
    display: grid;
    place-items: center;
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1.25rem;
    background: var(--lav-soft);
    color: var(--ink);
    border-radius: 50%;
}

.empty p {
    max-width: 34rem;
    margin-inline: auto;
    margin-bottom: 1.5rem;
}

.results {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.results a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--ink);
    text-decoration: none;
}

.results a:hover {
    background: var(--yellow-soft);
}

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact {
    display: grid;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: start;
}

@media (min-width: 60rem) {
    .contact {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    }

    .contact__side {
        position: sticky;
        top: 2rem;
    }
}

.contact__form {
    background: #fff;
    border-radius: clamp(2rem, 5vw, 3rem);
    box-shadow: var(--shadow);
    padding: clamp(1.4rem, 4vw, 3rem);
}

.field {
    margin-bottom: 1.3rem;
}

.field label {
    display: block;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.field label small {
    font-weight: 600;
    color: var(--muted);
}

.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
    display: block;
    width: 100%;
    min-height: 3.1rem;
    padding: 0.8rem 1.05rem;
    font: inherit;
    color: var(--ink);
    background: #fbfdff;
    border: 2px solid var(--line);
    border-radius: 1.1rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.field textarea {
    resize: vertical;
    min-height: 9rem;
}

.field input:hover, .field textarea:hover {
    border-color: #a9c1de;
}

.field input:focus, .field textarea:focus {
    border-color: var(--blue);
    background: #fff;
}

.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
    border-color: #c2410c;
    background: #fff8f4;
}

.field--check input[aria-invalid="true"] {
    outline: 3px solid #c2410c;
    outline-offset: 2px;
}

.field__error {
    margin: 0.4rem 0 0;
    color: #9a3412;
    font-weight: 700;
    font-size: 0.95rem;
}

.field__error:empty {
    display: none;
}

.field-row {
    display: grid;
    gap: 0;
}

@media (min-width: 40rem) {
    .field-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

.field--check {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
    align-items: start;
}

.field--check input {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0.2rem 0 0;
    accent-color: var(--blue);
}

.field--check label {
    font-weight: 600;
    margin: 0;
}

.field--check .field__error {
    grid-column: 1 / -1;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 1.25rem;
    font-weight: 700;
}

.form-status p {
    margin: 0;
}

.form-status.is-ok {
    background: var(--green-soft);
    color: #0e5b47;
}

.form-status.is-error {
    background: #fde5d8;
    color: #8a2d0a;
}

.form-status small {
    font-weight: 600;
    opacity: 0.85;
    word-break: break-word;
}

#submit-btn[disabled] {
    opacity: 0.7;
    cursor: progress;
    transform: none;
}

/* ==========================================================================
   Pie
   ========================================================================== */
.site-footer {
    margin-top: clamp(1rem, 3vw, 3rem);
    background: linear-gradient(180deg, #e6f0fa, #e0eefa);
    border-radius: clamp(2rem, 6vw, 5rem) clamp(2rem, 6vw, 5rem) 0 0;
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

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

.site-footer__inner {
    display: grid;
    gap: 2rem;
    padding-bottom: clamp(1.75rem, 4vw, 3rem);
}

@media (min-width: 56rem) {
    .site-footer__inner {
        grid-template-columns: 1.3fr 1fr 1fr;
        gap: 3rem;
        align-items: start;
    }
}

.brand__logo {
    display: block;
    width: auto;
}

.brand--compact .brand__logo {
    height: 2.75rem;
}

.brand-row .brand__logo {
    height: clamp(4.5rem, 7vw, 7rem);
    margin-inline: auto;
}

.brand--footer .brand__logo {
    height: 4.5rem;
}

.footer-about p {
    margin-top: 0.9rem;
    max-width: 34ch;
    color: var(--ink);
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.15rem;
}

.footer-nav a {
    display: inline-block;
    padding: 0.3rem 0;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-decoration-thickness: 3px;
    text-underline-offset: 0.25em;
}

.footer-cta p {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-block: 1.25rem 1.75rem;
    border-top: 2px solid rgba(31, 58, 95, 0.12);
    font-size: 0.95rem;
}

.site-footer__legal p {
    margin: 0;
}

.site-footer__legal a {
    color: var(--ink);
    font-weight: 700;
}

/* ---------- Impresión ---------- */
@media print {
    .bg-blobs, .site-header, .cta-band, .site-footer__inner .footer-cta {
        display: none !important;
    }

    body {
        background: #fff;
    }
}

.footer-contact {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: inherit;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-contact .icon {
    width: 1.1rem;
    height: 1.1rem;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
