/* =========================================================
   Piezas comunes · Ebooks digitales Boat Haus
   Todas las piezas leen los colores de tokens.css,
   así que funcionan igual en .tema-huespedes y .tema-gibraltar.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

.app {
  font-family: var(--fuente);
  font-size: var(--t-cuerpo);
  line-height: 1.45;
  color: var(--tinta);
  background: var(--fondo);
  width: 100%;
  max-width: var(--ancho-app);
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
.tema-gibraltar.app {
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(60, 120, 200, .22), transparent 60%),
    linear-gradient(180deg, #0B2B52 0%, #071D3A 100%);
}
.app img { display: block; max-width: 100%; }
:where(.app) a { color: inherit; text-decoration: none; }
:where(.app) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.app :focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; border-radius: 6px; }

.icono { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icono--grande { width: 36px; height: 36px; stroke-width: 1.5; }

/* ---------- Cabecera fija ---------- */
.cabecera {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 56px;
  padding-inline: var(--e-2);
  background: var(--cabecera-fondo);
  color: var(--cabecera-tinta);
}
.cabecera > .cabecera__boton { justify-self: start; }
.cabecera > .cucarda-clima { justify-self: end; }
.cabecera__marca { justify-self: center; display: flex; align-items: center; gap: var(--e-2); font-weight: 800; font-size: 1.125rem; letter-spacing: -.01em; }
.cabecera__marca .icono { width: 30px; height: 30px; }
.cabecera__boton { width: var(--toque-min); height: var(--toque-min); display: grid; place-items: center; border-radius: 50%; }
.cabecera__boton[hidden] { display: grid !important; visibility: hidden; }
.cabecera__boton:hover { background: rgba(255, 255, 255, .12); }
.cabecera__sub {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--e-2) var(--e-2) var(--e-3);
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-weight: 700; font-size: var(--t-chico);
}
.cabecera__sub a { display: flex; align-items: center; gap: var(--e-2); font-weight: 600; opacity: .9; }
.cabecera__sub .icono { width: 20px; height: 20px; }

/* ---------- Portada (foto + título) ---------- */
.portada { position: relative; color: #FFFFFF; overflow: hidden; }
.portada__foto { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.portada__texto { position: relative; display: grid; gap: var(--e-1); }
.portada h1 { margin: 0; font-size: var(--t-display); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.portada p { margin: 0; font-size: 1.0625rem; line-height: 1.3; }

/* Variante Huéspedes: cielo arriba con título centrado, ola abajo */
.portada--cielo { background: var(--cabecera-fondo); padding: var(--e-5) var(--e-5) 0; text-align: center; }
.portada--cielo .portada__texto { justify-items: center; padding-bottom: var(--e-4); }
.portada--cielo .portada__imagen { position: relative; margin-inline: calc(var(--e-5) * -1); aspect-ratio: 16 / 9; }
.portada--cielo .portada__imagen img { width: 100%; height: 100%; object-fit: cover; }
.portada--cielo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px;
  background: var(--fondo);
  -webkit-mask: radial-gradient(60% 28px at 50% 100%, #000 98%, transparent 100%) bottom / 100% 100% no-repeat,
                linear-gradient(#000, #000) bottom / 100% 10px no-repeat;
          mask: radial-gradient(60% 28px at 50% 100%, #000 98%, transparent 100%) bottom / 100% 100% no-repeat,
                linear-gradient(#000, #000) bottom / 100% 10px no-repeat;
}
.marca-bh { display: grid; justify-items: center; gap: 2px; font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; }
.marca-bh__simbolos { display: flex; gap: var(--e-3); }
.marca-bh__simbolos .icono { width: 20px; height: 20px; }

/* Variante Gibraltar: foto completa, título abajo a la izquierda, subrayado rojo */
.portada--foto { min-height: 240px; display: flex; align-items: flex-end; padding: var(--e-5); }
.portada--foto::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6, 26, 51, 0) 30%, rgba(6, 26, 51, .88) 100%);
}
.portada--foto .portada__texto { z-index: 2; }
.portada--foto .portada__texto::after { content: ""; width: 44px; height: 4px; border-radius: 2px; background: var(--cta); margin-top: var(--e-2); }

/* ---------- Contenido ---------- */
.contenido {
  display: grid; gap: var(--e-3);
  padding: var(--e-4) var(--e-4) var(--e-8);
}
.contenido > h2 { margin: var(--e-3) 0 0; font-size: var(--t-h2); line-height: 1.2; font-weight: 800; text-wrap: balance; }
.contenido > .bajada { margin: 0; color: var(--tinta-suave); font-size: var(--t-chico); }

/* ---------- Mosaico de secciones ---------- */
.mosaico { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e-3); }
.tesela {
  position: relative; overflow: hidden;
  min-height: 108px; padding: var(--e-4);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--e-2);
  border-radius: var(--r-medio);
  background: var(--superficie-2);
  border: 1px solid var(--linea);
  color: var(--tinta);
  transition: transform var(--transicion);
}
.tesela:active { transform: scale(.98); }
.tesela__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.tesela--foto { justify-content: flex-start; }
.tesela--foto::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(234, 243, 248, .96) 0%, rgba(234, 243, 248, .75) 45%, rgba(234, 243, 248, 0) 80%); }
.tesela > :not(.tesela__foto) { position: relative; z-index: 2; }
.tesela strong { font-size: var(--t-h3); font-weight: 800; line-height: 1.15; }
.tesela--alta { grid-row: span 2; min-height: 228px; }
.tesela--ancha { grid-column: 1 / -1; }

