/* ─────────────────────────────────────────────────────────────
   El Universo del Principito · demo Bindexp
   Paleta tomada de su carta: azul noche #00305C y oro #F2D27E.
   ───────────────────────────────────────────────────────────── */
:root {
  --noche: #061a33;
  --noche-2: #0a2547;
  --azul: #00305c;
  --oro: #f2d27e;
  --oro-2: #d9b45a;
  --papel: #f6efe2;
  --papel-2: #ece2cf;
  --tinta: #13233d;
  --tinta-suave: #4a5870;
  --rosa: #b8323a;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --borde: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--noche);
  color: var(--papel);
  font: 300 17px/1.65 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* grano de papel sobre todo el sitio */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 90;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--oro); color: var(--noche); }

/* ── Telón de carga ─────────────────────────────── */
.telon {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--noche);
  transition: opacity .9s var(--ease), visibility .9s;
}
.telon img { width: 150px; animation: respirar 2.4s ease-in-out infinite; }
.telon span { font: italic 300 18px var(--serif); letter-spacing: .04em; color: var(--oro); opacity: .8; }
.listo .telon { opacity: 0; visibility: hidden; }
@keyframes respirar { 50% { transform: translateY(-6px); opacity: .75; } }

/* ── Tipografía común ───────────────────────────── */
.antetitulo {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font: 400 12px/1 var(--sans);
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--oro);
}
.linea { display: inline-block; width: 42px; height: 1px; background: currentColor; opacity: .7; }
.titulo {
  margin: 0 0 28px;
  font: 300 clamp(40px, 6.2vw, 92px)/.98 var(--serif);
  letter-spacing: -.01em;
}
.titulo em { color: var(--oro); font-weight: 300; }
.numeral {
  margin: 0 0 18px;
  font: italic 300 22px var(--serif);
  color: var(--oro); opacity: .75;
}
.capitulo__texto { max-width: 34em; margin: 0 0 32px; color: rgba(246, 239, 226, .78); font-size: clamp(16px, 1.25vw, 19px); }

/* ── Botones ────────────────────────────────────── */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  border: 1px solid transparent; border-radius: 999px;
  font: 400 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s, transform .4s var(--ease);
}
.boton:hover { transform: translateY(-2px); }
.boton--oro { background: var(--oro); color: var(--noche); box-shadow: 0 10px 40px -12px rgba(242, 210, 126, .55); }
.boton--oro:hover { background: #fff3cf; }
.boton--fantasma { border-color: rgba(242, 210, 126, .45); color: var(--papel); background: rgba(6, 26, 51, .25); backdrop-filter: blur(6px); }
.boton--fantasma:hover { border-color: var(--oro); color: var(--oro); }
.boton--linea { min-height: 42px; padding: 0 22px; border-color: rgba(242, 210, 126, .5); color: var(--oro); background: transparent; }
.boton--linea:hover { background: var(--oro); color: var(--noche); }
.enlace { background: none; border: 0; padding: 0; color: var(--oro); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ── Navegación ─────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(clamp(14px, 1.6vw, 26px) + 16px) calc(clamp(14px, 1.6vw, 26px) + clamp(22px, 4vw, 70px));
  transition: background .5s, padding .5s, transform .6s var(--ease);
}
.nav.solida { background: rgba(6, 26, 51, .8); backdrop-filter: blur(14px); padding-top: 10px; padding-bottom: 10px; padding-left: var(--borde); padding-right: var(--borde); box-shadow: 0 1px 0 rgba(242, 210, 126, .12); }
.nav.oculta { transform: translateY(-110%); }
.nav__marca { display: block; line-height: 0; }
.nav__marca img { width: clamp(84px, 7.4vw, 110px); height: auto; transition: width .5s; }
.nav.solida .nav__marca img { width: 92px; }
.nav__enlaces { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav__enlaces a {
  position: relative; text-decoration: none;
  font: 400 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 239, 226, .8);
}
.nav__enlaces a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--oro); transition: right .5s var(--ease); }
.nav__enlaces a:hover { color: var(--oro); }
.nav__enlaces a:hover::after { right: 0; }

/* ── Llegada (hero) ─────────────────────────────
   Todo cabe en una pantalla: el tamaño del título y del asteroide
   depende también del alto (vh), no solo del ancho. */
.llegada {
  --aire: clamp(14px, 1.6vw, 26px);          /* distancia del marco al borde */
  position: relative; height: 100vh; height: 100svh; min-height: 600px;
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--aire) + clamp(84px, 11vh, 118px)) calc(var(--aire) + clamp(22px, 4vw, 70px)) calc(var(--aire) + 22px);
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 72% 42%, #11396b 0%, rgba(10, 37, 71, 0) 62%),
    radial-gradient(60% 50% at 10% 100%, rgba(242, 210, 126, .07), transparent 70%),
    linear-gradient(180deg, #04132a 0%, var(--noche) 100%);
}
.cielo { position: absolute; inset: 0; width: 100%; height: 100%; }
.llegada__halo {
  position: absolute; right: 12%; top: 46%; width: min(58vw, 88vh); aspect-ratio: 1; translate: 0 -50%;
  background: radial-gradient(circle, rgba(242, 210, 126, .18) 0%, rgba(242, 210, 126, .05) 38%, transparent 66%);
  pointer-events: none; animation: latir 7s ease-in-out infinite;
}
@keyframes latir { 50% { opacity: .65; scale: 1.06; } }

