/* ==========================================================================
   Lourdes Rugby Club — estilos
   Papel cálido + azul marino de las camisetas + dorado y azul de la rosa.
   Mobile-first. Sin dependencias.
   ========================================================================== */

/* ---------- Fuentes (autoalojadas) ---------- */
@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/big-shoulders-var.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-italic-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-var.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f6f1e7;
  --paper-2: #ede4d1;
  --card: #fffdf8;
  --navy: #0e1f3a;
  --navy-2: #172c4f;
  --ink: #0e1f3a;
  --ink-soft: #3d4a62;
  --gold: #e7b714;
  --gold-soft: #f3d46a;
  --blue: #2169b2;
  --blue-deep: #1a5594;
  --line: rgba(14, 31, 58, 0.14);
  --line-light: rgba(246, 241, 231, 0.2);
  --error: #b42318;
  --ok: #17663a;

  --f-display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --gutter: clamp(16px, 4.5vw, 44px);
  --max: 1280px;
  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 68px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(14, 31, 58, 0.06), 0 12px 32px -12px rgba(14, 31, 58, 0.22);
  --shadow-lg: 0 2px 4px rgba(14, 31, 58, 0.06), 0 30px 60px -24px rgba(14, 31, 58, 0.35);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.12 0 0 0 0 0.23 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@view-transition { navigation: auto; }
body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--navy :focus-visible,
.site-footer :focus-visible,
.mobile-menu :focus-visible,
.cta-band :focus-visible,
.lightbox :focus-visible { outline-color: var(--gold); }
::selection { background: var(--gold); color: var(--navy); }
main:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 200;
  background: var(--navy); color: var(--paper);
  padding: 12px 18px; border-radius: 10px; font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.92;
}
.section-title { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.4rem); max-width: 16ch; text-wrap: balance; }
.hand { font-family: var(--f-hand); font-weight: 600; letter-spacing: 0; line-height: 1.1; }
.lead { font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-deep); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--gold); }
.eyebrow .dot { display: none; }
.eyebrow--gold { color: var(--gold); }
.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }
.center { text-align: center; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 140px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--paper2 { background: var(--paper-2) var(--grain); }
.section--navy { background: var(--navy); color: var(--paper); }
.section--navy .lead, .section--navy p { color: rgba(246, 241, 231, 0.86); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--split { display: grid; gap: 20px; align-items: end; }
.section-head__aside { color: var(--ink-soft); max-width: 40ch; margin: 0; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.4fr 1fr; gap: 48px; }
  .section-head--split > :last-child { justify-self: end; }
}

/* ---------- Botones ---------- */
.btn {
  --bg: var(--navy); --fg: var(--paper); --bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 50px; padding: 0.8em 1.45em;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd);
  border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.35s var(--ease-out), box-shadow 0.3s;
  will-change: transform;
}
.btn .icon { transition: transform 0.3s var(--ease-out); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--navy:hover { --bg: var(--blue-deep); --bd: var(--blue-deep); box-shadow: var(--shadow); }
.btn--gold { --bg: var(--gold); --fg: var(--navy); --bd: var(--gold); }
.btn--gold:hover { --bg: var(--gold-soft); --bd: var(--gold-soft); box-shadow: 0 10px 30px -10px rgba(231, 183, 20, 0.7); }
.btn--line { --bg: transparent; --fg: var(--navy); --bd: var(--navy); }
.btn--line:hover { --bg: var(--navy); --fg: var(--paper); }
.btn--ghost-light { --bg: transparent; --fg: var(--paper); --bd: rgba(246, 241, 231, 0.55); }
.btn--ghost-light:hover { --bg: var(--paper); --fg: var(--navy); --bd: var(--paper); }
.btn--sm { min-height: 42px; padding: 0.6em 1.1em; font-size: 0.92rem; }
.btn--lg { min-height: 58px; padding: 0.9em 1.8em; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 700; color: var(--blue-deep); text-decoration: none;
  border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
.link-arrow .icon { transition: transform 0.3s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: transform 0.45s var(--ease-out), background-color 0.3s, box-shadow 0.3s;
}
.site-header.is-solid { background: rgba(246, 241, 231, 0.92); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header__inner {
  height: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand__rose { width: 42px; height: 42px; transition: transform 0.8s var(--ease-out); }
.brand:hover .brand__rose { transform: rotate(72deg); }
.brand__word { display: flex; flex-direction: column; font-family: var(--f-display); text-transform: uppercase; line-height: 0.9; }
.brand__word span:first-child { font-size: 1.3rem; font-weight: 900; letter-spacing: 0.02em; }
.brand__word span:last-child { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em; color: var(--blue-deep); }
.brand--light { color: var(--paper); }
.brand--light .brand__word span:last-child { color: var(--gold); }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 4px; list-style: none; }
.main-nav a {
  position: relative; display: block; padding: 8px 12px;
  font-weight: 600; font-size: 0.96rem; text-decoration: none; border-radius: 999px;
  transition: background-color 0.2s;
}
.main-nav a:hover { background: rgba(14, 31, 58, 0.07); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--gold);
}
.site-header__cta { display: flex; align-items: center; gap: 8px; }
.site-header__cta .btn { display: none; }
.menu-toggle {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--navy); background: transparent; display: grid; place-items: center;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform 0.35s var(--ease-out), background-color 0.2s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-open .menu-toggle { border-color: var(--paper); }
.menu-open .menu-toggle__bars { background: transparent; }
.menu-open .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); background: var(--paper); }
.menu-open .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); background: var(--paper); }
.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .site-header .brand { color: var(--paper); }
.menu-open .site-header .brand__word span:last-child { color: var(--gold); }
.menu-open { overflow: hidden; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--navy); color: var(--paper);
  padding: calc(var(--header-h) + 20px) var(--gutter) 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 14px; padding: 6px 0;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.2rem, 10vw, 3.4rem); line-height: 1; text-decoration: none;
}
.mobile-menu nav a .hand { font-size: 1.1rem; color: var(--gold); width: 1.6em; }
.mobile-menu nav a[aria-current="page"] { color: var(--gold); }
.mobile-menu__foot { display: grid; gap: 14px; }
.mobile-menu__line { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.mobile-menu__social { display: flex; gap: 10px; }
.mobile-menu__social a { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-light); display: grid; place-items: center; }

