/* Rincón de Luna · v3 con fotos, video y 360° reales (dron del 14 de noviembre de 2026).
   Concepto: la página es un instrumento del cielo nocturno de Belmira. Un solo mundo oscuro, a propósito:
   tinta de páramo verde azulada, texto de luz de luna, salvia de frailejón para lo secundario. */
:root {
  /* Paleta sacada de las fotos del lugar (14 de noviembre de 2026):
     el rojo de la cabaña y de los techos, el verde del potrero ya de noche, la teja de barro,
     la madera del kiosco, la piedra del balcón y la neblina de las montañas de Belmira. */
  --noche: #0f1611;        /* fondo: potrero y monte de noche */
  --noche-2: #162018;      /* superficies */
  --noche-3: #1f2d21;      /* superficie realzada */
  --luna: #f4ecdc;         /* texto principal: luz de luna cálida */
  --frailejon: #cdd29b;    /* acentos secundarios: hoja de frailejón */
  --niebla: #9fad9f;       /* texto secundario: neblina */
  --brasa: #f0a35e;        /* fogata y luna llena */
  --casa: #c8402b;         /* rojo de la cabaña: botones principales */
  --casa-fuerte: #ad3321;  /* el mismo rojo en sombra */
  --teja: #b9683f;         /* teja de barro: detalles */
  --madera: #c98743;       /* madera del kiosco y las carpas */
  --sobre-casa: #fff8ee;   /* texto sobre el rojo (contraste 4,9:1) */
  --linea: rgb(244 236 220 / .12);
  --linea-fuerte: rgb(244 236 220 / .28);

  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --texto: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-hero: clamp(2.6rem, 1.4rem + 5.6vw, 6.4rem);
  --t-h2: clamp(2rem, 1.3rem + 2.8vw, 3.6rem);
  --t-h3: clamp(1.4rem, 1.15rem + .9vw, 1.9rem);
  --t-base: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --t-chico: .875rem;

  --margen: max(16px, env(safe-area-inset-left, 0px));
  --margen-d: max(16px, env(safe-area-inset-right, 0px));
  --seccion: clamp(4.5rem, 3rem + 6vw, 9rem);
  --ancho: 1180px;
  --suave: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--noche); color: var(--luna); font: 400 var(--t-base)/1.6 var(--texto); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--noche); z-index: 30; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--frailejon); outline-offset: 3px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.oculto { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 40; background: var(--luna); color: var(--noche); padding: 10px 14px; border-radius: 6px; }
