/* Manuel Castellanos Heredia — "Piedra y tinta"
   Piedra caliza de la ciudad blanca, tinta azul marino, un acento achiote.
   Mobile first. Sin estilos en línea (CSP estricta). */

@font-face { font-family: "Fraunces"; src: url("/fonts/display.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/display-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --stone: #f2ede4;
  --stone-2: #e6ded0;
  --ink: #111b2b;
  --ink-soft: #4b5363;
  --navy: #0e1828;
  --accent: #a5361f;
  --accent-light: #e39a7b;
  --clay: #c9714f;
  --teal: #0d3b3a;
  --teal-light: #9fc4bd;
  --mist: #b8c0cc;
  --line: rgba(17, 27, 43, .16);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3, p, blockquote, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--stone); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--stone); padding: .6rem 1rem; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 1rem; }

.eyebrow {
  font: 600 .75rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; }

h2 {
  font: 400 clamp(2.4rem, 9vw, 5.5rem)/1 var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -.02em;
}
h2 em { color: var(--accent); }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); max-width: 60rem; }
.section-head__lead { font: italic 300 clamp(1.15rem, 2.4vw, 1.5rem)/1.45 var(--serif); color: var(--ink-soft); max-width: 40rem; }

/* ---------- Barra ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--stone);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.bar.is-solid, .menu-open .bar {
  background: rgba(242, 237, 228, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.bar__mark { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.mono {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid currentColor;
  font: italic 500 .8rem/1 var(--serif); letter-spacing: .02em;
}
.bar__name { font: 500 .95rem/1 var(--sans); letter-spacing: -.01em; display: none; }

.bar__toggle {
  appearance: none; background: none; border: 0; color: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 0; font: 500 .9rem/1 var(--sans);
}
.bar__burger { position: relative; width: 22px; height: 10px; }
.bar__burger::before, .bar__burger::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.bar__burger::before { top: 0; }
.bar__burger::after { top: 8.5px; }
.menu-open .bar__burger::before { top: 4.25px; transform: rotate(45deg); }
.menu-open .bar__burger::after { top: 4.25px; transform: rotate(-45deg); }

.bar__menu {
  position: fixed; inset: var(--bar-h) 0 auto; height: calc(100svh - var(--bar-h));
  background: var(--stone); color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: .25rem;
  padding: 0 var(--gutter) 15vh;
  opacity: 0; visibility: hidden; transform: translateY(-1rem);
  transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s linear .5s;
}
.menu-open .bar__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-open { overflow: hidden; }
.bar__menu a {
  display: block; padding: .35rem 0; text-decoration: none;
  font: 400 clamp(2.6rem, 12vw, 4rem)/1.1 var(--serif); letter-spacing: -.02em;
}
.bar__menu a:hover { color: var(--accent); font-style: italic; }
/* Sin JS el botón no sirve: se oculta y las secciones se alcanzan bajando. */
html:not(.js) .bar__toggle { visibility: hidden; }

/* ---------- Portada ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  color: var(--stone); background: var(--navy); isolation: isolate; overflow: hidden;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: 50% 30%; transform: scale(1.08); transition: transform 2.4s var(--ease); }
.is-loaded .hero__media img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 24, 40, .55) 0%, rgba(14, 24, 40, 0) 22%),
    linear-gradient(0deg, rgba(14, 24, 40, .96) 8%, rgba(14, 24, 40, .55) 42%, rgba(14, 24, 40, 0) 68%);
}
.hero__copy { padding: 0 var(--gutter) calc(5.5rem + env(safe-area-inset-bottom)); display: grid; gap: 1.1rem; }
.hero .eyebrow { color: var(--accent-light); }
.hero__title {
  font: 400 clamp(3.4rem, 17vw, 6rem)/.9 var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -.035em;
  margin-left: -.04em;
}
.hero__title em { font-weight: 300; color: var(--accent-light); }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: block; }
/* Entrada de la portada: solo CSS, para que no parpadee mientras carga el JS */
@keyframes rise-line { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.line > span { animation: rise-line 1.1s var(--ease) .1s both; }
.line:nth-child(2) > span { animation-delay: .19s; }
.line:nth-child(3) > span { animation-delay: .28s; }
.rise { animation: rise 1s var(--ease) .55s both; }
.hero__lead.rise { animation-delay: .65s; }
.hero__role.rise { animation-delay: .75s; }
.hero__lead { max-width: 30rem; font-size: 1.05rem; line-height: 1.5; color: rgba(242, 237, 228, .9); }
.hero__role { display: grid; gap: .35rem; font: 500 .8rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--mist); }
.hero__role span + span { color: var(--accent-light); }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: calc(1.5rem + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .75rem;
  font: 500 .8rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--stone);
}
.hero__scroll::before {
  content: ""; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid rgba(242, 237, 228, .5);
  background: no-repeat center / 12px url("/img/flecha-abajo.svg");
}

