/* ==========================================================
   CFE de Don Benito — Landing
   Arquitectura: system fonts, custom properties, fluid type
   WCAG 2.1 AA, prefers-reduced-motion, print CSS
   ========================================================== */

/* --- Tokens --- */
:root {
  /* Paleta */
  --c-bg:          #f6f4ee;        /* crema papel */
  --c-bg-alt:      #ebe7dc;        /* crema tierra */
  --c-ink:         #141715;        /* negro verdoso */
  --c-ink-soft:    #3a413b;
  --c-muted:       #6a6f68;
  --c-line:        #d7d2c3;

  --c-green:       #2a4a1e;        /* verde institucional */
  --c-green-dark:  #1a3012;
  --c-green-deep:  #0e1e0a;        /* casi negro */
  --c-olive:       #5d7c3e;
  --c-gold:        #b38a3a;        /* dorado trigo */
  --c-gold-soft:   #d9b874;

  --c-on-dark:     #f6f4ee;
  --c-on-dark-mut: #b8b8ae;

  /* Tipografía (system font stack premium, sin descargas externas) */
  --ff-display: "Iowan Old Style", "Apple Garamond", Baskerville,
                "Times New Roman", "Droid Serif", Times,
                "Source Serif Pro", serif, "Apple Color Emoji",
                "Segoe UI Emoji", "Segoe UI Symbol";
  --ff-text:    system-ui, -apple-system, "Segoe UI", Roboto,
                "Helvetica Neue", Arial, sans-serif;
  --ff-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Escala tipográfica fluida */
  --fs-hero:     clamp(2.6rem, 1.8rem + 4.5vw, 6rem);
  --fs-display:  clamp(2.1rem, 1.6rem + 2.8vw, 4.2rem);
  --fs-h2:       clamp(1.75rem, 1.35rem + 1.8vw, 2.8rem);
  --fs-h3:       clamp(1.4rem, 1.2rem + 0.9vw, 2rem);
  --fs-lead:     clamp(1.05rem, 0.95rem + 0.5vw, 1.2rem);
  --fs-body:     1.0625rem;
  --fs-small:    0.875rem;
  --fs-eyebrow:  0.78rem;

  /* Espaciados */
  --sp-1: .5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 7rem;
  --sp-8: 10rem;

  /* Layout */
  --wrap: 72rem;
  --wrap-narrow: 56rem;
  --radius: 4px;
  --radius-lg: 10px;

  /* Tiempos */
  --dur-fast: 180ms;
  --dur: 320ms;
  --ease: cubic-bezier(.2,.7,.2,1);

  --shadow-sm: 0 1px 2px rgba(20,23,21,.08), 0 2px 6px rgba(20,23,21,.04);
  --shadow-md: 0 4px 12px rgba(20,23,21,.12), 0 12px 32px rgba(20,23,21,.08);
}

/* --- Reset moderno --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--ff-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}
img { font-style: italic; /* mejora alt visible si falla la carga */ }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

a {
  color: inherit;
  text-decoration-color: var(--c-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease), text-decoration-color var(--dur-fast) var(--ease);
}
a:hover { color: var(--c-green); text-decoration-color: currentColor; }

/* --- Foco accesible --- */
:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Utilidades --- */
.wrap {
  width: min(100% - 2.4rem, var(--wrap));
  margin-inline: auto;
}
.visually-hidden {
  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 --- */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--c-ink);
  color: var(--c-on-dark);
  padding: .8rem 1.2rem;
  text-decoration: none;
  font-weight: 500;
  z-index: 999;
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 1rem;
}

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(246, 244, 238, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--c-ink);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  color: var(--c-green);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: .72rem;
  color: var(--c-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
}