.saltar:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.envoltura { width: 100%; max-width: calc(var(--ancho) + 64px); margin-inline: auto; padding-left: var(--margen); padding-right: var(--margen-d); }
@media (min-width: 720px) { .envoltura { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

/* ---------- Botones ---------- */
.boton { --fondo: var(--casa); --tinta: var(--sobre-casa); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--fondo); background: var(--fondo); color: var(--tinta); font: 600 .95rem/1 var(--texto); text-decoration: none; cursor: pointer; transition: transform .25s var(--suave), background-color .2s, color .2s, box-shadow .3s; }
.boton:hover { transform: translateY(-1px); --fondo: var(--casa-fuerte); box-shadow: 0 12px 30px -12px rgb(200 64 43 / .8); }
.boton:active { transform: translateY(0) scale(.98); }
.boton--linea { --fondo: transparent; --tinta: var(--luna); border-color: var(--linea-fuerte); }
.boton--linea:hover { --fondo: transparent; border-color: var(--luna); box-shadow: none; background: rgb(244 236 220 / .06); }
.boton--chico { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.boton--ancho { width: 100%; }
.enlace { background: none; border: 0; color: var(--niebla); font: 500 var(--t-chico) var(--texto); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px 0; }
.enlace:hover { color: var(--luna); }

/* ---------- Barra superior ---------- */
.barra { position: fixed; inset: 0 0 auto; top: env(safe-area-inset-top, 0px); z-index: 20; transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.barra.es-solida { background: rgb(15 22 17 / .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--linea); }
.barra__in { max-width: calc(var(--ancho) + 64px); margin-inline: auto; display: flex; align-items: center; gap: 24px; min-height: 64px; padding-left: var(--margen); padding-right: var(--margen-d); }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.25rem/1 var(--display); letter-spacing: .01em; }
.marca svg { width: 22px; height: 22px; fill: var(--luna); }
.barra nav { display: none; margin-left: auto; gap: 28px; }
.barra nav a { text-decoration: none; color: rgb(244 236 220 / .92); padding: 12px 0; font-size: .9rem; transition: color .2s; }
.barra nav a:hover { color: var(--luna); }
.barra .boton { margin-left: auto; }
@media (min-width: 860px) { .barra nav { display: flex; } .barra .boton { margin-left: 0; } .barra__in { padding-inline: 32px; } }

/* ---------- Portada: video del dron sobre su póster ---------- */
.portada { position: relative; isolation: isolate; min-height: min(100svh, 940px); display: flex; align-items: flex-end; padding-block: 120px 28px; overflow: hidden; background: #26302a; }
.portada__medio { position: absolute; inset: 0; z-index: -2; }
.portada__medio img, .portada__medio video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.portada__medio video { opacity: 0; transition: opacity .9s ease; }
.portada.con-video .portada__medio video { opacity: 1; }
/* Velo: deja ver la cabaña arriba y oscurece donde va el texto, para que se lea con contraste AA. */
.portada::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(rgb(15 22 17 / .7), rgb(15 22 17 / .08) 15%, rgb(15 22 17 / .1) 28%, rgb(15 22 17 / .74) 44%, rgb(15 22 17 / .9) 62%, rgb(15 22 17 / .96) 80%, var(--noche)); }
@media (min-width: 800px) and (orientation: landscape) {
  .portada__medio img, .portada__medio video { object-position: 50% 50%; }
  .portada::after { background: linear-gradient(90deg, rgb(15 22 17 / .9), rgb(15 22 17 / .68) 38%, rgb(15 22 17 / .12) 72%), linear-gradient(rgb(15 22 17 / .78), transparent 22%, transparent 62%, var(--noche)); }
}
.portada__in { width: 100%; max-width: calc(var(--ancho) + 64px); margin-inline: auto; padding-left: var(--margen); padding-right: var(--margen-d); display: grid; gap: 18px; min-width: 0; }
@media (min-width: 720px) { .portada__in { padding-inline: 32px; gap: 22px; } }
.portada__pausa { position: absolute; z-index: 2; right: var(--margen-d); top: calc(76px + env(safe-area-inset-top, 0px)); min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgb(244 236 220 / .4); background: rgb(15 22 17 / .7); color: var(--luna); font: 600 .8rem/1 var(--texto); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.portada__pausa:hover { border-color: var(--luna); }
@media (min-width: 720px) { .portada__pausa { right: 32px; top: calc(84px + env(safe-area-inset-top, 0px)); } }

/* Reloj del ciclo lunar, en la sección de noches */
.noches__cabeza { display: grid; gap: 8px; }
.ciclo { margin: 0 0 20px; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 16px; width: 100%; max-width: 420px; }
@media (min-width: 960px) { .noches__cabeza { grid-template-columns: minmax(0, 1fr) 300px; align-items: center; column-gap: 56px; } .ciclo { order: 2; grid-template-columns: 1fr; margin: 0; justify-items: center; text-align: center; } }
.ciclo svg { width: 100%; height: auto; overflow: visible; }
.ciclo figcaption { font-size: var(--t-chico); color: var(--niebla); line-height: 1.45; }
.ciclo figcaption b { color: var(--luna); font-weight: 500; }
.ciclo .anillo { fill: none; stroke: var(--linea); stroke-width: 1; }
.ciclo .avance { fill: none; stroke: var(--luna); stroke-width: 1.6; stroke-linecap: round; opacity: .75; }
.ciclo .marca-dia { stroke: var(--linea-fuerte); stroke-width: 1; }
.ciclo .marca-dia.es-cuarto { stroke: var(--frailejon); stroke-width: 1.4; }
.ciclo .luna-sombra { fill: var(--noche-3); stroke: var(--linea); }
.ciclo .luna-luz { fill: var(--luna); }
.ciclo .grande .luna-sombra { fill: rgb(244 236 220 / .06); stroke: none; }
.ciclo .hoy { fill: var(--brasa); }
.ciclo .hoy-halo { fill: rgb(227 162 102 / .25); }
.ciclo .rotulo-svg { fill: var(--niebla); font: 600 9px var(--texto); letter-spacing: .14em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .ciclo .avance { animation: trazar 2.4s var(--suave) .3s both; }
  .ciclo .hoy-halo { animation: latir 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes trazar { from { stroke-dashoffset: var(--largo, 1); } }
@keyframes latir { 50% { transform: scale(1.8); opacity: .2; } }
.coordenadas { font: 600 .75rem/1.4 var(--texto); letter-spacing: .16em; text-transform: uppercase; color: var(--luna); text-shadow: 0 1px 10px rgb(15 22 17 / .9); }
.portada h1 { font-size: var(--t-hero); line-height: .98; letter-spacing: -.025em; max-width: 13ch; text-shadow: 0 2px 24px rgb(15 22 17 / .5); font-variation-settings: "opsz" 72; }
.portada h1 em { font-style: italic; color: var(--brasa); }
.portada__texto { max-width: 46ch; color: rgb(244 236 220 / .92); font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.instrumento { margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--linea); }
.instrumento > div { padding: 14px 16px 0 0; min-width: 0; }
.instrumento dt { font: 600 .6875rem/1.3 var(--texto); letter-spacing: .14em; text-transform: uppercase; color: var(--frailejon); }
.instrumento dd { margin: 4px 0 0; font: 400 1.25rem/1.25 var(--display); }
@media (min-width: 720px) { .instrumento { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 820px; } .instrumento > div + div { padding-left: 16px; border-left: 1px solid var(--linea); } }

/* ---------- Secciones ---------- */
.seccion { padding-block: var(--seccion) 0; }
.cabeza { display: grid; gap: 12px; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.5rem); max-width: 720px; }
.rotulo { font: 600 .75rem/1.3 var(--texto); letter-spacing: .16em; text-transform: uppercase; color: var(--frailejon); }
.cabeza h2 { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -.02em; }
.cabeza__texto { color: var(--niebla); max-width: 58ch; }
.cabeza__texto b { color: var(--luna); font-weight: 500; }

/* Aparición suave con el scroll, solo donde el navegador lo soporta; si no, todo se ve en reposo. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cabeza, .opcion, .grupo, .reglas > div, .ruta li, .mapa, .galeria li { animation: subir linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes subir { from { opacity: .001; transform: translateY(28px); } }

/* ---------- Recorrido 3D ---------- */
.recorrido { padding-block: var(--seccion) 0; }
.escena3d { position: relative; height: clamp(440px, 72svh, 780px); background: radial-gradient(ellipse at 50% 30%, var(--noche-3), var(--noche)); border-block: 1px solid var(--linea); overflow: hidden; touch-action: none; }
.escena3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s var(--suave); cursor: grab; }
.escena3d canvas:active { cursor: grabbing; }
.escena3d.esta-lista canvas { opacity: 1; }
.estado3d { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--niebla); font-size: var(--t-chico); pointer-events: none; }
.estado3d:empty { display: none; }
.etiquetas3d { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.etiqueta3d { position: absolute; left: 0; top: 0; pointer-events: auto; padding: 9px 12px 10px; border-radius: 999px; border: 1px solid rgb(244 236 220 / .35); background: rgb(15 22 17 / .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--luna); font: 600 .75rem/1 var(--texto); letter-spacing: .04em; cursor: pointer; white-space: nowrap; transition: background-color .2s, border-color .2s; will-change: transform; }
.etiqueta3d::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 1px; height: 6px; background: rgb(244 236 220 / .45); }
.etiqueta3d:hover { background: var(--luna); color: var(--noche); border-color: var(--luna); }
.vista3d { position: absolute; z-index: 3; left: max(16px, env(safe-area-inset-left, 0px)); bottom: 16px; max-width: min(420px, calc(100% - 32px)); padding: 14px 16px; border-radius: 4px; background: rgb(15 22 17 / .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--linea); pointer-events: none; }
@media (min-width: 720px) { .vista3d { left: max(32px, calc((100vw - var(--ancho)) / 2)); bottom: 24px; } }
.vista3d__titulo { font: 400 1.4rem/1.15 var(--display); }
.vista3d__texto { margin-top: 4px; font-size: .9rem; color: rgb(244 236 220 / .78); }
.mandos3d { display: grid; gap: 18px; padding-block: 18px 0; }
@media (min-width: 960px) { .mandos3d { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; column-gap: 40px; } .nota3d { grid-column: 1 / -1; } }
.vistas3d { display: flex; flex-wrap: wrap; gap: 8px; }
.vistas3d button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linea-fuerte); background: transparent; color: var(--luna); font: 500 .9rem var(--texto); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.vistas3d button:hover { border-color: var(--luna); }
.vistas3d button[aria-pressed="true"] { background: var(--luna); color: var(--noche); border-color: var(--luna); }
.hora3d { display: grid; gap: 10px; min-width: 0; }
.hora3d label { font-size: .9rem; color: var(--frailejon); font-variant-numeric: tabular-nums; }
.hora3d input[type="range"] { width: 100%; accent-color: var(--luna); min-height: 32px; }
.hora3d__botones { display: flex; flex-wrap: wrap; gap: 8px; }
.hora3d__botones .boton[aria-pressed="true"]#envivo3d { border-color: var(--frailejon); color: var(--frailejon); }
.nota3d { font-size: var(--t-chico); color: var(--niebla); max-width: 75ch; }

/* ---------- Galería: una foto destacada y las demás en orden, todas en 4:5 ---------- */
.galeria { list-style: none; margin: 0; padding: 0; }
.galeria__foto { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--noche-2); text-decoration: none; }
.galeria__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--suave); }
.galeria__foto span { position: absolute; inset: auto 0 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgb(15 22 17 / .88)); font: 500 .9rem/1.25 var(--texto); }
.galeria__destacada .galeria__foto span { font: 400 1.5rem/1.15 var(--display); padding: 64px 18px 16px; }
@media (hover: hover) { .galeria__foto:hover img { transform: scale(1.04); } }
/* Celular: la destacada a todo el ancho y las demás en una tira que se desliza. */
.galeria--tira { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--margen-d) 16px var(--margen); scroll-padding-left: var(--margen); scrollbar-width: thin; scrollbar-color: var(--linea-fuerte) transparent; overscroll-behavior-x: contain; }
.galeria--tira li { flex: none; width: 58vw; max-width: 280px; scroll-snap-align: start; }
/* Computador: mosaico de 4 columnas; la destacada ocupa 2 × 2. */
@media (min-width: 900px) {
  #fotos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: calc(var(--ancho) + 64px); margin-inline: auto; padding-inline: 32px; }
  #fotos > .envoltura, #fotos .galeria { display: contents; }
  #fotos .cabeza { grid-column: 1 / -1; }
  #fotos li { width: auto; max-width: none; }
  #fotos .galeria__destacada { grid-column: span 2; grid-row: span 2; }
  #fotos .galeria__destacada .galeria__foto { aspect-ratio: auto; height: 100%; }
}
.visor { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 12px; border: 0; background: rgb(6 10 11 / .96); color: var(--luna); }
.visor[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; justify-items: center; }
.visor::backdrop { background: rgb(6 10 11 / .9); }
.visor form { justify-self: end; }
.visor__cerrar { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linea-fuerte); background: transparent; color: var(--luna); font: 600 .9rem var(--texto); cursor: pointer; }
.visor img { max-width: 100%; height: 100%; width: auto; object-fit: contain; border-radius: 4px; min-height: 0; }
.visor__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(100%, 560px); }
.visor__pie p { text-align: center; font-size: .95rem; }