/* Gibraltar: tarjeta-destino grande con foto y botón */
.destino {
  position: relative; overflow: hidden;
  display: grid; align-content: end; gap: var(--e-2);
  min-height: 200px; padding: var(--e-5);
  border-radius: var(--r-grande);
  border: 1px solid var(--linea);
  color: #FFFFFF;
}
.destino img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.destino::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6, 26, 51, .92) 0%, rgba(6, 26, 51, .55) 55%, rgba(6, 26, 51, .1) 100%); }
.destino > :not(img) { position: relative; z-index: 2; }
.destino h2 { margin: 0; font-size: 1.625rem; font-weight: 800; line-height: 1.05; }
.destino .sub { font-weight: 600; opacity: .92; }
.destino p { margin: 0; font-size: var(--t-chico); max-width: 22ch; }
.destino .boton { justify-self: start; min-height: 40px; padding-inline: var(--e-4); font-size: var(--t-chico); }

/* ---------- Fila de información: ícono | texto ----------
   La pieza que más se repite en las 33 pantallas */
.fila {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--e-3);
  min-height: 64px; padding: var(--e-3) var(--e-4);
  border-radius: var(--r-medio);
  background: var(--superficie);
  border: 1px solid var(--linea);
  color: var(--tinta);
}
.fila__icono { display: flex; align-items: center; gap: var(--e-3); color: var(--marca); }
.tema-gibraltar .fila__icono { color: #FFFFFF; }
.fila__icono::after { content: ""; width: 1px; align-self: stretch; min-height: 28px; background: var(--linea); }
.fila__texto { min-width: 0; display: grid; gap: 2px; }
.fila__texto strong { font-size: var(--t-h3); font-weight: 800; line-height: 1.2; }
.fila__texto span { font-size: var(--t-chico); color: var(--tinta-suave); line-height: 1.35; }
.fila__fin { color: var(--cta); }
.tema-gibraltar .fila__fin { color: #FFFFFF; }
a.fila:hover { border-color: var(--marca); }
.fila--destacada { background: #FCE7E0; border-color: transparent; }
.tema-gibraltar .fila--destacada { background: rgba(227, 36, 43, .16); }
.fila--destacada .numero { font-size: 2.25rem; font-weight: 800; color: var(--alerta); line-height: 1; font-variant-numeric: tabular-nums; }
.dos-columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--e-3); }
.dos-columnas .fila { grid-template-columns: auto 1fr; align-items: start; }

/* ---------- Botones ---------- */
.boton {
  display: flex; align-items: center; justify-content: center; gap: var(--e-3);
  min-height: 56px; padding: 0 var(--e-5);
  border-radius: var(--r-pastilla);
  font-weight: 800; font-size: 1.125rem; line-height: 1.15; text-align: center;
  transition: transform var(--transicion), filter var(--transicion);
}
.boton:active { transform: scale(.98); }
.boton--primario { background: var(--cta); color: var(--cta-tinta); }
.boton--primario:hover { filter: brightness(1.06); }
.boton--marca { background: var(--marca-profunda); color: #FFFFFF; }
.boton--contorno { background: var(--superficie); color: var(--tinta); border: 2px solid currentColor; }
.tema-gibraltar .boton--contorno { background: transparent; border-color: rgba(255, 255, 255, .85); }
.boton .icono { width: 26px; height: 26px; }
.boton__flecha { margin-left: auto; }
.boton--con-flecha { justify-content: flex-start; padding-inline: var(--e-5) var(--e-4); text-align: left; }

/* ---------- Selector (opciones y horarios) ---------- */
.selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: var(--e-2); }
.selector button {
  min-height: var(--toque-min); padding: var(--e-2);
  border-radius: var(--r-chico);
  border: 1.5px solid var(--linea);
  background: var(--superficie);
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.selector button[aria-pressed="true"] { background: var(--marca-profunda); color: #FFFFFF; border-color: var(--marca-profunda); }

/* ---------- Progreso de paradas ---------- */
.progreso { display: grid; gap: var(--e-2); font-size: var(--t-chico); font-weight: 600; }
.progreso__barras { display: flex; gap: 5px; }
.progreso__barras i { width: 22px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.progreso__barras i.hecho { background: var(--cta); }

/* ---------- Trayecto ---------- */
.trayecto { padding: var(--e-4); border-radius: var(--r-medio); background: var(--superficie); border: 1px solid var(--linea); display: grid; gap: var(--e-2); }
.trayecto > svg { width: 100%; height: auto; }
.trayecto__dato { display: flex; align-items: center; gap: var(--e-3); font-weight: 600; font-size: var(--t-chico); }

/* ---------- Audio ---------- */
.reproducir { width: 44px; height: 44px; border-radius: 50%; background: #FFFFFF; color: var(--cta); display: grid; place-items: center; }
.reproducir .icono { fill: currentColor; stroke: none; width: 20px; height: 20px; margin-left: 3px; }

/* ---------- Nota al pie ---------- */
.nota { display: flex; align-items: center; justify-content: center; gap: var(--e-2); padding: var(--e-3) var(--e-4); border-radius: var(--r-pastilla); background: var(--superficie); border: 1px solid var(--linea); font-size: var(--t-chico); color: var(--tinta-suave); text-align: center; }
.nota .icono { width: 20px; height: 20px; color: var(--cta); }

/* ---------- Barra inferior (opcional) ---------- */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  max-width: var(--ancho-app); margin: 0 auto;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: var(--e-2) max(var(--e-4), env(safe-area-inset-right, 0px)) calc(var(--e-2) + env(safe-area-inset-bottom, 0px)) max(var(--e-4), env(safe-area-inset-left, 0px));
  background: var(--barra-fondo);
  border-radius: var(--r-grande) var(--r-grande) 0 0;
  transition: transform var(--transicion);
}
.barra a { display: grid; justify-items: center; gap: 2px; min-height: var(--toque-min); padding-top: var(--e-1); color: var(--barra-tinta); font-size: var(--t-mini); font-weight: 700; }
.barra a[aria-current="page"] { color: var(--barra-activo); }
.barra a[aria-current="page"]::after { content: ""; width: 32px; height: 3px; border-radius: 2px; background: currentColor; }
.barra[hidden] { display: none; }
.barra--escondida { transform: translateY(110%); }
.con-barra .contenido { padding-bottom: calc(var(--alto-barra) + var(--e-8) + env(safe-area-inset-bottom, 0px)); }

/* ---------- Índice (cuando no hay barra) ---------- */
.indice { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; justify-items: center; background: rgba(0, 25, 43, .45); }
.indice[hidden] { display: none; }
.indice__hoja {
  width: 100%; max-width: var(--ancho-app);
  max-height: 85dvh; overflow: auto;
  padding: var(--e-5) var(--e-4) calc(var(--e-6) + env(safe-area-inset-bottom, 0px));
  border-radius: var(--r-grande) var(--r-grande) 0 0;
  background: var(--fondo); color: var(--tinta);
  display: grid; gap: var(--e-2);
  animation: subir var(--transicion);
}
.tema-gibraltar .indice__hoja { background: #0B2B52; }
.indice__hoja h2 { margin: 0 0 var(--e-2); font-size: var(--t-h2); }
@keyframes subir { from { transform: translateY(30px); opacity: .4; } }

@media (prefers-reduced-motion: reduce) {
  .app *, .barra, .indice__hoja { transition: none !important; animation: none !important; }
}

/* =========================================================
   Piezas añadidas para Gibraltar a tu ritmo (04/11/2026)
   Comunes: también sirven en .tema-huespedes.
   ========================================================= */

/* ---------- Texto corrido ---------- */
.prosa { display: grid; gap: var(--e-3); }
.prosa p { margin: 0; line-height: 1.55; }
.contenido > h3, .bloque > h3 { margin: 0; font-size: var(--t-h3); font-weight: 800; }
.bloque { display: grid; gap: var(--e-3); }
.separador { height: 1px; background: var(--linea); margin: var(--e-2) 0; border: 0; }

/* Portada con foto: variante alta para pantallas de parada */
.portada--foto.portada--alta { min-height: 300px; }
.portada .portada__antetitulo { font-size: var(--t-chico); font-weight: 700; opacity: .92; }
.portada .portada__bajada { font-size: var(--t-cuerpo); opacity: .9; }
.portada .progreso { margin-bottom: var(--e-2); }

/* ---------- Datos sueltos: ícono + texto, sin caja (no parecen botones) ---------- */
.datos { display: grid; gap: var(--e-3); margin: 0; padding: 0; list-style: none; }
.datos li { display: flex; align-items: center; gap: var(--e-3); font-weight: 700; }
.datos .icono { color: var(--acento); }
.datos--detalle li { align-items: flex-start; }
.datos--detalle li > div { display: grid; gap: 2px; font-weight: 400; }
.datos--detalle strong { font-weight: 800; }
.datos--detalle span { color: var(--tinta-suave); font-size: var(--t-chico); line-height: 1.4; }

/* ---------- Lista con check (información, no acciones) ---------- */
.lista-check { display: grid; gap: var(--e-2); margin: 0; padding: 0; list-style: none; }
.lista-check li { display: flex; gap: var(--e-3); align-items: flex-start; line-height: 1.35; }
.lista-check .icono { width: 22px; height: 22px; color: var(--acento); stroke-width: 2.25; }

/* ---------- Consejo Boat Haus: franja reconocible ---------- */
.consejo {
  display: grid; gap: var(--e-1);
  padding: var(--e-4) var(--e-4) var(--e-4) var(--e-5);
  border-radius: var(--r-medio);
  background: var(--superficie-2);
  border-left: 4px solid var(--acento);
}
.consejo__titulo { margin: 0; display: flex; align-items: center; gap: var(--e-2); font-size: var(--t-cuerpo); font-weight: 800; }
.consejo__titulo .icono { width: 20px; height: 20px; color: var(--acento); fill: currentColor; stroke: none; }
.consejo p { margin: 0; line-height: 1.5; }

/* ---------- Tarjeta con acción real (reservas) ---------- */
.tarjeta {
  display: grid; gap: var(--e-3);
  padding: var(--e-4);
  border-radius: var(--r-medio);
  background: var(--superficie);
  border: 1px solid var(--linea);
}
.tarjeta__cabeza { display: flex; align-items: center; gap: var(--e-3); }
.tarjeta__cabeza .icono { width: 32px; height: 32px; color: var(--acento); }
.tarjeta h3 { margin: 0; font-size: var(--t-h3); font-weight: 800; }
.tarjeta p { margin: 0; line-height: 1.45; color: var(--tinta-suave); }

/* ---------- Botones: variantes ---------- */
.boton--secundario { min-height: 48px; font-size: var(--t-cuerpo); }
.boton--discreto {
  display: inline-flex; align-items: center; gap: var(--e-2);
  min-height: var(--toque-min); padding: 0 var(--e-1);
  font-weight: 700; text-decoration: underline; text-underline-offset: 4px;
  color: var(--tinta);
}
.boton--discreto .icono { width: 18px; height: 18px; }
.boton .icono--externo { width: 18px; height: 18px; opacity: .85; }
.boton:disabled, .boton[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.boton__nota { margin: calc(var(--e-1) * -1) 0 0; font-size: var(--t-mini); color: var(--tinta-suave); text-align: center; }

/* ---------- Pendiente: placeholder visible (enlaces, audios, mapa) ---------- */
.pendiente {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--r-pastilla);
  font-size: var(--t-mini); font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  background: #FFD75E; color: #2B2100;
}
.boton .pendiente { font-size: 10px; }

/* ---------- Desplegable (acordeón cerrado por defecto) ---------- */
.desplegable { border-radius: var(--r-medio); }
.desplegable > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: var(--e-2);
  min-height: var(--toque-min);
  font-weight: 700; text-decoration: underline; text-underline-offset: 4px;
}
.desplegable > summary::-webkit-details-marker { display: none; }
.desplegable > summary .icono { width: 18px; height: 18px; transition: transform var(--transicion); transform: rotate(90deg); }
.desplegable[open] > summary .icono { transform: rotate(-90deg); }
.desplegable__cuerpo { padding: var(--e-2) var(--e-4) var(--e-4); }
.lista-numerada { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: var(--e-2); }
.lista-numerada li { counter-increment: n; display: flex; gap: var(--e-3); align-items: baseline; }
.lista-numerada li::before { content: counter(n); flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--cta); color: var(--cta-tinta); font-size: var(--t-chico); font-weight: 800; }
.lista-numerada a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Audio con transcripción ---------- */
.audio {
  display: grid; gap: var(--e-3);
  padding: var(--e-4);
  border-radius: var(--r-medio);
  background: var(--superficie);
  border: 1px solid var(--linea);
}
.audio__fila { display: grid; grid-template-columns: auto 1fr; gap: var(--e-3); align-items: center; }
.audio__titulo { margin: 0; font-weight: 800; font-size: var(--t-cuerpo); line-height: 1.25; }
.audio__pista { display: grid; grid-template-columns: 1fr auto; gap: var(--e-2); align-items: center; margin-top: var(--e-1); font-size: var(--t-mini); color: var(--tinta-suave); font-variant-numeric: tabular-nums; }
.audio__barra { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: var(--linea); accent-color: var(--cta); }
.audio__barra::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--cta); }
.audio .reproducir { width: var(--toque-min); height: var(--toque-min); }
.audio .reproducir:disabled { opacity: .5; cursor: not-allowed; }
.audio .reproducir .icono--pausa { margin: 0; fill: none; stroke: currentColor; stroke-width: 3; }
.audio details > summary { cursor: pointer; font-size: var(--t-chico); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: flex; align-items: center; }
.audio details > summary::-webkit-details-marker { display: none; }
.audio details p { margin: var(--e-2) 0 0; font-size: var(--t-chico); line-height: 1.55; color: var(--tinta-suave); }

/* ---------- Formulario: estrellas, casilla, campo ---------- */
.pregunta { display: grid; gap: var(--e-2); margin: 0; padding: var(--e-4); border: 1px solid var(--linea); border-radius: var(--r-medio); background: var(--superficie); }
.pregunta legend, .pregunta > label { padding: 0; font-weight: 800; line-height: 1.3; }
.pregunta legend { float: left; width: 100%; margin-bottom: var(--e-2); }
.pregunta legend + * { clear: both; }
.estrellas { display: flex; gap: var(--e-1); }
.estrellas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.estrellas label { width: var(--toque-min); height: var(--toque-min); display: grid; place-items: center; cursor: pointer; color: var(--tinta-suave); border-radius: 50%; }
.estrellas label .icono { width: 32px; height: 32px; }
.estrellas label.activa { color: #FFC83D; }
.estrellas label.activa .icono { fill: currentColor; }
.estrellas input:focus-visible + label { outline: 3px solid var(--acento); outline-offset: 0; }
.estrellas[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.pregunta legend, .pregunta__titulo { display: flex; align-items: center; gap: var(--e-3); }
.pregunta legend .icono, .pregunta__titulo .icono { width: 26px; height: 26px; flex: none; padding-right: var(--e-3); border-right: 1px solid var(--linea); box-sizing: content-box; }
.estrellas--numeros { justify-content: space-between; }
.estrellas--numeros label { height: auto; grid-template-rows: auto auto; gap: 2px; font-weight: 800; color: var(--tinta); }
.estrellas--numeros label span { font-size: var(--t-chico); }
/* Opciones de respuesta (una sola elección) */
.opciones { display: grid; gap: var(--e-2); }
.opciones--fila { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
.opcion { display: flex; align-items: center; gap: var(--e-3); min-height: var(--toque-min); padding: 0 var(--e-4); border: 1.5px solid var(--linea); border-radius: var(--r-chico); cursor: pointer; font-weight: 600; }
.opciones--fila { gap: var(--e-1); }
.opciones--fila .opcion { padding: 0 var(--e-2); gap: var(--e-2); font-size: var(--t-chico); white-space: nowrap; }
.opciones--fila .opcion input { width: 18px; height: 18px; }
.opcion input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--cta); }
.opcion:has(input:checked) { border-color: var(--cta); background: var(--superficie-2); }
.opcion:has(input:focus-visible) { outline: 3px solid var(--acento); }
.casilla { display: flex; align-items: center; gap: var(--e-3); min-height: var(--toque-min); font-size: var(--t-chico); cursor: pointer; }
.casilla input { width: 22px; height: 22px; accent-color: var(--cta); flex: none; }
.campo { width: 100%; min-height: 110px; padding: var(--e-3); border-radius: var(--r-chico); border: 1.5px solid var(--linea); background: var(--superficie-2); color: var(--tinta); font: inherit; resize: vertical; }
.campo::placeholder { color: var(--tinta-suave); opacity: .85; }
.campo:focus { outline: 3px solid var(--acento); outline-offset: 1px; }

/* ---------- Aviso flotante ---------- */
.aviso {
  position: fixed; z-index: 60; left: 50%; bottom: calc(var(--alto-barra) + var(--e-6) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: calc(100% - var(--e-8)); max-width: calc(var(--ancho-app) - var(--e-8));
  display: flex; gap: var(--e-3); align-items: flex-start;
  padding: var(--e-3) var(--e-4); border-radius: var(--r-medio);
  background: #FFFFFF; color: #00192B; box-shadow: var(--sombra);
  font-size: var(--t-chico); font-weight: 600; line-height: 1.4;
  animation: subir var(--transicion);
}
.aviso[hidden] { display: none; }
.aviso .icono { width: 20px; height: 20px; color: var(--cta); }

/* ---------- Visor a pantalla completa (mapa ampliable) ---------- */
.visor { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-rows: auto 1fr; background: #FFFFFF; }
.visor[hidden] { display: none; }
.visor__barra { display: flex; justify-content: space-between; align-items: center; gap: var(--e-2); padding: calc(var(--e-2) + env(safe-area-inset-top, 0px)) var(--e-3) var(--e-2); background: var(--barra-fondo); color: #FFFFFF; }
.visor__barra div { display: flex; gap: var(--e-1); }
.visor__barra button { width: var(--toque-min); height: var(--toque-min); display: grid; place-items: center; border-radius: 50%; color: #FFFFFF; }
.visor__barra button:hover { background: rgba(255, 255, 255, .12); }
.visor__lienzo { overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom; }
.visor__lienzo img { width: 100%; max-width: none; height: auto; margin: 0 auto; }

/* ---------- Mapa en pantalla (la leyenda va dentro del propio mapa) ---------- */
.mapa { display: block; width: 100%; padding: 0; border-radius: var(--r-medio); overflow: hidden; background: #FFFFFF; border: 1px solid var(--linea); cursor: zoom-in; }
.mapa img { width: 100%; height: auto; }

/* Botón con texto largo (p. ej. «Ir a la próxima parada “…” en Google Maps») */
.boton--largo { font-size: 1rem; line-height: 1.25; padding-block: var(--e-3); min-height: 64px; }
.boton--largo > span { flex: 1; }
.boton--largo .pendiente { display: table; margin: 4px auto 0; }

/* =========================================================
   Piezas añadidas para el Libro de huéspedes (04/11/2026)
   Comunes: también sirven en .tema-gibraltar.
   ========================================================= */

/* ---------- Portada: etiqueta sobre el título («Información útil», «Cómo funciona») ---------- */
.portada__etiqueta {
  justify-self: center; display: inline-flex; align-items: center;
  padding: 3px 12px; border-radius: var(--r-pastilla);
  background: rgba(255, 255, 255, .88); color: var(--marca-profunda);
  font-size: var(--t-chico); font-weight: 800;
}
.portada--cielo .portada__antetitulo { opacity: .92; font-weight: 700; }

/* ---------- Fila: variantes de color y fila con foto a la derecha ---------- */
.fila--azul { background: var(--superficie-2); border-color: transparent; }
.fila--aviso { background: var(--cta); border-color: transparent; color: var(--cta-tinta); }
.fila--aviso .fila__icono, .fila--aviso .fila__texto span, .fila--aviso .fila__fin { color: var(--cta-tinta); }
.fila--aviso .fila__icono::after { background: rgba(255, 255, 255, .45); }
.fila--foto { grid-template-columns: auto 1fr minmax(96px, 36%); padding-right: 0; overflow: hidden; }
.fila__foto { align-self: stretch; width: 100%; height: calc(100% + 2 * var(--e-3)); margin-block: calc(var(--e-3) * -1); object-fit: cover; }
.fila__acciones { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: var(--e-2); }
.fila--sin-icono { grid-template-columns: 1fr auto; }
.fila__texto .numero-tel { font-size: 1.25rem; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
a.fila .numero-tel { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- Precio ---------- */
.precio { font-weight: 800; color: var(--marca); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tema-gibraltar .precio { color: #FFFFFF; }

/* ---------- Botón chico dentro de una fila («Ver en Google Maps», «Ver ubicación») ---------- */
.boton--chico { min-height: 40px; padding: 0 var(--e-3); gap: var(--e-2); font-size: var(--t-chico); font-weight: 700; border: 1.5px solid var(--cta); color: var(--cta); background: var(--superficie); }
.boton--chico .icono { width: 18px; height: 18px; }

/* ---------- Mosaico: tesela con foto arriba y texto abajo ---------- */
.tesela--pie { padding: 0; gap: 0; justify-content: flex-start; background: var(--superficie); }
.tesela__imagen { aspect-ratio: 16 / 10; overflow: hidden; background: var(--superficie-2); }
.tesela__imagen img { width: 100%; height: 100%; object-fit: cover; }
.tesela__pie { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--e-3); padding: var(--e-3); }
.tesela__pie > .icono { color: var(--marca); }
.tesela__pie > div { display: grid; gap: 2px; padding-left: var(--e-3); border-left: 1px solid var(--linea); }
.tesela__pie span, .tesela > span { font-size: var(--t-chico); color: var(--tinta-suave); line-height: 1.3; }

/* ---------- Mosaico de tres (rasgos de un lugar o de un servicio) ---------- */
.mosaico--tres { grid-template-columns: repeat(3, 1fr); gap: var(--e-2); }
.mosaico--tres .tesela { min-height: 104px; padding: var(--e-3) var(--e-2); justify-content: center; align-items: center; text-align: center; }
.mosaico--tres .tesela strong { font-size: var(--t-chico); }
.mosaico--tres .tesela .icono--grande { color: var(--marca); }

/* ---------- Selector con ícono (opciones de desayuno) ---------- */
.selector--iconos { grid-template-columns: repeat(4, 1fr); }
.selector--iconos button { display: grid; justify-items: center; gap: var(--e-1); min-height: 76px; font-size: var(--t-chico); line-height: 1.15; }
.selector--iconos button .icono { width: 28px; height: 28px; }

/* ---------- Contenido pendiente (pantalla o bloque sin texto aprobado todavía) ---------- */
.vacio {
  display: grid; justify-items: center; gap: var(--e-2);
  padding: var(--e-6) var(--e-5);
  border: 2px dashed var(--linea); border-radius: var(--r-medio);
  text-align: center; color: var(--tinta-suave);
}
.vacio .icono { color: var(--marca); }
.vacio p { margin: 0; }

/* ---------- Datos en línea: tres rasgos con divisores (p. ej. normas para mascotas) ---------- */
.datos--linea { grid-template-columns: repeat(3, 1fr); gap: 0; }
.datos--linea li { flex-direction: column; justify-content: flex-start; gap: var(--e-1); padding: 0 var(--e-2); text-align: center; font-size: var(--t-chico); line-height: 1.25; }
.datos--linea li + li { border-left: 1px solid var(--linea); }
.datos--linea .icono { width: 30px; height: 30px; color: var(--marca); }

/* ---------- Texto destacado en cursiva (cierre amable) ---------- */
.frase { margin: 0; padding: var(--e-3) var(--e-4); border-radius: var(--r-pastilla); background: var(--superficie); text-align: center; font-style: italic; font-weight: 700; font-size: var(--t-chico); }

/* Gibraltar: mosaico de secciones con foto (04/11) */
.tema-gibraltar .tesela__pie > .icono { color: #FFFFFF; }
.mosaico .tesela--pie:not(.tesela--ancha) .tesela__pie { grid-template-columns: 1fr; }
.mosaico .tesela--pie:not(.tesela--ancha) .tesela__pie > .icono { display: none; }
.mosaico .tesela--pie:not(.tesela--ancha) .tesela__pie > div { padding-left: 0; border-left: 0; }
.tesela--pie .tesela__imagen { flex: none; }
.tesela--ancha .tesela__imagen { aspect-ratio: 16 / 8; }

/* ---------- Cucarda del clima (esquina de la portada de Inicio) ---------- */
.cucarda-clima {
  position: absolute; top: var(--e-4); right: var(--e-4); z-index: 3;
  display: flex; align-items: center; gap: var(--e-2);
  padding: var(--e-2) var(--e-3) var(--e-2) var(--e-2);
  border-radius: var(--r-pastilla);
  background: rgba(255, 255, 255, .94); color: #00192B;
  box-shadow: 0 6px 18px rgba(0, 25, 43, .22);
  font-size: var(--t-mini); line-height: 1.1; text-align: left;
}
.cucarda-clima[hidden] { display: none; }
.cabecera > .cucarda-clima { position: static; padding: 5px var(--e-3) 5px 5px; box-shadow: none; }
.cabecera > .cucarda-clima > .icono { width: 24px; height: 24px; padding: 3px; }
.cucarda-clima > .icono { width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: var(--cta); color: #fff; stroke-width: 2; }
.cucarda-clima__dato { display: grid; gap: 1px; }
.cucarda-clima__grados { font-size: var(--t-chico); font-weight: 800; }
.cucarda-clima__texto { font-weight: 600; color: #3E5566; }
.cucarda-clima--vieja { opacity: .85; }

/* ---------- Datos clave: carrusel continuo horizontal ---------- */
.carrusel-datos {
  position: relative; overflow: hidden;
  margin-inline: calc(var(--e-4) * -1);        /* de borde a borde dentro de .contenido */
  padding-block: var(--e-2);
  border-block: 1px solid var(--linea);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.carrusel-datos__pista {
  display: flex; width: max-content;
  animation: carrusel-datos calc(var(--n, 8) * 3.5s) linear infinite;
}
.carrusel-datos:hover .carrusel-datos__pista,
.carrusel-datos:active .carrusel-datos__pista,
.carrusel-datos:focus-within .carrusel-datos__pista { animation-play-state: paused; }
.carrusel-datos__item {
  display: grid; justify-items: center; align-content: start; gap: var(--e-1);
  width: 132px; padding: var(--e-3) var(--e-2); text-align: center;
}
.carrusel-datos__item .icono { width: 32px; height: 32px; color: var(--acento); }
.carrusel-datos__k { font-size: var(--t-mini); font-weight: 600; color: var(--tinta-suave); letter-spacing: .04em; text-transform: uppercase; }
.carrusel-datos__v { font-size: var(--t-cuerpo); font-weight: 800; line-height: 1.15; text-wrap: balance; }
@keyframes carrusel-datos { to { transform: translateX(-50%); } }

/* Movimiento reducido: sin animación, se desliza con el dedo y no se duplica */
@media (prefers-reduced-motion: reduce) {
  .carrusel-datos { overflow-x: auto; -webkit-mask: none; mask: none; scroll-snap-type: x proximity; }
  .carrusel-datos__pista { animation: none; }
  .carrusel-datos__item { scroll-snap-align: start; }
  .carrusel-datos__item[aria-hidden="true"] { display: none; }
}
