/* =========================================================
   MEGAORYX · Oryx — hoja de estilos principal
   Paleta: negro absoluto + oro del logo (#D6C094)
   Temas: automático (por defecto) · claro · oscuro
   ========================================================= */

@font-face {
  font-family: "Kontora";
  src: url("../fonts/kontora-black.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}
/* Fuentes alojadas en el propio servidor (sin peticiones a Google) */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

/* ---------- Tokens: tema claro (base) ---------- */
:root {
  --gold: #d6c094;
  --gold-strong: #c4a86a;
  --gold-ink: #7a5f2c;          /* oro legible sobre fondo claro */
  --black: #000;

  --bg: #f6f1e7;
  --bg-alt: #efe7d8;
  --surface: #fffdf8;
  --surface-2: #f9f4ea;
  --text: #1a1712;
  --text-soft: #4a4337;
  --muted: #6b6253;
  --line: rgba(122, 95, 44, .18);
  --accent: var(--gold-ink);
  --accent-contrast: #fff;
  --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 12px 32px -12px rgba(40, 30, 10, .18);
  --shadow-lg: 0 30px 60px -20px rgba(40, 30, 10, .35);
  --nav-bg: rgba(246, 241, 231, .78);

  --lc: #3f8f5a; --nt: #8aa23a; --vu: #d29a1e; --en: #d4612a; --cr: #c0392b; --ew: #6b3fa0; --ex: #222;

  --f-display: "Kontora", "Manrope", system-ui, sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);

  color-scheme: light;
}

/* ---------- Tokens: tema oscuro ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0907;
    --bg-alt: #110f0c;
    --surface: #16130f;
    --surface-2: #1c1914;
    --text: #efe8d8;
    --text-soft: #cfc6b2;
    --muted: #a39a86;
    --line: rgba(214, 192, 148, .16);
    --accent: var(--gold);
    --accent-contrast: #000;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px -14px rgba(0, 0, 0, .7);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .85);
    --nav-bg: rgba(10, 9, 7, .72);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0907;
  --bg-alt: #110f0c;
  --surface: #16130f;
  --surface-2: #1c1914;
  --text: #efe8d8;
  --text-soft: #cfc6b2;
  --muted: #a39a86;
  --line: rgba(214, 192, 148, .16);
  --accent: var(--gold);
  --accent-contrast: #000;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .85);
  --nav-bg: rgba(10, 9, 7, .72);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: clamp(16px, 1.05vw + 10px, 18px);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1.1em; }
em.latin, .latin { font-family: var(--f-serif); font-style: italic; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--gold); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Barra de progreso ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--gold-ink), var(--gold), #fff3d6);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.nav__inner { display: flex; align-items: center; gap: 16px; height: 72px; }
.nav.is-scrolled {
  background: var(--nav-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-family: var(--f-display); letter-spacing: .28em; font-size: 14px; }
.nav.is-scrolled .brand { color: var(--text); }

.nav__links { display: flex; gap: 4px; margin: 0 auto; list-style: none; padding: 0; }
.nav__links a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .02em;
  transition: color .2s, background .2s;
}
.nav__links a:hover, .nav__links a.is-active { color: #000; background: var(--gold); }
.nav.is-scrolled .nav__links a { color: var(--text-soft); }
.nav.is-scrolled .nav__links a:hover, .nav.is-scrolled .nav__links a.is-active { color: #000; }

.nav__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.seg {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(214, 192, 148, .28);
}
.nav.is-scrolled .seg { background: var(--surface-2); border-color: var(--line); }
.seg button, .seg a {
  display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  color: rgba(255, 255, 255, .75); font: 700 12px/1 var(--f-sans); letter-spacing: .08em; text-decoration: none;
  transition: background .2s, color .2s;
}
.nav.is-scrolled .seg button, .nav.is-scrolled .seg a { color: var(--muted); }
.seg button:hover, .seg a:hover { color: var(--gold); }
.seg [aria-pressed="true"], .seg [aria-current="true"] { background: var(--gold) !important; color: #000 !important; }
.seg svg { width: 16px; height: 16px; }

.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(214, 192, 148, .3);
  background: transparent; color: #fff; cursor: pointer; place-items: center;
}
.nav.is-scrolled .menu-btn { color: var(--text); border-color: var(--line); }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .nav__links {
    position: fixed; inset: 72px 12px auto 12px; flex-direction: column; gap: 2px;
    padding: 12px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .25s var(--ease);
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .nav__links a { color: var(--text) !important; padding: 12px 14px; font-size: 16px; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
  .seg button, .seg a { min-width: 30px; padding: 0 6px; }
}

/* ---------- Hero (siempre negro, como el logo) ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  background: #000; color: #fff; overflow: hidden; isolation: isolate;
  padding: 110px 0 90px;
}
.hero__photo {
  position: absolute; inset: -6% -4% -6% 34%; z-index: -3;
  background: url("../img/hero-gemsbok.webp") 58% 40% / cover no-repeat;
  opacity: .42; filter: sepia(.35) saturate(.85) contrast(1.05);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 80%, transparent 100%), linear-gradient(transparent 0%, #000 25%, #000 70%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 80%, transparent 100%), linear-gradient(transparent 0%, #000 25%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  will-change: transform;
}
.hero__sun {
  position: absolute; z-index: -2; width: min(92vmin, 900px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 192, 148, .22), rgba(214, 192, 148, 0) 62%);
  animation: breathe 9s ease-in-out infinite;
}
.hero canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__word {
  position: absolute; z-index: -1; bottom: -0.12em; left: 50%; transform: translateX(-50%);
  font-family: var(--f-display); font-size: clamp(120px, 30vw, 460px); letter-spacing: .06em; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(214, 192, 148, .16); white-space: nowrap; user-select: none;
}
.hero__content { text-align: center; padding: 0 var(--gutter); max-width: 900px; }
.hero__logo {
  width: min(320px, 62vw); margin: 0 auto 8px;
  filter: drop-shadow(0 0 30px rgba(214, 192, 148, .25));
  animation: rise 1.4s var(--ease) both;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.hero .eyebrow { color: var(--gold); animation: rise 1.4s .15s var(--ease) both; }
.hero h1 {
  font-family: var(--f-serif); font-weight: 500; font-style: italic;
  font-size: clamp(44px, 7.5vw, 104px); letter-spacing: -.01em; margin: 14px 0 10px;
  background: linear-gradient(180deg, #fff 10%, var(--gold) 120%); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1.4s .25s var(--ease) both;
}
.hero__lead { font-size: clamp(16px, 1.6vw, 20px); color: rgba(255, 255, 255, .78); max-width: 640px; margin: 0 auto 30px; animation: rise 1.4s .35s var(--ease) both; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; animation: rise 1.4s .45s var(--ease) both; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: .02em; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn--gold { background: var(--gold); color: #000; box-shadow: 0 10px 30px -10px rgba(214, 192, 148, .7); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(214, 192, 148, .9); }
.btn--ghost { color: #fff; border-color: rgba(214, 192, 148, .45); }
.btn--ghost:hover { background: rgba(214, 192, 148, .12); transform: translateY(-2px); }
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(214, 192, 148, .55); border-radius: 20px;
}
.scroll-cue::after {
  content: ""; position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--gold); border-radius: 2px; animation: cue 2s infinite;
}

/* ---------- Banda de datos ---------- */
.facts { background: #000; color: #fff; border-top: 1px solid rgba(214, 192, 148, .15); border-bottom: 1px solid rgba(214, 192, 148, .15); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: clamp(24px, 4vw, 44px) 16px; text-align: center; position: relative; }
.fact + .fact::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: rgba(214, 192, 148, .2); }
.fact__num { font-family: var(--f-serif); font-size: clamp(38px, 5vw, 64px); line-height: 1; color: var(--gold); font-weight: 500; }
.fact__num small { font-size: .45em; margin-left: 4px; color: rgba(214, 192, 148, .75); }
.fact__label { margin-top: 8px; font-size: 13px; letter-spacing: .06em; color: rgba(255, 255, 255, .7); }
@media (max-width: 760px) {
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3)::before { display: none; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(214, 192, 148, .12); }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--black { background: #000; color: #efe8d8; --text: #efe8d8; --text-soft: #cfc6b2; --muted: #a39a86; --accent: var(--gold); --line: rgba(214, 192, 148, .16); --surface: #121009; --surface-2: #19160f; }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 64px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.section h2 {
  font-family: var(--f-serif); font-weight: 500; font-size: clamp(36px, 5.2vw, 68px); letter-spacing: -.01em; margin-top: 14px;
}
.section h2 em { color: var(--accent); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-soft); }
.num-badge {
  position: absolute; top: clamp(40px, 7vw, 90px); right: var(--gutter);
  font-family: var(--f-display); font-size: clamp(60px, 12vw, 160px); line-height: 1; color: transparent;
  -webkit-text-stroke: 1px var(--line); pointer-events: none; user-select: none;
}

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

.figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface-2); }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.figure:hover img { transform: scale(1.04); }
.figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78)); color: #fff; font-size: 13px; line-height: 1.4;
}
.figure--frame::after {
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(214, 192, 148, .55); border-radius: calc(var(--radius) - 6px); pointer-events: none;
}

/* Taxonomía */
.taxo { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 28px 0 8px; padding: 0; list-style: none; }
.taxo li { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.taxo b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.taxo span { font-family: var(--f-serif); font-size: 21px; }
.quote {
  margin: 28px 0 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--gold);
  font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 2vw, 26px); line-height: 1.4; color: var(--text-soft);
}

/* ---------- Línea temporal ---------- */
.timeline { position: relative; max-width: 980px; margin: 0 auto; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline__fill { position: absolute; left: 50%; top: 0; width: 2px; margin-left: -.5px; background: linear-gradient(var(--gold), var(--gold-ink)); height: 0; }
.tl { position: relative; width: 50%; padding: 0 48px 56px 0; }
.tl:nth-child(even) { margin-left: 50%; padding: 0 0 56px 48px; }
.tl::before {
  content: ""; position: absolute; top: 8px; right: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 15%, transparent);
}
.section--alt .tl::before { background: var(--bg-alt); }
.tl:nth-child(even)::before { right: auto; left: -8px; }
.tl__date { font-family: var(--f-display); font-size: 12px; letter-spacing: .24em; color: var(--accent); text-transform: uppercase; }
.tl h3 { font-family: var(--f-serif); font-size: clamp(24px, 2.4vw, 30px); margin: 6px 0 8px; font-weight: 600; }
.tl p { color: var(--text-soft); margin: 0; }
.tl .card-img { margin-top: 16px; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .timeline::before, .timeline__fill { left: 8px; }
  .tl, .tl:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 44px 40px; }
  .tl::before, .tl:nth-child(even)::before { left: 0; right: auto; }
}