/* ---------- Recorrido 360° ---------- */
.pano { position: relative; height: clamp(380px, 68svh, 720px); background: var(--noche-2); border-block: 1px solid var(--linea); overflow: hidden; }
.pano:fullscreen { height: 100dvh; }
.pano__previa { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.72); }
.pano canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; opacity: 0; transition: opacity .45s ease; }
.pano canvas:active { cursor: grabbing; }
.pano.esta-lista canvas { opacity: 1; }
.pano.esta-lista.cambia canvas { opacity: 0; }
.pano.esta-lista .pano__previa { visibility: hidden; }
.pano__entrar { position: absolute; left: 50%; top: 46%; translate: -50% -50%; z-index: 4; box-shadow: 0 12px 40px -10px rgb(0 0 0 / .7); white-space: nowrap; }
.pano__puntos { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.punto360 { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid rgb(244 236 220 / .55); background: rgb(15 22 17 / .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--luna); font: 600 .85rem/1 var(--texto); cursor: pointer; white-space: nowrap; will-change: transform; transition: background-color .2s, color .2s; }
.punto360::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--brasa); box-shadow: 0 0 0 4px rgb(227 162 102 / .25); }
.punto360:hover, .punto360:focus-visible { background: var(--luna); color: var(--noche); }
.pano .estado3d { z-index: 3; align-content: end; padding-bottom: 96px; color: var(--luna); text-shadow: 0 1px 8px rgb(0 0 0 / .8); }

