﻿/* =====================================================================
   Hotel El Puerto Â· diseÃ±o moderno (estilo Â«hotel con encantoÂ»)
   Se carga DESPUÃ‰S de estilo.css y solo la retoca: mismo HTML y mismas
   pÃ¡ginas (solo la portada aÃ±ade las tarjetas de habitaciones).
   Portada a pantalla completa con la foto oscurecida, blanco roto cÃ¡lido,
   gris carbÃ³n, un color piedra para las acciones, fotos con esquinas
   suaves y sombra, botones redondos. Letra Montserrat.
   Inspirado en el estilo de la plantilla Â«ParadiseÂ» que eligiÃ³ Alberto;
   no usa nada de ella (ni cÃ³digo, ni fotos, ni textos).
   ===================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Las variables de estilo.css se reaprovechan con el sentido nuevo */
  --cal: #faf8f5;           /* fondo: blanco roto cÃ¡lido */
  --cal-2: #f1ece4;         /* paso de tono: arena muy clara */
  --blanco: #ffffff;
  --tinta: #24262d;         /* gris carbÃ³n: pie, cabeceras sin foto, barra del mÃ³vil */
  --tinta-2: #33363f;
  --texto: #24262d;
  --texto-2: #5d5f66;       /* notas (6:1 sobre el fondo) */
  --sobre-tinta: #ffffff;
  --sobre-tinta-2: #c9cbd1;
  --almagre: #6f5d40;       /* piedra: botÃ³n principal, enlaces, foco, dÃ­as elegidos (6,3:1 con blanco, 5,3:1 sobre arena) */
  --almagre-osc: #5c4c33;
  --almagre-claro: #d8c7a3; /* piedra clara sobre fondo oscuro */
  --sombra: 0 2px 6px rgba(36, 38, 45, 0.06), 0 18px 40px -18px rgba(36, 38, 45, 0.28);
  --radio: 10px;
  --redondo: 999px;

  --f-titulo: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --f-texto: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --t-1: clamp(2.2rem, 4.4vw, 4rem);
  --t-2: clamp(1.9rem, 3vw, 2.75rem);
  --t-3: clamp(1.25rem, 1.6vw, 1.5rem);
  --t-ent: clamp(1.1rem, 1.25vw, 1.25rem);
  --t-txt: 1rem;
  --t-nota: 1rem;
  --entre-sec: clamp(80px, 9vw, 150px);
  --cab-alto: 78px;
}

