/* ============================================================
   READY Action Fund · rediseño
   Tipografía: Inter (todo, pesos 200–900) + Paytone One solo en el "40" y los años de la tira
   ============================================================ */

:root {
  --navy: #063c68;
  --navy-deep: #172953;
  --navy-2: #0a4777;
  --blue: #255692;
  --blue-soft: #e8eff8;
  --gold: #f4a91f;
  --gold-deep: #e0961a;
  --red: #d22f26;
  --green: #00a14d;
  --cream: #f5f7fa;
  --ink: #172953;
  --body: #3b4a60;
  --muted: #6b7a90;
  --line: #dde4ee;
  --white: #fff;

  --display: "Paytone One", "Arial Black", sans-serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(6, 60, 104, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 16px; }

.accent { color: var(--gold); }
.accent-link { color: var(--gold); text-decoration: none; border-bottom: 3px solid var(--gold); }
.accent-link:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

/* Regla de cuatro colores (marca) */
.rule { display: flex; gap: 6px; width: 180px; height: 6px; }
.rule i { flex: 1; border-radius: 3px; }
.rule i:nth-child(1) { background: var(--green); }
.rule i:nth-child(2) { background: var(--gold); }
.rule i:nth-child(3) { background: var(--red); }
.rule i:nth-child(4) { background: var(--blue); }
.rule--wide { width: 280px; }
.rule--sm { width: 120px; height: 5px; }
.rule--full { width: 100%; height: 6px; gap: 0; }
.rule--full i { border-radius: 0; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 16px; letter-spacing: 0; text-transform: none;
  text-decoration: none; border: 0; border-radius: 999px; padding: 14px 28px;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover, .btn--gold:focus-visible { background: var(--navy); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(6, 60, 104, .25); }
.btn--lg { padding: 18px 36px; font-size: 16px; }

/* Animaciones de entrada: suaves y pausadas; el retraso escalonado lo pone el script (--d) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.reveal--left { transform: translateX(-36px); }
.reveal--right { transform: translateX(36px); }
/* Bandas de Misión/Visión: entran cruzándose, una desde cada lado */
.reveal--band-left { transform: translateX(-12vw); transition-duration: 1.3s; }
.reveal--band-right { transform: translateX(12vw); transition-duration: 1.3s; transition-delay: 120ms; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal--left, .reveal--right, .reveal--band-left, .reveal--band-right { opacity: 1; transform: none; transition: none; } }

/* Hero: entrada al cargar */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero__media img { animation: fadeIn 1.6s ease-out both, heroPan 18s ease-in-out infinite alternate; }
/* Movimiento contenido: la foto va ampliada entre 14 % y 20 % y recorre el hero de lado a lado con un zoom lento */
@keyframes heroPan { from { transform: scale(1.14) translateX(-3%); } to { transform: scale(1.2) translateX(3%); } }
.hero__media { will-change: transform; }
.hero__copy > * { animation: rise 1s var(--ease) both; animation-delay: calc(var(--d, 0ms) + 150ms); }
@media (prefers-reduced-motion: reduce) { .hero__media img, .hero__copy > * { animation: none; } .hero__media img { transform: none; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
.site-header {
  position: sticky; top: 0; z-index: 50; transition: transform .32s ease;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(6, 60, 104, .08);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.brand img { width: auto; height: 46px; }

.site-nav__list { display: flex; align-items: center; gap: 36px; }
.site-nav__item { position: relative; display: flex; align-items: center; }
.site-nav__item > a:not(.btn) {
  font-weight: 400; font-size: 16px; letter-spacing: 0; text-transform: uppercase; text-decoration: none; color: var(--navy);
  padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .2s;
}
.site-nav__item > a:not(.btn):hover { border-color: var(--gold); }
.site-nav__more { background: none; border: 0; padding: 4px; color: var(--navy); display: inline-flex; }
.site-nav__more svg { width: 18px; height: 18px; transition: transform .2s; }
.site-nav__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav__sub {
  position: absolute; top: calc(100% + 10px); left: -16px; min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.site-nav__sub a { display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--navy); }
.site-nav__sub a:hover { background: var(--blue-soft); }
.has-children:hover .site-nav__sub, .has-children:focus-within .site-nav__sub, .has-children.is-open .site-nav__sub { opacity: 1; visibility: visible; transform: none; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  /* Sin backdrop-filter: crearía un containing block y rompería el panel fijo del menú */
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header__inner { height: 68px; }
  .brand img { height: 38px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: 68px; left: 0; right: 0; height: calc(100dvh - 68px); background: #fff; padding: 24px var(--gutter) 40px; overflow-y: auto; z-index: 60;
    transform: translateX(100%); transition: transform .3s var(--ease); visibility: hidden;
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__item { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .site-nav__item > a:not(.btn) { font-size: 16px; padding: 10px 0; }
  .site-nav__more { width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -12px; }
  .site-nav__sub { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 0 12px; display: none; }
  .has-children.is-open .site-nav__sub { display: block; }
  .site-nav__item--cta { border: 0; padding-top: 24px; }
  .site-nav__item--cta .btn { width: 100%; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; isolation: isolate; background: var(--navy-deep); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__media::after {
  content: ""; position: absolute; inset: -10% 0; /* cubre también lo que la foto ampliada asoma al desplazarse */
  background:
    linear-gradient(90deg, rgba(6, 60, 104, .97) 0%, rgba(6, 60, 104, .9) 42%, rgba(6, 60, 104, .35) 72%, rgba(6, 60, 104, .15) 100%),
    linear-gradient(180deg, rgba(6, 60, 104, .2), rgba(6, 60, 104, .55));
}
.hero__inner { min-height: min(84vh, 820px); display: flex; align-items: center; padding: clamp(56px, 7vw, 96px) 0; }
.hero__copy { max-width: 880px; display: grid; gap: 24px; justify-items: start; }
.hero__title { font-family: var(--sans); font-weight: 900; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.1; text-transform: uppercase; letter-spacing: 0; max-width: 14ch; }
.hero__tagline { font-weight: 300; font-size: 18px; letter-spacing: .44em; text-transform: uppercase; color: #fff; }
.hero__text { display: grid; gap: 18px; font-size: 16px; font-weight: 300; line-height: 1.6; color: #fff; max-width: 640px; }
.hero__text p { margin: 0; }
@media (min-width: 1024px) { .hero__text { grid-template-columns: 1fr 1fr; gap: 32px; max-width: none; } }

/* ============================================================
   40 YEARS
   ============================================================ */
.forty { background: #fff; padding: clamp(64px, 8vw, 110px) 0 clamp(56px, 7vw, 96px); }
.forty__row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 1.25rem; align-items: center; }
.forty__row > * { min-width: 0; }
.forty__number { position: relative; display: inline-flex; align-items: flex-start; padding-right: 28px; }
.forty__digits { font-family: var(--display); font-size: clamp(120px, 14vw, 176px); line-height: .82; color: var(--navy); letter-spacing: -.1em; padding-right: .1em; }
.forty__years { position: absolute; left: 100px; top: 0; font-weight: 400; font-size: clamp(18px, 1.9vw, 26px); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.forty__crisis { display: grid; line-height: 1; }
.forty__crisis span { font-weight: 900; font-size: clamp(26px, 2.9vw, 40px); line-height: .95; color: var(--navy); }
.forty__crisis strong { font-family: var(--sans); font-weight: 200; font-size: clamp(38px, 4.2vw, 56px); letter-spacing: .4em; text-transform: uppercase; color: var(--navy); margin-left: -.02em; }
.forty__intro { margin: 20px auto 0; max-width: 960px; text-align: center; font-size: clamp(18px, 1.8vw, 25px); font-weight: 400; line-height: 1.5; color: var(--navy); }

/* Tira de años con foto (igual al original: tarjeta angosta en gris, la activa ancha y a color) */
.ribbon { display: flex; height: 15.55rem; gap: .5rem; overflow: visible; padding: 6px 4px 10px; }
.ribbon__card.reveal { transform: translateY(28px); }
.ribbon__card {
  position: relative; flex: 1 1 0; min-width: 0; height: 100%; border: 0; padding: 0; border-radius: 5px; overflow: hidden;
  background: var(--navy-deep); box-shadow: -2px 4px 6px rgba(0, 0, 0, .25); isolation: isolate;
  transition: flex .32s, transform .22s;
}
.ribbon__card:hover { transform: translateY(-2px); }
.ribbon__card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.ribbon__card.is-active { flex: 0 0 clamp(150px, 34%, 200px); }
.ribbon__image, .ribbon__shade { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: inherit; }
.ribbon__image { object-fit: cover; filter: grayscale(1) contrast(.92); transition: filter .22s, transform .32s; }
.ribbon__card.is-active .ribbon__image { filter: none; transform: scale(1.015); }
.ribbon__shade { background: linear-gradient(rgba(23, 41, 83, .06) 30%, rgba(23, 41, 83, .76) 100%); pointer-events: none; }
.ribbon__year {
  position: absolute; top: 50%; left: 50%; z-index: 1; font-family: var(--display); font-size: clamp(1.6rem, 2.4vw, 2.5rem); line-height: .9;
  color: #fff; text-align: center; text-shadow: -1px 3px 4px rgba(0, 0, 0, .4); white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-90deg); transform-origin: center center; transition: color .22s;
}
.ribbon__card.is-active .ribbon__year { top: auto; bottom: 1.15rem; font-size: clamp(2.25rem, 3.25vw, 3.23rem); color: var(--gold); transform: translateX(-50%); }

@media (max-width: 1100px) {
  .forty__row { grid-template-columns: auto 1fr; }
  .ribbon { grid-column: 1 / -1; }
  .ribbon__year { font-size: 2.25rem; }
}
@media (max-width: 640px) {
  /* En teléfono no caben ocho tarjetas legibles: aquí sí se desliza con el dedo, sin barra visible */
  .forty__row { grid-template-columns: 1fr; row-gap: 20px; }
  .forty__years { left: 86px; }
  .forty__number { padding-right: 0; }
  .ribbon { height: 13rem; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .ribbon::-webkit-scrollbar { display: none; }
  .ribbon__card { flex: 0 0 60px; }
  .ribbon__card.is-active { flex: 0 0 150px; }
  .ribbon__year { font-size: 2rem; }
  .forty__intro { text-align: left; }
  .forty__crisis strong { font-size: clamp(30px, 10vw, 56px); }
  .forty__digits { font-size: clamp(104px, 32vw, 176px); }
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-section { background: linear-gradient(180deg, var(--cream) 0, var(--cream) 140px, var(--navy) 140px, var(--navy-deep) 100%); padding: 0 0 clamp(72px, 9vw, 120px); color: #fff; }
.timeline { background: var(--navy-2); border-radius: 28px; box-shadow: 0 30px 80px rgba(6, 30, 60, .35); padding: clamp(20px, 2.4vw, 30px); outline: none; }
.timeline:focus-visible { box-shadow: 0 0 0 4px var(--gold), 0 30px 80px rgba(6, 30, 60, .35); }

.timeline__panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(24px, 3.5vw, 48px); align-items: stretch; }
.timeline__visual { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, var(--blue), var(--navy-deep)); min-height: 0; }
.timeline__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.timeline__image[hidden] { display: none; }
.timeline__visual.is-loading .timeline__image { opacity: 0; }
.timeline__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 60, 104, 0) 55%, rgba(6, 60, 104, .55)); pointer-events: none; }
.timeline__visual-year { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--sans); font-weight: 900; font-size: clamp(64px, 7.2vw, 102px); color: rgba(255, 255, 255, .18); letter-spacing: -.07em; text-align: center; line-height: .9; padding: 20px; }
.timeline__visual.has-image .timeline__visual-year { display: none; }
.timeline__visual.has-stat .timeline__visual-year { display: none; }
.timeline__visual.has-stat::after { display: none; }
/* Ilustraciones planas: sin degradado encima, el dibujo ya trae su fondo */
.timeline.is-illus .timeline__visual::after { display: none; }
.timeline.is-illus .timeline__credits { display: none; }
/* Pastilla Photos / Illustrations, sobre la esquina de la imagen */
.timeline__style { position: absolute; top: 14px; right: 14px; z-index: 3; display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(6, 30, 60, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.timeline__style-btn { border: 0; background: transparent; color: rgba(255, 255, 255, .78); font: inherit; font-weight: 500; font-size: 12px; letter-spacing: .02em; line-height: 1; padding: 8px 13px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.timeline__style-btn:hover { color: #fff; }
.timeline__style-btn.is-active { background: #fff; color: var(--navy-deep); font-weight: 600; }
.timeline__style-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.timeline__stat { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: clamp(24px, 3vw, 40px); }
.timeline__stat[hidden] { display: none; }
.timeline__stat-value { font-family: var(--sans); font-weight: 900; font-size: clamp(48px, 5vw, 72px); letter-spacing: -.045em; line-height: .95; color: var(--gold); }
.timeline__stat-value--long { font-size: clamp(34px, 3.4vw, 46px); letter-spacing: -.03em; }
.timeline__stat-rule { display: block; width: 44px; height: 4px; border-radius: 2px; background: #fff; opacity: .9; }
.timeline__stat-label { font-size: 16px; font-weight: 300; line-height: 1.45; color: #fff; max-width: 26ch; }
.timeline__stat-year { position: absolute; left: clamp(24px, 3vw, 40px); bottom: clamp(20px, 2.4vw, 28px); font-weight: 800; font-size: 13px; letter-spacing: .04em; color: rgba(255, 255, 255, .55); }

/* Cambio de año: fundido suave del contenido */
.timeline__story > *, .timeline__visual > :not(.timeline__style) { transition: opacity .35s ease; }
/* Los botones Previous / Next y la pastilla Photos / Illustrations no participan del fundido: quedan fijos y siempre visibles */
.timeline.is-switching .timeline__story > :not(.timeline__controls), .timeline.is-switching .timeline__visual > :not(.timeline__style) { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .timeline__story > *, .timeline__visual > * { transition: none; } }
/* El alto mínimo lo fija el script con el año más largo, para que ningún elemento cambie de tamaño entre años */
.timeline__story { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.timeline__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.timeline__year { font-family: var(--sans); font-weight: 900; font-size: clamp(40px, 3.8vw, 54px); letter-spacing: -.045em; line-height: .9; color: var(--gold); }
.timeline__counter { font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); background: #17375e; border-radius: 6px; padding: 7px 12px; line-height: 1; margin-top: 4px; }
.timeline__title { font-family: var(--sans); font-weight: 900; font-size: clamp(22px, 2.1vw, 27px); letter-spacing: -.025em; line-height: 1.15; color: #fff; margin-top: -4px; }
.timeline__lead { font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.timeline__facts { display: grid; gap: 12px; align-content: start; }
.timeline__fact { position: relative; padding-left: 20px; font-size: 15px; font-weight: 300; line-height: 1.5; color: #fff; }
.timeline__fact::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.timeline__fact:nth-child(4n + 2)::before { background: var(--green); }
.timeline__fact:nth-child(4n + 3)::before { background: var(--red); }
.timeline__fact:nth-child(4n + 4)::before { background: #7fb3e6; }
.timeline__fact em { font-style: italic; color: #fff; }
.timeline__fact strong { color: #fff; }

.timeline__meta { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: flex-start; margin-top: 4px; }
.timeline__meta:empty { display: none; }
.timeline__meta-label { display: block; font-weight: 800; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 8px; }
.timeline__sources ul, .timeline__categories { display: flex; flex-wrap: wrap; gap: 8px; }
.timeline__sources li, .timeline__categories li { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.timeline__sources li { background: rgba(255, 255, 255, .1); color: #fff; }
.timeline__categories li { background: var(--gold); color: var(--navy-deep); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.timeline__topics[hidden], .timeline__sources[hidden], .timeline__title[hidden], .timeline__lead[hidden] { display: none; }

.timeline__controls { display: flex; gap: 12px; margin-top: auto; padding-top: 12px; }
.timeline__control {
  display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid rgba(255, 255, 255, .35); background: transparent; color: #fff;
  border-radius: 999px; padding: 11px 20px; font-weight: 400; font-size: 15px; letter-spacing: .02em; text-transform: uppercase;
  transition: background .2s, border-color .2s, color .2s;
}
.timeline__control svg { width: 18px; height: 18px; }
.timeline__control:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.timeline__control:disabled { opacity: .35; cursor: default; }

/* Riel de años */
.timeline__rail { margin-top: clamp(22px, 2.4vw, 30px); position: relative; }
.timeline__track {
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; position: relative; padding: 14px 40px 6px;
  -webkit-overflow-scrolling: touch;
}
.timeline__track::-webkit-scrollbar { display: none; }
.timeline__year-btn::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: rgba(255, 255, 255, .22); }
.timeline__year-btn:first-child::before { left: 50%; }
.timeline__year-btn:last-child::before { right: 50%; }
.timeline__year-btn {
  position: relative; flex: 0 0 auto; min-width: 128px; padding: 0 12px 4px; border: 0; background: none; color: rgba(255, 255, 255, .7); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; transition: color .2s;
}
.timeline__dot { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; background: var(--c, var(--gold)); box-shadow: 0 0 0 4px var(--navy-2); transition: box-shadow .25s, transform .25s; }
.timeline__year-btn[data-color="0"] { --c: var(--green); }
.timeline__year-btn[data-color="1"] { --c: var(--gold); }
.timeline__year-btn[data-color="2"] { --c: var(--red); }
.timeline__year-btn[data-color="3"] { --c: #7fb3e6; }
.timeline__rail-year { font-family: var(--sans); font-weight: 900; font-size: 18px; letter-spacing: 0; line-height: 1.1; }
.timeline__rail-sub { display: block; font-weight: 200; font-size: 14px; letter-spacing: .02em; line-height: 1.2; margin-top: 2px; }
.timeline__rail-cat { font-size: 10px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .5); line-height: 1.2; min-height: 1.2em; }
.timeline__year-btn:hover { color: #fff; }
.timeline__year-btn:hover:not(.is-active) .timeline__rail-year { color: #fff; }
.timeline__rail-year { transition: color .2s; position: relative; z-index: 1; }
/* Cápsula que se desliza al año señalado y descansa en el activo */
.timeline__pill { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 12px; background: #17375e; opacity: 0; pointer-events: none; transition: transform .38s cubic-bezier(.22, .8, .2, 1), width .38s cubic-bezier(.22, .8, .2, 1), height .25s, opacity .25s; }
.timeline__pill.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .timeline__pill { transition: none; } }
.timeline__year-btn.is-active { color: #fff; }
.timeline__year-btn.is-active .timeline__dot { box-shadow: 0 0 0 4px var(--navy-2), 0 0 0 7px rgba(255, 255, 255, .35); }
.timeline__year-btn.is-active .timeline__rail-year { color: var(--gold); }
.timeline__year-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }

.timeline__footer { margin-top: clamp(20px, 2.5vw, 28px); padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 12px; font-size: 13px; font-weight: 300; color: rgba(255, 255, 255, .75); }
.timeline__note strong { color: var(--gold); font-weight: 800; }
.timeline__credits summary { cursor: pointer; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; color: #fff; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.timeline__credits summary::-webkit-details-marker { display: none; }
.timeline__credits summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); transition: transform .2s; margin-bottom: 2px; }
.timeline__credits[open] summary::before { transform: rotate(45deg); }
.timeline__credits ul { display: grid; gap: 10px; margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.timeline__credits li { padding: 12px 14px; background: rgba(255, 255, 255, .06); border-radius: 10px; line-height: 1.5; }
.timeline__credits li strong { color: #fff; display: block; margin-bottom: 2px; }
.timeline__credits a { color: var(--gold); }

@media (max-width: 900px) {
  .timeline-section { background: linear-gradient(180deg, var(--cream) 0, var(--cream) 60px, var(--navy) 60px, var(--navy-deep) 100%); }
  .timeline { border-radius: 20px; }
  .timeline__panel { grid-template-columns: minmax(0, 1fr); }
  /* Sin min-height: con aspect-ratio, un alto mínimo fijaba el ancho y la figura se salía de la tarjeta */
  .timeline__visual { aspect-ratio: 16 / 10; min-height: 0; width: 100%; max-width: 100%; }
  .timeline__stat { padding-bottom: 56px; gap: 10px; }
  .timeline__style { top: 10px; right: 10px; }
  .timeline__style-btn { font-size: 12px; padding: 9px 12px; }
  /* En teléfono los botones van fijos bajo el año; el texto fluye debajo */
  .timeline__head { order: -2; min-height: 44px; flex-wrap: nowrap; }
  .timeline__counter { flex: 0 0 auto; white-space: nowrap; }
  .timeline__year--long { font-size: 20px; letter-spacing: -.02em; }
  .timeline__controls { order: -1; margin-top: 0; padding-top: 0; }
  .timeline__track { padding-inline: 16px; }
  .timeline__year-btn { min-width: 88px; }
}
@media (max-width: 640px) {
  .timeline__visual { aspect-ratio: 4 / 3; }
  .timeline { padding: 16px; }
  .timeline__panel { gap: 20px; }
}

/* Pantallas anchas pero bajas: la tarjeta completa debe caber sin desplazarse */
@media (min-width: 901px) and (max-height: 820px) {
  .timeline { padding: 20px; border-radius: 22px; }
  .timeline__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); gap: 24px; }
  .timeline__story { gap: 12px; }
  .timeline__year { font-size: 44px; }
  .timeline__facts { gap: 10px; }
  .timeline__fact { font-size: 14px; line-height: 1.45; }
  .timeline__controls { padding-top: 8px; }
  .timeline__control { padding: 9px 16px; font-size: 14px; }
  .timeline__rail { margin-top: 16px; }
  .timeline__track { padding: 12px 32px 4px; }
  .timeline__year-btn { gap: 14px; }
  .timeline__rail-year { font-size: 16px; }
  .timeline__footer { margin-top: 16px; padding-top: 14px; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: #fff; padding: clamp(72px, 9vw, 128px) 0; }
.about__intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-bottom: clamp(48px, 6vw, 80px); }
.about__wordmark { display: grid; gap: 4px; line-height: .95; position: sticky; top: 110px; }
.about__ready { font-family: var(--sans); font-weight: 900; font-size: clamp(52px, 5.4vw, 72px); color: var(--navy); letter-spacing: -.01em; }
.about__fund { font-family: var(--sans); font-weight: 900; font-size: clamp(40px, 4.2vw, 56px); color: var(--blue); }
.about__wordmark .rule { margin-top: 22px; }
.about__text { display: grid; gap: 20px; font-size: 18px; font-weight: 200; line-height: 1.5; }
.about__text .lead { font-size: 20px; line-height: 1.5; font-weight: 400; color: var(--navy); }

@media (max-width: 900px) {
  .about__intro { grid-template-columns: 1fr; }
  .about__wordmark { position: static; }
}

/* Misión / Visión: dos bandas azul marino a todo lo ancho, como el original */
.mv { padding: 22px 0 clamp(62px, 6vw, 88px); display: grid; gap: 66px; overflow-x: clip; }
.about { padding-bottom: clamp(40px, 5vw, 66px); }
/* La banda mide 244px y la foto (288px) sobresale 22px por arriba y por abajo, como el original */
.mv__band { background: var(--navy); color: #fff; height: 244px; display: flex; align-items: center; overflow: visible; }
.mv__row { display: grid; grid-template-columns: 618fr 562fr; gap: 60px; align-items: center; }
.mv__row--vision { grid-template-columns: 562fr 618fr; }
.mv__photo { width: 100%; aspect-ratio: 618 / 324; object-fit: cover; border-radius: 5px; box-shadow: -2px 3px 4px rgba(0, 0, 0, .25); position: relative; z-index: 1; }
.mv__text { display: flex; flex-direction: column; align-items: flex-start; }
.mv__text h3 { font-weight: 900; font-size: clamp(32px, 3.2vw, 43px); line-height: 1; text-transform: uppercase; color: #fff; }
.mv__rule { width: 189px; height: 13px; margin: 10px 0 13px; }
.mv__text p { font-size: 18px; line-height: 1.5; font-weight: 400; color: #fff; max-width: 48ch; }
@media (max-width: 900px) {
  .mv__band { height: auto; padding: 28px 0; }
  .mv__row, .mv__row--vision { grid-template-columns: 1fr; }
  .mv__row--vision .mv__photo { order: -1; }
}

/* ============================================================
   URGENCY (como el original: título a la derecha, tarjeta de barras, cierre a la izquierda)
   ============================================================ */
.urgency { position: relative; background: #fff; padding: clamp(80px, 10vw, 150px) 0 0; overflow: hidden; }
.urgency__watermark { position: absolute; left: -50px; top: clamp(280px, 28vw, 400px); width: 380px; height: auto; pointer-events: none; z-index: 0; }
.urgency__head { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.urgency__title { font-weight: 900; font-size: clamp(30px, 3.5vw, 50px); line-height: 1; text-transform: uppercase; color: var(--navy); max-width: 1022px; }
.urgency__rule { width: min(613px, 100%); height: 12px; margin: 30px 0 28px; }
.urgency__intro { font-size: 18px; font-weight: 200; line-height: 1.5; color: var(--navy); max-width: 931px; }

.stats { position: relative; z-index: 1; margin-top: clamp(80px, 12vw, 170px); background: var(--navy); color: #fff; border-radius: 10px; padding: 38px clamp(24px, 8.3vw, 120px) 28px; display: grid; gap: 58px; }
.stats__title { font-weight: 900; font-size: 24px; line-height: 1; text-transform: uppercase; color: var(--gold); text-align: right; margin-bottom: 12px; }
.stat { display: grid; gap: 5px; }
.stat__track { position: relative; height: 80px; border-radius: 10px; background: #043760; box-shadow: inset 3px 3px 8px rgba(0, 0, 0, .32), inset -2px -2px 4px rgba(255, 255, 255, .06); overflow: hidden; }
.stat__bar { position: absolute; top: 0; bottom: 0; left: 0; transform-origin: left center; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.22, .8, .2, 1); }
.stat__bar--city { transition-delay: .15s; }
.stat__num, .stat__name { opacity: 0; transition: opacity .6s ease; }
.stat__num--city, .stat__name--city { transition-delay: .9s; }
.stat__num--state, .stat__name--state { transition-delay: 1.2s; }
.stats.is-in .stat__bar { transform: none; }
.stats.is-in .stat__num, .stats.is-in .stat__name { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .stat__bar { transform: none; transition: none; } .stat__num, .stat__name { opacity: 1; transition: none; } }
.stat__bar--state { width: calc(var(--state) * 1%); background: var(--gold); border-radius: 10px; }
.stat__bar--city { width: calc(var(--city) * 1%); background: #d22b2c; border-radius: 10px 0 0 10px; }
.stat__num { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: clamp(30px, 4.8vw, 69px); line-height: 1; color: #fff; white-space: nowrap; }
.stat__num small { font-size: .65em; font-weight: 900; align-self: center; margin-left: .05em; }
.stat__num--city { left: 0; width: calc(var(--city) * 1%); }
.stat__num--state { left: calc(var(--city) * 1%); width: calc((var(--state) - var(--city)) * 1%); }
.stat__label { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 190px; font-size: 18px; font-weight: 300; line-height: 1.4; text-transform: uppercase; color: #fff; }
.stat__names { position: relative; min-height: 40px; }
.stat__name { position: absolute; top: 0; font-size: 16px; font-weight: 300; letter-spacing: .2em; line-height: 1.2; text-transform: uppercase; color: #fff; }
.stat__name--city { left: 0; width: calc(var(--city) * 1% - 10px); }
.stat__name--state { left: calc(var(--city) * 1%); }

.urgency__foot { position: relative; z-index: 1; padding-top: clamp(64px, 7vw, 103px); display: grid; gap: 22px; justify-items: start; }
.urgency__sub { font-weight: 900; font-size: clamp(24px, 2.3vw, 32px); line-height: 1; text-transform: uppercase; color: #085393; max-width: 1028px; }
.urgency__text { font-size: 18px; font-weight: 300; line-height: 1.5; color: #085393; max-width: 825px; margin-top: -4px; }
.urgency__text strong { font-weight: 400; }
.urgency__cta { font-weight: 900; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.2; text-transform: uppercase; color: #085393; margin-top: 22px; }
.urgency__cta .accent { text-decoration: none; }
.urgency__cta .accent:hover { text-decoration: underline; }

/* Línea divisoria con cuatro puntos (section-divider del original) */
.divider { justify-self: stretch; position: relative; height: 38px; margin-top: clamp(80px, 9vw, 140px); margin-bottom: 28px; display: flex; justify-content: center; align-items: center; gap: 14px; }
.divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #d9d9d9; }
.divider i { position: relative; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 6px #fff; }
.divider i:nth-child(1) { background: #2cac66; }
.divider i:nth-child(2) { background: var(--gold); }
.divider i:nth-child(3) { background: #d22b2c; }
.divider i:nth-child(4) { background: var(--navy); }

@media (max-width: 900px) {
  .urgency__watermark { width: 260px; left: -60px; top: 60%; }
  .stats { padding: 28px 20px 22px; gap: 44px; }
  .stat__track { height: 64px; margin-top: 34px; }
  .stat__label { right: auto; left: 0; top: -34px; transform: none; width: auto; font-size: 15px; white-space: nowrap; }
  .stat__names { min-height: 44px; }
  .stat__name--state { left: auto; right: 0; }
}
@media (max-width: 640px) {
  /* En teléfono el bloque va alineado a la izquierda: a la derecha, con poco ancho, se lee entrecortado */
  .urgency__head { align-items: flex-start; text-align: left; }
  .stats__title { text-align: left; }
  .urgency__rule { margin: 22px 0 20px; }
}

/* ============================================================
   PILLARS
   ============================================================ */
.pillars { background: var(--navy); color: #fff; padding: clamp(72px, 9vw, 120px) 0; }
.pillars__title { font-family: var(--sans); font-weight: 900; font-size: clamp(34px, 3.6vw, 50px); text-transform: uppercase; letter-spacing: 0; margin-bottom: clamp(36px, 4vw, 56px); }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: clamp(28px, 3vw, 40px); display: grid; gap: 18px; align-content: start; transition: background .25s, transform .25s var(--ease); }
.pillar:hover { background: rgba(255, 255, 255, .1); transform: translateY(-4px); }
.pillar__icon { height: 80px; display: flex; align-items: center; }
.pillar__icon img { height: 70px; width: auto; filter: brightness(0) invert(1); }
.pillar h3 { font-size: 22px; font-weight: 900; line-height: 1.15; color: #fff; }
.pillar p { font-size: 16px; font-weight: 200; line-height: 1.5; color: #fff; }
.pillar:nth-child(1) { border-top: 5px solid var(--green); }
.pillar:nth-child(2) { border-top: 5px solid var(--gold); }
.pillar:nth-child(3) { border-top: 5px solid var(--red); }

@media (max-width: 900px) { .pillars__grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #fff; color: var(--body); }
.site-footer__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(24px, 4vw, 60px); padding-top: clamp(40px, 5vw, 64px); }
.site-footer__rule { width: 100%; height: 7px; }
.site-footer__logo img { width: clamp(200px, 23vw, 330px); }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.35fr; gap: clamp(32px, 5vw, 72px); padding: clamp(40px, 5vw, 64px) 0 clamp(32px, 4vw, 56px); }
.site-footer h2 { font-family: var(--sans); font-weight: 900; font-size: 28px; color: var(--navy); margin-bottom: 18px; }
.site-footer__brand { display: grid; gap: 14px; align-content: start; }
.site-footer__brand h2 { margin-bottom: 4px; }
.site-footer__about { font-size: 15px; font-weight: 400; line-height: 1.55; color: var(--body); max-width: 36ch; }
.social { display: flex; gap: 14px; margin-top: 6px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); transition: background .2s, transform .2s; }
.social a:hover { background: var(--gold); transform: translateY(-2px); }
.social img { width: 22px; height: 22px; }
.site-footer__contact { display: grid; gap: 14px; align-content: start; }
.site-footer__contact h2 { margin-bottom: 4px; }
.site-footer__link { text-decoration: none; color: var(--navy); font-weight: 400; font-size: 16px; line-height: 1.3; }
.site-footer__link:hover { color: var(--blue); text-decoration: underline; }
.newsletter__row { display: flex; gap: 10px; }
.newsletter input {
  flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff;
}
.newsletter input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 86, 146, .15); }
.newsletter__legal { font-size: 11px; font-weight: 400; line-height: 1.45; color: var(--muted); opacity: .8; margin-top: 14px; }
.newsletter__legal a { color: inherit; text-decoration: none; }
.newsletter__legal a:hover { text-decoration: underline; }

.site-footer__bottom { border-top: 1px solid var(--line); padding: 22px 0 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer__legal a { color: var(--navy); font-weight: 700; font-size: 13px; text-decoration: none; }
.site-footer__legal a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: 1fr; justify-items: center; gap: 20px; }
  .site-footer__rule { max-width: 320px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__newsletter { grid-column: 1 / -1; }
  .site-footer__bottom { flex-direction: column; }
  .site-footer__legal a, .site-footer__link { display: inline-block; padding: 4px 0; }
}
@media (max-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .newsletter__row { flex-direction: column; }
  /* Los separadores quedaban sueltos al final de línea: en teléfono cada dato va en su renglón */
  .site-footer__legal { flex-direction: column; gap: 4px; }
  .site-footer__legal span[aria-hidden] { display: none; }
}