/* ---------- Opciones ---------- */
.opciones { display: grid; gap: 16px; }
@media (min-width: 820px) { .opciones { grid-template-columns: 1fr 1fr; gap: 24px; } }
.opcion { position: relative; display: grid; gap: 12px; align-content: start; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--linea); border-top: 3px solid var(--teja); border-radius: 4px; background: linear-gradient(160deg, var(--noche-2), var(--noche)); transition: border-color .3s, transform .4s var(--suave); }
.opcion:hover { border-color: var(--linea-fuerte); transform: translateY(-3px); }
.opcion h3 { font-size: var(--t-h3); }
.opcion p { color: var(--niebla); max-width: 48ch; }
.opcion__dato { font: 600 .75rem/1.5 var(--texto); letter-spacing: .1em; text-transform: uppercase; color: var(--frailejon) !important; }
.opcion .boton { justify-self: start; margin-top: 8px; }
.precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--luna) !important; margin-top: 6px; }
.precio__desde { font-size: var(--t-chico); color: var(--niebla); }
.precio > .num { font: 300 clamp(2rem, 1.6rem + 1.4vw, 2.8rem)/1 var(--display); letter-spacing: -.02em; }
.precio__mas { font-size: var(--t-chico); color: var(--niebla); }
.dibujo { width: 100%; max-width: 280px; height: auto; fill: none; stroke: var(--frailejon); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .js .dibujo path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--suave); }
  .js .dibujo path:nth-child(2) { transition-delay: .12s; } .js .dibujo path:nth-child(3) { transition-delay: .24s; }
  .js .dibujo path:nth-child(4) { transition-delay: .36s; } .js .dibujo path:nth-child(5) { transition-delay: .48s; } .js .dibujo path:nth-child(6) { transition-delay: .6s; }
  .js .opcion.esta-visible .dibujo path { stroke-dashoffset: 0; }
}

