/* =========================================================================
   Chamarrón 2026 · hoja de estilos
   Concepto: "noches frías → mañanas llenas de alegrías". La página arranca
   en la noche azul del niño solo y se va calentando capítulo a capítulo.
   ========================================================================= */
@layer reset, tokens, base, layout, components, sections, motion;

/* ---------- Fuentes autoalojadas ---------- */
@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var-latin.woff2") format("woff2");
  font-weight: 300 900; 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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var-latin-ext.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html, body, h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset, legend, blockquote { margin: 0; padding: 0; }
  fieldset { border: 0; min-width: 0; }
  ol, ul { list-style: none; }
  img, picture, video, svg { display: block; max-width: 100%; }
  button, input { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; }
  a { color: inherit; }
}

@layer tokens {
  :root {
    /* Color: un suelo, una tinta, un acento + campos por capítulo */
    --noche: #1E2A36;     /* pizarra profundo: la madrugada fría */
    --niebla: #BCD3E6;    /* azul de la intro del video */
    --taupe: #6E5F57;     /* institucional (flyer / Cáritas) */
    --lana: #E8E1DB;      /* paso de tono cálido para tarjetas y campos */
    --suelo: #F4F3F2;     /* neutro claro, nada amarillento */
    --tinta: #2B211D;     /* texto corrido */
    --rosa: #E0457B;      /* rosa Cáritas: corazones, chamarras encendidas */
    --rosa-boton: #CF356A;/* el mismo rosa ajustado a contraste AA con texto blanco */
    --rosa-hover: #B92A5C;
    --blanco: #FFFFFF;
    --caritas-azul: #1F2A4E;

    /* Tipografía */
    --f-display: "Young Serif", "Georgia", serif;
    --f-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    --fs-giant: clamp(5.5rem, 1rem + 22vw, 22rem);
    --fs-display: clamp(2.1rem, 0.6rem + 6.6vw, 7.6rem);
    --fs-h2: clamp(2.3rem, 1rem + 4.6vw, 6rem);
    --fs-statement: clamp(1.5rem, 1.05rem + 1.4vw, 2.25rem);
    --fs-text: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
    --fs-small: 0.9375rem;

    /* Espacio: escala de 8 px */
    --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
    --gutter: clamp(16px, 3.4vw, 48px);
    --section: clamp(96px, 11vw, 200px);
    --bar-h: 72px;

    /* Un solo radio (botones redondos) y una sola sombra (solo lo que flota) */
    --round: 999px;
    --float-shadow: 0 18px 50px rgb(20 14 12 / 0.28);

    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: light;
  }
  @media (max-width: 720px) { :root { --bar-h: 60px; } }
}

@layer base {
  html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar-h); }
  html:not(.lenis) { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html:not(.lenis) { scroll-behavior: auto; } }
  body {
    background: var(--suelo);
    color: var(--tinta);
    font-family: var(--f-text);
    font-size: var(--fs-text);
    line-height: 1.55;
    font-weight: 450;
    font-variant-numeric: lining-nums; /* Young Serif trae números de estilo antiguo por defecto */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }
  h1, h2, h3 { font-variant-numeric: lining-nums; font-family: var(--f-display); font-weight: 400; letter-spacing: -0.03em; line-height: 0.98; text-wrap: balance; }
  h3 { font-size: var(--fs-statement); line-height: 1.08; letter-spacing: -0.02em; }
  p { text-wrap: pretty; }
  strong { font-weight: 750; }
  :focus-visible { outline: 3px solid var(--rosa-boton); outline-offset: 3px; border-radius: 2px; }
  ::selection { background: var(--rosa); color: var(--blanco); }
  .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .skip { position: fixed; left: var(--gutter); top: -100px; z-index: 100; background: var(--tinta); color: var(--blanco); padding: var(--s2) var(--s3); border-radius: var(--round); text-decoration: none; }
  .skip:focus { top: var(--s2); }
  .ico { width: 1.25em; height: 1.25em; flex: none; }
  [hidden] { display: none !important; }
}

/* ---------- Componentes ---------- */
@layer components {
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
    min-height: 48px; padding: 0.8em 1.5em;
    border-radius: var(--round);
    font-family: var(--f-text); font-weight: 700; font-size: 1rem; line-height: 1.1;
    text-decoration: none; white-space: nowrap;
    transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
  }
  .btn:active { transform: scale(.97); }
  .btn--lg { min-height: 56px; font-size: 1.0625rem; padding: 0.9em 1.7em; }
  .btn--rosa { background: var(--rosa-boton); color: var(--blanco); }
  .btn--rosa:hover { background: var(--rosa-hover); }
  .btn--claro { background: var(--blanco); color: var(--tinta); }
  .btn--claro:hover { background: var(--niebla); }
  .btn--tinta { background: var(--tinta); color: var(--blanco); }
  .btn--tinta:hover { background: var(--taupe); }
  .btn--linea { background: var(--lana); color: var(--tinta); }
  .btn--linea:hover { background: #DCD2CA; }

  /* Corazón que se rellena al pasar el cursor por los botones de donar */
  .btn--rosa::before {
    content: ""; width: 1em; height: 1em; flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 92C30 76 6 60 6 34 6 16 19 6 33 6c9 0 14 5 17 10 3-5 8-10 17-10 14 0 27 10 27 28 0 26-24 42-44 58z' fill='none' stroke='black' stroke-width='12'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 92C30 76 6 60 6 34 6 16 19 6 33 6c9 0 14 5 17 10 3-5 8-10 17-10 14 0 27 10 27 28 0 26-24 42-44 58z' fill='none' stroke='black' stroke-width='12'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .3s var(--ease);
  }
  .btn--rosa:hover::before, .btn--rosa:focus-visible::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 92C30 76 6 60 6 34 6 16 19 6 33 6c9 0 14 5 17 10 3-5 8-10 17-10 14 0 27 10 27 28 0 26-24 42-44 58z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 92C30 76 6 60 6 34 6 16 19 6 33 6c9 0 14 5 17 10 3-5 8-10 17-10 14 0 27 10 27 28 0 26-24 42-44 58z'/%3E%3C/svg%3E");
    transform: scale(1.15);
  }

  .link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; text-decoration-color: var(--rosa); transition: text-decoration-color .2s; }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- Secciones ---------- */
