/* Brainy — estilos de la web. Todos los valores vienen de tokens.css. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
[data-theme] { background: var(--surface); color: var(--ink); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--brand-orange); color: var(--brand-charcoal); padding: 12px 20px; border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container-max) + 2 * var(--gutter)); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(64px, 8vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 96px); }
.section--alt { background: var(--surface-alt); }
.stack-48 { display: grid; gap: var(--space-48); }
.stack-32 { display: grid; gap: var(--space-32); }
.stack-24 { display: grid; gap: var(--space-24); }
.stack-16 { display: grid; gap: var(--space-16); }

/* ---------- Tipografía ---------- */
.t-display { font-family: var(--font-display); font-size: var(--fs-display); line-height: 0.95; font-weight: 500; letter-spacing: -0.02em; }
.t-h1 { font-size: var(--fs-h1); line-height: 0.95; letter-spacing: -0.02em; }
.t-h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.01em; }
.t-h3 { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.005em; }
.t-subtitle-lg { font-family: var(--font-display); font-size: var(--fs-subtitle-lg); line-height: 1.1; font-weight: 700; font-variation-settings: "opsz" 24; }
.t-subtitle { font-family: var(--font-display); font-size: var(--fs-subtitle); line-height: 1.2; font-weight: 700; font-variation-settings: "opsz" 24; }
.t-body-lg { font-size: var(--fs-body-lg); line-height: 1.4; max-width: var(--measure); }
.t-muted { color: var(--ink-muted); }
.t-caption { font-size: var(--fs-caption); line-height: 1.35; color: var(--ink-muted); }
.hi { color: var(--accent); }
.eyebrow { font-family: var(--font-body); font-size: var(--fs-body-sm); line-height: 1.2; font-weight: 500; letter-spacing: 0.01em; color: var(--ink-muted); display: flex; align-items: center; gap: var(--space-8); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* Apertura de sección (como las páginas del manual: título 1/3, texto 2/3) */
.heading { display: grid; gap: var(--space-24); margin-bottom: clamp(40px, 5vw, 64px); }
.heading__title { display: grid; gap: var(--space-16); }
.heading--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-48); align-items: end; }
@media (max-width: 860px) { .heading--split { grid-template-columns: 1fr; gap: var(--space-24); } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8); min-height: 48px; padding: 12px 26px; border-radius: var(--radius-pill); border: 1.5px solid transparent; font-family: var(--font-display); font-size: 1rem; line-height: 1.2; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out; white-space: nowrap; }
.btn--lg { min-height: 54px; padding: 14px 32px; font-size: 1.0625rem; }
.btn--primary { background: var(--surface-inverse); color: var(--ink-inverse); border-color: var(--surface-inverse); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { background: var(--surface-inverse); color: var(--ink-inverse); border-color: var(--surface-inverse); }
.btn--accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--surface-inverse); color: var(--ink-inverse); border-color: var(--surface-inverse); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-16); align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--space-8); font-family: var(--font-display); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
.link-arrow::after { content: "→"; transition: transform .2s ease-out; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--surface); color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .2s ease-out; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--brand-yankee-blue); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-32); min-height: var(--header-h); }
.site-header__brand { display: block; flex: none; color: var(--ink); }
.site-header__brand svg { height: 34px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: clamp(20px, 2.6vw, 36px); }
.site-nav a { font-family: var(--font-display); font-size: 1rem; font-weight: 600; text-decoration: none; padding-block: 8px; border-bottom: 1.5px solid transparent; transition: border-color .2s ease-out; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.site-header__cta { flex: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); padding: 8px 18px; font-family: var(--font-display); font-weight: 600; cursor: pointer; }
@media (max-width: 1100px) {
  .site-header__brand svg { height: 28px; }
  .nav-toggle { display: block; }
  .site-nav, .site-header__cta { display: none; }
  .site-header.is-open .site-nav { display: block; position: absolute; inset: 100% 0 auto; background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--space-16) max(var(--gutter), env(safe-area-inset-right, 0px)) var(--space-32) max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .site-header.is-open .site-nav ul { flex-direction: column; gap: 0; }
  .site-header.is-open .site-nav a { display: block; padding-block: 14px; font-size: 1.375rem; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero de inicio (Mockup 02) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--brand-coral-teal); }