@media (min-width: 1080px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .site-header__cta .btn { display: inline-flex; }
  .mobile-menu { display: none !important; }
}
@media (min-width: 560px) and (max-width: 1079px) {
  .site-header__cta .btn { display: inline-flex; }
}

/* ---------- Pizarra táctica (tiza) ---------- */
.chalk {
  position: absolute; pointer-events: none;
  stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.32;
}
.chalk .chalk__dash { stroke-dasharray: 2 11; }
.section--navy .chalk, .chalk--light { stroke: var(--paper); opacity: 0.22; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(28px, 6vw, 64px)) 0 clamp(64px, 8vw, 110px);
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
}
.hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; position: relative; z-index: 1; }
.hero__title {
  isolation: isolate;
  font-size: clamp(3.5rem, 2rem + 8.6vw, 9.4rem);
  line-height: 0.84; margin-bottom: 26px; letter-spacing: -0.005em;
}
.hero__line { display: block; }
.hero__line--gold { color: var(--blue); position: relative; width: fit-content; }
.hero__line--gold::after {
  content: ""; position: absolute; left: -0.04em; right: -0.06em; bottom: 0.1em; height: 0.24em; z-index: -1;
  background: var(--gold); border-radius: 0.1em; transform: skewX(-12deg) scaleX(var(--u, 1)); transform-origin: left;
}
.hero__lead { margin-bottom: 26px; }
.hero__visual { position: relative; justify-self: center; width: min(100%, 440px); }
.hero__sticker {
  position: absolute; right: -8px; top: -18px; z-index: 6;
  width: 104px; height: 104px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: grid; place-items: center; text-align: center;
  font-size: 1.45rem; line-height: 0.95; transform: rotate(12deg);
  box-shadow: var(--shadow);
  animation: sticker 7s ease-in-out infinite;
}
@keyframes sticker { 50% { transform: rotate(4deg) scale(1.05); } }
.hero__chalk { width: min(90vw, 640px); right: -6%; bottom: 0; opacity: 0.22; }
@media (max-width: 899px) { .hero__chalk { display: none; } }
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2;
  display: none; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft);
}
.scroll-cue .icon { animation: cue 2.2s var(--ease-out) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.18fr 0.82fr; }
  .scroll-cue { display: inline-flex; }
  .hero__visual { justify-self: end; }
}