@layer sections {

  /* ===== Preloader ===== */
  .preloader { display: none; }
  .has-preloader .preloader {
    display: grid; place-items: center;
    position: fixed; inset: 0; z-index: 90;
    background: var(--niebla);
    animation: pre-out .35s var(--ease) .85s forwards;
  }
  .preloader__heart { width: 84px; height: 84px; overflow: visible; }
  .preloader__stroke { fill: none; stroke: var(--rosa); stroke-width: 5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: pre-draw .55s var(--ease) forwards; }
  .preloader__fill { fill: var(--rosa); opacity: 0; transform-origin: 50% 55%; animation: pre-fill .3s var(--ease) .5s forwards; }
  @keyframes pre-draw { to { stroke-dashoffset: 0; } }
  @keyframes pre-fill { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
  @keyframes pre-out { to { opacity: 0; visibility: hidden; } }

  /* ===== Barra superior ===== */
  .bar {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--bar-h);
    display: flex; align-items: center; gap: var(--s3);
    padding-inline: var(--gutter);
    color: var(--blanco);
    --logo-heart: var(--blanco);
    transition: background-color .35s var(--ease), color .35s var(--ease);
  }
  .bar.is-solid { background: var(--suelo); color: var(--tinta); --logo-heart: var(--taupe); }
  .bar__brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
  .bar__iso { width: clamp(34px, 3.2vw, 44px); height: auto; aspect-ratio: 1; flex: none; }
  .bar:not(.is-solid) .bar__iso { --iso-azul: #FFFFFF; --iso-azul-osc: #C9D6E4; }
  .bar__chamarron { width: clamp(112px, 11vw, 156px); height: auto; aspect-ratio: 601 / 110; }
  .bar__caritas { display: block; }
  .bar__caritas svg { width: clamp(84px, 8vw, 112px); height: auto; aspect-ratio: 409 / 98; }
  .bar__nav { display: flex; gap: var(--s3); margin-inline-start: auto; }
  .bar__nav a { text-decoration: none; font-weight: 600; font-size: 1rem; padding-block: var(--s1); background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); }
  .bar__nav a:hover, .bar__nav a:focus-visible { background-size: 100% 2px; }
  .bar:not(.is-solid) .bar__mini { display: none; }
  .bar__mini { font-weight: 700; font-size: var(--fs-small); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .bar__mini strong { color: var(--rosa-boton); }
  .bar__donar { min-height: 44px; padding-inline: 1.25em; }
  @media (max-width: 960px) {
    .bar__nav { display: none; }
    .bar__mini { margin-inline-start: auto; }
    .bar__caritas { display: none; }
      .bar:not(.is-solid) .bar__donar { margin-inline-start: auto; }
  }
  @media (min-width: 961px) { .bar__mini { order: 3; } .bar__donar { order: 4; } }

  /* ===== 1 · Hero ===== */
  .hero {
    position: relative; min-height: 100svh;
    display: grid; grid-template-rows: 1fr auto;
    color: var(--blanco); background: var(--noche);
    overflow: hidden; isolation: isolate;
  }
  .hero__media { position: absolute; inset: 0; z-index: -1; }
  .hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
  /* Única excepción a "sin gradientes": scrim neutro para que el texto se lea */
  .hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgb(10 10 12 / .82) 0%, rgb(10 10 12 / .5) 42%, rgb(10 10 12 / .08) 70%, rgb(10 10 12 / .3) 100%); }
  @media (min-width: 900px) {
    .hero__scrim { background: linear-gradient(to top, rgb(10 10 12 / .78) 0%, rgb(10 10 12 / .38) 45%, rgb(10 10 12 / 0) 72%, rgb(10 10 12 / .32) 100%); }
  }
  /* Grano de película sutil para disimular la baja resolución (1024x576) */
  .hero__grain {
    position: absolute; inset: -50%; opacity: .07; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 0.9s steps(4) infinite; will-change: transform;
  }
  @keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-6%, 4%); } 50% { transform: translate(4%, -7%); } 75% { transform: translate(-3%, -2%); } 100% { transform: translate(0, 0); } }
  .hero__copy {
    align-self: end;
    padding: calc(var(--bar-h) + var(--s5)) var(--gutter) var(--s5);
    max-width: 1500px;
  }
  .hero__title { font-size: var(--fs-display); max-width: 10.5em; }
  .hero__lede { margin-top: var(--s4); max-width: 36ch; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.45; font-weight: 500; }
  .hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
  .hero__foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4);
    padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom));
    background: rgb(10 10 12 / .55);
  }
  .hero__live { display: grid; gap: 6px; min-height: 3.2rem; min-width: min(100%, 340px); text-decoration: none; font-weight: 600; font-size: var(--fs-small); }
  .hero__live strong { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; margin-inline-end: .15em; }
  .hero__live:hover strong { color: var(--rosa); }
  .hero__faltan { opacity: .9; }
  .meta__track--hero { height: 8px; background: rgb(255 255 255 / .22); }
  .hero__dur { font-weight: 500; opacity: .75; }
  .hero__tools { display: flex; align-items: center; gap: var(--s2); }
  .hero__tool, .hero__down {
    display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 1em;
    border-radius: var(--round); font-weight: 600; font-size: var(--fs-small); text-decoration: none;
    background: rgb(255 255 255 / .14); transition: background-color .2s;
  }
  .hero__tool:hover, .hero__down:hover { background: rgb(255 255 255 / .26); }
  .hero__down .ico { animation: bob 2s var(--ease) infinite; }
  @keyframes bob { 50% { transform: translateY(4px); } }
  @media (max-width: 720px) {
    .hero__copy { padding-bottom: var(--s4); }
    .hero__actions .btn { width: 100%; }
    .hero__down { display: none; }
    .hero__foot { padding-block: var(--s2); }
  }

  /* ===== 2 · Contador: cifras a la izquierda, la chamarra (3D) a la derecha ===== */
  .contador {
    background: var(--taupe); color: var(--blanco);
    padding: var(--section) var(--gutter);
    display: grid; gap: var(--s5); align-items: center;
  }
  .contador__copy { display: grid; gap: var(--s4); justify-items: start; align-content: center; }
  .contador__title { font-size: var(--fs-h2); }
  .contador__intro { max-width: 44ch; }
  .contador__fig { display: grid; gap: var(--s1); }
  .contador__num { font-variant-numeric: lining-nums; font-family: var(--f-display); font-size: clamp(5.5rem, 1rem + 13vw, 15rem); line-height: .82; letter-spacing: -0.04em; min-height: .9em; }
  .contador__unit { font-family: var(--f-display); font-size: var(--fs-statement); line-height: 1.1; }
  .contador__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: var(--s2); width: 100%; }
  .contador__facts > div { background: rgb(0 0 0 / .16); padding: var(--s2) var(--s3); display: grid; gap: 2px; }
  .contador__facts dt { font-size: var(--fs-small); font-weight: 600; }
  .contador__facts dd { font-family: var(--f-display); font-size: clamp(1.75rem, 1rem + 1.6vw, 2.5rem); line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
  .contador__updated { font-size: var(--fs-small); font-weight: 600; display: inline-flex; align-items: center; gap: .5em; }
  .contador__updated::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: #7BE0A0; flex: none; animation: latido 2s var(--ease) infinite; }
  .contador__updated:empty { display: none; }
  @keyframes latido { 50% { opacity: .35; transform: scale(.8); } }
  .contador__nota { font-size: var(--fs-small); background: rgb(0 0 0 / .18); padding: var(--s1) var(--s2); border-radius: var(--round); }
  .meta { width: 100%; max-width: 560px; display: grid; gap: var(--s1); }
  .meta__label { font-weight: 600; font-variant-numeric: tabular-nums; }
  .meta__track { display: block; height: 14px; border-radius: var(--round); background: rgb(0 0 0 / .22); overflow: hidden; }
  .meta__fill { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--rosa); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform 1.4s var(--ease); }

  /* La chamarra del logo: plana mientras carga el 3D, luego el lienzo WebGL */
  .chamarra3d { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1; justify-self: center; touch-action: pan-y; }
  .chamarra3d__flat { width: 100%; height: 100%; transition: opacity .6s var(--ease); }
  .chamarra3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .8s var(--ease); }
  .chamarra3d.is-3d canvas { opacity: 1; }
  .chamarra3d.is-3d .chamarra3d__flat { opacity: 0; }
  .iso--frio { --iso-azul: #C9D1DA; --iso-azul-osc: #AEB8C3; --iso-oro: #AEB8C3; }
  @media (min-width: 900px) {
    .contador { grid-template-columns: 1fr 1fr; gap: var(--s6); min-height: 100vh; }
  }
  @media (max-width: 899px) {
    .chamarra3d { max-width: 420px; order: -1; margin-bottom: calc(var(--s4) * -1); }
    .contador__copy { order: 0; }
    .contador__title { order: -2; }
  }

  /* Odómetro: cada dígito es una columna 0-9 que rueda */
  .odo { display: inline-flex; font-variant-numeric: lining-nums tabular-nums; }
  .odo__d { display: inline-block; width: 0.7em; height: 0.92em; overflow: hidden; text-align: center; }
  .odo__strip { display: block; transform: translateY(calc(var(--n, 0) * -10%)); transition: transform 1.6s var(--ease); }
  .odo__strip span { display: block; height: 0.92em; line-height: 0.92; }
  .odo__sep { display: inline-block; width: 0.26em; }

  /* ===== 3 · Historia ===== */
  .historia {
    --bg: var(--noche); --fg: var(--blanco);
    background: var(--bg); color: var(--fg);
  }
  .historia__pics { display: none; }
  .historia__scenes { display: grid; }
  /* Sin JS (o con movimiento reducido): escenas apiladas, cada una con su temperatura */
  .escena { display: grid; gap: var(--s4); padding: var(--s7) var(--gutter); align-content: center; }
  .escena:nth-child(1) { background: var(--noche); color: var(--blanco); }
  .escena:nth-child(2) { background: #33465A; color: var(--blanco); }
  .escena:nth-child(3) { background: var(--taupe); color: var(--blanco); }
  .escena:nth-child(4) { background: var(--suelo); color: var(--tinta); }
  .escena__still { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  .escena:nth-child(1) .escena__still { filter: saturate(.45) brightness(.92); }
  .escena:nth-child(2) .escena__still { filter: saturate(.6); }
  .escena__text { font-family: var(--f-display); font-size: var(--fs-statement); line-height: 1.12; letter-spacing: -0.02em; max-width: 20em; }
  .escena__title, .escena__big { font-family: var(--f-display); font-size: var(--fs-h2); line-height: .98; letter-spacing: -0.035em; max-width: 9em; }
  .escena .btn { justify-self: start; }
  @media (min-width: 900px) {
    .escena { grid-template-columns: 1fr 1.25fr; align-items: center; min-height: 80vh; }
    .escena__still { grid-column: 2; grid-row: 1 / span 2; }
  }

  /* Con JS y movimiento permitido: escena fijada, el campo de color interpola frío → cálido */
  .is-story .historia { background: var(--bg); }
  .is-story .historia__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
  .is-story .historia__pics { display: block; position: absolute; z-index: 0; overflow: hidden; }
  .is-story .historia__pic { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
  .is-story .historia__pic.is-on { opacity: 1; }
  .is-story .historia__pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1.08)) translateY(var(--drift, 0)); }
  .is-story .historia__pic[data-pic="0"] img { filter: saturate(.45) brightness(.92); object-position: 55% 50%; }
  .is-story .historia__pic[data-pic="1"] img { filter: saturate(.62); object-position: 60% 50%; }
  .is-story .historia__pic[data-pic="2"] img { object-position: 62% 50%; }
  .is-story .historia__pic[data-pic="3"] img { object-position: 50% 50%; }
  .is-story .historia__scenes { position: absolute; z-index: 1; display: block; }
  .is-story .escena { position: absolute; inset: 0; background: none !important; color: inherit !important; min-height: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; gap: var(--s4); opacity: 0; pointer-events: none; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .is-story .escena.is-on { opacity: 1; pointer-events: auto; transform: none; transition: opacity .7s var(--ease) .15s, transform .7s var(--ease) .15s; }
  .is-story .escena__still { display: none; }
  @media (min-width: 900px) {
    .is-story .historia__pics { inset: calc(var(--bar-h) + var(--s3)) var(--gutter) var(--s5) 46%; }
    .is-story .historia__scenes { inset: var(--bar-h) calc(54% + var(--s5)) var(--gutter) var(--gutter); }
    .is-story .escena__text { font-size: clamp(1.75rem, 1rem + 1.4vw, 2.25rem); }
    .is-story .escena__title, .is-story .escena__big { font-size: clamp(2.75rem, 0.6rem + 3.6vw, 5.5rem); max-width: none; }
  }
  @media (max-width: 899px) {
    .is-story .historia__pics { inset: calc(var(--bar-h) + var(--s2)) var(--gutter) auto var(--gutter); height: 44svh; }
    .is-story .historia__scenes { inset: calc(var(--bar-h) + 44svh + var(--s4)) var(--gutter) var(--s4) var(--gutter); }
    .is-story .escena { justify-content: flex-start; }
  }

  /* ===== 4 · Impacto 2025 ===== */
  .impacto { padding: var(--section) var(--gutter); background: var(--suelo); }
  .impacto__title { font-size: var(--fs-h2); max-width: 12em; }
  .impacto__grid { display: grid; gap: var(--s5); margin-top: var(--s6); }
  .impacto__big { font-family: var(--f-display); font-size: var(--fs-giant); line-height: .8; letter-spacing: -0.05em; color: var(--tinta); font-variant-numeric: lining-nums tabular-nums; }
  .impacto__big-label { font-family: var(--f-display); font-size: var(--fs-statement); margin-top: var(--s2); }
  .impacto__pic { overflow: hidden; }
  .impacto__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; }
  .impacto__facts { display: grid; gap: var(--s4); }
  .impacto__facts dt { font-weight: 600; font-size: var(--fs-small); }
  .impacto__facts dd { font-family: var(--f-display); font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; margin-top: var(--s1); }
  .impacto__facts a { text-decoration: none; }
  .impacto__facts a:hover { color: var(--rosa-boton); }
  .impacto__text { display: grid; gap: var(--s2); max-width: 44ch; }
  .impacto__next { font-weight: 750; }
  @media (min-width: 900px) {
    .impacto__grid { grid-template-columns: 1.15fr 1fr; grid-template-areas: "main pic" "facts text"; column-gap: var(--s7); row-gap: var(--s6); align-items: end; }
    .impacto__main { grid-area: main; } .impacto__pic { grid-area: pic; } .impacto__facts { grid-area: facts; grid-template-columns: 1fr 1fr; } .impacto__text { grid-area: text; }
  }

  /* ===== 5 · Cómo funciona ===== */
  .como { padding: var(--section) var(--gutter); background: var(--lana); }
  .como__title { font-size: var(--fs-h2); }
  .pasos { display: grid; gap: var(--s7); margin-top: var(--s6); counter-reset: none; }
  .paso { display: grid; gap: var(--s4); align-items: center; }
  .paso__text { display: grid; gap: var(--s2); max-width: 40ch; }
  .paso__text h3 { font-size: var(--fs-statement); }
  .paso__pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; }
  .paso__eq { font-variant-numeric: lining-nums; font-family: var(--f-display); letter-spacing: -0.045em; line-height: .9; color: var(--taupe); display: grid; }
  .paso__eq span:first-child { font-size: clamp(5rem, 1rem + 15vw, 15rem); color: var(--rosa-boton); }
  .paso__eq span:last-child { font-size: clamp(2rem, 1rem + 3.4vw, 4.5rem); }
  .paso__heart { width: min(100%, 640px); aspect-ratio: 1 / .92; }
  .paso__heart img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90C30 74 2 58 2 31 2 13 16 2 31 2c9 0 15 5 19 11 4-6 10-11 19-11 15 0 29 11 29 29 0 27-28 43-48 59z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90C30 74 2 58 2 31 2 13 16 2 31 2c9 0 15 5 19 11 4-6 10-11 19-11 15 0 29 11 29 29 0 27-28 43-48 59z'/%3E%3C/svg%3E") center / contain no-repeat; }
  @media (min-width: 900px) {
    .paso--foto { grid-template-columns: 1.4fr 1fr; gap: var(--s7); }
    .paso--cifra { grid-template-columns: 1fr 1.4fr; gap: var(--s7); }
    .paso--cifra .paso__eq { justify-self: end; text-align: right; }
    .paso--corazon { grid-template-columns: 1fr 1fr; gap: var(--s7); }
    .paso--corazon .paso__heart { justify-self: center; }
  }

  /* ===== 6 · Comunidades ===== */
  .comunidades { padding: var(--section) var(--gutter); background: var(--taupe); color: var(--blanco); }
  .comunidades__head { display: grid; gap: var(--s3); }
  .comunidades__title { font-size: var(--fs-h2); }
  .comunidades__head p { max-width: 44ch; }
  @media (min-width: 900px) { .comunidades__head { grid-template-columns: 1.4fr 1fr; align-items: end; gap: var(--s6); } }
  .comunidades__list {
    margin-top: var(--s6);
    font-family: var(--f-display); font-size: clamp(2rem, 0.8rem + 4.6vw, 5.6rem); line-height: 1.08; letter-spacing: -0.035em;
    display: flex; flex-wrap: wrap; column-gap: .35em; row-gap: .05em;
  }
  .comunidades__list li { display: inline-flex; align-items: center; gap: .35em; transition: color .3s var(--ease); }
  .comunidades__list li::after {
    content: ""; width: .42em; height: .42em; background: var(--rosa); flex: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 92C30 76 6 60 6 34 6 16 19 6 33 6c9 0 14 5 17 10 3-5 8-10 17-10 14 0 27 10 27 28 0 26-24 42-44 58z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 92C30 76 6 60 6 34 6 16 19 6 33 6c9 0 14 5 17 10 3-5 8-10 17-10 14 0 27 10 27 28 0 26-24 42-44 58z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .comunidades__list li:last-child::after { display: none; }

  /* ===== 7 · Galería ===== */
  .galeria { padding: var(--section) var(--gutter); background: var(--suelo); }
  .galeria__head { display: grid; gap: var(--s3); }
  .galeria__title { font-size: var(--fs-h2); }
  .galeria__head p { max-width: 44ch; }
  @media (min-width: 900px) { .galeria__head { grid-template-columns: 1.4fr 1fr; align-items: end; gap: var(--s6); } }
  /* Masonry real: columnas CSS, cada foto con su proporción */
  .mosaico { margin-top: var(--s6); columns: 2; column-gap: var(--s1); }
  .mosaico li { break-inside: avoid; margin-bottom: var(--s1); }
  .mosaico button { display: block; width: 100%; overflow: hidden; }
  .mosaico img { width: 100%; height: auto; transition: transform .8s var(--ease); }
  .mosaico button:hover img, .mosaico button:focus-visible img { transform: scale(1.04); }
  @media (min-width: 700px) { .mosaico { columns: 3; column-gap: var(--s2); } .mosaico li { margin-bottom: var(--s2); } }
  @media (min-width: 1100px) { .mosaico { columns: 4; } }

  /* ===== 8 · Confianza ===== */
  .confianza { padding: var(--section) var(--gutter); background: var(--lana); display: grid; gap: var(--s6); }
  .confianza__lead { display: grid; gap: var(--s4); align-content: start; }
  .confianza__title { font-size: var(--fs-h2); max-width: 9em; }
  .confianza__statement { font-family: var(--f-display); font-size: var(--fs-statement); line-height: 1.15; letter-spacing: -0.02em; max-width: 22em; }
  .confianza__logo { width: 220px; height: auto; aspect-ratio: 409 / 98; color: var(--caritas-azul); margin-top: var(--s2); }
  .confianza__list { display: grid; gap: var(--s2); }
  .confianza__list > div { background: var(--suelo); padding: var(--s4); display: grid; gap: var(--s1); }
  .confianza__list dt { font-family: var(--f-display); font-size: clamp(1.375rem, 1rem + .8vw, 1.75rem); line-height: 1.1; letter-spacing: -0.02em; }
  .confianza__list a { font-weight: 700; }
  @media (min-width: 900px) { .confianza { grid-template-columns: 1fr 1fr; gap: var(--s7); } }

  /* ===== 9 · Donar ===== */
  .donar { padding: var(--section) var(--gutter); background: var(--suelo); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .donar__pic { display: grid; gap: var(--s3); align-content: start; }
  .donar__pic img { width: 100%; aspect-ratio: 556 / 470; object-fit: cover; }
  .donar__quote { font-family: var(--f-display); font-size: var(--fs-h2); line-height: .98; letter-spacing: -0.035em; text-wrap: balance; }
  @media (min-width: 1000px) {
    .donar { grid-template-columns: 1fr 1.05fr; gap: var(--s7); align-items: start; }
    .donar__pic { position: sticky; top: calc(var(--bar-h) + var(--s4)); }
    .donar__quote { font-size: clamp(2.5rem, 1rem + 3.4vw, 5rem); }
  }
  .donar__panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .donar__title { font-size: var(--fs-h2); }

  .monto { display: grid; gap: var(--s3); }
  .monto__q { font-family: var(--f-display); font-size: var(--fs-statement); line-height: 1.1; letter-spacing: -0.02em; }
  .modo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--lana); border-radius: var(--round); }
  .modo__btn { min-height: 48px; border-radius: var(--round); font-weight: 700; transition: background-color .25s var(--ease), color .25s var(--ease); }
  .modo__btn:hover { background: #DDD3CB; }
  .modo__btn[aria-selected="true"] { background: var(--tinta); color: var(--blanco); }
  .monto__panel { display: grid; gap: var(--s2); }
  .monto__sub { font-weight: 600; }
  .monto__chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s1); }
  .monto__chips--5 { grid-template-columns: repeat(2, 1fr); }
  .monto__chips--5 .chip:last-child { grid-column: 1 / -1; }
  @media (min-width: 560px) {
    .monto__chips { grid-template-columns: repeat(4, 1fr); }
    .monto__chips--5 { grid-template-columns: repeat(5, 1fr); }
    .monto__chips--5 .chip:last-child { grid-column: auto; }
  }
  .chip {
    display: grid; gap: 2px; justify-items: start; align-content: center; padding: var(--s2) var(--s3); min-height: 72px;
    background: var(--lana); text-align: left; border-radius: 0;
    transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
  }
  .chip strong { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
  .monto__chips--5 .chip { padding-inline: var(--s2); }
  .monto__chips--5 .chip strong { font-size: clamp(1.25rem, 1rem + .6vw, 1.5rem); }
  .chip span { font-size: var(--fs-small); font-weight: 600; }
  .chip:hover { background: #DDD3CB; }
  .chip:active { transform: scale(.98); }
  .chip[aria-checked="true"] { background: var(--tinta); color: var(--blanco); }
  .stepper { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); }
  .stepper__btn { width: 56px; height: 56px; border-radius: var(--round); background: var(--lana); font-size: 1.75rem; line-height: 1; font-weight: 500; transition: background-color .2s, transform .15s; }
  .stepper__btn:hover { background: #DDD3CB; }
  .stepper__btn:active { transform: scale(.92); }
  .stepper__field input {
    width: 4.2ch; height: 56px; text-align: center; border: 0; border-radius: 0; background: transparent;
    font-family: var(--f-display); font-size: 2.25rem; font-variant-numeric: lining-nums tabular-nums; -moz-appearance: textfield;
  }
  .stepper__field input::-webkit-outer-spin-button, .stepper__field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .otra { display: grid; gap: var(--s1); }
  .otra__label { font-weight: 600; }
  .otra__field { display: flex; align-items: center; gap: var(--s1); background: var(--lana); padding: 0 var(--s3); min-height: 64px; font-family: var(--f-display); font-size: 1.6rem; transition: background-color .2s; }
  .otra__field:focus-within { background: #DDD3CB; outline: 3px solid var(--rosa-boton); outline-offset: 2px; }
  .otra__field span:last-child { font-family: var(--f-text); font-size: 1rem; font-weight: 700; }
  .otra__field input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font: inherit; font-variant-numeric: lining-nums tabular-nums; height: 64px; outline: none; }
  .otra__field input::placeholder { color: #6B5F58; font-family: var(--f-text); font-size: 1.0625rem; }
  .otra__hint { font-size: var(--fs-small); }
  .monto__out { font-weight: 700; font-size: 1.0625rem; }

  .datos { background: var(--lana); padding: 0 clamp(var(--s3), 3vw, var(--s5)) clamp(var(--s3), 3vw, var(--s5)); display: grid; gap: var(--s4); }
  .datos__list { display: grid; gap: 0; }
  .datos__row { display: grid; gap: 2px; padding: 12px 0; }
  .datos__row dt { font-size: var(--fs-small); font-weight: 600; }
  .datos__row dd { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s2); }
  .datos__val { font-weight: 700; font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); overflow-wrap: anywhere; }
  .datos__num { font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; font-size: clamp(0.9rem, 3.6vw, 1.375rem); }
  .datos__row--monto { background: var(--tinta); color: var(--blanco); padding: var(--s2) var(--s3); margin-inline: calc(var(--s3) * -1); }
  @media (min-width: 900px) { .datos__row--monto { margin-inline: calc(clamp(var(--s3), 3vw, var(--s5)) * -1); padding-inline: clamp(var(--s3), 3vw, var(--s5)); } }
  .datos__row--monto .datos__val { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.75rem, 1rem + 2vw, 2.75rem); letter-spacing: -0.02em; }
  .datos__row--monto .datos__val.bump { animation: bump .45s var(--ease); }
  @keyframes bump { 40% { transform: scale(1.06); } }
  .copy {
    min-height: 44px; padding: 0 1.1em; border-radius: var(--round);
    background: var(--suelo); font-weight: 700; font-size: var(--fs-small);
    transition: background-color .2s, color .2s, transform .15s;
  }
  .copy:hover { background: var(--tinta); color: var(--blanco); }
  .copy:active { transform: scale(.95); }
  .copy.is-done { background: var(--rosa-boton); color: var(--blanco); }
  .datos__tip { font-size: 1rem; }
  .datos__qr { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: center; background: var(--suelo); padding: var(--s3); }
  .datos__qr img { width: clamp(104px, 22vw, 132px); height: auto; aspect-ratio: 1; image-rendering: pixelated; }
  .datos__qr p { font-size: var(--fs-small); }
  .pago { display: grid; gap: var(--s3); }
  .btn--block { width: 100%; }
  .datos--paypal .btn { white-space: normal; text-align: center; }
  .compartir { display: grid; gap: var(--s2); }
  .compartir__q { font-weight: 600; }
  .compartir__btns { display: flex; flex-wrap: wrap; gap: var(--s1); }

  /* ===== 10 · FAQ ===== */
  .faq { padding: var(--section) var(--gutter); background: var(--lana); display: grid; gap: var(--s5); }
  .faq__title { font-size: var(--fs-h2); max-width: 7em; }
  @media (min-width: 900px) { .faq { grid-template-columns: 1fr 1.4fr; gap: var(--s7); align-items: start; } .faq__title { position: sticky; top: calc(var(--bar-h) + var(--s4)); } }
  .faq__list { display: grid; gap: var(--s1); }
  .faq details { background: var(--suelo); }
  .faq summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
    padding: var(--s3) var(--s4); font-family: var(--f-display); font-size: clamp(1.25rem, 1rem + .7vw, 1.625rem); line-height: 1.15; letter-spacing: -0.015em;
    transition: background-color .2s;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: ""; width: 22px; height: 22px; flex: none; background: var(--tinta); transition: transform .3s var(--ease);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 4h2v16h-2zM4 11h16v2H4z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 4h2v16h-2zM4 11h16v2H4z'/%3E%3C/svg%3E") center / contain no-repeat; }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq summary:hover { background: #FAF9F8; }
  .faq details > p, .faq details > .btn { margin: 0 var(--s4) var(--s4); max-width: 60ch; }
  .faq details > .btn { margin-top: calc(var(--s1) * -1); }
  .faq details a { font-weight: 700; }

  /* ===== 11 · Cierre ===== */
  .cierre { position: relative; min-height: 88svh; display: grid; align-items: end; color: var(--blanco); isolation: isolate; overflow: hidden; }
  .cierre__pic { position: absolute; inset: 0; z-index: -2; }
  .cierre__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform: scale(var(--zoom, 1.1)); }
  .cierre__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(10 10 12 / .78), rgb(10 10 12 / .25) 55%, rgb(10 10 12 / 0)); }
  .cierre__copy { padding: var(--s7) var(--gutter) var(--s6); display: grid; gap: var(--s3); justify-items: start; }
  .cierre__title { font-size: var(--fs-display); max-width: 12em; }
  .cierre__copy p { max-width: 40ch; font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); font-weight: 500; }

  /* ===== Pie ===== */
  .pie { background: var(--taupe); color: var(--blanco); padding: var(--s7) var(--gutter) var(--gutter); display: grid; gap: var(--s6); --logo-heart: var(--blanco); --caritas-heart: var(--rosa); }
  .pie__top { display: grid; gap: var(--s5); }
  @media (min-width: 900px) { .pie__top { grid-template-columns: 1fr 1fr 1.2fr; } }
  .pie__col { display: grid; gap: var(--s2); align-content: start; }
  .pie__lema { font-weight: 600; font-size: var(--fs-small); }
  .pie__caritas { width: 200px; height: auto; aspect-ratio: 409 / 98; color: var(--blanco); }
  .pie__legal { font-size: var(--fs-small); }
  .pie__legal summary { cursor: pointer; font-weight: 700; }
  .pie__legal details p { margin-top: var(--s1); max-width: 54ch; }
  .pie a { font-weight: 700; }
  .pie__aliados { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
  .pie__aliados img { height: 40px; width: auto; }
  .pie__marca { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); --iso-azul: #FFFFFF; --iso-azul-osc: #C9D6E4; }
  .pie__iso { width: clamp(64px, 15vw, 230px); height: auto; aspect-ratio: 1; flex: none; }
  .pie__wordmark { flex: 1; min-width: 0; height: auto; aspect-ratio: 601 / 110; }

  /* ===== CTA fijo en móvil ===== */
  .pegajoso {
    position: fixed; left: var(--s2); right: var(--s2); bottom: calc(var(--s2) + env(safe-area-inset-bottom)); z-index: 45;
    display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: var(--round);
    background: var(--rosa-boton); color: var(--blanco); font-weight: 750; font-size: 1.0625rem; text-decoration: none;
    box-shadow: var(--float-shadow);
    transform: translateY(150%); transition: transform .45s var(--ease);
  }
  .pegajoso.is-on { transform: none; }
  @media (min-width: 961px) { .pegajoso { display: none; } }

  /* ===== Modal de video ===== */
  .modal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
  .modal::backdrop { background: rgb(12 14 18 / .9); }
  .modal__inner { width: 100%; height: 100%; display: grid; place-items: center; padding: var(--s6) var(--gutter); }
  .modal__video { width: min(100%, 1200px, calc((100svh - 140px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; box-shadow: var(--float-shadow); }
  .modal__close, .lightbox__btn {
    position: absolute; top: var(--s2); right: var(--gutter); width: 52px; height: 52px; border-radius: var(--round);
    display: grid; place-items: center; background: var(--blanco); color: var(--tinta); transition: background-color .2s, transform .15s;
  }
  .modal__close:hover, .lightbox__btn:hover { background: var(--niebla); }
  .modal__close:active, .lightbox__btn:active { transform: scale(.94); }
  .modal[open] .modal__inner { animation: modal-in .45s var(--ease); }
  @keyframes modal-in { from { opacity: 0; transform: scale(.97); } }

  /* ===== Lightbox ===== */
  .lightbox { border: 0; padding: 0; background: transparent; width: 100%; height: 100%; max-width: none; max-height: none; }
  .lightbox::backdrop { background: rgb(12 14 18 / .92); }
  .lightbox__fig { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: var(--s2); padding: var(--s8) var(--gutter); color: var(--blanco); }
  .lightbox__fig img { max-width: min(100%, 1200px); max-height: calc(100svh - 220px); object-fit: contain; }
  .lightbox__fig figcaption { font-size: var(--fs-small); max-width: 60ch; text-align: center; }
  .lightbox__prev { top: 50%; left: var(--gutter); right: auto; translate: 0 -50%; }
  .lightbox__next { top: 50%; translate: 0 -50%; }
  @media (max-width: 720px) { .lightbox__prev, .lightbox__next { top: auto; bottom: var(--s4); translate: none; } }
}

/* ---------- Movimiento ---------- */
@layer motion {
  /* Entradas escalonadas por sección: el contenido es visible si el JS no corre */
  .js [data-reveal] > *, .js .reveal-self { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 75ms); }
  .js [data-reveal].is-in > *, .js .reveal-self.is-in { opacity: 1; transform: none; }
  .js .reveal-self { --i: 0; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .js [data-reveal] > *, .js .reveal-self { opacity: 1; transform: none; }
    .hero__grain { animation: none; }
  }
}

/* Barra en teléfonos chicos: logo + Donar, sin mini contador (el hero y el contador ya lo muestran) */
@layer sections {
  @media (max-width: 480px) { .bar__mini { display: none !important; } }
}

/* Ajustes de la ronda de crítica 1 */
@layer sections {
  /* Títulos enfocados por la navegación interna: sin anillo de foco (no son controles) */
  h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
  @media (min-width: 900px) {
    .contador__title { font-size: clamp(2.5rem, 1rem + 3.4vw, 5rem); }
    .contador__num { font-size: clamp(5rem, 1rem + 9vw, 11.5rem); }
    .contador__copy { gap: var(--s3); }
    .chamarra3d { position: sticky; top: calc(var(--bar-h) + var(--s3)); max-height: calc(100vh - var(--bar-h) - var(--s5)); }
  }
}
@layer sections {
  .contador__facts { grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }
  .contador__facts dd { font-size: clamp(1.6rem, 1rem + 1.1vw, 2.25rem); }
  @media (max-width: 960px) { .bar__donar { margin-inline-start: auto; } .bar.is-solid .bar__mini + .bar__donar { margin-inline-start: 0; } }
}

/* Móvil: al llegar a Donar, primero los controles; la foto acompaña después */
@layer sections {
  @media (max-width: 999px) { .donar__pic { order: 2; } .donar__quote { font-size: var(--fs-statement); } }
  @media (max-width: 480px) { .bar__donar { margin-inline-start: auto !important; } }
}
