/* ==========================================================================
   Colibrí garganta de vino — Chiapas
   Estructura del Design System de Silia (DM Sans, radios 8/12, sombra
   terciaria, escala 12/14/16/20, iconos lucide, cero emojis) con la paleta
   sacada del propio colibrí: gorguera, corona, plumón, cola y el bosque.
   ========================================================================== */

:root {
  /* ——— paleta del ave ——— */
  --bosque: #1A3A19;          /* fondo exacto de las fotos del giro: no tocar */
  --bosque-hondo: #10260F;
  --bosque-claro: #2B5128;
  --musgo: #3E6A36;
  --gorguera: #D61FB4;        /* magenta de la gorguera a contraluz */
  --gorguera-viva: #F04BDF;
  --vino: #7A1F6E;            /* la gorguera a la sombra: el «vino» del nombre */
  --corona: #9AA23F;          /* verde bronce de la corona */
  --cola: #C4652E;            /* canela de la base de la cola */
  --plumon: #F2F1EA;          /* pecho blanco grisáceo */

  /* ——— tokens Silia, re-tintados ——— */
  --bg-layout: #EFEFE8;       /* equivale a --silia-bg-layout */
  --bg-container: #FFFFFF;
  --bg-chip: #FAFAF6;
  --text: #34372F;            /* equivale a --silia-text-primary */
  --text-2: #64675D;          /* equivale a --silia-text-description */
  --icon: #9A9D92;            /* sólo glifos, nunca texto */
  --border: #DEDFD7;
  --border-2: #EFF0EA;
  --ink: #171A16;
  --magenta-texto: #A3138A;   /* magenta que sí pasa 4.5:1 sobre claro */
  --magenta-bg: #FBE8F7;
  --fill: rgba(23, 26, 22, 0.06);

  --r-sm: 8px;
  --r-lg: 12px;
  --r-xl: 20px;
  --sombra: 0 2px 4px rgba(0,0,0,.02), 0 1px 6px rgba(0,0,0,.02), 0 1px 2px rgba(0,0,0,.03);
  --sombra-alta: 0 12px 32px -12px rgba(16, 38, 15, .22), 0 2px 6px rgba(16, 38, 15, .06);

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-layout);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gorguera); color: #fff; }
:focus-visible { outline: 2px solid var(--gorguera); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico--lg { width: 20px; height: 20px; }

/* ——— tipografía (escala Silia + display editorial) ——— */
.kicker {
  font-family: var(--mono);
  font-size: 12px; line-height: 20px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--magenta-texto);
  display: inline-flex; align-items: center; gap: 8px;
}
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.h-sec {
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.02; font-weight: 500;
  letter-spacing: -.035em; color: var(--ink);
  margin: 14px 0 0; text-wrap: balance;
}
.h-sec em { font-style: normal; color: var(--magenta-texto); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--text-2); max-width: 58ch; margin: 18px 0 0; text-wrap: pretty; }
.cifra { font-family: var(--mono); font-feature-settings: "tnum"; }