/* ---------- Base ---------- */
body { line-height: 1.7; color: var(--texto); }
h1, h2, h3, h4 { font-family: var(--f-titulo); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.tarifa-precio, .menu-precio, .tipo-precio, .opcion-precio, .itinerario b, .resumen .total,
.localizador, .estado-frase, .datos-contacto b, .tarifa-nombre { font-family: var(--f-titulo); }
::selection { background: var(--almagre); color: #fff; }
html { scrollbar-color: #b9b2a6 var(--cal); }
.campo .error { color: #b42318; }
.campo.con-error input, .campo.con-error textarea, .campo.con-error select { border-color: #b42318; }

/* Apartado con fondo blanco de lado a lado (sin cambiar el HTML) */
.venta, .celebrar {
  position: relative; background: var(--blanco);
  box-shadow: 0 0 0 100vmax var(--blanco); clip-path: inset(0 -100vmax);
  padding-bottom: var(--entre-sec);
}

/* ---------- Botones y enlaces ---------- */
.btn {
  border-radius: var(--redondo); min-height: 50px; padding: 0 28px;
  font: 600 0.95rem/1.1 var(--f-texto); letter-spacing: 0.01em;
  transition: background-color var(--rapido) ease, color var(--rapido) ease, box-shadow var(--rapido) ease, transform 200ms var(--salida);
}
.btn-grande { min-height: 56px; padding: 0 34px; font-size: 1rem; }
.btn-almagre { background: var(--almagre); color: #fff; }
/* Las acciones secundarias, de contorno */
.btn-tinta, .btn-cal { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 1.5px currentColor; }
@media (hover: hover) {
  .btn-almagre:hover { background: var(--almagre-osc); }
  .btn-tinta:hover, .btn-cal:hover { background: var(--tinta); color: #fff; box-shadow: inset 0 0 0 1.5px var(--tinta); }
}
.enlace { color: var(--almagre); font-weight: 600; text-decoration-thickness: 1px; }
.sec-tinta .enlace, .pag-cab .enlace { color: var(--almagre); }

/* ---------- Cabecera ---------- */
.cab { background: var(--blanco); transition: background-color var(--medio) ease, color var(--medio) ease, box-shadow var(--medio) ease; }
.cab.bajado { background: var(--blanco); box-shadow: 0 1px 0 rgba(36, 38, 45, 0.08); }
.marca {
  font-family: var(--f-titulo); font-weight: 500; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 0.22em; gap: 0.45em;
}
.marca-el::before, .marca-el::after { content: none; }
.marca-estrellas { gap: 0.12em; margin-left: 0; transform: translateY(-0.08em); }
.marca-estrellas svg { width: 0.85em; height: 0.85em; }
.menu a:not(.btn) { font-size: 0.92rem; font-weight: 500; }
.menu ul a::after { height: 1.5px; background: currentColor; }
.idioma { color: inherit; opacity: 0.75; }
.tel-cab { font-size: 0.92rem; font-weight: 500; }
.menu .btn { min-height: 44px; padding: 0 22px; }

/* En la portada la cabecera va transparente sobre la foto hasta que se baja */
body:has(.portada) .cab:not(.bajado) { background: transparent; color: #fff; }
body:has(.portada) .cab:not(.bajado) :focus-visible { outline-color: #fff; }

@media (max-width: 920px) {
  :root { --cab-alto: 64px; }
  .marca { font-size: 0.95rem; letter-spacing: 0.18em; }
  .menu { background: var(--tinta); color: #fff; }
  .menu ul a { font-family: var(--f-titulo); font-weight: 600; font-size: 1.7rem; letter-spacing: -0.01em; }
  .menu ul a::after { background: var(--almagre-claro); }
  .menu a:not(.btn) { font-size: inherit; }
  .menu ul a { font-size: 1.7rem; }
  body.menu-abierto .cab { background: var(--tinta) !important; color: #fff; }
}

/* ---------- Apartados ---------- */
.sec h2 { margin-bottom: 22px; }
.entradilla { max-width: 44ch; color: var(--texto-2); line-height: 1.6; }
.nota { color: var(--texto-2); }

/* Fotos: esquinas suaves, sin marco ni pie */
.lamina img { outline: 0; border-radius: var(--radio); background: var(--cal-2); }
.lamina figcaption { display: none; }

/* ---------- Portada: foto a pantalla completa con las fechas encima ---------- */
.portada {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto auto 1.15fr;
  grid-template-areas: none;
  min-height: max(100svh, 600px);
  margin-top: calc(-1 * var(--cab-alto));
  background: var(--tinta); color: #fff;
}
.portada-molino, .cierre-molino { display: none; }
.portada-foto { grid-area: 1 / 1 / -1 / -1; min-height: 0; }
.portada-foto img { object-position: 56% 40%; } /* En el móvil deja a la vista don Quijote y Sancho */
/* Velo para que el texto blanco se lea sobre cualquier foto */
.portada-foto::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(20, 21, 25, 0.55) 0%, rgba(20, 21, 25, 0.35) 38%, rgba(20, 21, 25, 0.5) 100%);
}
.portada-tinta {
  grid-area: 2 / 1; position: relative; z-index: 1; min-height: 0; display: block;
  padding: calc(var(--cab-alto) + 24px) var(--margen) 0; text-align: center;
}
.portada-texto { max-width: 920px; margin: 0 auto; }
.portada h1 {
  font-size: var(--t-1); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em;
  text-transform: uppercase; text-wrap: balance;
}
.portada-lema { margin: 20px auto 0; max-width: 52ch; font-size: var(--t-ent); line-height: 1.55; color: rgba(255, 255, 255, 0.92); }
/* Botón de parar las fotos: abajo a la derecha, a la altura del ratón que invita a bajar */
.pasafotos-pausa { right: var(--margen); bottom: 28px; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
@media (hover: hover) { .pasafotos-pausa:hover { background: rgba(255, 255, 255, 0.26); } }

.registro {
  grid-area: 3 / 1; position: relative; z-index: 1; display: block;
  width: 100%; max-width: 1040px; margin: 0 auto; padding: 36px var(--margen) 0;
}
/* El tÃ­tulo del buscador lo leen los lectores de pantalla; a la vista lo explica la propia barra */
.registro-titulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.registro-campos {
  display: grid; grid-template-columns: 1fr 1fr 150px auto; gap: 4px; align-items: stretch;
  background: var(--blanco); color: var(--texto); border-radius: 12px; padding: 8px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
}
.registro .campo { padding: 6px 14px 2px; gap: 0; }
.registro .campo + .campo { box-shadow: inset 1px 0 0 #e6e1d9; }
.registro .campo > span { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--texto-2); }
.registro .campo input, .registro .campo select {
  min-height: 40px; padding: 4px 0; background-color: transparent; border: 0; border-radius: 0; font-size: 1rem;
}
.registro .campo select { padding-right: 28px; background-position: right 0 center; }
.registro .campo input:focus-visible, .registro .campo select:focus-visible { box-shadow: 0 2px 0 var(--almagre); }
.registro-campos .btn { border-radius: 8px; min-height: 0; height: auto; }
.registro-nota { margin: 18px 0 0; text-align: center; color: rgba(255, 255, 255, 0.85); }
.registro-nota a { color: #fff; }

/* ---------- Campos de formulario fuera de la portada ---------- */
.campo input, .campo select, .campo textarea { border-radius: 8px; }
.formulario .campo input, .formulario .campo select, .formulario .campo textarea,
.sin-js-fechas .campo input, .opcion .campo select { background-color: #fff; border: 1.5px solid #d9d3c9; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { border-color: var(--almagre); }
.campo select { background-repeat: no-repeat; background-size: 18px; }
.casilla input { accent-color: var(--almagre); }

/* ---------- Venta: texto y dos fotos montadas ---------- */
.venta { align-items: center; }
.venta-texto { grid-column: 1 / span 5; grid-row: 1; }
.venta-foto-a { grid-column: 8 / -1; grid-row: 1; }
.venta-foto-a img { aspect-ratio: 4 / 5; box-shadow: var(--sombra); }
.venta-foto-b { grid-column: 6 / span 3; grid-row: 1; align-self: center; margin: 18% 0 0; position: relative; z-index: 1; }
@media (min-width: 801px) { .venta-texto h2 { white-space: nowrap; } } /* «Hotel familiar desde 1994» en una línea: le faltan unos px de la columna y los toma del hueco hasta la foto pequeña */
.venta-foto-b img { aspect-ratio: 3 / 4; border: 6px solid #fff; border-radius: 14px; box-shadow: var(--sombra); }
.hechos { gap: 14px 28px; margin-top: 30px; }
.hechos li { padding-left: 30px; font-weight: 500; font-size: 0.95rem; }
.hechos li::before {
  left: 0; top: 0.32em; width: 18px; height: 18px; transform: none; border-radius: 50%;
  background: var(--cal-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f5d40' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Habitaciones: tarjetas con foto ---------- */
.dormir { row-gap: 40px; }
.dormir-foto, .dormir .tarifas { display: none; }
.dormir-texto {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--hueco); align-items: end;
}
.dormir-texto h2, .dormir-texto .entradilla { grid-column: 1; }
.dormir-texto .entradilla { margin-bottom: 0; }
.dormir-texto .nota { grid-column: 1; margin: 12px 0 0; }
.dormir-texto .acciones { grid-column: 2; grid-row: 1 / span 3; margin: 0; align-self: end; }
.habs { grid-column: 1 / -1; list-style: none; display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 20px; }
.hab {
  position: relative; display: block; height: clamp(340px, 34vw, 500px); overflow: hidden;
  border-radius: var(--radio); color: #fff; text-decoration: none; box-shadow: var(--sombra); background: var(--tinta);
}
.hab img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--salida); }
.hab::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, rgba(20, 21, 25, 0), rgba(20, 21, 25, 0.72)); }
.hab-texto { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.hab-precio { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.88); font-variant-numeric: tabular-nums; }
.hab-nombre { font-size: clamp(1.3rem, 1.8vw, 1.65rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
@media (hover: hover) { .hab:hover img { transform: scale(1.05); } }
.hab:focus-visible { outline-offset: 4px; }

/* ---------- Restaurante: claro, no negro ---------- */
.sec-tinta { background: var(--cal); color: var(--texto); }
.sec-tinta .nota, .sec-tinta .carta small, .sec-tinta .carta-cab-precios { color: var(--texto-2); }
.sec-tinta :focus-visible { outline-color: var(--almagre); }
.comer-foto img { aspect-ratio: 4 / 3; box-shadow: var(--sombra); }
.comer-plato img { box-shadow: var(--sombra); }
.tarifas-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 8px; }
.tarifas-menu li { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 2px; padding: 22px 24px; background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); }
.tarifas-menu .tarifa-puntos { display: none; }
.tarifas-menu .tarifa-precio, .sec-tinta .tarifas-menu .tarifa-precio { order: -1; color: var(--almagre); font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 600; line-height: 1.1; }
.tarifas-menu .tarifa-nombre { font-size: 0.95rem; font-weight: 500; color: var(--texto-2); }
.tarifas-menu .tarifa-nota { margin-top: 8px; font-size: 0.9rem; color: var(--texto-2); opacity: 1; }
.tarifas-menu .tarifa-nota b { color: var(--almagre); }
.carta li { padding: 10px 0; }
.carta i { opacity: 0.25; }
.carta b { font-weight: 600; }

/* ---------- Celebrar: la foto grande a todo lo ancho ---------- */
.celebrar-foto-a { margin-inline: calc(50% - 50vw); }
.celebrar-foto-a img { aspect-ratio: auto; height: clamp(320px, 46vw, 620px); border-radius: 0; }
.celebrar-foto-b { background: transparent; padding: 0; margin-top: -140px; position: relative; z-index: 1; }
.celebrar-foto-b img { border: 6px solid #fff; border-radius: 14px; box-shadow: var(--sombra); }

/* ---------- Llegar ---------- */
.llegar { align-items: center; }
.llegar-foto img { box-shadow: var(--sombra); }
.itinerario li { padding: 12px 0; box-shadow: 0 1px 0 #e6e1d9; }
.itinerario b { font-size: 1.35rem; font-weight: 600; color: var(--almagre); }
.itinerario span { font-size: 1rem; }

/* ---------- Cierre: Â«consulta disponibilidadÂ», centrado ---------- */
.cierre { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; background: var(--cal-2); }
.cierre h2 { max-width: 22ch; }
.cierre p { max-width: 50ch; color: var(--texto-2); font-size: var(--t-ent); }
.cierre .acciones { justify-content: center; }
main:has(> .cierre:last-child) + .pie { margin-top: 0; }

/* ---------- Pie oscuro ---------- */
.pie { background: var(--tinta); }
.pie-in { padding-top: clamp(56px, 6vw, 88px); }
.pie-marca {
  font-family: var(--f-titulo); font-size: 1.1rem; font-weight: 500; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.24em; margin: 0 0 40px; white-space: normal;
}
.pie h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.pie a { text-decoration-color: rgba(255, 255, 255, 0.35); }
.pie-fin { font-size: 0.875rem; }

/* ---------- Cabecera de pÃ¡ginas interiores: foto de fondo, tÃ­tulo centrado ---------- */
.pag-cab {
  position: relative; grid-template-columns: minmax(0, 1fr);
  min-height: clamp(340px, 52vh, 520px);
  margin-top: calc(-1 * var(--cab-alto));
  background: var(--tinta); color: #fff; text-align: center;
}
.pag-cab-foto { grid-area: 1 / 1; min-height: 0; }
.pag-cab-foto::after { content: ""; position: absolute; inset: 0; background: rgba(20, 21, 25, 0.5); }
.pag-cab-texto {
  grid-area: 1 / 1; position: relative; z-index: 1; min-height: 0; align-items: center; justify-content: center;
  padding: calc(var(--cab-alto) + 48px) var(--margen) 56px;
}
.pag-cab h1 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; text-transform: uppercase; margin-bottom: 18px; }
.pag-cab p { max-width: 54ch; margin: 0 auto; color: rgba(255, 255, 255, 0.9); }
.pag-cab-sola { min-height: 0; }
.pag-cab-sola .pag-cab-texto { padding-top: calc(var(--cab-alto) + 56px); }
body:has(.pag-cab) .cab:not(.bajado) { background: transparent; color: #fff; }

/* ---------- PÃ¡ginas interiores ---------- */
.tipo-fotos img { border-radius: var(--radio); }
.tipo h2 { font-size: var(--t-2); }
.tipo-precio { color: var(--almagre); font-weight: 600; }
.servicios-lista li::before {
  left: 0; top: 0.95em; width: 16px; height: 16px; transform: none; border-radius: 50%;
  background: var(--cal-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f5d40' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.servicios-lista li { padding-left: 28px; }
.galeria { gap: 14px; }
.galeria a { border-radius: var(--radio); }
.platos img, .lugar img, .opcion img { border-radius: var(--radio); }
.excursiones li:has(.exc-foto) { padding-top: 0; overflow: hidden; }
.exc-foto { width: calc(100% + 44px); max-width: none; margin: 0 -22px 18px; border-bottom: 0; }
.excursiones li { border-top: 0; padding: 22px 22px 24px; background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); }
.exc-tiempo { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.excursiones h3 { font-size: 1.15rem; font-weight: 600; }
.excursiones p { color: var(--texto-2); font-size: 0.95rem; }
.pie-redes a { border-color: rgba(255, 255, 255, 0.22); }
.bloque-texto-der .hechos { grid-template-columns: 1fr; }
.sabores-fotos img, .fiestas img, .creditos-lista img { border-radius: var(--radio); }
.sabores-fotos figcaption { font-size: 0.8125rem; font-weight: 500; color: var(--texto-2); opacity: 1; }
.visor { background: rgba(20, 21, 25, 0.94); }
.visor button { border-radius: var(--redondo); }
.visor figcaption { font-style: normal; }
.aviso { border-radius: var(--radio); }
.mapa { border-radius: var(--radio); overflow: hidden; }

/* ---------- Reservar ---------- */
.reserva-cal { background: var(--blanco); border: 0; border-radius: 14px; box-shadow: var(--sombra); }
.cal-nav button { border-radius: var(--redondo); background: var(--cal-2); }
@media (hover: hover) { .cal-nav button:not([disabled]):hover { background: #e6dfd3; } }
.mes h3 { font-size: 1.2rem; font-weight: 600; }
.dia { border-radius: 8px; }
.dia.en-rango { background: #ece4d6; }
.cal-resumen { background: var(--cal-2); border-left: 0; border-radius: 8px; }
.leyenda i { border-radius: 6px; }
.estado-frase { font-weight: 600; letter-spacing: -0.01em; }
.resumen { border-radius: 14px; }
.resumen .total { font-weight: 700; }

/* ---------- Franja de palabras gigantes (portada) ---------- */
/* El restaurante ya deja su aire debajo: la franja se arrima a él */
.marquesina { overflow: hidden; margin-top: calc(var(--entre-sec) * -0.45); pointer-events: none; user-select: none; }
.marquesina p {
  margin: 0; white-space: nowrap; width: max-content;
  font: 700 clamp(4rem, 10.5vw, 10rem)/1 var(--f-titulo); letter-spacing: -0.03em;
  color: #ebe4d8;
}

/* ---------- Movimiento ----------
   La portada entra por partes y la foto se acerca despacio. Lo demás lo mueve moderno.js:
   las piezas aparecen al bajar (clases .aparece / .visto) y algunas fotos se desplazan
   (propiedad «translate», que no choca con las transformaciones de aparecer). */
@keyframes subir-suave { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes acercar-lento { from { scale: 1.12; } to { scale: 1; } }
@keyframes rueda { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: no-preference) {
  .js .portada h1 { animation: subir-suave 1000ms var(--salida) 150ms both; }
  .js .portada-lema { animation: subir-suave 1000ms var(--salida) 320ms both; }
  .js .registro { animation: subir-suave 1000ms var(--salida) 480ms both; }
  /* Cada foto de la portada se acerca despacio mientras está; --baja la hace ir más lenta que la página (moderno.js) */
  .js .portada-foto img.activa { animation: acercar-lento 7s var(--salida) both; }
  .anima .portada-foto img { translate: 0 var(--baja, 0px); }
  @media (hover: hover) { .btn:hover { transform: translateY(-1px); } }

  /* El aparecer de estilo.css (por apartados enteros) se apaga: aquí aparece cada pieza */
  .js [data-entra] > * { opacity: 1; transform: none; transition: none; }
  .anima .aparece { transition: opacity 900ms var(--salida), transform 1100ms var(--salida); }
  .anima .aparece:not(.visto) { opacity: 0; transform: translateY(56px); }
  .anima .habs > li.aparece:not(.visto) { transform: translateY(72px) scale(0.97); }

  /* La foto grande de celebraciones se abre al bajar: --abre va de 0 (recogida) a 1 (a todo lo ancho) */
  .anima .celebrar-foto-a {
    clip-path: inset(calc((1 - var(--abre, 1)) * 7%) calc((1 - var(--abre, 1)) * 16%) round calc((1 - var(--abre, 1)) * 36px));
  }
  .anima .celebrar-foto-a img { scale: calc(1.14 - var(--abre, 1) * 0.14); }

  /* Ratón que invita a bajar, al pie de la portada */
  .portada::before, .portada::after { content: ""; position: absolute; left: 50%; z-index: 2; pointer-events: none; }
  .portada::after { bottom: 30px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, 0.75); border-radius: 14px; }
  .portada::before { bottom: 52px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: rueda 1.8s ease-in-out infinite; }
}

/* ---------- Tableta ---------- */
@media (max-width: 1080px) {
  .registro-campos { grid-template-columns: 1fr 1fr 130px; }
  .registro-campos .btn { grid-column: 1 / -1; min-height: 52px; }
  .registro .campo:nth-child(3) { box-shadow: inset 1px 0 0 #e6e1d9; }
  .venta-texto { grid-column: 1 / span 6; }
  .venta-foto-a { grid-column: 8 / -1; }
  .venta-foto-b { grid-column: 6 / span 3; }
  .habs { grid-template-columns: 1fr 1fr; }
  .habs li:first-child { grid-column: 1 / -1; }
}

/* ---------- MÃ³vil ---------- */
@media (max-width: 800px) {
  .portada { min-height: max(100svh, 560px); grid-template-rows: 1fr auto auto 0.6fr; }
  .portada-foto { aspect-ratio: auto; }
  .portada-tinta { padding: calc(var(--cab-alto) + 20px) var(--margen) 0; }
  .portada h1 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .portada-lema { font-size: 1.02rem; }
  .registro { padding: 24px var(--margen) 32px; }
  .registro-campos { grid-template-columns: 1fr 1fr; }
  .registro .campo-corto { grid-column: 1 / -1; box-shadow: inset 0 1px 0 #e6e1d9; }
  .registro .campo:nth-child(3) { box-shadow: inset 0 1px 0 #e6e1d9; }
  .registro-campos .btn { grid-column: 1 / -1; }

  .venta-foto-b { margin: -90px 0 0 auto; width: 52%; }
  .dormir-texto { display: block; }
  .dormir-texto .acciones { margin-top: 22px; }
  .habs { display: flex; flex-direction: column; }
  .hab { height: 280px; }
  .tarifas-menu { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tarifas-menu li { padding: 16px; }
  .tarifas-menu li:has(.tarifa-nota) { grid-column: 1 / -1; }
  .celebrar-foto-a img { height: 260px; }
  .celebrar-foto-b { margin-top: -70px; width: 70%; margin-left: auto; }
  .portada::before, .portada::after { display: none; }
  .pasafotos-pausa { right: 12px; top: calc(var(--cab-alto) + 4px); bottom: auto; } /* abajo lo tapa la barra fija de Llamar/Reservar */
  .marquesina p { font-size: clamp(3rem, 16vw, 5rem); }
  .pag-cab { min-height: 300px; }
  .pag-cab-foto { aspect-ratio: auto; }
  .pag-cab-texto { padding: calc(var(--cab-alto) + 36px) var(--margen) 40px; }
  .pag-cab h1 { font-size: clamp(1.7rem, 7.6vw, 2.4rem); }
  .barra-movil { background: var(--tinta); }
  .barra-movil a { font-size: 0.9rem; white-space: nowrap; gap: 6px; }
  .barra-movil .barra-reservar { background: var(--almagre); color: #fff; }
}