/* Nav */
.nav-primary { display: flex; align-items: center; }
.nav-list {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
.nav-list a {
  font-size: .92rem;
  text-decoration: none;
  color: var(--c-ink-soft);
  padding: .3rem .1rem;
  position: relative;
}
.nav-list a:hover {
  color: var(--c-green);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list .nav-cta {
  background: var(--c-ink);
  color: var(--c-on-dark);
  padding: .55rem 1rem;
  border-radius: 999px;
  font-weight: 500;
}
.nav-list .nav-cta:hover {
  background: var(--c-green);
  color: #fff;
}
.nav-list .nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  padding: 8px;
  color: var(--c-ink);
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed;
    inset: 64px 0 0 0;
    flex-direction: column;
    gap: 0;
    background: var(--c-bg);
    padding: 2rem 1.2rem 3rem;
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    overflow-y: auto;
  }
  .nav-list li { width: 100%; }
  .nav-list a {
    display: block;
    font-size: 1.15rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--c-line);
    text-align: left;
  }
  .nav-list .nav-cta {
    margin-top: 1.5rem;
    display: inline-block;
    text-align: center;
    padding: .85rem 1.4rem;
  }
  body.nav-open .nav-list { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-family: var(--ff-text);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-ink);
  color: var(--c-on-dark);
  border-color: var(--c-ink);
}
.btn-primary:hover { background: var(--c-green); border-color: var(--c-green); color: #fff; box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--c-on-dark);
  border-color: rgba(246,244,238,.5);
}
.btn-ghost:hover { background: rgba(246,244,238,.15); border-color: var(--c-on-dark); color: #fff; }

.btn-ghost-dark {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn-ghost-dark:hover { background: var(--c-ink); color: var(--c-on-dark); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  color: var(--c-on-dark);
  padding-top: 80px;
  padding-bottom: var(--sp-6);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,30,10,.25) 0%, rgba(14,30,10,.3) 45%, rgba(14,30,10,.85) 100%),
    linear-gradient(100deg, rgba(14,30,10,.55) 0%, rgba(14,30,10,0) 55%);
}

.hero-content {
  padding-block: var(--sp-5) var(--sp-6);
  max-width: 60rem;
  animation: heroFade 900ms var(--ease) both;
  animation-delay: 150ms;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; }
}

.eyebrow {
  font-family: var(--ff-text);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
  margin-bottom: 1.4rem;
  padding-left: 2.6rem;
  position: relative;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 2rem; height: 1px;
  background: currentColor;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1.6rem;
}
.hero-num {
  font-style: italic;
  font-weight: 400;
  color: var(--c-gold-soft);
}
.hero-sub {
  font-size: var(--fs-lead);
  max-width: 36rem;
  color: rgba(246,244,238,.88);
  margin-bottom: 2.4rem;
  font-weight: 300;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1.4rem;
}
.hero-micro {
  font-size: .82rem;
  color: rgba(246,244,238,.6);
  letter-spacing: .04em;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1px solid rgba(246,244,238,.5);
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.hero-scroll-dot {
  width: 4px; height: 8px;
  background: rgba(246,244,238,.9);
  border-radius: 2px;
  animation: dot 1.8s var(--ease) infinite;
}
@keyframes dot {
  0%, 100% { transform: translateY(-6px); opacity: 0; }
  40%      { transform: translateY(0);     opacity: 1; }
  80%      { transform: translateY(6px);   opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-dot { animation: none; }
}

/* ==========================================================
   AUTORIDAD — barra de cifras
   ========================================================== */
.authority {
  background: var(--c-green-deep);
  color: var(--c-on-dark);
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.06);
}
.authority-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.authority-grid li {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding-left: 1.4rem;
  border-left: 1px solid rgba(255,255,255,.15);
}
.authority-num {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.2rem);
  font-weight: 500;
  color: var(--c-gold-soft);
  letter-spacing: -0.03em;
  line-height: 1;
}
.authority-label {
  font-size: .9rem;
  color: var(--c-on-dark-mut);
  line-height: 1.4;
}
.authority-label strong {
  color: #fff;
  font-weight: 500;
}

/* ==========================================================
   EXPLAINER — CRN
   ========================================================== */
.explainer {
  padding-block: var(--sp-7);
  background: var(--c-bg);
}
.explainer-wrap {
  max-width: var(--wrap-narrow);
}
.section-tag {
  font-family: var(--ff-text);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 1.4rem;
  padding-left: 2.6rem;
  position: relative;
}
.section-tag::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 2rem; height: 1px;
  background: currentColor;
}
.section-tag.light { color: var(--c-gold-soft); }
.section-tag.dark  { color: var(--c-ink-soft); }