.hero__wheel { position: absolute; z-index: -1; top: 50%; left: -46%; width: 92%; aspect-ratio: 1; border-radius: 50%; background: var(--brand-yankee-blue); transform: translateY(-50%); }
.hero__media { position: absolute; z-index: 0; right: 0; bottom: 0; width: 54%; height: 100%; pointer-events: none; }
.hero__media img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; }
.hero__inner { position: relative; z-index: 1; min-height: clamp(560px, 46vw, 720px); display: flex; align-items: center; padding-block: var(--space-64) var(--space-96); }
.hero__content { max-width: 560px; display: grid; gap: var(--space-24); }
.hero__title { font-size: var(--fs-display); line-height: 0.95; letter-spacing: -0.02em; }
.hero__lead { font-size: var(--fs-body-lg); line-height: 1.4; max-width: 42ch; }
.hero__content .btn-row { margin-top: var(--space-8); }
@media (max-width: 900px) {
  .hero { background: var(--brand-yankee-blue); }
  .hero__wheel { display: none; }
  .hero__inner { min-height: 0; padding-block: var(--space-48) var(--space-32); }
  .hero__media { position: relative; width: 100%; height: clamp(300px, 70vw, 440px); background: var(--brand-coral-teal); }
  .hero__media img { object-position: center bottom; }
}

/* Hero de páginas interiores */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-48); align-items: end; padding-block: clamp(56px, 7vw, 112px) clamp(56px, 6vw, 96px); }
.page-hero__text { display: grid; gap: var(--space-24); }
.page-hero__aside { justify-self: end; max-width: 420px; }
.page-hero--media .page-hero__inner { align-items: center; padding-bottom: 0; }
.page-hero__figure { position: relative; align-self: end; justify-self: end; width: min(100%, 460px); aspect-ratio: 1 / 1.05; }
.page-hero__figure img { position: absolute; z-index: 1; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; width: auto; max-width: none; }
@media (max-width: 860px) {
  .page-hero__inner { grid-template-columns: 1fr; gap: var(--space-32); }
  .page-hero__aside { justify-self: start; }
  .page-hero__figure { justify-self: center; width: min(100%, 340px); }
}

/* La mancha: el símbolo ampliado, girado y desplazado */
.mancha { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.mancha svg { position: absolute; height: auto; color: var(--brand-orange); }

/* ---------- Follow the spend ---------- */
.spend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-48); align-items: center; }
.spend__list { display: grid; gap: var(--space-8); }
.spend__list li { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1; font-weight: 500; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: var(--space-24); border-bottom: 1px solid var(--line); padding-block: var(--space-12) var(--space-16); }
.spend__list li:last-child { border-bottom: 0; }
.spend__list span { font-family: var(--font-body); font-size: var(--fs-body-sm); letter-spacing: 0; color: var(--ink-muted); width: 6.5em; flex: none; }
@media (max-width: 860px) { .spend { grid-template-columns: 1fr; } .spend__list span { width: 5.5em; } }

/* ---------- Recorrido (timeline de una historia) ---------- */
.story { display: grid; gap: var(--space-32); }
.story__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-48); align-items: end; }
.story__who { display: flex; align-items: center; gap: var(--space-16); }
.story__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-inverse); color: var(--ink-inverse); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; flex: none; }
.story__name { font-family: var(--font-display); font-size: var(--fs-subtitle); font-weight: 700; font-variation-settings: "opsz" 24; line-height: 1.15; }
.story__meta { font-size: var(--fs-body-sm); color: var(--ink-muted); }
@media (max-width: 860px) { .story__head { grid-template-columns: 1fr; gap: var(--space-16); } }