/* ——— navegación (pastilla flotante) ——— */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: 4px;
  padding: 6px; border-radius: 999px;
  background: rgba(16, 38, 15, .55);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: background .4s var(--ease), border-color .4s var(--ease), translate .5s var(--ease);
  max-width: calc(100% - 24px);
}
.nav.claro { background: rgba(255,255,255,.78); border-color: var(--border); box-shadow: var(--sombra-alta); }
.nav.oculto { translate: -50% -120%; }
.nav__marca {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; text-decoration: none;
  color: #fff; font-weight: 500; font-size: 14px; white-space: nowrap;
}
.nav.claro .nav__marca { color: var(--ink); }
.nav__punto { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(from 200deg, var(--vino), var(--gorguera), var(--gorguera-viva), var(--vino)); box-shadow: 0 0 0 3px rgba(214,31,180,.18); }
.nav__links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  text-decoration: none; font-size: 14px; line-height: 22px;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  color: rgba(255,255,255,.78);
  transition: background .25s, color .25s;
}
.nav__links a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav.claro .nav__links a { color: var(--text-2); }
.nav.claro .nav__links a:hover { background: var(--fill); color: var(--ink); }
.nav__links a.activo { background: #fff; color: var(--ink); box-shadow: var(--sombra); }
.nav.claro .nav__links a.activo { background: var(--ink); color: #fff; }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ==========================================================================
   HERO · el giro de cuello
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background: var(--bosque); color: #fff;
  isolation: isolate;
  cursor: ew-resize;
  touch-action: pan-y;
}
.giro {
  position: absolute; z-index: 0;
  height: min(102svh, 1100px); aspect-ratio: 1200 / 1373;
  left: 64%; top: 51%; translate: -43.8% -50%;   /* 43.8 % = x de la cabeza en la toma */
  -webkit-mask-image: radial-gradient(64% 60% at 46% 40%, #000 62%, transparent 100%);
          mask-image: radial-gradient(64% 60% at 46% 40%, #000 62%, transparent 100%);
}
.giro img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; will-change: opacity;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.giro img.base { opacity: 1; }
.hero__velo {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 62% 38%, rgba(70, 120, 60, .22), transparent 70%),
    linear-gradient(90deg, rgba(16,38,15,.86) 0%, rgba(16,38,15,.35) 34%, transparent 55%),
    linear-gradient(0deg, rgba(16,38,15,.9) 0%, transparent 26%);
}
.hero__txt {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: grid; align-content: center;
  padding-block: 120px 160px;
  pointer-events: none;
}
.hero__txt > * { pointer-events: auto; }
.hero .kicker { color: #F7A8EA; }
.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(52px, 7.4vw, 116px);
  line-height: .9; font-weight: 500; letter-spacing: -.045em;
}
.hero h1 > span { display: block; }
.hero h1 .vino {
  background: linear-gradient(100deg, var(--gorguera-viva), var(--gorguera) 40%, #B02BC2 70%, var(--gorguera-viva));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: tornasol 9s linear infinite;
}
@keyframes tornasol { to { background-position: -220% 0; } }
.hero__sci { margin: 18px 0 0; font-size: 18px; color: rgba(255,255,255,.72); }
.hero__sci i { color: #fff; font-style: italic; }
.hero__p { margin: 22px 0 0; max-width: 36ch; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.72); }

.hero__barra {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) 28px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  pointer-events: none;
}
.hero__barra > * { pointer-events: auto; }
.pista {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,.75);
}
.pista__mouse {
  width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.55);
  position: relative; flex: none;
}
.pista__mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 6px; margin-left: -1.5px;
  border-radius: 2px; background: #fff; animation: rueda 2.2s var(--ease) infinite;
}
@keyframes rueda { 0% { transform: translateX(-6px); opacity: 0 } 30% { opacity: 1 } 100% { transform: translateX(6px); opacity: 0 } }

/* lectura en vivo: ángulo del pico + color de la gorguera */
.lectura {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--r-lg);
  background: rgba(16,38,15,.5);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.dial { width: 64px; height: 64px; flex: none; }