/* Pila de fotos */
.photo-stack { position: relative; aspect-ratio: 4 / 5; }
.photo-stack__card {
  position: absolute; inset: 0; margin: 0;
  background: var(--card); padding: 10px 10px 54px; border-radius: 10px;
  box-shadow: var(--shadow-lg);
  transform: rotate(calc((var(--i) - 1.5) * 3.2deg)) translate(calc((var(--i) - 1.5) * 6px), calc((var(--i) - 1.5) * -4px));
  transition: transform 0.7s var(--ease-out);
}
.photo-stack__card img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; background: var(--paper-2); }
.photo-stack__card figcaption {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem); color: var(--navy);
}
.photo-stack__next {
  position: absolute; right: -14px; bottom: 74px; z-index: 10;
  width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: var(--navy); color: var(--paper); display: grid; place-items: center;
  box-shadow: var(--shadow); transition: transform 0.3s var(--ease-out), background-color 0.2s;
}
.photo-stack__next:hover { transform: scale(1.08) rotate(-8deg); background: var(--blue-deep); }
.photo-stack__next .icon { width: 22px; height: 22px; }

/* ---------- Cintas de valores ---------- */
.tapes { position: relative; height: clamp(120px, 14vw, 170px); overflow: hidden; margin-block: -10px; }
.tape {
  position: absolute; left: -5%; width: 110%;
  padding: 14px 0; overflow: hidden;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); letter-spacing: 0.02em; line-height: 1;
}
.tape--gold { background: var(--gold); color: var(--navy); top: 18%; transform: rotate(-2.6deg); z-index: 2; box-shadow: 0 10px 24px -14px rgba(14, 31, 58, 0.5); }
.tape--blue { background: var(--navy); color: var(--paper); top: 36%; transform: rotate(1.8deg); }
.tape__track { display: flex; width: max-content; }
.tape__group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.tape__group span { white-space: nowrap; }
.tape__ball { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; opacity: 0.8; }

/* Marquesina genérica (CSS; el JS solo la pausa o la invierte) */
[data-marquee] { animation: marquee var(--dur, 38s) linear infinite; }
[data-reverse="1"] { animation-direction: reverse; }
.tape--blue [data-marquee] { animation-direction: reverse; --dur: 46s; }
@keyframes marquee { to { transform: translateX(-50%); } }
.is-paused [data-marquee], [data-marquee]:hover { animation-play-state: paused; }

/* ---------- Manifiesto ---------- */
.manifesto__title { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); max-width: 22ch; margin-bottom: clamp(32px, 4vw, 52px); text-wrap: balance; }
.manifesto__text {
  font-size: clamp(1.45rem, 1rem + 2.1vw, 2.65rem); font-weight: 600; line-height: 1.32; letter-spacing: -0.01em;
  max-width: 30ch; margin-bottom: 36px;
}
.manifesto__text .hl-word { opacity: 0.2; transition: opacity 0.3s; }
.manifesto__text .hl-word.is-lit { opacity: 1; }
.pill-photo {
  display: inline-block; vertical-align: middle; width: 2.4em; height: 1.15em; margin: 0 0.12em;
  border-radius: 999px; overflow: hidden; transform: translateY(-0.06em) rotate(-3deg);
  box-shadow: 0 0 0 3px var(--gold);
}
.pill-photo img { width: 100%; height: 100%; object-fit: cover; }
.manifesto__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.manifesto__hand { margin: 0; font-size: 1.6rem; color: var(--blue-deep); }

/* ---------- Pilares (cartas apiladas) ---------- */
.pillar-stack { list-style: none; display: grid; gap: 22px; }
.pillar-card {
  position: sticky; top: calc(var(--header-h) + 14px + var(--n) * 14px);
  display: grid; overflow: hidden;
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  transform-origin: center top;
}
.pillar-card:nth-child(2) { background: var(--navy); color: var(--paper); }
.pillar-card:nth-child(3) { background: var(--gold); }
.pillar-card:nth-child(4) { background: var(--blue); color: #fff; }
.pillar-card:nth-child(5) { background: var(--paper-2); }
.pillar-card__text { padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.pillar-card__num { font-weight: 800; font-size: 0.9rem; letter-spacing: 0.12em; margin-bottom: 4px; }
.pillar-card__num span { opacity: 0.55; }
.pillar-card__word { font-size: clamp(3rem, 1.8rem + 6vw, 6.4rem); margin: 0 0 14px; line-height: 0.85; overflow-wrap: anywhere; }
.pillar-card--transformacion .pillar-card__word { font-size: clamp(2.3rem, 0.9rem + 4.6vw, 4.8rem); }
.pillar-card__title { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.65rem); font-weight: 750; margin-bottom: 10px; }
.pillar-card__text p:last-child { margin: 0; max-width: 46ch; }
.pillar-card__media { min-height: 240px; }
.pillar-card__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .pillar-card { grid-template-columns: 1.1fr 0.9fr; min-height: 470px; }
  .pillar-card:nth-child(even) .pillar-card__media { order: -1; }
}