.marco { position: absolute; inset: var(--aire); z-index: 1; pointer-events: none; border: 1px solid rgba(242, 210, 126, .22); border-radius: 3px; }
.marco__esq { position: absolute; width: 38px; height: 38px; border: 1px solid rgba(242, 210, 126, .6); }
.marco__esq::after { content: "✦"; position: absolute; font-size: 10px; line-height: 1; color: var(--oro); }
.e1 { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.e2 { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.e3 { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.e4 { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.e1::after { top: 8px; left: 8px; } .e2::after { top: 8px; right: 8px; } .e3::after { bottom: 8px; left: 8px; } .e4::after { bottom: 8px; right: 8px; }

.llegada__rejilla { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 60px); min-height: 0; }
.llegada__texto { max-width: 660px; }
.llegada .antetitulo { margin-bottom: clamp(14px, 2.4vh, 26px); }
.titulo-heroe { margin: 0 0 clamp(16px, 3vh, 30px); font: 300 clamp(40px, min(5.5vw, 9.6vh), 104px)/.98 var(--serif); letter-spacing: -.018em; }
.t-l { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.t-l > span { display: inline-block; white-space: nowrap; }
.llegada__intro { max-width: 27em; margin: 0 0 clamp(20px, 4vh, 40px); color: rgba(246, 239, 226, .76); font-size: clamp(15px, min(1.2vw, 2.2vh), 19px); }
.llegada__acciones { display: flex; flex-wrap: wrap; gap: 12px; }

.llegada__escena { position: relative; display: grid; place-items: center; height: 100%; min-height: 0; }
.asteroide {
  --w: min(27vw, 40vh, 470px);
  position: relative; z-index: 2; width: var(--w); aspect-ratio: 609 / 861;
  will-change: transform;
}
.asteroide__img { position: relative; z-index: 2; width: 100%; height: auto; animation: flotar 9s ease-in-out infinite; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .5)); }
@keyframes flotar {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}
.ventana {
  position: absolute; z-index: 3; border-radius: 3px;
  background: radial-gradient(circle, rgba(255, 196, 92, .95), rgba(255, 170, 60, .5) 55%, transparent 75%);
  mix-blend-mode: screen; filter: blur(3px);
  animation: flotar 9s ease-in-out infinite, parpadeo 5s ease-in-out infinite;
}
.v1 { left: 28%; top: 38.5%; width: 9.5%; height: 9.8%; }
.v2 { left: 42.5%; top: 38.5%; width: 9.5%; height: 15%; animation-delay: 0s, 1.3s; }
.v3 { left: 64.5%; top: 38.5%; width: 11.5%; height: 10%; animation-delay: 0s, 2.1s; }
@keyframes parpadeo { 0%, 100% { opacity: .7; } 40% { opacity: 1; } 55% { opacity: .55; } 70% { opacity: .95; } }
.orbita { position: absolute; left: -45%; top: 30%; width: 190%; z-index: 1; transform: rotate(-14deg); overflow: visible; }
.orbita ellipse { fill: none; stroke: rgba(242, 210, 126, .38); stroke-width: 1; stroke-dasharray: 2 7; }
.orbita__luna {
  position: absolute; z-index: 4; left: 50%; top: 62%; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6d8, var(--oro) 50%, #a9822e);
  box-shadow: 0 0 18px 4px rgba(242, 210, 126, .55);
  offset-path: ellipse(95% 32% at 50% 50%);
  animation: orbitar 16s linear infinite;
}
@keyframes orbitar { to { offset-distance: 100%; } }
.llegada__nota { position: absolute; bottom: 2%; right: 0; margin: 0; font: italic 300 15px var(--serif); color: rgba(242, 210, 126, .7); letter-spacing: .02em; }
.llegada__nota::before { content: "— "; }

.llegada__base {
  position: relative; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-top: clamp(14px, 2.4vh, 22px); border-top: 1px solid rgba(242, 210, 126, .16);
}
.huellas { display: flex; gap: clamp(22px, 4vw, 64px); margin: 0; padding: 0; list-style: none; }
.huellas li { display: flex; align-items: baseline; gap: 10px; }
.huellas strong { font: 300 clamp(24px, min(2.4vw, 4vh), 36px)/1 var(--serif); color: var(--oro); white-space: nowrap; }
.huellas small { font-size: .6em; margin-left: 2px; }
.huellas span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 239, 226, .58); line-height: 1.3; }
.bajar { display: flex; align-items: center; gap: 14px; text-decoration: none; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(246, 239, 226, .7); }
.bajar:hover { color: var(--oro); }
.bajar__linea { position: relative; width: 1px; height: 38px; background: rgba(242, 210, 126, .25); overflow: hidden; }
.bajar__linea::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--oro); animation: caer 2.2s var(--ease) infinite; }
@keyframes caer { to { top: 100%; } }