.dial__aguja { transition: none; transform-origin: 32px 40px; }
.lectura dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 2px 16px; align-items: baseline; }
.lectura dt { font-size: 12px; line-height: 20px; color: rgba(255,255,255,.6); }
.lectura dd { margin: 0; font-family: var(--mono); font-size: 14px; color: #fff; display: flex; align-items: center; gap: 8px; }
.muestra { width: 14px; height: 14px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 0 14px currentColor; background: currentColor; }
.slider-giro { width: 100%; grid-column: 1 / -1; margin: 6px 0 0; accent-color: var(--gorguera); }

@media (max-width: 860px) {
  .giro { left: 50%; top: auto; bottom: 0; translate: -43.8% 0; height: min(68svh, 760px); }
  .hero__velo { background:
    linear-gradient(180deg, rgba(16,38,15,.92) 0%, rgba(16,38,15,.55) 34%, transparent 52%),
    linear-gradient(0deg, rgba(16,38,15,.85) 0%, transparent 26%); }
  .hero__txt { align-content: start; padding-top: 92px; }
  .hero__p { display: none; }
  .hero__barra { flex-direction: column; align-items: stretch; }
  .pista { display: none; }
}

/* ==========================================================================
   Secciones
   ========================================================================== */
.sec { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.sec--oscura { background: var(--bosque); color: rgba(255,255,255,.86); }
.sec--oscura .h-sec { color: #fff; }
.sec--oscura .h-sec em { color: #F57BE3; }
.sec--oscura .lead { color: rgba(255,255,255,.66); }
.sec--oscura .kicker { color: #F7A8EA; }
.cab { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px 64px; align-items: end; }
.cab .lead { margin: 0; }
@media (max-width: 900px) { .cab { grid-template-columns: 1fr; } }

/* revelado al hacer scroll */
.rv { opacity: 0; translate: 0 26px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.en { opacity: 1; translate: 0 0; }

/* ——— Ficha: cifras ——— */
.cifras {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.cifra-card {
  background: var(--bg-container); border: 1px solid var(--border-2);
  border-radius: var(--r-lg); box-shadow: var(--sombra);
  padding: 20px 20px 18px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px; min-height: 196px;
  transition: translate .4s var(--ease), box-shadow .4s var(--ease);
}
.cifra-card:hover { translate: 0 -3px; box-shadow: var(--sombra-alta); }
.cifra-card__ico { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--magenta-bg); color: var(--magenta-texto); }
.cifra-card__n { margin-top: auto; font-size: clamp(40px, 4.4vw, 58px); line-height: 1; font-weight: 500; letter-spacing: -.04em; color: var(--ink); display: flex; align-items: baseline; gap: 6px; }
.cifra-card__n small { font-size: 16px; letter-spacing: 0; color: var(--text-2); font-weight: 400; }
.cifra-card__l { font-size: 14px; line-height: 22px; color: var(--text-2); }
.cifra-card__l b { color: var(--text); font-weight: 500; }
@media (max-width: 980px) { .cifras { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cifras { grid-template-columns: 1fr; } .cifra-card { min-height: 0; } }

/* comparador de tamaño */
.escala {
  margin-top: 12px; background: var(--bg-container); border: 1px solid var(--border-2);
  border-radius: var(--r-lg); box-shadow: var(--sombra); padding: 24px;
}
.escala__cab { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.escala__cab h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; color: var(--ink); }
.seg { display: inline-flex; padding: 2px; border-radius: var(--r-sm); background: var(--fill); }
.seg button {
  border: 0; background: transparent; cursor: pointer;
  font-size: 14px; line-height: 22px; padding: 5px 12px; border-radius: 6px; color: var(--text-2);
  transition: background .2s, color .2s, box-shadow .2s;
}
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--sombra), 0 1px 2px rgba(0,0,0,.06); }
.escala__pista { margin-top: 28px; display: grid; gap: 14px; }
.barra { display: grid; grid-template-columns: 170px 1fr 64px; align-items: center; gap: 16px; font-size: 14px; }
.barra__n { color: var(--text); }
.barra__n small { display: block; color: var(--text-2); font-size: 12px; line-height: 18px; }
.barra__t { height: 10px; border-radius: 999px; background: var(--border-2); overflow: hidden; }
.barra__t i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--icon); transition: width 1.2s var(--ease); }
.barra.yo .barra__t i { background: linear-gradient(90deg, var(--vino), var(--gorguera)); }
.barra.yo .barra__n { color: var(--magenta-texto); font-weight: 500; }
.barra__v { font-family: var(--mono); font-size: 13px; text-align: right; color: var(--text-2); }
@media (max-width: 600px) { .barra { grid-template-columns: 1fr 56px; } .barra__t { grid-column: 1 / -1; order: 3; } }

/* ——— Nombre ——— */
.nombre { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.etimo {
  background: var(--bg-container); border: 1px solid var(--border-2); border-radius: var(--r-lg);
  box-shadow: var(--sombra); padding: 28px; position: relative; overflow: hidden;
}
.etimo__palabra { font-size: clamp(36px, 4.6vw, 60px); line-height: 1; letter-spacing: -.04em; font-weight: 500; color: var(--ink); font-style: italic; }
.etimo__raiz { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.raiz {
  display: inline-flex; flex-direction: column; padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--bg-chip); border: 1px solid var(--border-2); min-width: 130px;
}
.raiz b { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--magenta-texto); }
.raiz span { font-size: 14px; color: var(--text-2); }
.etimo p { font-size: 15px; color: var(--text-2); margin: 18px 0 0; max-width: 52ch; }
.nombres { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nom { background: var(--bg-container); border: 1px solid var(--border-2); border-radius: var(--r-lg); box-shadow: var(--sombra); padding: 18px 20px; }
.nom small { font-size: 12px; line-height: 20px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.nom p { margin: 4px 0 0; font-size: 17px; line-height: 1.35; color: var(--ink); font-weight: 500; }
@media (max-width: 900px) { .nombre { grid-template-columns: 1fr; } .nombres { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .nombres { grid-template-columns: 1fr; } }

/* línea del tiempo */
.tiempo { margin-top: 12px; background: var(--bg-container); border: 1px solid var(--border-2); border-radius: var(--r-lg); box-shadow: var(--sombra); padding: 28px; }
.tiempo h3 { margin: 0 0 24px; font-size: 20px; line-height: 28px; font-weight: 500; color: var(--ink); }
.tiempo ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; position: relative; }
.tiempo ol::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--border); }
.tiempo li { position: relative; padding: 28px 16px 0 0; }
.tiempo li::before {
  content: ""; position: absolute; top: 1px; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gorguera); box-shadow: 0 0 0 4px var(--magenta-bg);
}
.tiempo .y { font-family: var(--mono); font-size: 13px; color: var(--magenta-texto); }
.tiempo li p { margin: 4px 0 0; font-size: 14px; line-height: 22px; color: var(--text-2); }
.tiempo li p b { color: var(--text); font-weight: 500; }
@media (max-width: 900px) {
  .tiempo ol { grid-auto-flow: row; gap: 18px; }
  .tiempo ol::before { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .tiempo li { padding: 0 0 0 30px; }
}

/* ——— Anatomía ——— */
.anat { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; margin-top: 56px; align-items: start; }
.anat__foto {
  position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--bosque);
  aspect-ratio: 4 / 5; box-shadow: var(--sombra-alta);
}
.anat__capa { position: absolute; inset: 0; transition: transform 1.1s var(--ease); }
.anat__foto img { width: 100%; height: 100%; object-fit: cover; transition: filter .6s; }
.anat__foto.foco img { filter: saturate(.8) brightness(.78); }
.anat__foco {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), transparent 0 9%, rgba(16,38,15,.0) 9.5%);
}
.punto {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: transparent; display: grid; place-items: center;
}
.punto::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.28), 0 2px 8px rgba(0,0,0,.4); transition: transform .3s var(--ease), background .3s; }
.punto::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); animation: latido 2.4s var(--ease) infinite; animation-delay: var(--dl, 0s); }
@keyframes latido { 0% { transform: scale(.4); opacity: 1 } 100% { transform: scale(1.5); opacity: 0 } }
.punto:hover::before, .punto.activo::before { transform: scale(1.25); background: var(--gorguera); }
.punto__et {
  position: absolute; left: 50%; bottom: calc(100% + 4px); translate: -50% 0;
  white-space: nowrap; font-size: 12px; line-height: 20px; padding: 2px 8px; border-radius: 6px;
  background: rgba(16,38,15,.82); color: #fff; opacity: 0; transition: opacity .25s, translate .25s; pointer-events: none;
}
.punto:hover .punto__et, .punto.activo .punto__et, .anat__foto.etiquetas .punto__et { opacity: 1; translate: -50% -2px; }
.anat__lista { display: grid; gap: 8px; }
.parte {
  background: var(--bg-container); border: 1px solid var(--border-2); border-radius: var(--r-lg);
  box-shadow: var(--sombra); overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.parte.activo { border-color: rgba(214,31,180,.35); box-shadow: var(--sombra-alta); }
.parte button {
  width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
}
.parte__sw { width: 28px; height: 28px; border-radius: var(--r-sm); flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.parte__t { flex: 1; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink); }
.parte__n { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.parte__chev { color: var(--icon); transition: rotate .3s var(--ease); }
.parte.activo .parte__chev { rotate: 180deg; color: var(--magenta-texto); }
.parte__c { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.parte.activo .parte__c { grid-template-rows: 1fr; }
.parte__c > div { overflow: hidden; }
.parte__c p { margin: 0; padding: 0 16px 16px 56px; font-size: 14px; line-height: 22px; color: var(--text-2); }
@media (max-width: 900px) { .anat { grid-template-columns: 1fr; } }

/* ——— Iridiscencia ——— */
.iri { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 56px; align-items: stretch; }
.panel-osc {
  border-radius: var(--r-xl); background: var(--bosque-hondo);
  border: 1px solid rgba(255,255,255,.08); padding: 28px; position: relative; overflow: hidden;
}
.iri__luz { width: 100%; height: auto; }
.iri__ctrl { margin-top: 18px; display: grid; gap: 10px; }
.iri__ctrl label { display: flex; justify-content: space-between; font-size: 14px; color: rgba(255,255,255,.7); }
.iri__ctrl output { font-family: var(--mono); color: #fff; }
input[type="range"].rango {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer;
}
input[type="range"].rango::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #1d1020, var(--vino), var(--gorguera), var(--gorguera-viva), var(--vino)); }
input[type="range"].rango::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #1d1020, var(--vino), var(--gorguera), var(--gorguera-viva), var(--vino)); }
input[type="range"].rango::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(214,31,180,.35), 0 2px 8px rgba(0,0,0,.4); }
input[type="range"].rango::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(214,31,180,.35), 0 2px 8px rgba(0,0,0,.4); }
.angulos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 18px; }
.ang {
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); background: rgba(255,255,255,.03);
  padding: 8px; cursor: pointer; text-align: left; transition: border-color .3s, background .3s;
}
.ang:hover, .ang.activo { border-color: rgba(245,123,227,.6); background: rgba(214,31,180,.08); }
.ang img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.ang span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.7); }
.ang i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.iri__txt { display: grid; gap: 12px; align-content: start; }
.paso { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.paso__n { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; background: rgba(214,31,180,.16); color: #F7A8EA; }
.paso h4 { margin: 4px 0 4px; font-size: 16px; line-height: 24px; font-weight: 500; color: #fff; }
.paso p { margin: 0; font-size: 14px; line-height: 22px; color: rgba(255,255,255,.64); }
@media (max-width: 900px) { .iri { grid-template-columns: 1fr; } .angulos { grid-template-columns: repeat(5, 1fr); } }

/* ——— Vuelo y corazón ——— */
.vuelo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; margin-top: 56px; }
.vuelo__foto { border-radius: var(--r-xl); overflow: hidden; position: relative; min-height: 520px; box-shadow: var(--sombra-alta); background: var(--bosque); }
.vuelo__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.vuelo__foto figcaption { position: absolute; left: 16px; bottom: 16px; font-size: 12px; color: rgba(255,255,255,.8); background: rgba(16,38,15,.6); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(8px); }
.vuelo__datos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pulso {
  background: var(--bg-container); border: 1px solid var(--border-2); border-radius: var(--r-lg); box-shadow: var(--sombra);
  padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 240px;
}
.pulso--ancho { grid-column: 1 / -1; min-height: 0; }
.pulso h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.pulso h3 .ico { color: var(--magenta-texto); }
.pulso p { margin: 0; font-size: 14px; line-height: 22px; color: var(--text-2); }
.pulso__fig { margin-top: auto; display: flex; align-items: center; gap: 22px; }
.corazon { position: relative; width: 56px; height: 56px; display: grid; place-items: center; }
.corazon svg { width: 40px; height: 40px; fill: var(--gorguera); stroke: none; animation: lat var(--t, 1s) ease-out infinite; }
.corazon.humano svg { fill: var(--icon); }
@keyframes lat { 0%, 100% { transform: scale(1) } 12% { transform: scale(1.22) } 26% { transform: scale(.96) } }
.pulso__n { font-size: 34px; line-height: 1; letter-spacing: -.03em; font-weight: 500; color: var(--ink); }
.pulso__n small { font-size: 13px; color: var(--text-2); letter-spacing: 0; font-weight: 400; display: block; margin-top: 4px; }
.aleteo { height: 64px; position: relative; display: flex; align-items: center; gap: 4px; }
.aleteo span { width: 3px; border-radius: 3px; background: var(--gorguera); height: 20%; animation: ala var(--t, .5s) ease-in-out infinite; animation-delay: calc(var(--i) * -.04s); }
@keyframes ala { 50% { height: 100%; } }
.nota { font-size: 12px !important; line-height: 18px !important; color: var(--text-2); display: flex; gap: 6px; align-items: flex-start; }
.nota .ico { width: 14px; height: 14px; margin-top: 2px; color: var(--icon); }
.dia { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; }
.dia svg { width: 180px; height: 180px; }
.dia__leyenda { display: grid; gap: 8px; }
.dia__leyenda div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 22px; color: var(--text-2); }
.dia__leyenda b { color: var(--ink); font-weight: 500; }
.dia__leyenda i { width: 10px; height: 10px; border-radius: 3px; margin-top: 6px; flex: none; }
@media (max-width: 980px) { .vuelo { grid-template-columns: 1fr; } .vuelo__foto { min-height: 420px; } }
@media (max-width: 560px) { .vuelo__datos { grid-template-columns: 1fr; } .dia { grid-template-columns: 1fr; justify-items: center; } }

/* ——— Flores ——— */
.flores { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 56px; }
.flor {
  background: var(--bg-container); border: 1px solid var(--border-2); border-radius: var(--r-lg); box-shadow: var(--sombra);
  padding: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 200px;
  transition: translate .4s var(--ease), box-shadow .4s var(--ease);
}
.flor:hover { translate: 0 -3px; box-shadow: var(--sombra-alta); }
.flor svg.flor__dib { width: 56px; height: 56px; }
.flor h3 { margin: auto 0 0; font-size: 18px; line-height: 26px; font-weight: 500; color: var(--ink); font-style: italic; }
.flor p { margin: 0; font-size: 14px; line-height: 22px; color: var(--text-2); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 6px; background: var(--fill); color: var(--text); width: fit-content; }
.tag--mag { background: var(--magenta-bg); color: var(--magenta-texto); }
.tag--ok { background: #F1F8E9; color: #3B6E12; }
.tag--warn { background: #FFF7E6; color: #AD5A00; }
.tag--info { background: #E9F2FF; color: #1453B8; }

/* ——— Cortejo ——— */
.cortejo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 56px; }
.cort {
  border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 280px;
}
.cort svg.cort__dib { width: 100%; height: 120px; }
.cort h3 { margin: auto 0 0; font-size: 18px; line-height: 26px; font-weight: 500; color: #fff; }
.cort p { margin: 0; font-size: 14px; line-height: 22px; color: rgba(255,255,255,.64); }
@media (max-width: 900px) { .cortejo { grid-template-columns: 1fr; } }

/* ==========================================================================
   Mapa
   ========================================================================== */
.mapa { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .5fr); gap: 16px; margin-top: 56px; }
.mapa__lienzo {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #16331a, #0b1d0c 70%);
  border: 1px solid rgba(255,255,255,.08);
}
.mapa__svg { width: 100%; height: auto; touch-action: none; cursor: grab; }
.mapa__svg.arrastrando { cursor: grabbing; }
.mapa__svg .mar { fill: #0a1a14; }
.mapa__svg .vecino { fill: #17301a; stroke: #24442a; stroke-width: .6; }
.mapa__svg .chiapas { fill: #1f4520; }
.mapa__svg .chiapas-borde { fill: none; stroke: rgba(242,241,234,.85); stroke-width: 1.4; stroke-linejoin: round; }
.mapa__svg .curva { fill: none; stroke: rgba(242,241,234,.16); stroke-width: .55; }
.mapa__svg .curva.mil { stroke: rgba(242,241,234,.34); stroke-width: .8; }
.mapa__svg .habitat { fill: url(#gHab); stroke: rgba(240,75,223,.8); stroke-width: .8; transition: opacity .6s var(--ease); fill-rule: evenodd; }
.mapa__svg .habitat-fuera { opacity: .28; }
.mapa__svg .rotulo { font-family: var(--font); font-size: 11px; fill: rgba(242,241,234,.55); letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.mapa__svg .rotulo--estado { font-size: 15px; fill: rgba(242,241,234,.9); letter-spacing: .3em; font-weight: 500; }
.mapa__svg .rotulo--mar { font-style: italic; letter-spacing: .2em; fill: rgba(170,200,190,.45); }
.mapa__svg .rotulo--pico { font-size: 10px; letter-spacing: .04em; text-transform: none; fill: rgba(242,241,234,.7); }
.pin { cursor: pointer; }
.pin circle.halo { fill: rgba(240,75,223,.25); animation: pinlat 2.6s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.pin circle.nucleo { fill: var(--gorguera-viva); stroke: #fff; stroke-width: 1.6; transition: r .25s var(--ease); }
.pin:hover circle.nucleo, .pin.activo circle.nucleo { r: 7; }
.pin.activo circle.halo { fill: rgba(240,75,223,.45); }
.pin.foto circle.nucleo { fill: #fff; stroke: var(--gorguera); stroke-width: 2.2; }
@keyframes pinlat { 0% { transform: scale(.6); opacity: 1 } 100% { transform: scale(2.4); opacity: 0 } }
.mapa__zoom { position: absolute; right: 12px; top: 12px; display: grid; gap: 4px; }
.mapa__zoom button {
  width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.14);
  background: rgba(16,38,15,.7); color: #fff; cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(8px);
}
.mapa__zoom button:hover { background: rgba(43,81,40,.9); }
.mapa__leyenda {
  position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.75); pointer-events: none;
}
.mapa__leyenda span { display: inline-flex; align-items: center; gap: 6px; background: rgba(10,26,12,.7); padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(6px); }
.mapa__leyenda i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.mapa__lado { display: flex; flex-direction: column; gap: 12px; }
.ctrl-alt { padding: 18px; border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.ctrl-alt label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: rgba(255,255,255,.75); }
.ctrl-alt output { font-family: var(--mono); font-size: 20px; color: #fff; }
.ctrl-alt p { margin: 8px 0 0; font-size: 12px; line-height: 18px; color: rgba(255,255,255,.55); }
.ctrl-alt input[type="range"].rango::-webkit-slider-runnable-track { background: linear-gradient(90deg, #2b5128, #6d8a3f, #c9b37a, #f2f1ea); }
.ctrl-alt input[type="range"].rango::-moz-range-track { background: linear-gradient(90deg, #2b5128, #6d8a3f, #c9b37a, #f2f1ea); }
.ficha-lugar {
  flex: 1; padding: 20px; border-radius: var(--r-lg); background: #fff; color: var(--text);
  display: flex; flex-direction: column; gap: 10px; min-height: 260px;
  box-shadow: var(--sombra-alta);
}
.ficha-lugar__vacio { margin: auto; text-align: center; color: var(--text-2); font-size: 14px; display: grid; justify-items: center; gap: 10px; }
.ficha-lugar__vacio .ico { width: 28px; height: 28px; color: var(--icon); }
.ficha-lugar h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; color: var(--ink); }
.ficha-lugar .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ficha-lugar p { margin: 0; font-size: 14px; line-height: 22px; color: var(--text-2); }
.ficha-lugar .fuente { margin-top: auto; font-size: 12px; line-height: 18px; color: var(--text-2); }
.ficha-lugar .fuente a { color: var(--magenta-texto); }
.lugares { display: flex; flex-wrap: wrap; gap: 6px; }
.lugares button {
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: rgba(255,255,255,.82);
  font-size: 12px; line-height: 20px; padding: 3px 10px; border-radius: 999px; cursor: pointer; transition: all .2s;
}
.lugares button:hover, .lugares button.activo { background: var(--gorguera); border-color: var(--gorguera); color: #fff; }
@media (max-width: 980px) { .mapa { grid-template-columns: 1fr; } }

/* ——— Conservación ——— */
.estado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 56px; }
.est { background: var(--bg-container); border: 1px solid var(--border-2); border-radius: var(--r-lg); box-shadow: var(--sombra); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.est h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink); }
.est p { margin: 0; font-size: 14px; line-height: 22px; color: var(--text-2); }
.uicn { display: flex; gap: 3px; margin-top: 4px; }
.uicn span { flex: 1; text-align: center; font-family: var(--mono); font-size: 11px; line-height: 26px; border-radius: 6px; background: var(--bg-chip); color: var(--icon); border: 1px solid var(--border-2); }
.uicn span.si { background: #3B6E12; color: #fff; border-color: #3B6E12; box-shadow: 0 0 0 3px #E5F2D6; }
.acciones { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.accion { display: flex; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--bg-chip); border: 1px solid var(--border-2); }
.accion .ico { color: var(--magenta-texto); margin-top: 3px; }
.accion b { display: block; font-size: 14px; line-height: 22px; color: var(--ink); font-weight: 500; }
.accion span { font-size: 14px; line-height: 22px; color: var(--text-2); }
@media (max-width: 900px) { .estado, .acciones { grid-template-columns: 1fr; } }

/* ——— Galería ——— */
.gal { margin-top: 56px; columns: 3 280px; column-gap: 10px; }
.gal button { display: block; width: 100%; margin: 0 0 10px; break-inside: avoid; position: relative; border: 0; padding: 0; border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in; background: var(--bosque); }
.gal img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.gal button:hover img { transform: scale(1.035); }
.gal button::after { content: attr(data-n); position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.85); background: rgba(16,38,15,.55); padding: 1px 8px; border-radius: 999px; opacity: 0; transition: opacity .3s; }
.gal button:hover::after { opacity: 1; }
.caja {
  position: fixed; inset: 0; z-index: 100; background: rgba(8, 18, 8, .94); display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.caja.abierta { opacity: 1; pointer-events: auto; }
.caja img { max-width: min(92vw, 1100px); max-height: 86svh; border-radius: var(--r-lg); object-fit: contain; }
.caja__cerrar, .caja__nav { position: absolute; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.caja__cerrar { top: 18px; right: 18px; }
.caja__nav--a { left: 18px; top: 50%; translate: 0 -50%; }
.caja__nav--b { right: 18px; top: 50%; translate: 0 -50%; }
.caja__pie { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; font-size: 13px; color: rgba(255,255,255,.7); }

/* ——— Créditos ——— */
.pie { background: var(--bosque-hondo); color: rgba(255,255,255,.7); padding-block: 72px 40px; }
.pie__creditos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.credito { padding: 22px; border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03); display: flex; flex-direction: column; gap: 6px; }
.credito small { font-size: 12px; line-height: 20px; color: rgba(255,255,255,.5); display: flex; align-items: center; gap: 6px; }
.credito b { font-size: 22px; line-height: 30px; font-weight: 500; color: #fff; letter-spacing: -.02em; }
.credito a { color: #F7A8EA; text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.credito a:hover { text-decoration: underline; }
.boton {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-sm);
  background: var(--gorguera); color: #fff; text-decoration: none; font-size: 14px; font-weight: 500;
  transition: background .2s, translate .2s;
}
.boton:hover { background: #BC139C; translate: 0 -1px; }
.fuentes { margin-top: 40px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; }
.fuentes summary { cursor: pointer; font-size: 14px; color: rgba(255,255,255,.8); list-style: none; display: flex; align-items: center; gap: 8px; }
.fuentes summary::-webkit-details-marker { display: none; }
.fuentes ol { margin: 16px 0 0; padding-left: 20px; columns: 2; column-gap: 40px; font-size: 13px; line-height: 20px; }
.fuentes li { break-inside: avoid; margin-bottom: 8px; }
.fuentes a { color: rgba(255,255,255,.7); word-break: break-word; }
.pie__base { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: rgba(255,255,255,.45); }
@media (max-width: 900px) { .pie__creditos { grid-template-columns: 1fr; } .fuentes ol { columns: 1; } }

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

/* ——— ajustes de teléfono ——— */
@media (max-width: 640px) {
  .panel-osc { padding: 16px; }
  .angulos { gap: 6px; }
  .ang { padding: 4px; }
  .ang span { font-size: 0; margin-top: 4px; text-align: center; }
  .ang span i { width: 10px; height: 10px; margin: 0; }
  .mapa__leyenda { position: static; padding: 10px 12px 12px; }
  .mapa__leyenda span { background: transparent; padding: 0; }
  .iri__ctrl label { flex-direction: column; gap: 2px; }
}

.trazo { stroke-dasharray: 7 6; animation: trazo 2.4s linear infinite; }
@keyframes trazo { to { stroke-dashoffset: -130; } }
.pulso a { text-decoration: underline; text-underline-offset: 2px; }

.cifra-card__n .cifra { font-family: var(--font); font-variant-numeric: tabular-nums; }

.hero__foto { margin: 26px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.6); }
.hero__foto b { color: #fff; font-weight: 500; }
@media (max-width: 860px) { .hero__foto { margin-top: 12px; } }