/* ---------- Frase ---------- */
.statement { padding: clamp(5rem, 14vw, 11rem) var(--gutter); }
.statement__quote {
  max-width: 62rem; margin: 0 auto;
  font: 300 clamp(1.9rem, 6.2vw, 4.4rem)/1.12 var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  letter-spacing: -.02em; text-wrap: balance;
}
.statement__quote em { color: var(--accent); }

/* ---------- Cifras ---------- */
.numbers { padding: 0 var(--gutter) clamp(5rem, 12vw, 9rem); }
.numbers__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 1.25rem; max-width: var(--max); margin: 0 auto; }
.numbers li { border-top: 1px solid var(--line); padding-top: 1.1rem; display: grid; gap: .6rem; align-content: start; }
.numbers strong {
  font: 300 clamp(3rem, 13vw, 6.5rem)/.9 var(--serif);
  font-variation-settings: "opsz" 144;
  letter-spacing: -.04em; font-variant-numeric: lining-nums tabular-nums;
}
.numbers span { font-size: .92rem; line-height: 1.45; color: var(--ink-soft); }
.numbers strong span { font: inherit; color: inherit; }

/* ---------- Historia ---------- */
.story { padding: clamp(5rem, 12vw, 9rem) var(--gutter); background: var(--stone-2); }
.story > *, .causes > *, .press > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.story__grid { display: grid; gap: 3rem; }
.story__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 48% 50%; border-radius: 4px; }
figcaption { margin-top: .75rem; font-size: .8rem; color: var(--ink-soft); }
.timeline { position: relative; display: grid; gap: 2.75rem; padding-left: 1.75rem; }
.timeline::before { content: ""; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 1px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 1px; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 1)); }
.js .timeline::after { transform: scaleY(var(--p, 0)); }
.timeline__item { position: relative; display: grid; gap: .55rem; }
.timeline__item::before {
  content: ""; position: absolute; left: calc(-1.75rem - 4px); top: .3rem;
  width: 9px; height: 9px; border-radius: 50%; background: var(--stone-2); border: 1.5px solid var(--accent);
}
.timeline__when { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.timeline h3 { font: 400 clamp(1.6rem, 5vw, 2.25rem)/1.05 var(--serif); letter-spacing: -.015em; }
.timeline p:not(.timeline__when) { color: var(--ink-soft); max-width: 34rem; }

/* ---------- Cita con foto ---------- */
.pull { position: relative; min-height: 88svh; display: grid; align-items: end; color: var(--stone); isolation: isolate; overflow: hidden; background: var(--navy); }
.pull__media, .pull__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pull__media { z-index: -2; }
.pull__media img { object-fit: cover; object-position: 42% 40%; }
.pull::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 24, 40, .95) 10%, rgba(14, 24, 40, .45) 55%, rgba(14, 24, 40, .15)); }
.pull__quote { padding: 0 var(--gutter) clamp(3.5rem, 10vw, 7rem); max-width: 68rem; }
.pull__quote p {
  font: 300 clamp(1.8rem, 6vw, 4.2rem)/1.1 var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  letter-spacing: -.02em; text-wrap: balance;
}
.pull__quote em { color: var(--accent-light); }

