/* Fuentes alojadas en el sitio (antes venían de Google Fonts): un archivo variable por familia y alfabeto */
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:500 800;font-display:swap;src:url('/fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:500 800;font-display:swap;src:url('/fonts/bricolage-grotesque-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Geist';font-style:normal;font-weight:400 600;font-display:swap;src:url('/fonts/geist-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Geist';font-style:normal;font-weight:400 600;font-display:swap;src:url('/fonts/geist-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* Istmo Adventure · base: colores, letras, barra de navegación y portada. */

/* Composición: un solo escenario enmarcado a pantalla completa. Tres capas dan la profundidad
   (foto, palabra gigante, silueta recortada encima). Texto abajo a la izquierda, tarjeta del
   siguiente destino abajo a la derecha. Un solo aspecto, oscuro, a propósito. */
/* ---------- Colores ----------
   Dos temas, oscuro (el de siempre) y claro. Lo decide data-tema en <html>, que pone un guion del <head>.
   Los nombres dicen el papel en el tema oscuro: --tinta es el fondo de los bloques y --papel el texto;
   en el tema claro se cruzan. Las zonas con foto o de color pleno (portada, tours, barra, menús y bloques
   ámbar) repiten aquí la paleta oscura, así se ven igual en los dos temas. */
:root,
:root[data-tema="claro"] :is(.escena, .tours, .tour-cab, .nav, .mega, .panel, .flota, .convoca) {
  color-scheme: dark;
  --noche: #08101a;
  --tinta: #101b28;
  --papel: #f4eee0;
  --papel-suave: rgba(244, 238, 224, .76);
  --palabra: rgba(244, 238, 224, .74);
  --tinta-suave: rgba(16, 27, 40, .76);
  --tinta-linea: rgba(16, 27, 40, .18);
  --ambar-texto: #dcbc6c;
  --vidrio: rgba(244, 238, 224, .1);
  --vidrio-fuerte: rgba(244, 238, 224, .16);
  --vidrio-oscuro: rgba(8, 15, 24, .42);
  --linea: rgba(244, 238, 224, .2);
  --marcador: rgba(244, 238, 224, .62);
  --fantasma: rgba(244, 238, 224, .16);
  --campo-solido: #1f2c3d;
  --campo-solido-foco: #2a3a4f;
  --error: #ff8f7a;
}
:root[data-tema="claro"] {
  color-scheme: light;
  --noche: #e6dfcf;
  --tinta: #fbf8f1;
  --papel: #101b28;
  --papel-suave: rgba(16, 27, 40, .74);
  --tinta-suave: rgba(251, 248, 241, .8);
  --tinta-linea: rgba(251, 248, 241, .24);
  --ambar-texto: #85631a;
  --vidrio: rgba(16, 27, 40, .055);
  --vidrio-fuerte: rgba(16, 27, 40, .1);
  --vidrio-oscuro: rgba(251, 248, 241, .62);
  --linea: rgba(16, 27, 40, .17);
  --marcador: rgba(16, 27, 40, .56);
  --fantasma: rgba(16, 27, 40, .1);
  --campo-solido: #f1ebdd;
  --campo-solido-foco: #e6dfcf;
  --error: #b42318;
}
/* El texto se hereda ya resuelto: las zonas oscuras lo piden de nuevo con su propia paleta */
:root[data-tema="claro"] :is(.escena, .tours, .tour-cab, .nav, .mega, .panel) { color: var(--papel); }
:root {
  /* Lo que no cambia con el tema */
  --ambar: #d0ab55;
  --coral: #b8892f;
  --banda: #1d3552;
  --dorado-claro: #e2c47a;
  --tinta-fija: #101b28;
  --sombra: rgba(5, 10, 17, .8);
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --texto: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --curva: cubic-bezier(.32, .72, 0, 1);
  --marco: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: var(--marco);
  padding: var(--marco);
  background: var(--noche);
  color: var(--papel);
  font-family: var(--texto);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ambar-texto); outline-offset: 3px; }

/* ---------- Escenario ---------- */
.escena {
  --px: 0;
  --py: 0;
  position: relative;
  flex: none;
  height: calc(100svh - 2 * var(--marco));
  min-height: 600px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  container-type: size;
  background: var(--tinta);
}

.foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--foco, 50%) 50%;
  opacity: 0;
  transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -7px), 0) scale(1.05);
  transition: opacity 1.4s var(--curva);
  will-change: transform, opacity;
  user-select: none;
  pointer-events: none;
}
.foto.activa { opacity: 1; }
.escena.intro .foto { transform: translate3d(0, -104%, 0) scale(1.05); }
.escena.armando .foto { transition: transform 1.9s var(--curva), opacity 1.4s var(--curva); }