.journey { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: var(--space-16); overflow-x: auto; padding: var(--space-32) 0 var(--space-16); scroll-snap-type: x mandatory; scrollbar-width: thin; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--space-32) + 7px); height: 2px; background: var(--line); min-width: 100%; }
.journey__step { position: relative; scroll-snap-align: start; display: grid; align-content: start; gap: var(--space-8); padding-top: var(--space-32); }
.journey__step::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-inverse); box-shadow: 0 0 0 4px var(--surface-alt); }
.section:not(.section--alt) .journey__step::before { box-shadow: 0 0 0 4px var(--surface); }
.journey__when { font-size: var(--fs-caption); color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.journey__channel { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; font-variation-settings: "opsz" 24; line-height: 1.15; }
.journey__text { font-size: var(--fs-body-sm); line-height: 1.45; }
.journey__step--end::before { background: var(--accent); }
.story__close { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-24); border-top: 1px solid var(--line); padding-top: var(--space-24); }
.story__close p { font-family: var(--font-display); font-size: var(--fs-subtitle); font-weight: 700; font-variation-settings: "opsz" 24; line-height: 1.2; max-width: 40ch; }

/* ---------- Método: 5 etapas ---------- */
.method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.method__tabs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.method__tab { display: grid; grid-template-columns: 3rem 1fr; align-items: baseline; gap: var(--space-16); width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: var(--space-16) 0; cursor: pointer; font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; line-height: 1.1; color: var(--ink-muted); transition: color .2s ease-out; }
.method__tab span { font-family: var(--font-body); font-size: var(--fs-body-sm); font-weight: 500; }
.method__tab:hover { color: var(--ink); }
.method__tab[aria-selected="true"] { color: var(--ink); }
.method__tab[aria-selected="true"] span { color: var(--accent); }
.method__panel { background: var(--surface-alt); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); display: grid; gap: var(--space-24); min-height: 100%; }
.method__panel h3 { font-size: var(--fs-h2); line-height: 1; }
.method__panel .moment { border-top: 1px solid var(--line); padding-top: var(--space-24); display: grid; gap: var(--space-8); }
.method__step-count { font-size: var(--fs-body-sm); color: var(--ink-muted); }
@media (max-width: 860px) { .method { grid-template-columns: 1fr; } }

/* ---------- Tarjetas ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .cards, .cards--2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards--4 { grid-template-columns: 1fr; } }
.card { background: var(--surface-alt); border-radius: var(--radius-md); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: var(--space-16); min-width: 0; }
.section--alt .card { background: var(--surface); }
.card--dark { background: var(--surface); }
.card__num { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink-muted); }
.card__title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.1; font-weight: 500; }
.card__foot { margin-top: auto; padding-top: var(--space-16); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: var(--fs-body-sm); line-height: 1.2; }
.chip--solid { background: var(--surface-inverse); color: var(--ink-inverse); border-color: var(--surface-inverse); }
.icon-dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-inverse); color: var(--ink-inverse); flex: none; }
.icon-dot svg { width: 24px; height: 24px; }

/* ---------- Gráficos ---------- */
.chart { display: grid; gap: var(--space-16); min-width: 0; }
.chart__title { font-size: var(--fs-body-sm); color: var(--ink-muted); }
.bars { display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); align-items: end; gap: clamp(6px, 1.2vw, 14px); height: 280px; border-bottom: 1.5px solid var(--line-strong); }
.bar { position: relative; height: calc(var(--v) * 1%); min-height: 3px; background: var(--surface-inverse); border-radius: 6px 6px 0 0; }
.bar--hi { background: var(--accent); }
.bar__val { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-weight: 600; font-size: clamp(0.6875rem, 0.6rem + 0.3vw, 0.875rem); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bars__labels { display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); gap: clamp(6px, 1.2vw, 14px); font-size: var(--fs-caption); color: var(--ink-muted); text-align: center; font-variant-numeric: tabular-nums; }
.chart-scroll { overflow-x: auto; }
.chart-scroll > * { min-width: 420px; }

.stat { display: grid; gap: var(--space-4); }
.stat__value { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 0.95; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--fs-body-sm); color: var(--ink-muted); }