/* ── Franjas de texto gigante ───────────────────── */
.franja { position: relative; z-index: 2; overflow: hidden; padding: clamp(26px, 4vw, 54px) 0; border-block: 1px solid rgba(242, 210, 126, .12); background: rgba(4, 19, 42, .5); }
.franja__carril { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); width: max-content; will-change: transform; }
.franja span { font: 300 clamp(40px, 6.5vw, 104px)/1 var(--serif); white-space: nowrap; color: var(--papel); }
.franja .hueca { font-style: italic; color: transparent; -webkit-text-stroke: 1px rgba(242, 210, 126, .75); }
.franja i { font-style: normal; font-size: clamp(18px, 2vw, 30px); color: var(--oro); animation: girar 8s linear infinite; display: inline-block; }
.franja--rosa { background: rgba(120, 22, 34, .16); }

/* ── Capítulos ──────────────────────────────────── */
.capitulo { position: relative; padding: clamp(90px, 11vw, 160px) var(--borde); }
.capitulo__cabeza { position: relative; z-index: 2; max-width: 720px; }
.capitulo__cabeza--centro { margin: 0 auto; text-align: center; }
.capitulo__cabeza--centro .antetitulo { justify-content: center; }

/* I · El asteroide: fotos a distintas profundidades */
.asteroide-cap { overflow: hidden; }
.constelacion {
  position: relative; margin-top: clamp(40px, 6vw, 90px);
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(46px, 5.2vw, 84px); gap: clamp(12px, 1.6vw, 24px);
}
.foto { margin: 0; position: relative; will-change: transform; }
.foto__marco { height: 100%; overflow: hidden; border-radius: 2px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); transform-style: preserve-3d; transition: transform .8s var(--ease); }
.foto__marco img { width: 100%; height: 100%; object-fit: cover; scale: 1.12; transition: scale 1.4s var(--ease), filter 1s; filter: saturate(.92); }
.foto:hover .foto__marco img { scale: 1.02; filter: saturate(1.08); }
.foto figcaption {
  position: absolute; left: 0; bottom: -30px;
  font: italic 300 17px var(--serif); color: rgba(246, 239, 226, .72);
}
.foto figcaption::before { content: "— "; color: var(--oro); }
.f1 { grid-column: 1 / 8; grid-row: 1 / 8; }
.f2 { grid-column: 8 / 13; grid-row: 2 / 6; }
.f3 { grid-column: 9 / 13; grid-row: 7 / 13; }
.f4 { grid-column: 2 / 5; grid-row: 9 / 15; }
.f5 { grid-column: 5 / 9; grid-row: 10 / 15; }
.f6 { grid-column: 9 / 12; grid-row: 14 / 19; }
.f7 { grid-column: 3 / 8; grid-row: 16 / 20; }
.flotante { position: absolute; pointer-events: none; z-index: 3; will-change: transform; }
.zorro { width: clamp(120px, 14vw, 220px); left: 3%; bottom: 7%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }

/* II · Los planetas: pista horizontal */
.planetas { display: flex; align-items: center; min-height: 100vh; padding: 90px 0 40px; background: rgba(10, 37, 71, .35); overflow: hidden; }
.planetas__pista { display: flex; align-items: center; gap: clamp(40px, 5vw, 90px); padding: 0 var(--borde); width: max-content; will-change: transform; }
.planetas__intro { width: min(460px, 80vw); flex: none; }
.planetas__pista-ayuda { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--oro); }
.planetas__pista-ayuda span { width: 60px; height: 1px; background: var(--oro); position: relative; overflow: hidden; }
.planetas__pista-ayuda span::after { content: ""; position: absolute; inset: 0; background: var(--papel); animation: pista 2.2s var(--ease) infinite; }
@keyframes pista { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.planeta { flex: none; width: clamp(260px, 25vw, 360px); text-align: center; }
.planeta__globo {
  position: relative; width: 100%; aspect-ratio: 1; margin: 0 auto 30px; border-radius: 50%;
}
.planeta__globo::before { /* anillo de órbita */
  content: ""; position: absolute; inset: -9%; border-radius: 50%;
  border: 1px dashed rgba(242, 210, 126, .35);
  animation: girar 40s linear infinite;
}
.planeta__globo::after { /* sombra de planeta: luz desde arriba a la izquierda */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 240, 200, .18), transparent 40%), radial-gradient(circle at 70% 80%, rgba(4, 16, 36, .65), transparent 60%);
  box-shadow: inset 0 0 40px rgba(4, 16, 36, .6), 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(242, 210, 126, .15);
}
.planeta__globo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@keyframes girar { to { transform: rotate(360deg); } }
.planeta__n { margin: 0 0 6px; font: italic 300 16px var(--serif); color: var(--oro); }
.planeta h3 { margin: 0 0 12px; font: 400 clamp(26px, 2.2vw, 34px)/1.05 var(--serif); }
.planeta p { margin: 0 auto 12px; max-width: 24em; font-size: 15px; color: rgba(246, 239, 226, .7); }
.precio { font: 400 20px var(--serif) !important; color: var(--oro) !important; letter-spacing: .04em; }