/* ---------- Tira de noches ---------- */
.tira { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px var(--margen-d) 18px var(--margen); scrollbar-width: thin; scrollbar-color: var(--linea-fuerte) transparent; overscroll-behavior-x: contain; }
@media (min-width: 720px) { .tira { padding-left: max(32px, calc((100vw - var(--ancho)) / 2)); scroll-padding-left: max(32px, calc((100vw - var(--ancho)) / 2)); } }
.noche { position: relative; flex: none; scroll-snap-align: start; width: 84px; display: grid; justify-items: center; gap: 6px; padding: 14px 6px 12px; border-radius: 4px; border: 1px solid var(--linea); background: var(--noche-2); color: var(--luna); font: inherit; cursor: pointer; transition: border-color .2s, background-color .2s, transform .3s var(--suave); }
.noche:hover { border-color: var(--linea-fuerte); transform: translateY(-2px); }
.noche[aria-pressed="true"] { background: var(--luna); color: var(--noche); border-color: var(--luna); }
.noche__dia { font: 600 .6875rem/1 var(--texto); letter-spacing: .12em; text-transform: uppercase; color: var(--niebla); }
.noche[aria-pressed="true"] .noche__dia { color: rgb(15 22 17 / .65); }
.noche__num { font: 400 1.5rem/1 var(--display); }
.noche svg { width: 30px; height: 30px; }
.noche .luna-sombra { fill: rgb(244 236 220 / .1); }
.noche .luna-luz { fill: var(--luna); }
.noche[aria-pressed="true"] .luna-sombra { fill: rgb(15 22 17 / .14); }
.noche[aria-pressed="true"] .luna-luz { fill: var(--noche); }
.noche__nota { font-size: .6875rem; line-height: 1.2; color: var(--niebla); min-height: 1.2em; }
.noche.es-llena { border-color: rgb(227 162 102 / .55); }
.noche.es-llena .noche__nota { color: var(--brasa); font-weight: 600; }
.noche.es-finde:not([aria-pressed="true"]) .noche__dia { color: var(--frailejon); }
.noche--mes { width: auto; padding-inline: 10px; align-content: center; background: none; border-style: dashed; cursor: default; font: 600 .6875rem/1.2 var(--texto); letter-spacing: .12em; text-transform: uppercase; color: var(--niebla); }
.noche--mes:hover { transform: none; border-color: var(--linea); }