/* ---------- Qué hacemos ---------- */
.work-grid { display: grid; gap: 22px; margin-bottom: 44px; }
@media (min-width: 760px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.45s var(--ease-out), box-shadow 0.45s; }
.work-card__link:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.work-card__link:hover .work-card__media img { transform: scale(1.06); }
.work-card__body { padding: 22px 24px 26px; position: relative; flex: 1; display: flex; flex-direction: column; }
.work-card__n { position: absolute; right: 20px; top: -30px; width: 58px; height: 58px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-size: 1.7rem; margin: 0; }
.work-card__kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 6px; }
.work-card__title { font-size: 1.4rem; font-weight: 750; line-height: 1.2; margin-bottom: 18px; }
.work-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.work-card__link:hover .work-card__more .icon { transform: translateX(4px); }
.work-card__more .icon { transition: transform 0.3s var(--ease-out); }

/* ---------- Origen ---------- */
.origin { background: var(--navy); color: var(--paper); overflow: hidden; padding: 0; }
.origin__media { position: relative; height: 56vw; max-height: 460px; overflow: hidden; }
.origin__media img { width: 100%; height: 118%; object-fit: cover; }
.origin__grid { padding-block: clamp(56px, 8vw, 120px); }
.origin__text p { color: rgba(246, 241, 231, 0.86); max-width: 52ch; margin-bottom: 28px; }
.origin__text .section-title { margin-bottom: 22px; }
@media (min-width: 900px) {
  .origin { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 640px; }
  .origin__media { height: auto; max-height: none; order: 2; }
  .origin__media img { position: absolute; inset: -9% 0; height: 118%; }
  .origin__grid { max-width: none; margin: 0; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-right: clamp(32px, 5vw, 72px); display: flex; align-items: center; }
}

/* ---------- Impacto (adelanto) ---------- */
.impact-teaser__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .impact-teaser__grid { grid-template-columns: 1.25fr 0.9fr; gap: 64px; } }
.big-quote { margin: 0; position: relative; }
.big-quote__mark { display: block; font-family: var(--f-display); font-weight: 900; font-size: 9rem; line-height: 0.6; height: 0.42em; color: var(--gold); }
.big-quote p { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5.2rem); margin: 0; text-wrap: balance; }
.story-card { position: relative; overflow: hidden; background: var(--card); border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 40px); box-shadow: var(--shadow); border-top: 6px solid var(--blue); }
.story-card p { position: relative; z-index: 1; }
.story-card__muted { color: var(--ink-soft); }
.story-card__chalk { width: 260px; right: -60px; bottom: -40px; opacity: 0.18; }

/* ---------- Carrete de fotos ---------- */
.reel { overflow: hidden; }
.reel__rows { display: grid; gap: 14px; transform: rotate(-1.5deg); margin-top: 8px; }
.reel__row { overflow: hidden; }
.reel__track { display: flex; width: max-content; --dur: 70s; }
.reel__group { display: flex; gap: 14px; padding-right: 14px; }
.reel__item { width: clamp(180px, 22vw, 280px); aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.reel__row--1 .reel__item { aspect-ratio: 1; width: clamp(150px, 17vw, 220px); }
.reel__item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Formas de sumarse ---------- */
.join-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .join-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .join-grid { grid-template-columns: repeat(4, 1fr); } }
.join-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px; min-height: 300px;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.join-card:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: var(--shadow-lg); }
.join-card__icon { width: 46px; height: 46px; color: var(--blue); margin-bottom: 8px; }
.join-card h3 { font-size: 1.4rem; font-weight: 750; }
.join-card p { color: var(--ink-soft); margin: 0; }
.join-card__cta { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.join-card__cta .icon { transition: transform 0.3s var(--ease-out); }
.join-card:hover .join-card__cta .icon { transform: translate(3px, -1px); }
.join-card--gold { background: var(--gold); border-color: var(--gold); }
.join-card--gold .join-card__icon { color: var(--navy); }
.join-card--gold p, .join-card--blue p { color: inherit; }
.join-card--blue { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.join-card--blue .join-card__icon { color: var(--gold); }

/* ---------- Banda CTA ---------- */
.cta-band { position: relative; overflow: hidden; color: var(--paper); background: var(--navy); padding-block: clamp(84px, 11vw, 160px); isolation: isolate; }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--navy) 18%, rgba(14, 31, 58, 0.55) 70%, rgba(14, 31, 58, 0.3)); }
.cta-band__title { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.4rem); max-width: 14ch; margin-bottom: 22px; text-wrap: balance; }
.cta-band__text { max-width: 54ch; color: rgba(246, 241, 231, 0.88); margin-bottom: 28px; font-size: 1.08rem; }

