/* =====================================================================
   Solari Lounge Hotel — página pública de reservas
   ===================================================================== */
h1, h2 { color: var(--verde); letter-spacing: .01em; }
.wm { display: block; fill: currentColor; }

/* =====================================================================
   PORTADA: atardecer en la selva
   ===================================================================== */
.portada {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(580px, 92vh, 860px);
  background: var(--selva); color: #F6EBCF;
}
.escena { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.escena img { position: absolute; display: block; max-width: none; }
.escena-fondo { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.escena-lianas { top: 0; left: 0; width: 100%; height: 230px; object-fit: cover; object-position: 50% 0; }
.escena-borde { left: 0; bottom: -1px; width: 100%; height: 96px; object-fit: cover; object-position: 50% 100%; z-index: 3; }

.hojas { bottom: 0; height: min(56%, 480px); width: auto; z-index: 2; }
.hojas-izq { left: -2%; }
.hojas-der { right: -2%; }

.animal { z-index: 1; filter: drop-shadow(0 6px 10px rgba(5, 20, 14, .35)); }
.escena .mono { top: 0; left: 12%; height: 54%; }
.escena .guacamayo { top: 13%; right: 0; height: 44%; }
.escena .tucan { left: 0; bottom: 26%; width: clamp(170px, 17vw, 260px); }
.escena .loros { right: 0; bottom: 28%; width: clamp(180px, 18vw, 270px); z-index: 3; }
.mono-movil { display: none; }

/* Mariposas morfo cruzando la escena */
.mariposa { width: 44px; top: 0; left: 0; z-index: 2; opacity: 0; animation: volar-1 24s linear infinite; }
.mariposa.m2 { width: 34px; animation-name: volar-2; animation-duration: 31s; animation-delay: -12s; }
.mariposa.m3 { width: 28px; animation-name: volar-3; animation-duration: 27s; animation-delay: -6s; }
@keyframes volar-1 {
  0%   { opacity: 0; transform: translate(-6vw, 62vh) rotate(8deg); }
  5%   { opacity: 1; }
  25%  { transform: translate(22vw, 44vh) rotate(-6deg); }
  50%  { transform: translate(46vw, 58vh) rotate(10deg); }
  75%  { transform: translate(70vw, 36vh) rotate(-8deg); }
  95%  { opacity: 1; }
  100% { opacity: 0; transform: translate(104vw, 48vh) rotate(6deg); }
}
@keyframes volar-2 {
  0%   { opacity: 0; transform: translate(104vw, 30vh) rotate(-10deg) scaleX(-1); }
  6%   { opacity: 1; }
  30%  { transform: translate(74vw, 48vh) rotate(6deg) scaleX(-1); }
  60%  { transform: translate(40vw, 26vh) rotate(-8deg) scaleX(-1); }
  94%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-8vw, 40vh) rotate(4deg) scaleX(-1); }
}
@keyframes volar-3 {
  0%   { opacity: 0; transform: translate(10vw, 80vh) rotate(0); }
  8%   { opacity: 1; }
  40%  { transform: translate(30vw, 60vh) rotate(-12deg); }
  70%  { transform: translate(60vw, 70vh) rotate(8deg); }
  92%  { opacity: 1; }
  100% { opacity: 0; transform: translate(88vw, 54vh) rotate(-6deg); }
}

/* Luciérnagas */
.luciernagas i {
  position: absolute; width: 5px; height: 5px; border-radius: 50%; z-index: 2;
  background: #FFE9A0; box-shadow: 0 0 8px 3px rgba(255, 220, 120, .7);
  opacity: 0; animation: brillo 4s ease-in-out infinite;
}
@keyframes brillo { 0%, 100% { opacity: 0; transform: translate(0, 0); } 45%, 55% { opacity: .95; } 50% { transform: translate(6px, -10px); } }