/* ---------- Cotizador ---------- */
.cotizador { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .cotizador { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; } }
.plan { display: grid; gap: 26px; min-width: 0; }
.plan .cabeza { margin-bottom: 4px; }
.campo { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.campo legend, .campo__titulo { padding: 0; margin-bottom: 10px; font: 600 .75rem/1.3 var(--texto); letter-spacing: .14em; text-transform: uppercase; color: var(--niebla); }
.campo__titulo { margin-bottom: 0; }
.legend__nota { text-transform: none; letter-spacing: 0; font-weight: 400; color: rgb(140 156 149 / .8); margin-left: 6px; }
.campo--doble { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.campo__sub { display: grid; gap: 10px; min-width: 0; }
input[type="date"], input[type="text"], select { width: 100%; min-width: 0; min-height: 52px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--linea-fuerte); background: var(--noche-2); color: var(--luna); font: 500 1rem var(--texto); transition: border-color .2s; }
input:hover, select:hover { border-color: rgb(244 236 220 / .45); }
input:focus-visible, select:focus-visible { outline-offset: 1px; }
.ayuda { font-size: var(--t-chico); color: var(--niebla); min-height: 1.4em; }

.segmento { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid var(--linea-fuerte); border-radius: 999px; max-width: 420px; }
.segmento input { position: absolute; opacity: 0; pointer-events: none; }
.segmento label { position: relative; z-index: 1; display: grid; place-items: center; min-height: 46px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--niebla); transition: color .3s; }
.segmento::before { content: ""; position: absolute; inset: 4px auto 4px 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--luna); transition: transform .45s var(--suave); }
.segmento:has(#u-camping:checked)::before { transform: translateX(100%); }
.segmento input:checked + label { color: var(--noche); }
.segmento input:focus-visible + label { outline: 2px solid var(--frailejon); outline-offset: 2px; }

.paso { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--linea-fuerte); border-radius: 999px; padding: 4px; justify-self: start; }
.paso button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: transparent; color: var(--luna); font: 400 1.5rem/1 var(--texto); cursor: pointer; transition: background-color .2s; }
.paso button:hover:not(:disabled) { background: rgb(244 236 220 / .1); }
.paso button:disabled { color: rgb(244 236 220 / .25); cursor: not-allowed; }
.paso output { min-width: 3ch; text-align: center; font: 400 1.75rem/1 var(--display); }