/* ---------- Entrada: selva desde arriba y águila harpía ---------- */
.selva {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  transition: transform 1.9s var(--curva);
}
.escena:not(.intro) .selva { transform: translate3d(0, 104%, 0); }
.selva .bosque {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  animation: acerca 5s var(--curva) both;
}
.vuelo {
  position: absolute;
  left: 0;
  top: 0;
  width: 30cqw;
  pointer-events: none;
  animation: vuelo 3.1s cubic-bezier(.4, .1, .6, .9) .25s both;
}
.vuelo img { display: block; width: 100%; height: auto; transform: rotate(36deg); }
.vuelo .sombra {
  position: absolute;
  inset: 0;
  transform: translate(4cqw, 7cqh) rotate(36deg) scale(.82);
  filter: brightness(0) blur(9px);
  opacity: .38;
}
.escena:not(.intro):not(.armando) .vuelo { display: none; }

.palabra {
  position: absolute;
  inset-inline: 0;
  top: 9.5cqh;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  transform: translate3d(calc(var(--px) * 16px), calc(var(--py) * 9px), 0);
  will-change: transform;
  transition: opacity .6s var(--curva);
}
.escena.intro .palabra { transform: translate3d(0, 21cqh, 0); }
.escena.armando .palabra { transition: transform 1.9s var(--curva); }
.escena.intro .palabra span { color: var(--papel); }
.palabra span {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  font-size: min(18cqw, 35cqh);
  line-height: .86;
  letter-spacing: -.03em;
  color: var(--palabra);
  transition: color 1.9s var(--curva);
  animation: emerge 1.7s var(--curva) .15s both;
}

.velo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 1.6s var(--curva);
  background:
    linear-gradient(180deg, rgba(5, 10, 17, .42) 0%, rgba(5, 10, 17, 0) 17%),
    radial-gradient(96% 76% at 0% 100%, rgba(5, 10, 17, .78) 0%, rgba(5, 10, 17, .4) 40%, rgba(5, 10, 17, 0) 66%),
    linear-gradient(0deg, rgba(5, 10, 17, .42) 0%, rgba(5, 10, 17, 0) 30%);
}

.escena.intro .velo { opacity: 0; }

/* ---------- Ventana: la foto de la tarjeta crece hasta ser el fondo ---------- */
.ventana { position: absolute; inset: 0; pointer-events: none; }
.ventana-mov { position: absolute; inset: 0; transform-origin: 0 0; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  inset: var(--marco) var(--marco) auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 2.6vw, 34px);
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -.02em;
}
.marca svg { width: 28px; height: 28px; flex: none; }
/* El tucán del logo, en una sola tinta dorada (la figura es una máscara: el color lo pone el CSS) */
.tucan { display: block; width: 30px; height: 30px; flex: none; background: linear-gradient(160deg, var(--dorado-claro) 20%, var(--ambar) 90%); -webkit-mask: url(/img/tucan.png) center / contain no-repeat; mask: url(/img/tucan.png) center / contain no-repeat; }

.menu {
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: var(--vidrio);
  box-shadow: inset 0 0 0 1px var(--linea), inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}
.menu a {
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .93rem;
  transition: background .5s var(--curva);
}
.menu a:hover { background: var(--vidrio-fuerte); }

.cuenta { display: flex; align-items: center; gap: 20px; }
.cuenta .entrar { font-weight: 500; font-size: .93rem; color: var(--papel-suave); transition: color .4s var(--curva); }
.cuenta .entrar:hover { color: var(--papel); }
.pastilla {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--papel);
  color: var(--tinta);
  font-weight: 600;
  font-size: .93rem;
  transition: transform .5s var(--curva), background .5s var(--curva);
}
.pastilla:hover { background: var(--ambar); }

/* Tema e idioma, en la barra */
.tema { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--vidrio); box-shadow: inset 0 0 0 1px var(--linea); color: var(--papel); cursor: pointer; transition: background .2s ease, transform .16s ease-out; }
.tema svg { width: 18px; height: 18px; }
.tema .luna, [data-tema="claro"] .tema .sol { display: none; }
[data-tema="claro"] .tema .luna { display: block; }
.tema:active { transform: scale(.94); }
.idioma { display: grid; place-items: center; flex: none; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--linea); font-weight: 600; font-size: .85rem; letter-spacing: .04em; transition: background .2s ease, transform .16s ease-out; }
.idioma:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .tema:hover, .idioma:hover { background: var(--vidrio-fuerte); } }
.cuenta { gap: 12px; }
.cuenta .entrar { margin-inline: 8px 4px; }
@media (max-width: 1100px) { .cuenta .entrar { display: none; } }
.panel-ajustes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.panel .panel-ajustes a, .panel-ajustes button { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--vidrio); box-shadow: inset 0 0 0 1px var(--linea); color: var(--papel); font-family: var(--texto); font-weight: 600; font-size: .95rem; letter-spacing: 0; cursor: pointer; }
.panel-ajustes svg { width: 18px; height: 18px; }
.panel-ajustes .luna, [data-tema="claro"] .panel-ajustes .sol { display: none; }
[data-tema="claro"] .panel-ajustes .luna { display: block; }
.pastilla:active { transform: scale(.97); }