/* Barra superior */
.barra {
  position: relative; z-index: 5;
  max-width: 1240px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.marca { display: flex; align-items: center; gap: 12px; color: #F6EBCF; text-decoration: none; }
.marca-emblema { width: 54px; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.marca-texto { width: 118px; height: auto; }
.barra-acciones { display: flex; align-items: center; gap: 10px; }
.barra-wa {
  color: #F6EBCF; font-weight: 700; font-size: .92rem; text-decoration: none;
  padding: .55em 1.1em; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(246, 235, 207, .45);
}
.barra-wa:hover { box-shadow: inset 0 0 0 1.5px #F6EBCF; }

/* Texto de la portada */
.portada-texto {
  position: relative; z-index: 4;
  width: min(680px, calc(100% - 48px)); margin: clamp(24px, 7vh, 70px) auto 0;
  display: grid; justify-items: center; text-align: center; gap: 18px;
}
.portada-titulo { margin: 0; display: grid; justify-items: center; gap: 14px; color: var(--sol); }
.wm-grande { width: min(560px, 82vw); height: auto; filter: drop-shadow(0 4px 18px rgba(242, 181, 68, .35)) drop-shadow(0 2px 2px rgba(0, 0, 0, .45)); }
.wm-lounge { width: min(250px, 46vw); height: auto; color: #F6EBCF; }
.wm-adorno { width: min(280px, 52vw); height: auto; color: var(--sol); opacity: .85; margin-top: -6px; }
.portada-lema { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 34ch; color: #F6EBCF; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }

.boton-sol { background: var(--sol); color: var(--selva); }
.boton-sol:hover { background: #F7C865; }

/* =====================================================================
   Inicio: bienvenida, galería, caja de reserva e información
   ===================================================================== */
.disposicion {
  max-width: 1240px; margin: 0 auto; padding: 36px 24px 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) 410px; column-gap: 64px;
  grid-template-areas: "bien caja" "gal caja" "info caja";
  align-items: start;
}
.bienvenida { grid-area: bien; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px 32px; align-items: center; }
.bienvenida-emblema { grid-row: span 3; width: 190px; height: auto; }
.bienvenida h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.galeria-seccion { grid-area: gal; padding-top: 44px; }
.caja { grid-area: caja; }
.info { grid-area: info; }

.claves { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.claves li { font-size: .95rem; font-weight: 700; color: var(--verde); position: relative; padding-left: 18px; }
.claves li::before {
  content: ''; position: absolute; left: 0; top: .32em; width: 11px; height: 11px;
  background: var(--sol); border-radius: 0 60% 0 60%; transform: rotate(-12deg);
}

.seccion-titulo { font-size: 1.5rem; margin-bottom: 16px; }

/* ---------- Galería en mosaico ---------- */
.mosaico { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 104px; grid-auto-flow: dense; gap: 10px; }
.foto {
  position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden;
  border-radius: 16px; background: #DCD3BC; grid-column: span 2; grid-row: span 2;
}
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.foto:hover img { transform: scale(1.04); }
.foto.vertical { grid-row: span 3; }
.foto.horizontal { grid-column: span 3; }
.mosaico[data-n="1"] .foto { grid-column: 1 / -1; grid-row: span 4; }
.mosaico[data-n="2"] { grid-auto-rows: 420px; }
.mosaico[data-n="2"] .foto { grid-row: auto; grid-column: span 3; }
.mosaico[data-n="2"] .foto.vertical { grid-column: span 2; }
.mosaico[data-n="2"] .foto.horizontal { grid-column: span 4; }
.mosaico:not([data-n="1"]):not([data-n="2"]) .foto:first-child { grid-column: span 4; grid-row: span 4; }
.mosaico-vacio { padding: 28px; border-radius: 16px; background: var(--papel); color: var(--tinta-2); }

/* ---------- Caja de reserva ---------- */
.caja {
  position: sticky; top: 18px;
  background: var(--papel); border-radius: var(--r-l); box-shadow: var(--sombra);
  padding: 26px 24px 22px; display: grid; gap: 18px;
  border-top: 5px solid var(--verde);
}
.caja-loro { position: absolute; top: -78px; right: 28px; width: 62px; pointer-events: none; }
.caja-titulo { font-size: 1.4rem; }
.caja-precio { margin-top: -10px; color: var(--tinta-2); }
.caja-precio strong { color: var(--tinta); font-size: 1.15rem; }
.centrada { text-align: center; }

/* ---------- Calendario ---------- */
.cal-cabeza { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-mes { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; text-transform: capitalize; color: var(--verde); }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--verde); }
.cal-nav:hover:not(:disabled) { background: var(--niebla); }
.cal-nav:disabled { color: var(--linea); cursor: default; }
.cal-nav svg { width: 18px; height: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-sem { text-align: center; font-size: .78rem; font-weight: 700; color: var(--tinta-2); padding: 6px 0; }

.dia {
  position: relative; aspect-ratio: 1 / 1; min-height: 40px;
  border: 0; padding: 0; background: none; cursor: pointer;
  display: grid; place-items: center; font-size: .95rem; color: var(--tinta);
}
.dia span { position: relative; z-index: 1; width: 2.5em; height: 2.5em; border-radius: 50%; display: grid; place-items: center; }
.dia:hover:not(:disabled) span { background: var(--niebla); }
.dia:disabled { cursor: default; color: var(--tinta-3); }
.dia.ocupado span { text-decoration: line-through; text-decoration-color: #C3BBA4; }
.dia.hoy span::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }

/* La estadía elegida es una liana con hojas; llegada y salida son soles */
.dia.en-rango::before, .dia.ini::before, .dia.fin::before {
  content: ''; position: absolute; left: 0; right: 0; top: 14%; bottom: 14%;
  background: var(--liana) repeat-x left center / auto 100%;
}
.dia.ini::before { left: 50%; }
.dia.fin::before { right: 50%; }
.dia.ini.solo::before { display: none; }
.dia.en-rango { color: #fff; font-weight: 700; }
.dia.en-rango:hover span { background: transparent; }
.dia.en-rango span { text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.dia.ini span, .dia.fin span {
  background: var(--sol) !important; color: var(--selva); font-weight: 800;
  box-shadow: 0 0 0 3px var(--papel), 0 0 0 5px rgba(242, 181, 68, .55), 0 0 14px 4px rgba(242, 181, 68, .45);
}
.dia.previa::before { content: ''; position: absolute; left: 0; right: 0; top: 14%; bottom: 14%; background: var(--verde-claro); }

.cal-ayuda { font-size: .9rem; color: var(--tinta-2); min-height: 1.4em; margin-top: -8px; }
.cal-ayuda.aviso { color: var(--guacamayo); font-weight: 700; }

.fechas-elegidas { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--linea); border-radius: var(--r-m); }
.fechas-elegidas div { padding: 10px 14px; display: grid; }
.fechas-elegidas div + div { border-left: 1.5px solid var(--linea); }
.fechas-elegidas span { font-size: .8rem; color: var(--tinta-2); }
.fechas-elegidas strong { font-weight: 700; }
.fechas-elegidas strong::first-letter, .resumen-fechas strong::first-letter { text-transform: uppercase; }

.contador { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.contador-control { display: flex; align-items: center; gap: 14px; }
.contador-control button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--linea); background: var(--papel); font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--verde); }
.contador-control button:hover:not(:disabled) { border-color: var(--verde); }
.contador-control button:disabled { color: var(--linea); cursor: default; }
.contador-control output { min-width: 1.5ch; text-align: center; font-weight: 800; font-size: 1.1rem; }

.desglose { margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.desglose div { display: flex; justify-content: space-between; gap: 12px; }
.desglose dt { color: var(--tinta-2); }
.desglose dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.desglose .total { padding-top: 10px; border-top: 1.5px solid var(--linea); font-weight: 800; }
.desglose .total dt { color: var(--tinta); }
.desglose .adelanto { background: var(--sol-claro); border-radius: var(--r-s); padding: 8px 10px; margin: 0 -10px; }
.desglose .adelanto dt, .desglose .adelanto dd { color: #6A4A00; font-weight: 800; }

/* ---------- Información ---------- */
.info { padding-top: 20px; }
.info section { padding: 30px 0; border-top: 1.5px solid var(--linea); }
.info section:first-child { border-top: 0; }
.info h2 { font-size: 1.35rem; margin-bottom: 14px; }
.texto p + p { margin-top: 1em; }
.texto { max-width: 64ch; }
.comodidades, .reglas { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px 32px; }
.comodidades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comodidades li, .reglas li { position: relative; padding-left: 24px; }
.comodidades li::before, .reglas li::before {
  content: ''; position: absolute; left: 0; top: .32em; width: 12px; height: 12px;
  background: #4C9A4F; border-radius: 0 60% 0 60%; transform: rotate(-12deg);
}
.reglas li::before { background: var(--tinta-3); }
.horarios { margin: 0; display: flex; gap: 40px; }
.horarios dt { font-size: .85rem; color: var(--tinta-2); }
.horarios dd { margin: 0; font-family: var(--serif); font-size: 1.4rem; color: var(--verde); }

/* =====================================================================
   Flujo de reserva (pasos 2 a 4)
   ===================================================================== */
body.en-flujo .portada { height: 150px; }
body.en-flujo .portada-texto, body.en-flujo .animal, body.en-flujo .mariposa,
body.en-flujo .luciernagas, body.en-flujo .hojas { display: none; }
body.en-flujo .escena-borde { display: none; }
body.en-flujo .portada::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--sol); z-index: 6; }

.flujo { max-width: 1100px; margin: 0 auto; padding: 18px 24px 90px; }
.pasos ol { list-style: none; padding: 0; margin: 0 0 28px; display: flex; gap: 8px; counter-reset: paso; }
.pasos li { counter-increment: paso; flex: 1; }
.pasos li > * {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 0 12px; border: 0; border-bottom: 3px solid var(--linea); background: none;
  font-size: .95rem; font-weight: 600; color: var(--tinta-2); text-align: left;
}
.pasos li > *::before {
  content: counter(paso); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--linea);
}
.pasos button { cursor: pointer; }
.pasos button:hover { color: var(--tinta); }
.pasos li.hecho > * { border-bottom-color: #4C9A4F; color: var(--tinta); }
.pasos li.hecho > *::before { content: '✓'; background: #4C9A4F; color: #fff; box-shadow: none; }
.pasos li.actual > * { border-bottom-color: var(--verde); color: var(--verde); font-weight: 800; }
.pasos li.actual > *::before { background: var(--verde); color: #fff; box-shadow: none; }

.flujo-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; }
.flujo-principal { min-width: 0; }
.paso { display: grid; gap: 20px; }
.paso > h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); outline: none; }
.paso-intro { color: var(--tinta-2); max-width: 60ch; margin-top: -8px; }

.lista-huespedes { display: grid; gap: 16px; }
.huesped { margin: 0; border: 0; padding: 22px; background: var(--papel); border-radius: var(--r-l); display: grid; gap: 14px; min-width: 0; box-shadow: 0 1px 2px rgba(20, 51, 34, .05); }
.huesped legend { float: left; width: 100%; padding: 0; display: flex; align-items: baseline; gap: 10px; }
.huesped legend strong { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--verde); }
.huesped legend em { font-style: normal; font-size: .8rem; font-weight: 800; color: #6A4A00; background: var(--sol-claro); padding: 2px 10px; border-radius: 999px; }
.huesped legend + * { clear: both; }
.fila-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.fila-doc { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 14px; }
.huesped.con-error { box-shadow: inset 0 0 0 2px #E7B9AE; }

.docs { display: flex; flex-wrap: wrap; gap: 10px; }
.docs:empty { display: none; }
.doc { position: relative; width: 112px; height: 84px; border-radius: var(--r-s); overflow: hidden; background: var(--niebla); border: 1.5px solid var(--linea); }
.doc img { width: 100%; height: 100%; object-fit: cover; }
.doc .doc-pdf { height: 100%; display: grid; place-content: center; text-align: center; padding: 6px; font-size: .72rem; color: var(--tinta-2); overflow-wrap: anywhere; }
.doc .doc-pdf b { font-size: .95rem; color: var(--guacamayo); }
.doc-quitar { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(14, 42, 31, .8); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }
.subir {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 16px; border: 1.5px dashed #B9AE90; border-radius: var(--r-m);
  color: var(--verde); font-weight: 700; cursor: pointer; text-align: center; background: #FBF7EC;
}
.subir:hover { border-color: var(--verde); background: var(--verde-claro); }
.subir:focus-within { outline: 3px solid var(--sol); outline-offset: 2px; }
.subir svg { width: 22px; height: 22px; flex: none; }
.subir.lleno { display: none; }
.subir-ayuda { font-size: .82rem; color: var(--tinta-2); margin-top: -6px; }

.yape { background: var(--papel); border-radius: var(--r-l); padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: center; }
.yape-monto { display: grid; }
.yape-monto span { color: var(--tinta-2); font-size: .9rem; }
.yape-monto strong { font-family: var(--serif); font-weight: 700; font-size: 2.5rem; line-height: 1.1; color: var(--verde); }
.yape-qr { grid-row: span 2; width: 168px; height: 168px; object-fit: contain; border-radius: var(--r-m); border: 1.5px solid var(--linea); padding: 8px; background: #fff; }
.yape-datos { margin: 0; display: grid; gap: 8px; }
.yape-datos div { display: grid; }
.yape-datos dt { font-size: .82rem; color: var(--tinta-2); }
.yape-datos dd { margin: 0; font-weight: 800; font-size: 1.05rem; }
.yape-datos .enlace { font-size: .88rem; font-weight: 600; margin-left: 6px; }
.comprobante { display: grid; gap: 12px; }
.comprobante h2 { font-size: 1.15rem; }
.comprobante .doc { width: 120px; height: 160px; }
.consentimiento { font-size: .95rem; }
.progreso { color: var(--tinta-2); font-size: .92rem; text-align: center; min-height: 1.4em; }

.listo { background: var(--papel); border-radius: var(--r-l); padding: 0 28px 28px; overflow: hidden; }
.listo-faja { height: 26px; margin: 0 -28px 6px; background: var(--liana) repeat-x left center / auto 100%; }
.codigo { font-size: 1.05rem; }
.codigo strong { font-family: var(--serif); font-weight: 700; font-size: 1.9rem; letter-spacing: .1em; margin-left: 6px; color: var(--verde); }

/* Guacamayo que cruza la pantalla al terminar la reserva */
.vuelo-celebra { position: fixed; top: 18%; left: -280px; width: 230px; z-index: 60; pointer-events: none; animation: cruza 3.4s ease-in-out forwards; }
@keyframes cruza {
  0%   { transform: translate(0, 50px) rotate(-8deg); }
  50%  { transform: translate(60vw, -20px) rotate(3deg); }
  100% { transform: translate(calc(100vw + 320px), -90px) rotate(-6deg); }
}

.resumen { position: sticky; top: 18px; background: var(--papel); border-radius: var(--r-l); padding: 22px; display: grid; gap: 14px; border-top: 5px solid var(--verde); }
.resumen h2 { font-size: 1.15rem; }
.resumen-fechas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.resumen-fechas span { display: block; font-size: .8rem; color: var(--tinta-2); }
.resumen-fechas strong { display: block; font-weight: 700; }
.resumen .desglose { padding-top: 14px; border-top: 1.5px solid var(--linea); }

/* =====================================================================
   Pie de página
   ===================================================================== */
.pie { position: relative; background: var(--selva); color: #E9DFC3; padding: 150px 24px 40px; margin-top: 40px; overflow: hidden; }
.pie::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 60px; background: var(--niebla); clip-path: ellipse(70% 100% at 50% 0); }
.pie-perezoso { position: absolute; top: 22px; left: 0; width: clamp(220px, 26vw, 340px); }
.pie-contenido { max-width: 1240px; margin: 0 auto; display: grid; justify-items: center; text-align: center; gap: 12px; }
.pie-emblema { width: 120px; height: auto; }
.pie-wm { width: 190px; height: auto; color: var(--sol); }
.pie-lounge { width: 150px; height: auto; color: #E9DFC3; }
.pie-zona { color: #CFC5A8; }
.pie-acciones { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.pie .boton.secundario { color: #F6EBCF; box-shadow: inset 0 0 0 1.5px rgba(246, 235, 207, .45); }
.pie .boton.secundario:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px #F6EBCF; }
.pie-credito { margin-top: 26px; font-size: .82rem; color: #9FA88F; }
.pie-credito a { color: #CFC5A8; }

/* =====================================================================
   Visor de fotos y diálogos
   ===================================================================== */
.visor-fotos { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; background: rgba(8, 22, 16, .96); color: #fff; }
.visor-fotos[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.visor-fotos::backdrop { background: rgba(8, 22, 16, .6); }
.visor-barra { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; gap: 12px; }
.visor-barra span { font-weight: 700; }
.visor-escenario { position: relative; display: grid; place-items: center; padding: 0 64px 24px; min-height: 0; touch-action: pan-y; }
.visor-escenario img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; user-select: none; }
.visor-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.visor-nav:hover { background: rgba(255, 255, 255, .24); }
.visor-nav svg { width: 22px; height: 22px; }
.visor-nav.ant { left: 10px; }
.visor-nav.sig { right: 10px; }
.boton-claro { background: rgba(255, 255, 255, .12); color: #fff; }
.boton-claro:hover { background: rgba(255, 255, 255, .22); }

.dialogo { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); border: 0; border-radius: var(--r-l); padding: 28px; color: var(--tinta); background: var(--papel); display: none; gap: 16px; }
.dialogo[open] { display: grid; }
.dialogo::backdrop { background: rgba(14, 42, 31, .5); }
.dialogo h2 { font-size: 1.4rem; }
.dialogo .texto { font-size: .95rem; }
.dialogo .texto h3 { margin-top: 1em; }

.fallo { max-width: 640px; margin: 40px auto; padding: 20px 24px; background: var(--papel); border-radius: var(--r-m); border-left: 4px solid var(--error); }

/* =====================================================================
   Tablet y celular
   ===================================================================== */
@media (max-width: 1060px) {
  .disposicion { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bien" "gal" "caja" "info"; }
  .caja { position: relative; top: 0; margin-top: 100px; max-width: 560px; width: 100%; justify-self: center; }
  .flujo-cuerpo { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .resumen { position: static; order: -1; padding: 16px 18px; gap: 10px; }
  .resumen h2 { display: none; }
  .resumen .desglose { padding-top: 0; border-top: 0; }
  .resumen .desglose > div:not(.total):not(.adelanto) { display: none; }
  .escena .loros { display: none; }
  .escena .tucan { bottom: 22%; }
}

@media (max-width: 720px) {
  .portada { height: clamp(640px, 100svh, 820px); }
  .barra { padding: 12px 16px; }
  .marca-emblema { width: 44px; }
  .marca-texto { display: none; }
  .barra-wa { display: none; }
  .portada-texto { margin-top: 18px; gap: 14px; }
  .escena .mono { display: none; }
  .escena .guacamayo { top: auto; bottom: 25%; height: 27%; }
  .escena .tucan { bottom: 29%; width: 150px; }
  .hojas { height: 34%; }
  .bienvenida { position: relative; }
  .mono-movil { display: block; position: absolute; top: -96px; right: -6px; height: 250px; z-index: 1; pointer-events: none; }
  .hojas-izq { left: -12%; }
  .hojas-der { right: -12%; }
  .escena-lianas { height: 150px; }
  .escena-borde { height: 64px; }
  .disposicion, .flujo { padding-left: 16px; padding-right: 16px; }
  .bienvenida { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .bienvenida-emblema { grid-row: auto; width: 170px; }
  .claves { justify-content: center; }
  .mosaico, .mosaico[data-n] {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px;
    margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none;
  }
  .mosaico::-webkit-scrollbar { display: none; }
  .mosaico .foto, .mosaico[data-n] .foto { flex: 0 0 84%; height: 300px; scroll-snap-align: center; }
  .mosaico .foto.vertical { flex-basis: 62%; height: 380px; }
  .caja { padding: 24px 16px 20px; }
  .comodidades { grid-template-columns: minmax(0, 1fr); }
  .huesped { padding: 18px 16px; }
  .fila-2, .fila-doc { grid-template-columns: minmax(0, 1fr); }
  .yape { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; }
  .yape-qr { grid-row: auto; justify-self: center; width: 200px; height: 200px; }
  .pasos li > * { font-size: .85rem; gap: 6px; }
  .listo { padding: 0 18px 22px; }
  .listo-faja { margin: 0 -18px 6px; }
  .visor-escenario { padding: 0 8px 16px; }
  .visor-nav { display: none; }
  .pie { padding-top: 130px; }
  .pie-perezoso { width: 240px; top: 26px; }
  body.en-flujo .portada { height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .mariposa, .luciernagas, .vuelo-celebra { display: none; }
  .foto img { transition: none; }
}