.section-title {
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.6rem;
}
.lead {
  font-size: var(--fs-lead);
  color: var(--c-ink-soft);
  max-width: 50rem;
}
.lead em {
  font-style: italic;
  color: var(--c-green);
  font-weight: 500;
}

.institutional-row {
  list-style: none;
  padding: 0;
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-line);
}
.institutional-row li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--c-muted);
  letter-spacing: .01em;
}
.inst-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-olive);
  display: inline-block;
}

/* ==========================================================
   RECORRIDO — 10 historias
   ========================================================== */
.recorrido {
  padding-bottom: var(--sp-6);
}
.recorrido-intro {
  text-align: left;
  max-width: var(--wrap-narrow);
  padding-block: var(--sp-5) var(--sp-5);
}

.story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding-block: var(--sp-6);
  border-top: 1px solid var(--c-line);
}
.story:first-of-type { border-top: 0; }

@media (min-width: 900px) {
  .story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    padding-inline: 2rem;
    max-width: var(--wrap);
    margin-inline: auto;
  }
  .story.reverse .story-media { order: 2; }
  .story.reverse .story-text  { order: 1; }
}

.story-media picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-bg-alt);
  box-shadow: var(--shadow-md);
}
.story-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.story:hover .story-media img {
  transform: scale(1.02);
}
@media (prefers-reduced-motion: reduce) {
  .story:hover .story-media img { transform: none; }
}

@media (max-width: 899px) {
  .story {
    padding-inline: 1.2rem;
  }
}

.story-text { padding-inline: 1.2rem; }
@media (min-width: 900px) {
  .story-text { padding-inline: 0; }
}
.story-num {
  font-family: var(--ff-text);
  font-size: .82rem;
  font-weight: 500;
  color: var(--c-gold);
  letter-spacing: .22em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.2rem;
  padding-left: 2.2rem;
  position: relative;
}
.story-num::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 1.6rem; height: 1px;
  background: currentColor;
}
.story-title {
  font-size: var(--fs-h2);
  font-weight: 500;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.story-text p {
  font-size: var(--fs-lead);
  color: var(--c-ink-soft);
  margin-bottom: 1rem;
}
.story-text p:last-child { margin-bottom: 0; }
.story-text strong {
  color: var(--c-ink);
  font-weight: 500;
}

/* ==========================================================
   INTERLUDE — El campo que viene
   ========================================================== */
.interlude {
  background: var(--c-green-deep);
  color: var(--c-on-dark);
  padding-block: var(--sp-7);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-block: var(--sp-5);
}
.interlude::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(179, 138, 58, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(93, 124, 62, 0.15) 0%, transparent 55%);
  z-index: -1;
}
.interlude-wrap {
  max-width: var(--wrap-narrow);
  text-align: left;
}
.interlude-title {
  font-size: var(--fs-display);
  font-weight: 500;
  color: #fff;
  margin-bottom: 1.4rem;
  letter-spacing: -0.025em;
}
.interlude p {
  font-size: var(--fs-lead);
  color: rgba(246, 244, 238, .82);
  max-width: 48rem;
}

/* ==========================================================
   CLOSING — "No es un curso"
   ========================================================== */
.closing {
  padding-block: var(--sp-7) var(--sp-5);
  background: var(--c-bg);
}
.closing-wrap {
  max-width: var(--wrap-narrow);
}
.closing-title {
  font-size: clamp(2.4rem, 1.8rem + 3vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  line-height: 1.05;
}
.closing-text {
  font-size: var(--fs-lead);
  color: var(--c-ink-soft);
  max-width: 44rem;
}

/* ==========================================================
   DEDICATION — A los que sostienen esto
   ========================================================== */
.dedication {
  background: var(--c-ink);
  color: var(--c-on-dark);
  padding-block: var(--sp-7);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.dedication::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(179, 138, 58, 0.08) 0%, transparent 60%);
  z-index: -1;
}
.dedication-wrap {
  max-width: var(--wrap-narrow);
  text-align: left;
}
.dedication-title {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.8rem);
  font-weight: 400;
  font-style: italic;
  color: #fff;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.dedication-text {
  font-size: var(--fs-lead);
  color: rgba(246, 244, 238, .82);
  line-height: 1.7;
  max-width: 44rem;
  margin-bottom: 1rem;
}
.dedication-final {
  color: var(--c-gold-soft);
  font-style: italic;
  margin-top: 1.4rem;
}