.hamb {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--vidrio);
  box-shadow: inset 0 0 0 1px var(--linea);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  cursor: pointer;
}
.hamb i {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 1.5px;
  background: var(--papel);
  transition: transform .6s var(--curva);
}
.hamb i:first-child { transform: translateY(-4px); }
.hamb i:last-child { transform: translateY(4px); }
.abierto .hamb i:first-child { transform: rotate(45deg); }
.abierto .hamb i:last-child { transform: rotate(-45deg); }

.panel {
  position: fixed;
  inset: 0;
  z-index: 29;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 90px 28px 40px;
  background: rgba(8, 15, 24, .84);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--curva), visibility 0s .6s;
}
.abierto .panel { opacity: 1; visibility: visible; transition: opacity .6s var(--curva); }
.panel a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.1rem;
  letter-spacing: -.02em;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--curva), transform .7s var(--curva);
}
.abierto .panel a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 70ms + 120ms); }
.panel a.sec { font-family: var(--texto); font-weight: 500; font-size: 1rem; letter-spacing: 0; color: var(--papel-suave); margin-top: 18px; }

/* ---------- Pie: mensaje ---------- */
.pie {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: clamp(22px, 5cqh, 52px) clamp(20px, 4.2vw, 62px);
}
.mensaje { min-width: 0; }

.lugar {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 11px;
  border-radius: 999px;
  background: var(--vidrio-oscuro);
  box-shadow: inset 0 0 0 1px var(--linea);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.lugar::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ambar);
  box-shadow: 0 0 0 4px rgba(208, 171, 85, .22);
}
.lugar span { transition: opacity .5s var(--curva); }
.lugar span.cambia { opacity: 0; }

h1 {
  margin: 16px 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.bajada {
  margin: 0;
  max-width: 43ch;
  color: var(--papel-suave);
  font-size: clamp(.97rem, 1.15vw, 1.08rem);
  line-height: 1.52;
}

.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.boton {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 7px 7px 7px 24px;
  border-radius: 999px;
  background: var(--papel);
  color: var(--tinta);
  font-weight: 600;
  transition: transform .5s var(--curva);
}
.boton .flecha {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tinta);
  color: var(--papel);
  transition: transform .6s var(--curva), background .6s var(--curva);
}
.boton .flecha svg { width: 16px; height: 16px; }
.boton:hover .flecha { background: var(--coral); transform: translate(2px, -1px) scale(1.06); }
.boton:active { transform: scale(.98); }

/* Botón secundario: vidrio con borde claro, del mismo alto que el principal (54 px) y con su flecha.
   Va siempre sobre foto oscura (portada, tours), por eso el texto es claro y el fondo oscurece un poco. */
.enlace {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 20px 0 24px;
  border-radius: 999px;
  background: rgba(8, 15, 24, .34);
  box-shadow: inset 0 0 0 1.5px rgba(244, 238, 224, .62);
  color: var(--papel);
  font-weight: 600;
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  transition: background .25s ease, box-shadow .25s ease, transform .16s ease-out;
}
.enlace::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--chevron) center / contain no-repeat;
  mask: var(--chevron) center / contain no-repeat;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E");
  transition: transform .3s var(--curva);
}
.enlace:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .enlace:hover { background: rgba(244, 238, 224, .16); box-shadow: inset 0 0 0 1.5px var(--papel); }
  .enlace:hover::after { transform: translateX(3px); }
}

.sig {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--vidrio-fuerte);
  cursor: pointer;
  transition: transform .5s var(--curva), background .5s var(--curva), color .5s var(--curva);
}
.sig svg { width: 14px; height: 14px; }
.sig:hover { background: var(--papel); color: var(--tinta); transform: translateX(2px); }
.sig:active { transform: scale(.94); }

/* ---------- Ficha del destino ---------- */
.mensaje { transition: opacity .5s var(--curva); }
.escena.abriendo .mensaje,
.escena.abriendo .palabra { opacity: 0; pointer-events: none; }