/* ---------- Encabezado de páginas interiores ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(48px, 7vw, 96px); }
.page-hero__grid { display: grid; gap: 40px; align-items: end; position: relative; z-index: 1; }
.page-hero__title { font-size: clamp(3rem, 1.6rem + 6.4vw, 7.2rem); max-width: 13ch; margin-bottom: 22px; text-wrap: balance; }
.page-hero__lead { margin: 0; }
.page-hero__media { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: visible; }
.page-hero__frame { border-radius: var(--radius-lg); }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.page-hero__note {
  position: absolute; left: -10px; bottom: -22px; max-width: 78%;
  background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 8px;
  font-size: 1.35rem; transform: rotate(-2.5deg); box-shadow: var(--shadow);
}
.page-hero__chalk { width: 420px; right: -60px; top: 90px; }
@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
  .page-hero__grid:has(> :only-child) { grid-template-columns: 1fr; }
}

/* ---------- Subnavegación ---------- */
.subnav { position: sticky; top: 0; z-index: 40; background: rgba(246, 241, 231, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.94rem; text-decoration: none; border: 1.5px solid var(--line); background: var(--card); transition: background-color 0.2s, border-color 0.2s; }
.subnav a:hover, .subnav a.is-active { border-color: var(--navy); background: var(--navy); color: var(--paper); }
.subnav .hand { font-size: 1.15rem; color: var(--blue); }
.subnav a:hover .hand, .subnav a.is-active .hand { color: var(--gold); }
.site-header:not(.is-hidden) ~ main .subnav { top: var(--header-h); transition: top 0.45s var(--ease-out); }
.subnav { transition: top 0.45s var(--ease-out); }

/* ---------- Nosotros: línea de tiempo ---------- */
.timeline-wrap { position: relative; }
.timeline__line { position: absolute; left: 21px; top: 0; height: 100%; width: 10px; overflow: visible; }
.timeline__line path { stroke: var(--gold); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; fill: none; }
.timeline { list-style: none; display: grid; gap: clamp(44px, 6vw, 88px); position: relative; }
.timeline__item { display: grid; grid-template-columns: 52px 1fr; gap: 6px 18px; }
.timeline__marker span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--paper); font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; box-shadow: 0 0 0 6px var(--paper); }
.timeline__text, .timeline__media { grid-column: 2; }
.timeline__label { font-size: 1.6rem; color: var(--blue); margin: 0 0 2px; }
.timeline__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 780; margin-bottom: 12px; }
.timeline__text p:last-child { margin: 0; max-width: 60ch; }
.timeline__media img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .timeline__item { grid-template-columns: 52px 1.1fr 0.9fr; gap: 0 44px; align-items: center; }
  .timeline__media { grid-column: 3; grid-row: 1; }
  .timeline__text { grid-row: 1; }
  .timeline__item:nth-child(even) .timeline__media img { transform: rotate(1.5deg); }
  .timeline__item:nth-child(odd) .timeline__media img { transform: rotate(-1.5deg); }
}

/* Misión */
.mission { overflow: hidden; }
.mission__title { font-size: clamp(2rem, 1.2rem + 3.4vw, 4.2rem); max-width: 24ch; margin-bottom: 28px; text-wrap: balance; }
.mission__title::first-line { color: var(--gold); }
.mission__text { font-size: 1.15rem; max-width: 56ch; margin: 0; }