/* ---------- Causas ---------- */
.causes { padding: clamp(5rem, 12vw, 9rem) var(--gutter); }
.causes__stack { display: grid; gap: 1.25rem; }
.cause {
  position: relative; overflow: hidden;
  border-radius: 6px; padding: clamp(1.75rem, 5vw, 3.5rem);
  display: grid; gap: 1rem; align-content: start;
  background: var(--stone-2);
}
.cause p { max-width: 38rem; }
.cause__num { font: 500 .8rem/1 var(--sans); letter-spacing: .16em; opacity: .7; }
.cause__title {
  font: 400 clamp(3rem, 14vw, 7rem)/.95 var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -.035em; margin-bottom: .5rem;
}
.cause__story { font: 400 clamp(1.15rem, 2.6vw, 1.4rem)/1.45 var(--serif); }
.cause__status { font: 600 .78rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding-top: .5rem; }
.cause__quote {
  margin-top: .75rem; padding-top: 1.25rem; border-top: 1px solid currentColor;
  font: italic 300 clamp(1.3rem, 3.4vw, 1.9rem)/1.3 var(--serif); max-width: 40rem;
}
.cause--ninez .cause__status, .cause--ninez .cause__title { color: var(--accent); }
.cause--ninez .cause__quote { border-color: var(--line); }
.cause--juventud { background: var(--navy); color: var(--stone); }
.cause--juventud .cause__title, .cause--juventud .cause__status { color: var(--accent-light); }
.cause--juventud .cause__quote { border-color: rgba(242, 237, 228, .2); }
.cause--agua { background: var(--teal) url("/img/curvas.svg") no-repeat right -4rem bottom -2rem / 34rem auto; color: var(--stone); }
.cause--agua .cause__title { color: var(--teal-light); }
.cause__note { margin-top: .75rem; padding-top: 1.25rem; border-top: 1px solid rgba(159, 196, 189, .35); font: italic 300 clamp(1.3rem, 3.4vw, 1.9rem)/1.3 var(--serif); color: var(--teal-light); }
.causes .causes__more { margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.causes__more { margin-top: 2.5rem; max-width: 44rem; color: var(--ink-soft); font: italic 300 1.2rem/1.5 var(--serif); }

/* ---------- Mérida ---------- */
.merida {
  background: var(--clay); color: var(--ink);
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
  display: grid; gap: 3rem;
}
.merida .eyebrow { color: var(--ink); }
.merida h2 em { color: var(--ink); font-weight: 300; }
.merida__intro { display: grid; gap: 1.5rem; align-content: start; max-width: 40rem; }
.merida__quote p { font: italic 300 clamp(1.45rem, 4vw, 2.2rem)/1.3 var(--serif); }
.merida__photo img { width: 100%; border-radius: 4px; aspect-ratio: 4 / 5; object-fit: cover; }
.merida figcaption { color: var(--ink); opacity: .8; }

/* ---------- Valores ---------- */
.values { background: var(--navy); color: var(--stone); padding: clamp(4rem, 10vw, 7rem) 0 clamp(5rem, 12vw, 9rem); overflow: hidden; }
.values__marquee { white-space: nowrap; margin-bottom: clamp(3rem, 8vw, 6rem); }
.values__track { display: inline-flex; gap: 3rem; animation: marquee 38s linear infinite; }
.values__track span {
  font: italic 300 clamp(4.5rem, 18vw, 12rem)/1 var(--serif);
  color: transparent; -webkit-text-stroke: 1px rgba(242, 237, 228, .45);
  letter-spacing: -.03em;
}
.values__track span:nth-child(3n+2) { color: var(--accent-light); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.values__body { padding: 0 var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; display: grid; gap: 2.5rem; }
.values__title em { color: var(--accent-light); }
.values__list { display: grid; gap: 1.75rem; }
.values__list div { border-top: 1px solid rgba(242, 237, 228, .2); padding-top: 1.1rem; display: grid; gap: .4rem; }
.values__list dt { font: 400 1.9rem/1.1 var(--serif); }
.values__list dd { color: var(--mist); }
.values__quote p { font: italic 300 clamp(1.3rem, 3.2vw, 1.9rem)/1.35 var(--serif); max-width: 52rem; color: var(--stone); }

/* ---------- En medios ---------- */
.press { padding: clamp(5rem, 12vw, 9rem) var(--gutter); }
.press__list { border-top: 1px solid var(--ink); }
.press__item {
  position: relative; display: grid; gap: .5rem; padding: 1.75rem 3rem 1.75rem 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding .5s var(--ease), background .5s var(--ease);
}
.press__outlet { font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.press__title { font: 400 clamp(1.4rem, 4vw, 2.3rem)/1.15 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.press__date { font-size: .85rem; color: var(--ink-soft); }
.press__arrow {
  position: absolute; right: 0; top: 50%; width: 2.5rem; height: 2.5rem; margin-top: -1.25rem;
  border-radius: 50%; border: 1px solid var(--ink);
  background: no-repeat center / 12px url("/img/flecha.svg");
  transition: background-color .4s var(--ease), transform .5s var(--ease);
}
@media (hover: hover) {
  .press__item:hover { padding-left: 1rem; }
  .press__item:hover .press__arrow { background-color: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
}

/* ---------- Cierre ---------- */
.closing { position: relative; min-height: 92svh; display: grid; align-items: end; color: var(--stone); isolation: isolate; overflow: hidden; background: var(--navy); }
.closing__media, .closing__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.closing__media { z-index: -2; }
.closing__media img { object-fit: cover; object-position: 62% 40%; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 24, 40, .96) 15%, rgba(14, 24, 40, .35) 60%, rgba(14, 24, 40, .1)); }
.closing__copy { padding: 0 var(--gutter) clamp(4rem, 10vw, 7rem); display: grid; gap: 1.5rem; max-width: 70rem; }
.closing__quote {
  font: 300 clamp(2rem, 7vw, 5rem)/1.05 var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  letter-spacing: -.025em; text-wrap: balance;
}
.closing__quote em { color: var(--accent-light); }
.closing__sign { font: 500 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }

/* ---------- Pie ---------- */
.foot { background: var(--ink); color: var(--stone); padding: 3.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom)); }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(242, 237, 228, .16); }
.foot__name { font: 400 clamp(1.8rem, 6vw, 3rem)/1 var(--serif); letter-spacing: -.02em; }
.foot__links a { font: 500 .95rem/1 var(--sans); text-underline-offset: .3em; }
.foot__links a:hover { color: var(--accent-light); }
.foot__bottom { padding-top: 1.5rem; display: grid; gap: .4rem; font-size: .82rem; color: var(--mist); }