.fichas { display: flex; flex-wrap: wrap; gap: 8px; }
.ficha { position: relative; cursor: pointer; }
.ficha input { position: absolute; opacity: 0; }
.ficha span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--linea-fuerte); border-radius: 999px; font-size: .95rem; transition: all .2s; }
.ficha span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--niebla); transition: all .2s; }
.ficha input:checked + span { border-color: var(--brasa); background: rgb(227 162 102 / .1); }
.ficha input:checked + span::before { background: var(--brasa); border-color: var(--brasa); }
.ficha input:focus-visible + span { outline: 2px solid var(--frailejon); outline-offset: 2px; }

.resumen { position: relative; display: grid; gap: 14px; padding: clamp(22px, 3vw, 34px); border-radius: 4px; background: var(--noche-3); border: 1px solid var(--linea); min-width: 0; overflow: hidden; }
.resumen::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgb(244 236 220 / .12), transparent 65%); pointer-events: none; }
@media (min-width: 960px) { .resumen { position: sticky; top: 96px; } }
.resumen__que { font: 400 var(--t-h3)/1.15 var(--display); }
.resumen__total { font: 300 clamp(3rem, 2.4rem + 2.6vw, 4.6rem)/1 var(--display); letter-spacing: -.03em; }
.resumen__lineas { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--linea); display: grid; gap: 8px; font-size: .95rem; }
.resumen__lineas li { display: flex; justify-content: space-between; gap: 16px; color: var(--niebla); }
.resumen__lineas li b { color: var(--luna); font-weight: 500; text-align: right; }
.resumen__luna { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 4px; background: rgb(15 22 17 / .45); font-size: .95rem; color: var(--frailejon); }
.resumen__luna:empty { display: none; }
.resumen__luna svg { flex: none; width: 34px; height: 34px; }
.resumen__luna .luna-sombra { fill: rgb(244 236 220 / .12); } .resumen__luna .luna-luz { fill: var(--luna); }
.resumen__anticipo { font-size: .95rem; color: var(--niebla); }
.resumen__anticipo b { color: var(--luna); font-weight: 600; }
.resumen .enlace { justify-self: center; }
.pulso { animation: pulso .5s var(--suave); }
@keyframes pulso { 40% { transform: scale(1.03); } }

/* ---------- Qué hay ---------- */
.grupos { display: grid; gap: 0; border-top: 1px solid var(--linea); }
@media (min-width: 760px) { .grupos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grupo + .grupo { border-left: 1px solid var(--linea); padding-left: 28px; } }
.grupo { padding: 26px 20px 26px 0; display: grid; gap: 14px; align-content: start; border-bottom: 1px solid var(--linea); }
@media (min-width: 760px) { .grupo { border-bottom: 0; } }
.grupo h3 { font-size: 1.5rem; }
.grupo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: rgb(244 236 220 / .8); }
.grupo li { display: flex; gap: 12px; align-items: baseline; }
.grupo li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--madera); transform: translateY(-3px); }