/* Valores */
.values-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card { position: relative; background: var(--card); border-radius: var(--radius-lg); padding: 14px 14px 26px; box-shadow: var(--shadow); transform-style: preserve-3d; transition: box-shadow 0.4s; }
.value-card:hover { box-shadow: var(--shadow-lg); }
.value-card__media { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 16px; }
.value-card__media img { width: 100%; height: 100%; object-fit: cover; }
.value-card__n { position: absolute; top: 4px; right: 18px; font-size: 4.2rem; color: var(--gold); -webkit-text-stroke: 2px var(--navy); margin: 0; }
.value-card__title, .value-card__lead, .value-card > p { padding-inline: 10px; }
.value-card__title { font-size: 1.45rem; font-weight: 780; margin-bottom: 6px; }
.value-card__lead { font-weight: 650; color: var(--blue-deep); }
.value-card > p:last-child { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

/* Personas */
.people-grid { display: grid; gap: 18px; margin-bottom: 30px; }
@media (min-width: 800px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
.people-card { background: var(--card); border-radius: var(--radius-lg); padding: 30px 26px; border: 1px solid var(--line); }
.people-card__icon { width: 48px; height: 48px; color: var(--blue); margin-bottom: 18px; }
.people-card h3 { font-size: 1.35rem; font-weight: 750; margin-bottom: 8px; }
.people-card p { color: var(--ink-soft); margin: 0; }
.people__note { font-weight: 600; }

/* ---------- Nuestro trabajo ---------- */
.program { overflow: hidden; }
.program__grid { display: grid; gap: 48px; align-items: center; }
.program__media { position: relative; padding-bottom: 12%; }
.program__main { margin: 0; }
.program__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.program__second { position: absolute; right: -4%; bottom: 0; width: 46%; margin: 0; transform: rotate(3deg); }
.program__second img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 8px solid var(--card); box-shadow: var(--shadow-lg); }
.program__text { position: relative; }
.program__n { position: absolute; top: -0.42em; right: 0; font-size: clamp(6rem, 4rem + 8vw, 11rem); color: transparent; -webkit-text-stroke: 2px rgba(33, 105, 178, 0.28); margin: 0; z-index: -1; pointer-events: none; }
.program__text .section-title { margin-bottom: 20px; }
.check-list { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.check-list .icon { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--gold); color: var(--navy); stroke-width: 2.6; margin-top: 1px; }
@media (min-width: 900px) {
  .program__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .program--alt .program__media { order: 2; }
}

.pillar-grid { list-style: none; display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 700px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .pillar-grid { grid-template-columns: repeat(6, 1fr); }
  .pillar-mini { grid-column: span 2; }
  .pillar-mini:nth-child(n + 4) { grid-column: span 3; }
}
.pillar-mini { background: var(--navy); padding: 28px 24px 32px; transition: background-color 0.3s; }
.pillar-mini:hover { background: var(--navy-2); }
.pillar-mini__n { color: var(--gold); font-size: 1.5rem; margin-bottom: 8px; }
.pillar-mini__word { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.5rem); margin-bottom: 12px; color: var(--paper); }
.pillar-mini p:last-child { font-size: 0.96rem; margin: 0; }

.families__grid { display: grid; gap: 44px; align-items: center; }
.families__media img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); max-width: 460px; }
.families__text .section-title { margin-bottom: 18px; }
@media (min-width: 900px) { .families__grid { grid-template-columns: 0.8fr 1.2fr; gap: 80px; } }