.stacked { display: grid; gap: var(--space-12); }
.stacked__row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); align-items: center; gap: var(--space-16); }
.stacked__bar { display: flex; height: 40px; border-radius: var(--radius-sm); overflow: hidden; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-body-sm); font-variant-numeric: tabular-nums; }
.stacked__bar span { display: flex; align-items: center; padding-inline: 12px; }
.stacked__a { background: var(--brand-yankee-blue); color: var(--brand-warm-stone); }
.stacked__b { background: var(--brand-orange); color: var(--brand-charcoal); justify-content: flex-end; }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-24); font-size: var(--fs-body-sm); }
.legend span { display: inline-flex; align-items: center; gap: var(--space-8); }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
@media (max-width: 560px) { .stacked__row { grid-template-columns: 1fr; gap: var(--space-8); } }

.grouped { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-32); }
.grouped__chart { display: grid; gap: var(--space-12); }
.grouped__plot { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16); height: 220px; }
.grouped__plot::after { content: ""; position: absolute; left: 0; right: 0; bottom: var(--zero, 30%); height: 1.5px; background: var(--line-strong); }
.gbar { position: relative; }
.gbar i { position: absolute; left: 12%; right: 12%; border-radius: 6px; background: var(--surface-inverse); }
.gbar--total i { background: var(--accent); }
.gbar b { position: absolute; left: 0; right: 0; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-body-sm); font-variant-numeric: tabular-nums; }
.grouped__labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16); text-align: center; font-size: var(--fs-caption); color: var(--ink-muted); }
@media (max-width: 640px) { .grouped { grid-template-columns: 1fr; } }

/* ---------- Casos ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.case + .case { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 96px); margin-top: clamp(48px, 6vw, 96px); }
.case__text { display: grid; gap: var(--space-24); align-content: start; }
.case__tag { display: flex; align-items: center; gap: var(--space-12); font-size: var(--fs-body-sm); color: var(--ink-muted); }
.case__tag b { font-family: var(--font-display); color: var(--ink); font-size: 1rem; }
.case__list { display: grid; gap: var(--space-12); }
.case__list li { display: grid; grid-template-columns: 4.25rem 1fr; gap: var(--space-12); font-size: var(--fs-body-sm); line-height: 1.45; padding-bottom: var(--space-12); border-bottom: 1px solid var(--line); }
.case__list li:last-child { border-bottom: 0; }
.case__list b { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.case__list--plain li { grid-template-columns: 1.25rem 1fr; }
.case__list--plain li::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--accent); }
.case__figure { background: var(--surface-alt); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 48px); display: grid; gap: var(--space-32); min-width: 0; }
.section--alt .case__figure { background: var(--surface); }
.note { font-size: var(--fs-caption); color: var(--ink-muted); line-height: 1.4; }
@media (max-width: 960px) { .case { grid-template-columns: 1fr; } }

/* Índice de historias */
.story-index { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.story-index a { text-decoration: none; }
.story-index a:hover .chip { border-color: var(--line-strong); }

/* ---------- Bloque CTA ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-48); align-items: end; padding-top: clamp(64px, 8vw, 128px); }
.cta-band__text { display: grid; gap: var(--space-24); padding-bottom: clamp(64px, 8vw, 128px); }
.cta-band__figure { position: relative; align-self: end; justify-self: end; width: min(100%, 440px); aspect-ratio: 1 / 1.1; }
.cta-band__figure img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; width: auto; max-width: none; z-index: 1; }
@media (max-width: 860px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__text { padding-bottom: 0; } .cta-band__figure { justify-self: center; width: min(100%, 320px); } }

/* ---------- Nosotros ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-48); padding-block: var(--space-32); border-bottom: 1px solid var(--line); }
.row h3 { font-size: var(--fs-subtitle); font-weight: 700; font-variation-settings: "opsz" 24; line-height: 1.2; }
.row p { font-size: var(--fs-body-lg); line-height: 1.45; max-width: var(--measure); }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: var(--space-12); } }
.concept { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-48); align-items: center; }
.concept__mark { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); justify-content: center; background: var(--surface-alt); border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 80px); color: var(--ink); }
.concept__mark svg { width: clamp(96px, 14vw, 180px); height: auto; }
.concept__mark ul { font-family: var(--font-body); font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); line-height: 1.05; }
.motto { font-family: var(--font-display); font-weight: 600; color: var(--accent); font-size: var(--fs-subtitle); }
@media (max-width: 860px) { .concept { grid-template-columns: 1fr; } }
.places { display: flex; flex-wrap: wrap; gap: var(--space-16) var(--space-48); font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 500; line-height: 1; }

/* ---------- Formularios ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: var(--space-24); background: var(--surface-alt); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-24); }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--space-8); }
.field label, .field legend { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-body-sm); }
.field .opt { font-family: var(--font-body); font-weight: 400; color: var(--ink-muted); }
.input { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; }
textarea.input { min-height: 140px; resize: vertical; }
.input::placeholder { color: var(--ink-muted); opacity: 1; }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-grid { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); font-size: var(--fs-body-sm); background: var(--surface); }
.choice input:checked + span { background: var(--surface-inverse); color: var(--ink-inverse); border-color: var(--surface-inverse); }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.check { display: flex; gap: var(--space-12); align-items: flex-start; font-size: var(--fs-body-sm); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand-yankee-blue); flex: none; }
.form__status { font-size: var(--fs-body-sm); padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface-inverse); color: var(--ink-inverse); }
.contact-list { display: grid; gap: var(--space-24); }
.contact-list dt { font-size: var(--fs-body-sm); color: var(--ink-muted); }
.contact-list dd { margin: 4px 0 0; font-family: var(--font-display); font-size: var(--fs-subtitle); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; border-bottom: 1.5px solid transparent; }
.contact-list a:hover { border-bottom-color: var(--accent); }

/* ---------- Pie ---------- */
.site-footer { padding-block: clamp(56px, 7vw, 96px) var(--space-32); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--space-48); }
.site-footer__brand { display: grid; gap: var(--space-24); align-content: start; }
.site-footer__brand svg { width: min(260px, 100%); height: auto; color: var(--ink); }
.site-footer h2 { font-family: var(--font-body); font-size: var(--fs-body-sm); font-weight: 500; color: var(--ink-muted); margin-bottom: var(--space-16); }
.site-footer li + li { margin-top: var(--space-8); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.site-footer__firma { display: flex; align-items: stretch; gap: 14px; height: 72px; }
.site-footer__firma .tile { width: 72px; height: 72px; flex: none; }
.site-footer__firma ul { display: flex; flex-direction: column; justify-content: space-between; font-size: 13.5px; line-height: 1; }
.site-footer__firma li + li { margin-top: 0; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-16); margin-top: clamp(48px, 6vw, 80px); padding-top: var(--space-24); border-top: 1px solid var(--line); font-size: var(--fs-caption); color: var(--ink-muted); }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: var(--space-24); }
.site-footer__bottom li + li { margin-top: 0; }
@media (max-width: 960px) { .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: 1fr; } }