/* Desierto */
.desierto { position: relative; height: 110vh; overflow: hidden; display: grid; place-items: center; }
.desierto__fondo { position: absolute; inset: -15% 0; }
.desierto__fondo img { width: 100%; height: 100%; object-fit: cover; }
.desierto::before, .desierto::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; z-index: 1; }
.desierto::before { top: 0; background: linear-gradient(var(--noche), transparent); }
.desierto::after { bottom: 0; background: linear-gradient(transparent, var(--papel)); }
.desierto__frase { position: relative; z-index: 2; margin: 0 var(--borde); text-align: center; font: 300 clamp(34px, 5vw, 78px)/1.08 var(--serif); color: #fff8ea; text-shadow: 0 2px 40px rgba(6, 26, 51, .55); }
.desierto__frase > span, .desierto__frase > em { display: block; }
.desierto__frase em { margin-top: 18px; font-size: .55em; color: var(--noche); text-shadow: none; }

/* III · La carta: el único capítulo en papel */
.carta { background: var(--papel); color: var(--tinta); }
.carta .titulo em, .carta .numeral, .carta .antetitulo { color: #9b7424; }
.carta__pestanas {
  display: flex; gap: 6px; margin: 50px auto 0; padding: 0 24px 4px; max-width: 1100px;
  overflow-x: auto; scrollbar-width: none; justify-content: safe center;
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.carta__pestanas::-webkit-scrollbar { display: none; }
.carta__pestanas button {
  flex: none; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; background: none;
  font: 400 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-suave);
  transition: all .35s var(--ease);
}
.carta__pestanas button:hover { color: var(--tinta); border-color: rgba(19, 35, 61, .2); }
.carta__pestanas button[aria-selected="true"] { background: var(--azul); color: var(--papel); }
.carta__hoja {
  position: relative; max-width: 1100px; margin: 34px auto 0; padding: clamp(34px, 5vw, 70px);
  background: #fbf7ef; border: 1px solid var(--papel-2); border-radius: 180px 180px 6px 6px / 90px 90px 6px 6px;
  box-shadow: 0 50px 90px -60px rgba(19, 35, 61, .55);
}
.carta__hoja::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(217, 180, 90, .45); border-radius: inherit; pointer-events: none; }
.carta__titulo { margin: 0 0 34px; text-align: center; font: 300 clamp(34px, 4vw, 54px)/1 var(--serif); color: var(--azul); }
.carta__lista { display: grid; grid-template-columns: 1fr 1fr; gap: 6px clamp(30px, 5vw, 70px); }
.plato { padding: 14px 0; border-bottom: 1px solid rgba(19, 35, 61, .08); }
.plato__fila { display: flex; align-items: baseline; gap: 10px; }
.plato h4 { margin: 0; font: 500 21px/1.2 var(--serif); color: var(--azul); }
.plato__puntos { flex: 1; border-bottom: 1px dotted rgba(19, 35, 61, .35); translate: 0 -5px; min-width: 20px; }
.plato__precio { font: 500 19px var(--serif); color: var(--azul); white-space: nowrap; }
.plato p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--tinta-suave); }
.plato__estrella { color: #b88a2a; font-size: 13px; margin-left: 4px; }
.carta__nota { margin: 30px auto 0; text-align: center; font-size: 14px; color: var(--tinta-suave); }
.carta .enlace { color: #8a6618; }
.aparecer { animation: aparecer .6s var(--ease) both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(14px); } }

/* IV · Viajeros */
.viajeros { background: linear-gradient(180deg, var(--papel) 0%, var(--papel) 12%, transparent 12.1%); padding-top: 0; overflow: hidden; }
.viajeros .capitulo__cabeza { padding-top: clamp(100px, 12vw, 170px); }
.viajeros__palabra { font: 300 clamp(20px, 1.8vw, 26px)/1.4 var(--serif); color: rgba(246, 239, 226, .8); }
.viajeros__palabra strong { color: var(--oro); font-weight: 400; }
.cinta { margin: 0 calc(-1 * var(--borde)); padding: 14px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.cinta:first-of-type { margin-top: 60px; }
.cinta__carril { display: flex; gap: 22px; width: max-content; will-change: transform; }
.resena {
  flex: none; width: 360px; margin: 0; padding: 28px 30px 26px;
  background: var(--papel); color: var(--tinta); border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.resena:nth-child(3n+2) { background: #fbf6ea; transform: rotate(.6deg); }
.resena:nth-child(3n) { transform: rotate(-.5deg); }
.resena__estrellas { color: #c49a33; letter-spacing: 3px; font-size: 13px; }
.resena blockquote { margin: 12px 0 16px; font: 400 20px/1.35 var(--serif); }
.resena figcaption { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-suave); }
.viajeros__fuente { margin: 40px 0 0; text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 239, 226, .5); }

/* V · Celebrar */
.celebrar { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; overflow: hidden; }
.celebrar__arte { position: relative; }
.celebrar__foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 300px 300px 4px 4px; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9); }
.rosa { width: 46%; right: -12%; bottom: -10%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.celebrar__lista { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0 0 40px; padding: 0; list-style: none; }
.celebrar__lista li { display: flex; gap: 10px; font-size: 15px; color: rgba(246, 239, 226, .85); }
.celebrar__lista span { color: var(--oro); }

/* VI · Cómo llegar */
.llegar { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: center; overflow: hidden; }
.llegar address { margin: 0 0 30px; font: 300 clamp(24px, 2.2vw, 32px)/1.3 var(--serif); font-style: normal; }
.horario { width: 100%; max-width: 440px; border-collapse: collapse; margin: 0 0 16px; }
.horario th, .horario td { padding: 12px 0; border-bottom: 1px solid rgba(242, 210, 126, .15); text-align: left; font-weight: 300; font-size: 15px; }
.horario td { text-align: right; color: var(--oro); }
.llegar__hoy { min-height: 1.6em; margin: 0 0 12px; font: italic 300 18px var(--serif); color: rgba(246, 239, 226, .85); }
.llegar__hoy::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #6bd58b; box-shadow: 0 0 10px #6bd58b; vertical-align: 2px; }
.llegar__hoy.cerrado::before { background: #d97a6b; box-shadow: 0 0 10px #d97a6b; }
.llegar__servicios { margin: 0 0 34px; font-size: 13px; letter-spacing: .08em; color: rgba(246, 239, 226, .6); }
.llegar__mapa { position: relative; aspect-ratio: 1; border-radius: 50%; -webkit-mask-image: radial-gradient(circle closest-side, #000 99%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 99%, transparent 100%); }
.llegar__mapa iframe { width: 100%; height: 100%; border: 0; border-radius: 50%; filter: invert(.9) hue-rotate(185deg) saturate(.55) brightness(.95) contrast(.9); }

/* Pie */
.pie { position: relative; padding: 90px var(--borde) 120px; text-align: center; background: linear-gradient(180deg, transparent, rgba(2, 10, 24, .85)); border-top: 1px solid rgba(242, 210, 126, .1); }
.pie img { width: 170px; margin: 0 auto 26px; }
.pie__frase { margin: 0 0 26px; font: italic 300 clamp(22px, 2vw, 30px) var(--serif); color: var(--oro); }
.pie__redes { display: flex; justify-content: center; gap: 30px; margin: 0 0 40px; }
.pie__redes a, .pie__redes .enlace { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: rgba(246, 239, 226, .75); }
.pie__credito { max-width: 40em; margin: 0 auto; font-size: 12px; color: rgba(246, 239, 226, .4); }

/* ── Revelados por scroll (estado inicial solo si hay JS) ── */
.js .revelar { opacity: 0; transform: translateY(30px); }

/* ═════════ WhatsApp ═════════ */
.wa-boton {
  position: fixed; z-index: 80; right: 22px; bottom: 22px;
  width: 62px; height: 62px; border: 0; border-radius: 50%;
  background: #25d366; box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6), 0 4px 12px rgba(0, 0, 0, .3);
  display: grid; place-items: center;
  transition: transform .4s var(--ease);
}
.wa-boton::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulso 2.6s ease-out infinite; }
@keyframes pulso { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa-boton:hover { transform: scale(1.07); }
.wa-boton svg { width: 34px; height: 34px; fill: #fff; }
.wa-abierto .wa-boton { transform: scale(0); }
.wa-globo {
  position: fixed; z-index: 80; right: 96px; bottom: 32px; max-width: 250px; margin: 0;
  padding: 12px 34px 12px 16px; border-radius: 14px 14px 4px 14px;
  background: #fff; color: #111b21; font: 400 14px/1.4 var(--sans);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(10px) scale(.96); transform-origin: right bottom; pointer-events: none;
  transition: all .5s var(--ease);
}
.wa-globo.visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-globo button { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 18px; color: #667781; line-height: 1; padding: 4px; }
.wa-abierto .wa-globo { opacity: 0; pointer-events: none; }

.wa {
  --wa-verde: #008069; --wa-burbuja: #d9fdd3; --wa-fondo: #efeae2;
  position: fixed; z-index: 100; right: 22px; bottom: 22px;
  width: 390px; height: min(660px, calc(100svh - 44px));
  display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  background: var(--wa-fondo); color: #111b21;
  font: 400 14.5px/1.4 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(24px) scale(.94); transform-origin: right bottom; pointer-events: none; visibility: hidden;
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .45s;
}
.wa-abierto .wa { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.wa__cabeza { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 6px; background: var(--wa-verde); color: #fff; }
.wa__atras { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; }
.wa__atras svg, .wa__iconos svg { width: 22px; height: 22px; fill: #fff; }
.wa__avatar { width: 40px; height: 40px; border-radius: 50%; }
.wa__quien { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa__quien strong { display: flex; align-items: center; gap: 4px; font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa__verif { flex: none; width: 15px; height: 15px; fill: #25d366; }
.wa__estado { font-size: 12.5px; opacity: .85; }
.wa__iconos { display: flex; gap: 20px; }
.wa__cuerpo {
  flex: 1; overflow-y: auto; padding: 10px 14px 6px; overscroll-behavior: contain;
  /* fondo tipo WhatsApp, pero con estrellas, planetas y rosas */
  background-color: var(--wa-fondo);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='none' stroke='%23d8cfc0' stroke-width='1.3'%3E%3Cpath d='M20 18l2.5 5 5.5.8-4 3.9.9 5.5-4.9-2.6-4.9 2.6.9-5.5-4-3.9 5.5-.8z'/%3E%3Ccircle cx='110' cy='34' r='11'/%3E%3Cellipse cx='110' cy='34' rx='20' ry='5' transform='rotate(-20 110 34)'/%3E%3Cpath d='M60 96c0-6 5-10 9-8 4-2 9 2 9 8 0 5-4 9-9 9s-9-4-9-9zM69 105v18M69 114l-6-4M69 118l6-4'/%3E%3Cpath d='M130 110a9 9 0 11-7-14 7 7 0 007 14z'/%3E%3Cpath d='M24 130l2 3.5 3.5.5-2.5 2.5.6 3.5-3.1-1.7-3.1 1.7.6-3.5-2.5-2.5 3.5-.5z'/%3E%3Ccircle cx='150' cy='150' r='1.5'/%3E%3Ccircle cx='86' cy='14' r='1.5'/%3E%3Ccircle cx='40' cy='70' r='1.5'/%3E%3C/svg%3E");
}
.wa__fecha { width: max-content; margin: 6px auto 10px; padding: 5px 12px; border-radius: 8px; background: #fff; font-size: 12.5px; color: #54656f; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.wa__aviso { display: flex; gap: 8px; margin: 0 auto 14px; max-width: 92%; padding: 8px 12px; border-radius: 8px; background: #ffeecd; font-size: 12.5px; line-height: 1.4; color: #54656f; text-align: center; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.wa__aviso svg { flex: none; width: 13px; height: 13px; margin-top: 2px; fill: #54656f; }
.wa__mensajes { display: flex; flex-direction: column; gap: 3px; }
.msj {
  position: relative; max-width: 84%; padding: 6px 8px 8px 9px; border-radius: 8px;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13); word-wrap: break-word; white-space: pre-wrap;
  animation: msj .28s var(--ease) both;
}
@keyframes msj { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.msj--ellos { align-self: flex-start; background: #fff; border-top-left-radius: 0; }
.msj--yo { align-self: flex-end; background: var(--wa-burbuja); border-top-right-radius: 0; }
.msj--ellos.primero::before, .msj--yo.primero::before { content: ""; position: absolute; top: 0; width: 8px; height: 13px; }
.msj--ellos.primero::before { left: -8px; background: #fff; clip-path: polygon(100% 0, 0 0, 100% 100%); }
.msj--yo.primero::before { right: -8px; background: var(--wa-burbuja); clip-path: polygon(0 0, 100% 0, 0 100%); }
.msj:not(.primero) { border-radius: 8px; }
.msj.primero { margin-top: 8px; }
.msj__hora { float: right; margin: 8px 0 -4px 12px; font-size: 11px; color: #667781; display: inline-flex; align-items: center; gap: 3px; }
.msj__hora svg { width: 16px; height: 11px; fill: #53bdeb; }
.msj a { color: #027eb5; }
.escribiendo { display: inline-flex; gap: 4px; padding: 4px 2px; }
.escribiendo i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: punto 1.3s infinite; }
.escribiendo i:nth-child(2) { animation-delay: .15s; } .escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.wa__atajos { display: flex; gap: 6px; padding: 6px 10px 2px; overflow-x: auto; scrollbar-width: none; background: transparent; }
.wa__atajos::-webkit-scrollbar { display: none; }
.wa__atajos button { flex: none; padding: 7px 12px; border: 1px solid #d1d7db; border-radius: 18px; background: #fff; color: #008069; font-size: 13px; }
.wa__atajos button:hover { background: #f0f2f5; }
.wa__pie { display: flex; align-items: flex-end; gap: 6px; padding: 6px 8px 8px; }
.wa__caja { flex: 1; display: flex; align-items: flex-end; gap: 8px; padding: 9px 14px; border-radius: 24px; background: #fff; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.wa__emoji { flex: none; width: 24px; height: 24px; fill: #54656f; }
.wa__caja textarea { flex: 1; resize: none; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; line-height: 1.4; max-height: 110px; color: #111b21; padding: 1px 0; }
.wa__enviar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #00a884; }
.wa__enviar svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.wa__enviar:disabled { opacity: .6; }

/* ═════════ Magia: cielo global, cursor, auroras, brillo ═════════ */
.polvo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .pie { position: relative; z-index: 1; }
.llegada { z-index: 2; }

/* auroras: manchas de luz que respiran detrás de cada capítulo oscuro */
.asteroide-cap::before, .planetas::before, .viajeros::before, .celebrar::before, .llegar::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 70vmax; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 120, 200, .16), rgba(64, 120, 200, 0) 62%);
  animation: deriva 22s ease-in-out infinite alternate;
}
.asteroide-cap::before { right: -20vmax; top: 5%; }
.planetas::before { left: 30%; top: -20%; background: radial-gradient(circle, rgba(242, 210, 126, .1), transparent 60%); }
.viajeros::before { left: -25vmax; bottom: -20vmax; }
.celebrar::before { right: -15vmax; top: 10%; background: radial-gradient(circle, rgba(184, 50, 58, .2), transparent 60%); }
.llegar::before { left: 20%; top: 20%; background: radial-gradient(circle, rgba(242, 210, 126, .08), transparent 60%); }
@keyframes deriva { to { transform: translate(-8vmax, 6vmax) scale(1.15); } }
.capitulo > * { position: relative; z-index: 1; }
.capitulo > .flotante { position: absolute; }

/* brillo dorado que recorre las cursivas */
.titulo-heroe em, .titulo em .pal > span, .pie__frase {
  background: linear-gradient(100deg, var(--oro) 0%, var(--oro) 38%, #fffbe9 50%, var(--oro) 62%, var(--oro) 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brillo 7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .12s);
}
.carta .titulo em .pal > span { background-image: linear-gradient(100deg, #9b7424 0%, #9b7424 38%, #e9c874 50%, #9b7424 62%, #9b7424 100%); }
@keyframes brillo { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.pal { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.pal > span { display: inline-block; }

/* estela de polvo de estrellas detrás del cursor */
.chispa { position: fixed; z-index: 95; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; pointer-events: none;
  background: radial-gradient(circle, #fff7da 0%, var(--oro) 35%, transparent 70%); border-radius: 50%;
  animation: chispa .9s ease-out forwards; }
.chispa.cruz { background: none; }
.chispa.cruz::before, .chispa.cruz::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff3c4; border-radius: 2px; box-shadow: 0 0 6px var(--oro); }
.chispa.cruz::before { width: 12px; height: 1.5px; translate: -50% -50%; }
.chispa.cruz::after { width: 1.5px; height: 12px; translate: -50% -50%; }
@keyframes chispa { to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2) rotate(90deg); } }

/* constelación que une las fotos del lugar */
.constelacion__lineas { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.constelacion__lineas path { fill: none; stroke: rgba(242, 210, 126, .55); stroke-width: 1; }
.constelacion__lineas circle { fill: var(--oro); filter: drop-shadow(0 0 6px var(--oro)); transform-box: fill-box; transform-origin: center; }

/* planetas que flotan cada uno a su ritmo */
.planeta__globo { animation: flotar-p 7s ease-in-out infinite; }
.planeta:nth-child(odd) .planeta__globo { animation-duration: 8.5s; animation-delay: -2s; }
.planeta:nth-child(3n) .planeta__globo { animation-delay: -4s; }
@keyframes flotar-p { 50% { transform: translateY(-14px); } }
.planeta { transition: transform .6s var(--ease); }
.planeta:hover { transform: translateY(-8px); }
.planeta:hover .planeta__globo::before { border-color: rgba(242, 210, 126, .8); }

/* pétalos que caen en Celebrar (solo se animan cuando la sección se ve) */
.petalos { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.petalo { position: absolute; top: -40px; left: var(--x); width: 14px; height: 18px; border-radius: 80% 0 80% 0;
  background: linear-gradient(135deg, #e0505a, #8f1e2a); opacity: .75; box-shadow: inset -2px -2px 4px rgba(0, 0, 0, .25);
  animation: caer-petalo var(--d) linear var(--delay) infinite; animation-play-state: paused; scale: var(--s); }
.petalos.activa .petalo { animation-play-state: running; }
@keyframes caer-petalo {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(40px, 35vh, 0) rotate(120deg); }
  50% { transform: translate3d(-20px, 70vh, 0) rotate(200deg); }
  75% { transform: translate3d(35px, 105vh, 0) rotate(300deg); }
  100% { transform: translate3d(0, 140vh, 0) rotate(400deg); }
}

/* avión de papel que vuela hacia el mapa */
.ruta { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0 !important; pointer-events: none; }
.ruta path#ruta-avion { fill: none; stroke: rgba(242, 210, 126, .35); stroke-width: 1.2; stroke-dasharray: 3 9; }
.avion path { fill: #f6efe2; stroke: none; }
.avion path + path { fill: none; stroke: rgba(6, 26, 51, .5); stroke-width: 1; }

/* reseñas con más presencia */
.resena { transition: transform .5s var(--ease), box-shadow .5s; position: relative; }
.resena::before { content: "“"; position: absolute; right: 22px; top: 6px; font: 400 80px/1 var(--serif); color: rgba(196, 154, 51, .25); }
.resena:hover { transform: translateY(-6px) rotate(0) !important; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9); }

/* el hero ya tiene su botón de reservar: el de WhatsApp aparece al empezar a bajar */
html:not(.bajo) .wa-boton { transform: scale(0); }
html:not(.bajo) .wa-globo { opacity: 0; pointer-events: none; }

/* sello giratorio del capítulo I */
.sello { position: absolute; right: var(--borde); top: clamp(90px, 11vw, 160px); width: clamp(130px, 13vw, 190px); aspect-ratio: 1; z-index: 2; }
.sello svg { width: 100%; height: 100%; animation: girar 30s linear infinite; }
.sello text { font: 400 11.5px var(--sans); letter-spacing: .32em; text-transform: uppercase; fill: rgba(242, 210, 126, .85); }
.sello img { position: absolute; left: 50%; top: 50%; width: 46%; translate: -50% -50%; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .nav__enlaces { display: none; }
  .llegada__rejilla { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .asteroide { --w: min(30vw, 36vh); }
  .llegada__nota { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__marca img { width: 84px; }
  .llegada { --aire: 10px; padding: calc(var(--aire) + 74px) calc(var(--aire) + 16px) calc(var(--aire) + 16px); min-height: 560px; }
  .marco__esq { width: 24px; height: 24px; }
  .marco__esq::after { display: none; }
  .llegada__rejilla { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
  .llegada__escena { order: -1; align-self: stretch; }
  .asteroide { --w: min(40vw, 24svh); }
  .orbita { left: -60%; width: 220%; }
  .llegada__halo { width: 110vw; right: -5vw; top: 26%; }
  .titulo-heroe { font-size: clamp(34px, min(10.6vw, 6.2svh), 54px); }
  .t-l > span { white-space: normal; }
  .llegada__intro { font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
  .llegada__acciones .boton { min-height: 46px; padding: 0 20px; font-size: 11.5px; letter-spacing: .12em; }
  .llegada__base { padding-top: 12px; padding-right: 0; }
  .llegada .antetitulo { letter-spacing: .2em; font-size: 11px; }
  .llegada__acciones { flex-wrap: nowrap; gap: 8px; }
  .llegada__acciones .boton { padding: 0 16px; letter-spacing: .08em; }

  .huellas { width: 100%; justify-content: space-between; gap: 10px; }
  .huellas li { flex-direction: column; gap: 3px; }
  .huellas strong { font-size: 22px; }
  .huellas span { font-size: 9.5px; letter-spacing: .1em; }
  .bajar { display: none; }
  .franja span { font-size: 40px; }
  .constelacion { display: flex; flex-direction: column; gap: 48px; }
  .foto__marco { aspect-ratio: 4 / 3; height: auto; }
  .f2 .foto__marco, .f3 .foto__marco, .f4 .foto__marco { aspect-ratio: 3 / 4; width: 78%; }
  .f3, .f4 { align-self: flex-end; }
  .f3 figcaption, .f4 figcaption { left: auto; right: 0; }
  .zorro { display: none; }
  .sello { width: 96px; top: 70px; right: 16px; }
  .sello text { font-size: 13px; }
  .planetas { display: block; min-height: 0; padding: 100px 0; }
  .planetas__pista { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; flex-wrap: nowrap; }
  .planetas__pista::-webkit-scrollbar { display: none; }
  .planeta { width: 74vw; scroll-snap-align: center; }
  .planetas__intro { width: 84vw; scroll-snap-align: start; }
  .desierto { height: 80vh; }
  .carta__lista { grid-template-columns: 1fr; }
  .carta__hoja { border-radius: 110px 110px 6px 6px / 60px 60px 6px 6px; padding: 50px 22px 30px; }
  .carta__pestanas { justify-content: flex-start; }
  .resena { width: 290px; padding: 22px; }
  .resena blockquote { font-size: 18px; }
  .celebrar, .llegar { grid-template-columns: 1fr; }
  .rosa { width: 42%; right: -4%; }
  .celebrar__lista { grid-template-columns: 1fr; }
  .llegar__marco { order: -1; width: 80%; margin: 0 auto; }
  .wa { right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
  .wa-globo { right: 90px; bottom: 28px; max-width: 200px; font-size: 13px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .llegada__intro { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* anillo dorado alrededor del mapa (el recorte lo hace la máscara) */
.llegar__marco { position: relative; }
.llegar__marco::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(242, 210, 126, .35); animation: girar 60s linear infinite; pointer-events: none; }