.detalle {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 84px clamp(14px, 2.2vw, 30px) clamp(14px, 2.2vw, 30px);
  visibility: hidden;
  pointer-events: none;
}
.escena.en-detalle .detalle { visibility: visible; }
.ficha {
  width: min(440px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: 28px;
  background: rgba(8, 15, 24, .56);
  box-shadow: inset 0 0 0 1px var(--linea), inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  backdrop-filter: blur(26px) saturate(1.3);
  opacity: 0;
  transform: translate3d(-28px, 0, 0);
  transition: opacity .5s var(--curva), transform .5s var(--curva);
}
.escena.en-detalle .ficha { opacity: 1; transform: none; pointer-events: auto; transition-duration: .9s; }
.ficha > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--curva), transform .7s var(--curva); }
.escena.en-detalle .ficha > * { opacity: 1; transform: none; transition-delay: calc(var(--i) * 80ms + 220ms); }
.ficha-num { margin: 0; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ambar); font-variant-numeric: tabular-nums; }
.ficha h2 {
  margin: 10px 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.03em;
  text-wrap: balance;
  outline: none;
}
.ficha-texto { margin: 0; color: var(--papel-suave); font-size: 1rem; line-height: 1.55; }
.ficha-datos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; padding: 18px 0 0; box-shadow: inset 0 1px 0 var(--linea); }
.ficha-datos div { min-width: 0; }
.ficha-datos dt { font-size: .75rem; color: var(--papel-suave); }
.ficha-datos dd { margin: 4px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.15; }
.ficha-lista { margin-top: 18px; }
.ficha-sub { margin: 0 0 9px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--papel-suave); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 6px 11px; border-radius: 999px; background: var(--vidrio); box-shadow: inset 0 0 0 1px var(--linea); font-size: .82rem; }
.ficha-aviso { margin: 14px 0 0; font-size: .82rem; line-height: 1.4; color: var(--ambar); }
.ficha-aviso:empty { display: none; }
.ficha-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }
.volver { padding: 6px 0; border: 0; background: none; font-weight: 500; cursor: pointer; color: var(--papel-suave); transition: color .4s var(--curva); }
.volver:hover { color: var(--papel); }

/* ---------- Entrada ---------- */
.entra { animation: sube 1s var(--curva) both; animation-delay: calc(var(--i) * 90ms + 350ms); }
@keyframes sube { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
@keyframes emerge { from { opacity: 0; transform: translateY(16%) scale(1.03); } }
@keyframes acerca { from { transform: scale(1.14); } to { transform: scale(1.02); } }
@keyframes vuelo {
  from { transform: translate3d(-34cqw, 82cqh, 0) rotate(-7deg) scale(.86); }
  to { transform: translate3d(108cqw, -38cqh, 0) rotate(5deg) scale(1.12); }
}
.intro .entra:not(.marca) { animation-play-state: paused; }
.intro .pie, .intro .menu, .intro .cuenta { pointer-events: none; }

/* ---------- Teléfono ---------- */
@media (max-width: 860px) {
  :root { --marco: 8px; }
  .escena { border-radius: 22px; min-height: 640px; }
  .menu, .cuenta .entrar, .cuenta .pastilla { display: none; }
  .hamb { display: block; }
  .nav .tema, .nav .idioma { display: none; }
  .velo {
    background:
      linear-gradient(180deg, rgba(5, 10, 17, .5) 0%, rgba(5, 10, 17, 0) 18%),
      linear-gradient(0deg, rgba(5, 10, 17, .86) 0%, rgba(5, 10, 17, .76) 34%, rgba(5, 10, 17, .4) 56%, rgba(5, 10, 17, 0) 72%);
  }
  .palabra { top: 13cqh; }
  .palabra span { font-size: min(23cqw, 30cqh); }
  .pie { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 20px 18px 18px; }
  .vuelo { width: 62cqw; }
  .detalle { padding: 78px 10px 10px; }
  .ficha { width: 100%; }
  .ficha-datos dd { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .foto { transform: scale(1.02); }
  .palabra { transform: none; }
}

/* ---------- Portada: la selva se queda de fondo y el águila vuelve a pasar ---------- */
.selva, .escena:not(.intro) .selva { transition: none; transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -7px), 0) scale(1.04); }
.palabra { top: 15cqh; }
.escena.intro .palabra { transform: translate3d(0, 17cqh, 0); }
.escena:not(.intro):not(.armando) .vuelo { display: block; width: 22cqw; animation: ronda 26s linear 7s infinite both; }
@keyframes ronda {
  0% { opacity: 0; transform: translate3d(-30cqw, 74cqh, 0) rotate(-6deg) scale(.8); }
  2% { opacity: 1; }
  24% { opacity: 1; }
  26%, 100% { opacity: 0; transform: translate3d(108cqw, -32cqh, 0) rotate(5deg) scale(1.05); }
}
@media (max-width: 860px) {
  .palabra { top: 14cqh; }
  .escena:not(.intro):not(.armando) .vuelo { width: 46cqw; }
}
@media (prefers-reduced-motion: reduce) {
  .escena:not(.intro):not(.armando) .vuelo { display: none; }
}