/* ---------- Apariciones ---------- */
.js .reveal, .js .numbers li { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in, .js .numbers li.is-in { opacity: 1; transform: none; }
.js .numbers li:nth-child(2) { transition-delay: .08s; }
.js .numbers li:nth-child(3) { transition-delay: .16s; }
.js .numbers li:nth-child(4) { transition-delay: .24s; }

/* ---------- Tableta ---------- */
@media (min-width: 768px) {
  :root { --bar-h: 76px; }
  .bar__name { display: inline; }
  .numbers__list { grid-template-columns: repeat(4, 1fr); }
  .values__list { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .press__item { grid-template-columns: 12rem 1fr 10rem; align-items: baseline; gap: 2rem; padding: 2.25rem 4rem 2.25rem 0; }
  .press__date { text-align: right; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 1024px) {
  .bar__toggle { display: none; }
  .bar__menu {
    position: static; height: auto; opacity: 1; visibility: visible; transform: none;
    flex-direction: row; gap: 2.25rem; padding: 0; background: none; color: inherit;
  }
  .bar__menu a { font: 500 .9rem/1 var(--sans); letter-spacing: 0; padding: .5rem 0; position: relative; }
  .bar__menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
  .bar__menu a:hover { color: inherit; font-style: normal; }
  .bar__menu a:hover::after { transform: scaleX(1); transform-origin: left; }

  /* Portada: piedra a la izquierda, foto a la derecha, el nombre cruza las dos */
  .hero { background: var(--stone); color: var(--ink); grid-template-columns: 42% 58%; align-items: stretch; }
  .hero::after { display: none; }
  .hero__media { position: relative; grid-column: 2; grid-row: 1; z-index: 0; }
  .hero__media img { object-position: 64% 50%; }
  .hero__copy {
    grid-column: 1 / -1; grid-row: 1; z-index: 1; align-self: end;
    padding: calc(var(--bar-h) + 2rem) var(--gutter) clamp(3rem, 7vh, 5rem);
    grid-template-columns: minmax(0, 36%) 1fr; column-gap: 3rem; row-gap: 1.5rem;
  }
  .hero__copy > * { grid-column: 1 / -1; }
  .hero .eyebrow { color: var(--accent); }
  .hero__title { font-size: clamp(5.5rem, 10.4vw, 11.5rem); line-height: .86; color: var(--ink); }
  .hero__title em { color: var(--accent); }
  .hero__lead { grid-column: 1; color: var(--ink-soft); font-size: 1.15rem; }
  .hero__role { grid-column: 1; color: var(--ink-soft); }
  .hero__role { display: flex; gap: 1rem; }
  .hero__role span + span { color: var(--accent); }
  .hero__role span + span::before { content: "/"; margin-right: 1rem; }
  .hero__scroll { left: auto; right: var(--gutter); bottom: 2rem; color: var(--ink); background: rgba(242, 237, 228, .85); padding: .4rem 1.1rem .4rem .4rem; border-radius: 999px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .hero__scroll::before { border-color: var(--line); background-image: url("/img/flecha-abajo-tinta.svg"); }
  .bar { color: var(--ink); }

  .story__grid { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .story__photo { position: sticky; top: calc(var(--bar-h) + 2rem); }
  .story__photo img { aspect-ratio: 4 / 5; }
  .timeline { gap: 3.5rem; padding-top: 1rem; }

  /* Causas: tarjetas que se apilan al hacer scroll */
  .causes__stack { gap: 0; }
  .cause { position: sticky; top: calc(var(--bar-h) + 1.5rem); min-height: 64vh; margin-bottom: 4vh; grid-template-columns: 1fr 1fr; column-gap: 4rem; align-content: start; box-shadow: 0 -20px 60px -30px rgba(14, 24, 40, .35); }
  .cause:nth-child(2) { top: calc(var(--bar-h) + 3rem); }
  .cause:nth-child(3) { top: calc(var(--bar-h) + 4.5rem); }
  .cause__num, .cause__title { grid-column: 1; }
  .cause > :not(.cause__num):not(.cause__title) { grid-column: 2; }
  .cause__title { grid-row: 2 / span 6; align-self: end; font-size: clamp(5rem, 9vw, 9rem); margin: 0; }
  .cause__num { grid-row: 1; }

  .merida { grid-template-columns: 6fr 5fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
  .merida > * { max-width: none; }
  .merida__photo { transform: rotate(1.5deg); }

  .values__body { grid-template-columns: 5fr 7fr; column-gap: 5rem; }
  .values__title { grid-row: 1 / span 2; }

  .pull { align-items: center; min-height: 92vh; }
  .pull__media { left: 34%; }
  .pull__media img { object-position: 45% 30%; }
  .pull::after { background: linear-gradient(90deg, var(--navy) 34%, rgba(14, 24, 40, .7) 46%, rgba(14, 24, 40, 0) 70%); }
  .pull__quote { max-width: 46rem; padding-bottom: 0; }
  .closing__media img { object-position: 50% 40%; }
}

@media (min-width: 1440px) {
  .hero__copy { padding-left: calc((100vw - var(--max)) / 2); }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .numbers li { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
}