/* ---------- Impacto ---------- */
.changes-list { display: grid; gap: 22px; }
@media (min-width: 760px) { .changes-list { grid-template-columns: repeat(2, 1fr); } }
.change { position: relative; overflow: hidden; display: grid; gap: 18px; background: var(--card); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.change__word { position: absolute; right: -6px; bottom: -14px; font-size: clamp(3.4rem, 2.4rem + 3vw, 5.6rem); color: rgba(231, 183, 20, 0.22); margin: 0; line-height: 0.8; pointer-events: none; }
.change__media img { border-radius: 14px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.change__text { position: relative; padding: 0 8px 10px; }
.change__n { color: var(--blue); font-size: 1.5rem; margin-bottom: 4px; }
.change h3 { font-size: 1.45rem; font-weight: 780; margin-bottom: 8px; }
.change p:last-child { color: var(--ink-soft); margin: 0; }

.story { overflow: hidden; }
.story__chalk { width: 560px; left: -140px; bottom: -60px; opacity: 0.12 !important; }
.story__grid { display: grid; gap: 32px; position: relative; }
.story__lead { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); font-weight: 600; color: var(--paper) !important; line-height: 1.45; }
@media (min-width: 900px) { .story__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }

.ti__grid, .hashtag__grid { display: grid; gap: 44px; align-items: center; }
.ti__media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lg); }
.ti__text .section-title, .hashtag .section-title { margin-bottom: 18px; }
.hashtag__media { margin: 0; }
.hashtag__media img { border-radius: var(--radius-lg); width: 100%; box-shadow: var(--shadow-lg); transform: rotate(-1.5deg); }
.hashtag__title { color: var(--blue); text-transform: none; font-size: clamp(2rem, 1rem + 2.8vw, 3.5rem); max-width: none; }
@media (min-width: 900px) {
  .ti__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .hashtag__grid { grid-template-columns: 1.05fr 0.95fr; gap: 80px; }
}

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 650; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.filter__count { font-size: 0.78rem; padding: 2px 8px; border-radius: 999px; background: rgba(14, 31, 58, 0.08); }
.filter[aria-pressed="true"] .filter__count { background: var(--gold); color: var(--navy); }
.masonry { list-style: none; columns: 2 160px; column-gap: 12px; }
@media (min-width: 700px) { .masonry { columns: 3; column-gap: 16px; } }
@media (min-width: 1100px) { .masonry { columns: 4; } }
.masonry__item { break-inside: avoid; margin-bottom: 12px; }
@media (min-width: 700px) { .masonry__item { margin-bottom: 16px; } }
.masonry__item.is-hidden { display: none; }
.masonry__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.masonry__btn img { width: 100%; transition: transform 0.8s var(--ease-out), filter 0.4s; }
.masonry__btn:hover img { transform: scale(1.05); }
.masonry__zoom { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; opacity: 0; transform: scale(0.7); transition: opacity 0.3s, transform 0.3s var(--ease-out); }
.masonry__btn:hover .masonry__zoom, .masonry__btn:focus-visible .masonry__zoom { opacity: 1; transform: none; }
.gallery__more { text-align: center; margin-top: 52px; display: grid; justify-items: center; gap: 4px; }
.gallery__more .hand { font-size: 2rem; color: var(--blue); margin: 0; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8, 16, 31, 0.94); display: grid; place-items: center; padding: 64px 12px; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: min(1100px, 100%); display: grid; gap: 14px; justify-items: center; }
.lightbox__figure img { max-height: 76vh; width: auto; max-width: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox__figure figcaption { color: rgba(246, 241, 231, 0.85); text-align: center; max-width: 60ch; }
.lightbox__close, .lightbox__nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(246, 241, 231, 0.35); background: rgba(14, 31, 58, 0.6); color: var(--paper); display: grid; place-items: center; transition: background-color 0.2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--navy); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 699px) { .lightbox__nav { top: auto; bottom: 14px; transform: none; } }