/* ---------- Llegar ---------- */
.llegar { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .llegar { grid-template-columns: 1fr 1fr; gap: 64px; } }
.ruta { margin: 0 0 26px; padding: 0; list-style: none; counter-reset: paso; display: grid; gap: 16px; }
.ruta li { counter-increment: paso; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: baseline; color: rgb(244 236 220 / .85); }
.ruta li::before { border-color: var(--teja) !important; content: counter(paso); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--linea-fuerte); font: 400 1rem/1 var(--display); color: var(--frailejon); }
.mapa { width: 100%; max-width: 520px; height: auto; justify-self: center; overflow: visible; }
.mapa__curvas { fill: none; stroke: var(--linea); stroke-width: 1; }
.mapa__via { fill: none; stroke: var(--madera); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .012 .012; }
.mapa__punto { fill: var(--niebla); }
.mapa__nosotros { fill: var(--casa); stroke: rgb(200 64 43 / .35); stroke-width: 10; }
.mapa text { fill: var(--niebla); font: 500 13px var(--texto); }
.mapa .mapa__fuerte { fill: var(--luna); font: 400 18px var(--display); }

/* ---------- Reglas ---------- */
.reglas { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--linea); }
.reglas > div { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--linea); }
@media (min-width: 760px) { .reglas > div { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; } }
.reglas dt { font: 400 1.35rem/1.2 var(--display); }
.reglas dd { margin: 0; color: rgb(244 236 220 / .78); max-width: 62ch; }

/* ---------- Cierre y pie ---------- */
.cierre { margin-top: var(--seccion); padding-block: clamp(4rem, 3rem + 5vw, 8rem); background: radial-gradient(ellipse 70% 120% at 50% 120%, rgb(200 64 43 / .22), transparent 70%), var(--noche-2); border-top: 1px solid var(--linea); text-align: center; }
.cierre__in { display: grid; justify-items: center; gap: 22px; }
.cierre h2 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.6rem); line-height: 1; letter-spacing: -.025em; font-style: italic; }
.cierre p { color: var(--niebla); user-select: all; }
.pie { padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--linea); font-size: var(--t-chico); color: var(--niebla); }
.pie__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Botón flotante de cotizar: siempre a la mano, sin tapar el contenido ---------- */
.flotante { --fondo-f: var(--casa); position: fixed; z-index: 25; right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--fondo-f); color: var(--sobre-casa); font: 600 1rem/1 var(--texto); text-decoration: none; box-shadow: 0 10px 30px -8px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 248 238 / .22); transition: transform .4s var(--suave), opacity .3s, visibility .3s; }
.flotante svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.flotante__total { font-weight: 500; padding-left: 8px; border-left: 1px solid rgb(255 248 238 / .4); }
.flotante__total:empty { display: none; }
.flotante:hover { transform: translateY(-2px); --fondo-f: var(--casa-fuerte); }
.flotante:focus-visible { outline: 3px solid var(--luna); outline-offset: 3px; }
.flotante.esta-oculta { transform: translateY(140%); opacity: 0; visibility: hidden; }
@media (min-width: 960px) { .flotante { right: 28px; bottom: 28px; } }
/* Espacio al final para que el botón no tape el pie de página. */
.pie { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }

/* En celular la portada deja libre la franja del botón flotante. */
@media (max-width: 959px) { .portada { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Ocupación: lo que Eliana ya confirmó en el panel */
.noche__marcas { display: flex; gap: 4px; height: 6px; }
.noche__marcas i, .tira__leyenda i { display: none; width: 6px; height: 6px; border-radius: 50%; }
.m-cabana { background: var(--casa); }
.m-camping { background: var(--madera); }
.noche.tiene-cabana .m-cabana, .noche.camping-lleno .m-camping, .tira__leyenda i { display: block; }
.noche[aria-pressed="true"] .m-cabana { background: var(--casa-fuerte); }
.tira__leyenda { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: -6px auto 0; font-size: var(--t-chico); color: var(--niebla); }
.tira__leyenda[hidden] { display: none; }
.tira__leyenda span { display: inline-flex; align-items: center; gap: 8px; }
.resumen__dispo { margin: 0; padding: 10px 12px; border-radius: 4px; border: 1px solid rgb(205 210 155 / .35); background: rgb(205 210 155 / .08); color: var(--frailejon); font-size: var(--t-chico); line-height: 1.45; }
.resumen__dispo.es-ocupado { border-color: rgb(240 163 94 / .5); background: rgb(240 163 94 / .1); color: var(--brasa); }