/* ---------- Botón flotante de contacto ---------- */
.fab { position: fixed; z-index: 50; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-12); }
.fab__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 24px 0 18px; border-radius: var(--radius-pill); border: 0; background: var(--brand-orange); color: var(--brand-charcoal); font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; cursor: pointer; box-shadow: 0 10px 30px rgba(20, 62, 76, 0.28); transition: transform .2s ease-out, background-color .2s ease-out, color .2s ease-out; }
.fab__btn:hover { transform: translateY(-2px); }
.fab__btn svg { width: 26px; height: 26px; }
.fab.is-open .fab__btn { background: var(--brand-yankee-blue); color: var(--brand-warm-stone); }
.fab__panel { width: min(360px, calc(100vw - 40px)); background: var(--brand-yankee-blue); color: var(--brand-warm-stone); border-radius: var(--radius-lg); padding: var(--space-24); display: grid; gap: var(--space-16); box-shadow: 0 20px 50px rgba(20, 62, 76, 0.35); }
.fab__panel h2 { font-size: var(--fs-subtitle); font-weight: 700; font-variation-settings: "opsz" 24; }
.fab__panel p { font-size: var(--fs-body-sm); color: var(--ink-muted); }
.fab__links { display: grid; gap: var(--space-8); }
.fab__links a { display: flex; align-items: center; gap: var(--space-12); padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-alt); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; overflow-wrap: anywhere; }
.fab__links a:hover { outline: 1.5px solid var(--brand-warm-stone); }
.fab__links svg { width: 20px; height: 20px; flex: none; color: var(--brand-orange); }
@media (max-width: 560px) { .fab__label { display: none; } .fab__btn { padding: 0; width: 60px; justify-content: center; } }
body.page-contacto .fab { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.nav-only-mobile { display: none; }
@media (max-width: 1100px) { .nav-only-mobile { display: list-item; } }

/* Variantes de la mancha */
.mancha--cta { left: 52%; }
.mancha--cta svg { width: 120%; right: -38%; top: -42%; transform: rotate(-24deg); }
.mancha--page svg { width: min(820px, 52%); right: -8%; top: -18%; transform: rotate(16deg); }
@media (max-width: 860px) {
  .mancha--cta { left: 0; top: 40%; }
  .mancha--cta svg { width: 150%; right: -70%; top: 0; }
  .mancha--page svg { width: 130%; right: -55%; top: 30%; }
}
.concept__mark > svg { color: var(--ink); }

/* Ajustes móviles */
.logo-compact { display: none; }
@media (max-width: 1100px) {
  .site-header__brand .logo-wide { display: none; }
  .site-header__brand .logo-compact { display: block; height: 30px; }
}
@media (max-width: 860px) { .spend__list li { font-size: clamp(2rem, 1.2rem + 3.6vw, 2.75rem); } }
.chart-scroll > * { min-width: 0; }
@media (max-width: 480px) { .bars { gap: 5px; height: 220px; } .bars__labels { gap: 5px; font-size: 11px; } .bar__val { font-size: 10px; } }

/* Banda de financiación pública (obligatoria, fondo blanco) */
.funding { background: var(--brand-white); border-top: 1px solid var(--brand-warm-stone); }
.funding__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-48); padding-block: var(--space-24); }
.funding img { height: auto; max-height: 72px; width: auto; max-width: 30%; }
@media (max-width: 760px) { .funding__inner { flex-direction: column; gap: var(--space-24); } .funding img { max-width: 240px; max-height: 56px; } }
.site-footer__sep { margin-top: var(--space-16) !important; padding-top: var(--space-16); border-top: 1px solid var(--line); }
.site-nav ul { gap: clamp(18px, 2.2vw, 32px); }