/* ---------- Colaborar ---------- */
.donate__grid { display: grid; gap: 40px; align-items: center; }
.donate__card { position: relative; overflow: hidden; background: var(--gold); border-radius: var(--radius-lg); padding: clamp(30px, 4.5vw, 56px); box-shadow: var(--shadow-lg); }
.donate__card .eyebrow { color: var(--navy); }
.donate__card .eyebrow::before { background: var(--navy); }
.donate__title { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.2rem); margin-bottom: 20px; max-width: 14ch; }
.donate__card > p { max-width: 50ch; position: relative; z-index: 1; }
.donate__card .btn { position: relative; z-index: 1; margin: 6px 0 16px; }
.donate__note { font-size: 0.88rem; margin: 0; }
.donate__chalk { width: 320px; right: -60px; bottom: -40px; stroke: var(--navy); opacity: 0.22; }
.donate__hand { font-size: 1.8rem; color: var(--blue-deep); margin-bottom: 18px; }
.uses { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.use { display: grid; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; font-weight: 750; font-size: 1.08rem; line-height: 1.25; }
.use__icon { width: 40px; height: 40px; color: var(--blue); }
.donate__closing { margin-top: 18px; font-weight: 600; }
@media (min-width: 900px) { .donate__grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }

.way__grid { display: grid; gap: 40px; align-items: center; }
.way__media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; box-shadow: var(--shadow-lg); }
.way__text .section-title { margin-bottom: 18px; }
.way__text > p { max-width: 54ch; }
@media (min-width: 900px) {
  .way__grid { grid-template-columns: 0.85fr 1.15fr; gap: 80px; }
  .way--reverse .way__media { order: 2; }
}
.other__inner { text-align: center; display: grid; justify-items: center; gap: 6px; background: var(--navy); color: var(--paper); border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px) 24px; }
.other__title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); margin-bottom: 8px; }
.other__inner p { color: rgba(246, 241, 231, 0.85); }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .contact__grid { grid-template-columns: 1.35fr 0.85fr; gap: 56px; } }
.contact__form-wrap { background: var(--card); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.contact__title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 12px; }
.contact__intro { color: var(--ink-soft); margin-bottom: 28px; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-weight: 650; font-size: 0.97rem; }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid rgba(14, 31, 58, 0.28); border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--navy); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(33, 105, 178, 0.22); background: #fff; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 0.9rem; font-weight: 600; margin: 0; min-height: 0; }
.field__error:empty { display: none; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.field--check label { font-weight: 450; font-size: 0.95rem; }
.field--check .field__error { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--paper); color: var(--ink-soft); font-size: 0.95rem; }
.form__note .icon { color: #1c8a4a; margin-top: 3px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form__status { padding: 16px 18px; border-radius: 12px; font-weight: 600; }
.form__status.is-ok { background: #e3f4e8; color: var(--ok); border: 1.5px solid #9fd6b2; }
.form__status.is-error { background: #fdecea; color: var(--error); border: 1.5px solid #f3b4ad; }
.form__status a { color: inherit; }
.contact__aside { display: grid; gap: 18px; }
.contact-card { background: var(--card); border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line); }
.contact-card__title { font-size: 1.35rem; font-weight: 780; margin-bottom: 12px; }
.contact-card p { display: flex; gap: 8px; align-items: flex-start; }
.contact-card--wa { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.contact-card--wa .eyebrow { color: var(--gold); }
.contact-card--wa p:not(.eyebrow) { font-size: 1.3rem; font-weight: 700; }
.social-list { list-style: none; display: grid; gap: 8px; }
.social-list a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; text-decoration: none; background: var(--paper); transition: background-color 0.2s; }
.social-list a:hover { background: var(--paper-2); }
.social-list a > .icon:first-child { width: 28px; height: 28px; color: var(--blue); }
.social-list span { display: grid; line-height: 1.25; }
.social-list small { color: var(--ink-soft); }
.social-list__go { margin-left: auto; }

/* ---------- Legal / 404 ---------- */
.legal { padding-top: calc(var(--header-h) + 64px); }
.legal__inner { max-width: 760px; }
.legal h1 { margin-bottom: 28px; }
.legal h2 { font-size: 1.35rem; font-weight: 780; margin: 34px 0 10px; }
.error-page { min-height: 86vh; display: grid; align-items: center; padding-top: calc(var(--header-h) + 40px); overflow: hidden; }
.error-page__inner { position: relative; z-index: 1; }
.error-page__hand { font-size: 2.2rem; color: var(--blue); margin: 0; }
.error-page__title { font-size: clamp(3rem, 1.8rem + 6vw, 7rem); margin-bottom: 20px; max-width: 12ch; }
.error-page__chalk { width: min(90vw, 800px); right: -10%; bottom: 10%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--paper); padding: clamp(64px, 8vw, 110px) 0 28px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; background: url("../img/rosa-512.png") center / contain no-repeat; opacity: 0.06; transform: rotate(18deg); pointer-events: none; }
.site-footer__top { display: grid; gap: 28px; padding-bottom: 52px; border-bottom: 1px solid var(--line-light); margin-bottom: 48px; align-items: end; }
.site-footer__claim { font-size: clamp(2.8rem, 1.6rem + 5vw, 6rem); margin: 0; }
@media (min-width: 900px) { .site-footer__top { grid-template-columns: 1.4fr auto; } }
.site-footer__grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .site-footer__grid { grid-template-columns: 1.4fr 0.8fr 0.9fr 1.1fr; } }
.site-footer__brand p { color: rgba(246, 241, 231, 0.75); max-width: 36ch; margin-top: 18px; }
.site-footer .label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer__col ul { list-style: none; display: grid; gap: 10px; }
.site-footer__col a, .site-footer__col span { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: rgba(246, 241, 231, 0.85); }
.site-footer__col a:hover { color: var(--gold); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-light); font-size: 0.88rem; color: rgba(246, 241, 231, 0.7); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: rgba(246, 241, 231, 0.9); }

.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease-out);
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.menu-open .wa-float { display: none; }

/* ---------- Revelados al hacer scroll ----------
   Solo se ocultan si hay JS (clase .js en <html>). Red de seguridad en main.js. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(12% 8% 12% 8% round 28px); transition: clip-path 1.1s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round 0); }
/* Defensa: un elemento con texto partido nunca queda invisible */
.js [data-reveal][data-split] { opacity: 1; transform: none; }
/* La máscara de cada línea deja aire arriba para tildes y Ñ en mayúsculas */
.split-line-mask { padding-top: 0.16em; margin-top: -0.16em; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__line { padding-top: 0.14em; margin-top: -0.14em; }

/* ---------- Movimiento reducido: solo se apaga lo intrusivo ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-marquee], .hero__sticker, .scroll-cue .icon { animation: none !important; }
  @view-transition { navigation: none; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .mobile-menu, .wa-float, .tapes, .reel, .chalk, .cta-band__bg { display: none !important; }
  body { background: #fff; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