/* ==========================================================
   FINAL CTA
   ========================================================== */
.final-cta {
  background: var(--c-bg-alt);
  padding-block: var(--sp-7);
}
.final-cta-wrap { text-align: left; }
.final-cta-title {
  font-size: var(--fs-display);
  font-weight: 500;
  margin-bottom: 3rem;
  letter-spacing: -0.025em;
}
.final-cta-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .final-cta-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.cta-card {
  background: var(--c-bg);
  padding: 2.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cta-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
@media (prefers-reduced-motion: reduce) {
  .cta-card:hover { transform: none; }
}
.cta-kicker {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 500;
  color: var(--c-green);
}
.cta-heading {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.cta-card p {
  color: var(--c-ink-soft);
  margin-bottom: auto;
}
.cta-card .btn { align-self: flex-start; margin-top: .8rem; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: var(--c-green-deep);
  color: var(--c-on-dark);
  padding-block: var(--sp-6) var(--sp-4);
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr; gap: 3rem; }
}
.footer-col a { color: var(--c-gold-soft); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-name {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: .8rem;
}
.footer-sub {
  color: var(--c-on-dark-mut);
  margin-bottom: 1rem;
}
.footer-legal { font-size: .82rem; color: var(--c-on-dark-mut); }
.footer-heading {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--c-gold-soft);
  margin-bottom: .8rem;
  font-weight: 500;
}
.footer-contact p { margin-bottom: .4rem; }
address.footer-contact { font-style: normal; }
.footer-inst ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  color: var(--c-on-dark-mut);
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .8rem;
  color: rgba(184,184,174,.7);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.footer-legal-text {
  max-width: 54rem;
  flex: 1 1 28rem;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  flex-shrink: 0;
  padding: .5rem .95rem .55rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}
.footer-credit-label {
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: rgba(184,184,174,.65);
}
.footer-credit-name {
  font-family: var(--ff-display);
  font-size: .95rem;
  font-style: italic;
  font-weight: 500;
  color: var(--c-gold-soft);
  letter-spacing: -0.005em;
}

/* Print: el crédito también se imprime */
@media print {
  .footer-bottom { display: block; }
  .footer-credit {
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin-top: .5rem;
  }
  .footer-credit-label,
  .footer-credit-name { color: #000 !important; }
}

/* ==========================================================
   ANIMATION HOOKS — IntersectionObserver
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================
   PRINT
   ========================================================== */
@media print {
  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }
  .site-header, .nav-primary, .nav-toggle,
  .hero-scroll, .hero-overlay, .final-cta, .site-footer .footer-bottom,
  .btn, .hero-ctas, .hero-micro {
    display: none !important;
  }
  .hero {
    min-height: auto;
    padding: 2rem 0 1rem;
    color: #000;
  }
  .hero-bg, .hero-bg img { position: static; }
  .hero-bg { display: none; }
  .hero-content { padding: 0; }
  .hero-title, .section-title, .story-title, .interlude-title,
  .dedication-title, .closing-title, .final-cta-title {
    color: #000 !important;
    page-break-after: avoid;
  }
  .authority, .interlude, .dedication, .site-footer {
    background: #fff !important;
    color: #000 !important;
    border-top: 1px solid #000;
    padding-block: 1rem;
  }
  .authority-num, .dedication-final, .eyebrow, .section-tag, .story-num,
  .cta-kicker, .footer-heading, .footer-col a {
    color: #000 !important;
  }
  .story {
    grid-template-columns: 1fr !important;
    page-break-inside: avoid;
    padding-block: 1rem;
  }
  .story-media picture { box-shadow: none; }
  a[href^="http"]::after,
  a[href^="mailto:"]::after,
  a[href^="tel:"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #333;
  }
  .footer-inst ul { color: #000; }
  /* Cabecera de impresión */
  @page { margin: 1.4cm; }
}