/* Sellos y marcas */
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-16); }
.badge { display: grid; gap: var(--space-4); padding: var(--space-24); border: 1px solid var(--line); border-radius: var(--radius-md); }
.badge__title { font-family: var(--font-display); font-weight: 700; font-variation-settings: "opsz" 24; font-size: 1.125rem; line-height: 1.2; }
.badge__sub { font-size: var(--fs-body-sm); color: var(--ink-muted); }
.brands { display: flex; flex-wrap: wrap; gap: var(--space-12) clamp(24px, 4vw, 56px); align-items: center; font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.brands span { opacity: .9; }

/* Pasos del funnel */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { display: grid; gap: var(--space-12); align-content: start; border-top: 2px solid var(--line-strong); padding-top: var(--space-16); }
.step__n { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 500; line-height: 1; color: var(--accent); }
.section--alt .step__n, .card .step__n { color: var(--ink); }
.step h3 { font-size: var(--fs-subtitle); font-weight: 700; font-variation-settings: "opsz" 24; line-height: 1.2; }

/* Lista con checks */
.ticks { display: grid; gap: var(--space-8); }
.ticks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--space-8); font-size: var(--fs-body-sm); line-height: 1.45; }
.ticks li::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--accent); }

/* Recursos */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-24); border-radius: var(--radius-md); background: var(--surface-alt); text-decoration: none; min-width: 0; transition: background-color .2s ease-out; }
.section--alt .post { background: var(--surface); }
.post:hover .post__title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.post__meta { display: flex; justify-content: space-between; gap: var(--space-12); font-size: var(--fs-caption); color: var(--ink-muted); }
.post__title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; font-weight: 600; }
.post__text { font-size: var(--fs-body-sm); line-height: 1.45; color: var(--ink-muted); }