/* ---------- Especies ---------- */
.species { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.sp {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.sp:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sp__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.sp__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sp__img--illus img { object-fit: contain; background: #fff; }
.sp:hover .sp__img img { transform: scale(1.06); }
.iucn {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff;
  backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.iucn b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 10px; color: #fff; }
.iucn--lc b { background: var(--lc); } .iucn--vu b { background: var(--vu); color: #000; } .iucn--en b { background: var(--en); }
.tag-note {
  position: absolute; top: 14px; right: 14px; padding: 5px 10px; border-radius: 999px;
  background: var(--gold); color: #000; font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.sp__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.sp__latin { font-family: var(--f-serif); font-style: italic; color: var(--accent); font-size: 18px; }
.sp h3 { font-family: var(--f-serif); font-size: 30px; font-weight: 600; margin: 2px 0 10px; }
.sp p { color: var(--text-soft); font-size: 15.5px; }
.stats { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 10px; }
.stat { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.stat span:first-child { color: var(--muted); font-weight: 600; }
.stat__bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.stat__bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--gold-ink), var(--gold)); transition: width 1.4s var(--ease); }
.is-visible .stat__bar i { width: var(--v); }
.stat b { font-weight: 700; white-space: nowrap; }
.sp__range { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.sp__range svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--accent); }

/* Tabla comparativa */
.table-wrap { margin-top: 48px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
caption { text-align: left; padding: 18px 20px 0; font-family: var(--f-serif); font-size: 22px; font-weight: 600; }
th, td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td:first-child { font-family: var(--f-serif); font-size: 18px; }

/* ---------- Hábitat ---------- */
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-top: 30px; }
.region { padding: 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.region::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; border: 1px solid var(--line); }
.region h3 { font-family: var(--f-serif); font-size: 22px; margin-bottom: 4px; }
.region p { margin: 0; font-size: 14.5px; color: var(--muted); }
.region .latin { color: var(--accent); font-size: 15px; }

.map { position: relative; margin-top: 8px; }
.map svg { width: 100%; height: auto; display: block; }
.map .land { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.2; }
.map .zone { fill: var(--gold); fill-opacity: .35; stroke: var(--gold); stroke-width: 1.5; }
.map .zone--strong { fill-opacity: .55; }
.map text { font-family: var(--f-sans); font-size: 11px; font-weight: 700; fill: var(--text-soft); letter-spacing: .04em; }
.map .pulse { fill: var(--gold); animation: pulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }

.adapt { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; margin-top: 56px; }
.ad { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.ad:hover { border-color: var(--gold); transform: translateY(-4px); }
.ad__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--accent); margin-bottom: 16px; }
.ad__icon svg { width: 26px; height: 26px; }
.ad h3 { font-family: var(--f-serif); font-size: 23px; margin-bottom: 6px; }
.ad p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* ---------- Alimentación ---------- */
.diet { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; padding: 0; list-style: none; }
.diet li {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600;
}
.diet li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.daycycle { margin-top: 56px; padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.daycycle h3 { font-family: var(--f-serif); font-size: 26px; }
.daybar {
  position: relative; height: 64px; border-radius: 14px; margin: 22px 0 10px; overflow: hidden;
  background: linear-gradient(90deg, #0d1424 0%, #1b2440 17%, #e8a65a 25%, #f7dfa6 33%, #fff4d1 50%, #f7dfa6 67%, #e98f4b 75%, #2a2546 83%, #0d1424 100%);
}
.daybar__win { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .0) 0 6px, rgba(0, 0, 0, .18) 6px 8px); border-left: 2px solid #000; border-right: 2px solid #000; }
.daybar__win span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #000; color: var(--gold); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; white-space: nowrap; letter-spacing: .04em; }
.daybar__rest { position: absolute; top: 0; bottom: 0; display: grid; place-items: center; }
.daybar__rest span { background: rgba(255, 255, 255, .85); color: #5a4720; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.dayticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: 14px; color: var(--text-soft); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
@media (max-width: 600px) { .daybar__win span, .daybar__rest span { font-size: 9px; padding: 2px 4px; } .dayticks span:nth-child(even) { visibility: hidden; } }

/* ---------- Reproducción ---------- */
.lifecycle { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; position: relative; }
.step { position: relative; padding: 70px 20px 10px; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 20px;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-size: 13px; letter-spacing: .1em; color: #000; background: var(--gold);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 16%, transparent);
}
.step::after { content: ""; position: absolute; top: 25px; left: 84px; right: -4px; height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px); }
.step:last-child::after { display: none; }
.step h3 { font-family: var(--f-serif); font-size: 23px; margin-bottom: 2px; }
.step strong { display: block; color: var(--accent); font-size: 14px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-soft); margin: 0; }
@media (max-width: 900px) { .step::after { display: none; } }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 60px; }
.duo .figure { aspect-ratio: 4 / 3; }
@media (max-width: 700px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Conservación ---------- */
.scale { margin: 10px 0 50px; }
.scale__bar { display: grid; grid-template-columns: repeat(7, 1fr); border-radius: 12px; overflow: hidden; }
.scale__bar span { padding: 14px 4px; text-align: center; font-weight: 800; font-size: 13px; color: #fff; letter-spacing: .06em; }
.scale__labels { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 8px; font-size: 11.5px; text-align: center; color: var(--muted); line-height: 1.3; }
.scale__marks { position: relative; height: 92px; margin-bottom: 6px; }
.mark {
  position: absolute; bottom: 0; transform: translateX(-50%); text-align: center; font-size: 12px; font-weight: 700; line-height: 1.25;
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 120px;
}
.mark::after { content: ""; width: 2px; height: 18px; background: var(--gold); }
.mark em { font-family: var(--f-serif); font-weight: 500; color: var(--accent); font-size: 14px; }
.mark--b { bottom: 46px; }
.mark--b::after { height: 64px; }
@media (max-width: 640px) {
  .scale__labels { font-size: 9.5px; }
  .mark { font-size: 10px; width: 80px; } .mark em { font-size: 12px; }
}

.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.story { position: relative; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.story__big { font-family: var(--f-serif); font-size: clamp(48px, 6vw, 72px); line-height: 1; color: var(--accent); font-weight: 500; }
.story h3 { font-family: var(--f-serif); font-size: 26px; margin: 10px 0 8px; }
.story p { color: var(--text-soft); font-size: 15.5px; margin: 0; }
.threats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.threats li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--text-soft); }

/* ---------- Curiosidades ---------- */
.trivia { columns: 3 300px; column-gap: 22px; }
.tv { break-inside: avoid; margin: 0 0 22px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; }
.tv__k { font-family: var(--f-display); font-size: 11px; letter-spacing: .24em; color: var(--accent); text-transform: uppercase; }
.tv h3 { font-family: var(--f-serif); font-size: 25px; margin: 8px 0 8px; }
.tv p { margin: 0; color: var(--text-soft); font-size: 15.5px; }
.tv--dark { background: #000; color: #efe8d8; border-color: rgba(214, 192, 148, .3); }
.tv--dark p { color: #cfc6b2; }
.tv--dark .tv__k { color: var(--gold); }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 12px; }
.gallery button {
  padding: 0; border: 0; cursor: zoom-in; border-radius: 14px; overflow: hidden; background: var(--surface-2); position: relative;
}
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.85); }
.gallery button:hover img { transform: scale(1.07); filter: saturate(1.05); }
.gallery button::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(214, 192, 148, .2); border-radius: inherit; }
.g1 { grid-column: span 7; grid-row: span 3; } .g2 { grid-column: span 5; grid-row: span 3; }
.g3 { grid-column: span 4; grid-row: span 2; } .g4 { grid-column: span 4; grid-row: span 2; } .g5 { grid-column: span 4; grid-row: span 2; }
.g6 { grid-column: span 5; grid-row: span 3; } .g7 { grid-column: span 7; grid-row: span 3; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery button { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery .g1, .gallery .g7 { grid-column: span 2 !important; grid-row: span 2 !important; }
}

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); backdrop-filter: blur(4px); }
.lightbox__inner { height: 100%; display: grid; place-items: center; padding: 60px 16px 20px; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; border-radius: 12px; box-shadow: 0 40px 80px rgba(0, 0, 0, .6); }
.lightbox p { color: #ddd; text-align: center; font-size: 14px; margin: 14px auto 0; max-width: 700px; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(214, 192, 148, .5); background: #000; color: var(--gold); font-size: 22px; cursor: pointer; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--f-serif); font-size: clamp(20px, 2vw, 25px); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--text-soft); padding: 0 0 22px; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: #000; color: #bdb4a0; padding: 80px 0 30px; font-size: 14.5px; border-top: 1px solid rgba(214, 192, 148, .15); }
.footer a { color: var(--gold); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 40px; }
.footer__logo { width: 170px; margin: 0 0 18px; }
.footer h2 { font-family: var(--f-display); font-size: 12px; letter-spacing: .26em; color: var(--gold); margin-bottom: 18px; font-weight: 900; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { color: #d8d0bd; text-decoration: none; }
.footer ul a:hover { color: var(--gold); }
.credits { font-size: 12.5px; line-height: 1.55; }
.credits li { color: #9b927f; }
.footer__bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(214, 192, 148, .12); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: 13px; }
.footer .seg { background: rgba(255, 255, 255, .06); border-color: rgba(214, 192, 148, .28); }
.footer .seg button, .footer .seg a { color: #bdb4a0; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr; } }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(214, 192, 148, .5); background: #000; color: var(--gold); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: .3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Animaciones ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .progress, .to-top, .hero canvas, .scroll-cue, .gallery, .lightbox { display: none !important; }
  .hero { min-height: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Ajustes: lista de la línea temporal y marcas históricas */
.timeline > ol { list-style: none; margin: 0; padding: 0; }
.mark--ghost { opacity: .6; font-weight: 600; }
.mark--ghost::after { background: none; border-left: 2px dashed var(--muted); width: 0; }

@media (max-width: 760px) {
  .hero__photo { inset: -6% -20% -6% -20%; opacity: .3;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 80%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 80%); }
}
.tl .card-img img { width: 100%; max-height: 300px; object-fit: cover; }
.adapt { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .adapt { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .adapt { grid-template-columns: 1fr; } }
@media (min-width: 1100px) { .lifecycle { grid-template-columns: repeat(7, 1fr); } .step { padding-left: 0; padding-right: 14px; } .step::before { left: 0; } .step::after { left: 64px; } }

/* ---------- Herramientas agrupadas: tema · idioma · compartir ---------- */
.tools-group {
  display: inline-flex; align-items: center; height: 40px; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(214, 192, 148, .28);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.nav.is-scrolled .tools-group { background: var(--surface-2); border-color: var(--line); }
.dd { position: relative; display: flex; }
.dd + .dd::before {
  content: ""; align-self: center; width: 1px; height: 18px; margin: 0 2px;
  background: rgba(214, 192, 148, .3);
}
.nav.is-scrolled .dd + .dd::before { background: var(--line); }

.dd__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 11px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: #fff; font: 700 12px/1 var(--f-sans); letter-spacing: .04em; transition: background .2s, color .2s;
}
.nav.is-scrolled .dd__btn { color: var(--text); }
.dd__btn:hover, .dd__btn[aria-expanded="true"] { background: rgba(214, 192, 148, .16); color: var(--gold); }
.nav.is-scrolled .dd__btn:hover, .nav.is-scrolled .dd__btn[aria-expanded="true"] { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--text); }
.dd__btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.dd__btn .chev { width: 11px; height: 11px; opacity: .65; transition: transform .2s; }
.dd__btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dd__code { letter-spacing: .1em; }

.dd--theme .ico { display: none; }
:root:not([data-theme]) .dd--theme .ico--auto,
:root[data-theme="light"] .dd--theme .ico--light,
:root[data-theme="dark"] .dd--theme .ico--dark { display: block; }

.dd__menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 224px; margin: 0; padding: 6px; list-style: none; z-index: 120;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.dd__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.dd__menu a, .dd__menu button {
  width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--text); font: 600 14px/1.2 var(--f-sans); text-align: left; text-decoration: none;
}
.dd__menu a:hover, .dd__menu button:hover, .dd__menu a:focus-visible, .dd__menu button:focus-visible { background: var(--surface-2); outline: none; }
.dd__menu svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.dd__menu small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; }
.dd__menu .check { margin-left: auto; width: 16px; height: 16px; opacity: 0; }
.dd__menu [aria-checked="true"] .check { opacity: 1; }
.dd__badge {
  display: grid; place-items: center; width: 30px; height: 22px; border-radius: 6px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--accent);
}
[aria-checked="true"] > .dd__badge { background: var(--gold); border-color: var(--gold); color: #000; }
.dd__sep { height: 1px; margin: 6px 8px; background: var(--line); }
.dd__menu .is-done { color: var(--lc); }
.dd__menu .is-done svg { color: var(--lc); }

@media (max-width: 420px) {
  .dd__btn { padding: 0 8px; gap: 4px; }
  .dd__btn .chev { display: none; }
  .dd__menu { position: fixed; left: 12px; right: 12px; top: 68px; min-width: 0; }
}

/* ---------- Pie: enlaces de marca ---------- */
.footer__cols { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.footer__links a, .footer__links button {
  display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer;
  color: #d8d0bd; font: inherit; text-decoration: none; transition: color .2s;
}
.footer__links a:hover, .footer__links button:hover { color: var(--gold); }
.footer__links svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }
.footer__links li + li { margin-top: 4px; }

/* ---------- Visor: flechas, contador y transición ---------- */
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox__img { opacity: 0; transform: scale(.985); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.lightbox__img.is-in { opacity: 1; transform: none; }
.lightbox figcaption { display: flex; gap: 14px; align-items: baseline; justify-content: center; flex-wrap: wrap; color: #ddd; font-size: 14px; margin: 14px auto 0; max-width: 760px; text-align: center; }
.lightbox__count { font-family: var(--f-display); font-size: 11px; letter-spacing: .2em; color: var(--gold); white-space: nowrap; }
.lightbox__nav {
  position: fixed; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; border: 1px solid rgba(214, 192, 148, .5); background: rgba(0, 0, 0, .65); color: var(--gold);
  backdrop-filter: blur(6px); transition: background .2s, color .2s, transform .2s;
}
.lightbox__nav:hover { background: var(--gold); color: #000; }
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }
.lightbox__prev:active { transform: translateY(-50%) translateX(-2px); }
.lightbox__next:active { transform: translateY(-50%) translateX(2px); }
.lightbox__close { z-index: 2; }
@media (max-width: 700px) {
  .lightbox__nav { top: auto; bottom: 18px; transform: none; width: 48px; height: 48px; }
  .lightbox__prev { left: calc(50% - 60px); } .lightbox__next { right: calc(50% - 60px); }
  .lightbox__prev:active, .lightbox__next:active { transform: none; }
  .lightbox__inner { padding-bottom: 90px; }
}

/* ---------- Ventana modal (créditos) ---------- */
.modal {
  width: min(680px, calc(100vw - 32px)); max-height: min(82vh, 760px); padding: 0; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.modal[open] { display: flex; flex-direction: column; animation: modal-in .3s var(--ease); }
.modal::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal__head h2 { margin: 0; font-family: var(--f-serif); font-size: 28px; font-weight: 600; }
.modal__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 16px; flex-shrink: 0; }
.modal__close:hover { border-color: var(--gold); color: var(--accent); }
.modal__body { padding: 18px 24px 24px; overflow-y: auto; }
.modal__intro { color: var(--text-soft); font-size: 15px; }
.credit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.credit-list li {
  display: grid; grid-template-columns: 56px 1fr auto auto; gap: 14px; align-items: center;
  padding: 8px 10px 8px 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
}
.credit-list img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.credit-list strong { display: block; font-size: 14.5px; line-height: 1.3; }
.credit-list div span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.lic { padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; border: 1px solid var(--line); color: var(--accent); }
.credit-list a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--accent); }
.credit-list a:hover { background: var(--surface); }
.credit-list a svg { width: 18px; height: 18px; }
@media (max-width: 520px) {
  .credit-list li { grid-template-columns: 48px 1fr auto; }
  .credit-list img { width: 48px; height: 48px; }
  .lic { grid-column: 2; justify-self: start; }
  .credit-list a { grid-row: 1 / span 2; grid-column: 3; }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Guía: cómo distinguir gemsbok y beisa ---------- */
.compare { margin-top: 64px; padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.compare__head { max-width: 680px; margin-bottom: 28px; }
.compare__head h3 { font-family: var(--f-serif); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; margin: 10px 0 8px; }
.compare__head p { color: var(--text-soft); margin: 0; }
.compare__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; }
.cmp { border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.cmp__img { aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.cmp__img img { width: 100%; height: 100%; object-fit: cover; }
.cmp__body { padding: 18px 20px 20px; }
.cmp h4 { font-family: var(--f-serif); font-size: 26px; font-weight: 600; margin: 0 0 12px; }
.cmp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cmp__list li { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line); font-size: 14.5px; line-height: 1.45; }
.cmp__list b { color: var(--accent); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.cmp__vs {
  align-self: center; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #000; color: var(--gold); border: 1px solid var(--gold); font-family: var(--f-display); font-size: 13px; letter-spacing: .12em;
}
.compare__tips { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.tip { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--gold) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.tip svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.tip p { margin: 0; font-size: 15px; color: var(--text-soft); }
.tip b { color: var(--text); }
.compare__others { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--text-soft); }
.compare__others b { color: var(--text); }
@media (max-width: 820px) {
  .compare__grid { grid-template-columns: 1fr; }
  .cmp__vs { justify-self: center; margin: -6px 0; }
  .compare__tips { grid-template-columns: 1fr; }
  .compare__others { flex-direction: column; }
}

/* ---------- Fuentes consultadas (modal) ---------- */
.source-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.source-list a {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; text-decoration: none;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, transform .2s var(--ease);
}
.source-list a:hover { border-color: var(--gold); transform: translateX(3px); }
.source-list span { flex: 1; min-width: 0; }
.source-list small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.source-list strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.source-list svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