/* ---------- La portada se abre como las esclusas del Canal (una vez por visita) ---------- */
/* Tapa instantánea mientras portada.js monta las compuertas */
html.esclusas .escena::before { content: ""; position: absolute; inset: 0; z-index: 5; background: #3f4d5c; }
.esclusa { position: absolute; inset: 0; z-index: 6; perspective: 150cqw; perspective-origin: 50% 46%; pointer-events: none; }
/* Cada hoja gira sobre su bisagra, en el borde de afuera, y se aleja hacia adentro como una compuerta real */
.esclusa .hoja {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.1%;
  /* Acero gris claro, para que se despegue del marco negro: vigas con su sombra y refuerzos verticales */
  background:
    repeating-linear-gradient(180deg, rgba(244, 238, 224, .34) 0 3px, rgba(8, 15, 24, .45) 3px 8px, transparent 8px 12.5%),
    repeating-linear-gradient(90deg, rgba(8, 15, 24, .22) 0 2px, rgba(244, 238, 224, .08) 2px 3px, transparent 3px 25%),
    linear-gradient(180deg, #6f7f92 0%, #50606f 48%, #34414f 100%);
  will-change: transform;
}
/* Al girar, la hoja se va quedando en sombra */
.esclusa .hoja::after { content: ""; position: absolute; inset: 0; background: var(--noche); opacity: 0; }
/* En la junta del centro se cuela la luz de la selva */
.esclusa .izq { left: 0; transform-origin: 0 50%; box-shadow: inset -3px 0 0 var(--ambar), inset -90px 0 80px -60px rgba(208, 171, 85, .45); }
.esclusa .der { right: 0; transform-origin: 100% 50%; box-shadow: inset 3px 0 0 var(--ambar), inset 90px 0 80px -60px rgba(208, 171, 85, .45); }
.esclusa.abre .hoja { transition: transform 2.4s cubic-bezier(.77, 0, .175, 1), opacity .45s ease 2s; opacity: 0; }
.esclusa.abre .hoja::after { transition: opacity 2.4s cubic-bezier(.77, 0, .175, 1); opacity: .6; }
.esclusa.abre .izq { transform: rotateY(84deg); }
.esclusa.abre .der { transform: rotateY(-84deg); }
/* El agua de la cámara, verde como la del Canal: sube antes de abrir y se va cuando las hojas giran */
.esclusa .agua {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(18, 92, 74, .82), rgba(34, 128, 100, .58));
  box-shadow: inset 0 3px 0 rgba(244, 238, 224, .9), inset 0 26px 30px -20px rgba(244, 238, 224, .28);
  transform: translate3d(0, 100%, 0);
  transition: transform 1.7s cubic-bezier(.45, 0, .2, 1);
}
.esclusa.sube .agua { transform: none; }
.esclusa.abre .agua { opacity: 0; transition: opacity 1s ease; }
.esclusa .nivel { position: absolute; left: clamp(20px, 4.2vw, 62px); bottom: calc(100% + 12px); margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--papel); text-shadow: 0 1px 8px rgba(8, 15, 24, .6); font-variant-numeric: tabular-nums; }
.esclusa .nivel b { font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: -.02em; }
/* Mientras está cerrada, el águila espera; al abrir, la selva se asienta desde un poco más cerca */
.escena.con-esclusa .vuelo { animation-play-state: paused; }
.escena.abre-esclusa .bosque { animation: esclusa-fondo 3.2s var(--curva) both; }
@keyframes esclusa-fondo { from { transform: scale(1.14); } }

/* Entre tableta y escritorio la barra va justa: se aprieta un poco para que quepa todo */
@media (min-width: 861px) and (max-width: 1060px) {
  .nav { gap: 10px; padding-inline: 14px; }
  .marca { font-size: 1.08rem; gap: 8px; }
  .marca svg, .marca .tucan { width: 26px; height: 26px; }
  .menu a { padding-inline: 10px; font-size: .87rem; }
  .cuenta { gap: 8px; }
  .pastilla { padding-inline: 15px; }
}