/* ---------- Portada (presentación): réplica del hero claro de brainy-web-phi ---------- */
.hero-container { width: 100%; max-width: 1432px; margin-inline: auto; padding-left: max(1rem, env(safe-area-inset-left, 0px)); padding-right: max(1rem, env(safe-area-inset-right, 0px)); }
.home-hero { position: relative; z-index: 10; display: flex; flex-direction: column; min-height: max(calc(100svh - var(--header-h)), 720px); background: var(--brand-warm-stone); color: var(--brand-yankee-blue); }
.home-hero__stage { position: relative; isolation: isolate; display: flex; flex: 1; flex-direction: column; overflow-x: clip; }
.home-hero__inner { display: flex; flex: 1; flex-direction: column; }
.home-hero__text { margin-block: auto; padding-block: 96px 48px; }
.home-hero__title { font-size: 3.75rem; line-height: 0.92; letter-spacing: -0.025em; font-weight: 500; }
.home-hero__title .hi { color: var(--brand-orange); }
.home-hero__sub { margin-top: 2rem; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.33; font-weight: 700; letter-spacing: -0.015em; }
.home-hero__lead { margin-top: 1.25rem; max-width: 38ch; font-size: 1.125rem; line-height: 1.625; color: color-mix(in srgb, var(--brand-yankee-blue) 80%, transparent); }
.home-hero__photo { pointer-events: none; }
.home-hero__photo img { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; transform: translateY(3.34%); }
.home-hero__photo--desk { display: none; }
.home-hero__photo--mob { position: relative; margin: -1.5rem -1rem 0; height: 24rem; }
.crop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.crop__shape { position: absolute; aspect-ratio: 85.32 / 114.51; color: var(--brand-orange); transform: translate(-50%, -50%) rotate(var(--r)); animation: crop-settle 1.1s cubic-bezier(0.6, 0, 0.2, 1) both 0.1s; }
.crop__shape svg { display: block; width: 100%; height: 100%; }
@keyframes crop-settle { from { opacity: 0; transform: translate(-50%, -46%) rotate(calc(var(--r) - 10deg)) scale(0.94); } }
@media (min-width: 640px) { .home-hero__photo--mob { height: 32rem; } }
@media (min-width: 768px) {
  .home-hero__title { font-size: 4.5rem; }
  .home-hero__sub { font-size: 1.875rem; line-height: 1.2; }
  .home-hero__lead { font-size: 1.25rem; }
  .home-hero__text { padding-block: 128px 80px; }
}
@media (min-width: 1024px) {
  .home-hero__photo--desk { display: block; position: absolute; top: 0; bottom: 0; left: 0; width: 50%; z-index: -1; }
  .home-hero__photo--mob { display: none; }
  .home-hero__text { margin-left: auto; max-width: 46%; padding-block: 128px 96px; }
  .home-hero__title { font-size: 6rem; }
}

.spend-band { background: color-mix(in oklab, var(--brand-yankee-blue) 78%, var(--brand-charcoal)); color: var(--brand-warm-stone); }
.spend-band__inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding-block: 2.5rem; text-align: center; }
.spend-band__label { font-size: 1rem; color: var(--brand-stone); }
.spend-band ol { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.spend-band li { display: flex; align-items: center; gap: 2rem; font-family: var(--font-body); font-size: 2.25rem; line-height: 1.1; font-weight: 500; letter-spacing: -0.025em; }
.spend-band li .hi { color: var(--brand-orange); }
.spend-band__arrow { display: none; width: 2rem; height: 2rem; flex: none; color: color-mix(in srgb, var(--brand-warm-stone) 40%, transparent); }
@media (min-width: 768px) {
  .spend-band__inner { padding-block: 3.5rem; }
  .spend-band ol { flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 2rem; row-gap: 0.75rem; }
  .spend-band__arrow { display: block; }
}
@media (min-width: 1024px) { .spend-band li { font-size: 3rem; } .spend-band__arrow { width: 2.5rem; height: 2.5rem; } }
@media (prefers-reduced-motion: reduce) { .crop__shape { animation: none; } }

/* Formulario: campo trampa para bots y estado de error */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status.is-error { background: var(--brand-orange); color: var(--brand-charcoal); }
.btn:disabled { opacity: .6; cursor: wait; }
