/* Hotel Alma Rosa — estilos de la web (versión 2) */

/* Tipografías alojadas en el propio servidor (licencia SIL Open Font License, ver assets/fonts) */
@font-face { font-family: "Young Serif"; src: url("../fonts/young-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --ground: #F1EEEA;    /* granito claro */
  --surface: #E4DED7;   /* granito, un tono más */
  --surface-2: #D6CEC5;
  --ink: #241914;       /* madera oscura */
  --ink-2: #33251E;     /* madera, un tono más claro */
  --ink-soft: #5A4C44;
  --green: #2E6E5E;     /* verde de las colchas */
  --green-dark: #24584B;
  --mint: #9FD3C2;
  --gold: #D4A96A;      /* dorado del logo: solo para acentos */
  --on-dark: #F1EEEA;
  --on-dark-soft: #D9CFC7;
  --field-line: #8C7F77;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1376px;
  --gutter: 32px;
  --section: 160px;
  --hh: 80px;                          /* alto de la cabecera */
  --rh: clamp(56px, 9vw, 140px);       /* alto de la silueta de la sierra */
  --hr: clamp(40px, 6.6vw, 96px);        /* sierra bajo la cabecera */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}
@media (max-width: 960px) { :root { --hh: 64px; } }
@media (max-width: 900px) { :root { --gutter: 20px; --section: 112px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color 160ms ease, text-decoration-thickness 160ms ease; }
a:hover { color: var(--green); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible { outline-color: var(--mint); }
::selection { background: var(--mint); color: var(--ink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
p, figure, blockquote { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--on-dark); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* Escala tipográfica: 80 / 44 / 28 / 18 / 15 */
.t-hero { font-size: clamp(48px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.02em; }
.t-h2 { font-size: clamp(34px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.01em; }
.t-h3 { font-size: 28px; line-height: 1.15; }
.t-small { font-size: 15px; font-weight: 600; }
.lead { font-size: 20px; line-height: 1.5; }
.measure { max-width: 34em; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--green); color: #FFFFFF;
  font: inherit; font-size: 17px; font-weight: 600; line-height: 1.2;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.btn:hover { background: var(--green-dark); color: #FFFFFF; }
.btn:active { transform: scale(0.97); }
.btn--dark { background: var(--ink); }
.btn--dark:hover { background: var(--ink-2); }
.btn--light { background: #FFFFFF; color: var(--ink); }
.btn--light:hover { background: var(--ground); color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link-strong { font-weight: 600; font-size: 17px; padding: 12px 0; display: inline-block; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--on-dark);
  transition: transform 360ms var(--ease-out);
  view-transition-name: cabecera;
}
.hdr-hidden .site-header { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; min-height: var(--hh); }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { width: 260px; }
.nav { display: flex; align-items: center; gap: 4px 28px; font-size: 16px; font-weight: 500; }
.nav a { color: var(--on-dark); text-decoration: none; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--mint); }
.nav .btn { color: #FFFFFF; padding: 0 22px; min-height: 46px; font-size: 16px; }
.nav .btn:hover { color: #FFFFFF; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .logo img { width: 190px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--on-dark);
    font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  }
  .menu-toggle .bars { display: grid; gap: 5px; }
  .menu-toggle .bars i { display: block; width: 22px; height: 2px; background: currentColor; transition: transform 260ms var(--ease-out), opacity 200ms ease; }
  .menu-open .menu-toggle .bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle .bars i:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle .bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .js .nav {
    position: fixed; left: 0; right: 0; top: var(--hh); bottom: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: var(--ink); padding: 24px var(--gutter) 40px; overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transition: opacity 240ms ease, visibility 0s linear 240ms;
  }
  .js .menu-open .nav { visibility: visible; opacity: 1; transition: opacity 240ms ease; }
  .js .nav a:not(.btn) { font-family: var(--serif); font-size: 34px; line-height: 1.15; padding: 12px 0; }
  .js .nav .btn { margin-top: 24px; min-height: 56px; font-size: 18px; }
  .js.motion .nav > * { transform: translateY(16px); opacity: 0; transition: transform 420ms var(--ease-out), opacity 420ms ease; }
  .js.motion .menu-open .nav > * { transform: none; opacity: 1; }
  .js.motion .menu-open .nav > *:nth-child(2) { transition-delay: 40ms; }
  .js.motion .menu-open .nav > *:nth-child(3) { transition-delay: 80ms; }
  .js.motion .menu-open .nav > *:nth-child(4) { transition-delay: 120ms; }
  .js.motion .menu-open .nav > *:nth-child(5) { transition-delay: 160ms; }
  .js.motion .menu-open .nav > *:nth-child(6) { transition-delay: 200ms; }
  /* Solo el html: si también se bloquea el body, la cabecera deja de quedarse fija arriba y se pierde el botón */
  html.menu-locked { overflow: hidden; }
  .no-js .site-header .wrap { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .no-js .nav { flex-wrap: wrap; }
}

/* ---------- Portada ---------- */
.hero {
  display: flex; flex-wrap: wrap; align-items: stretch;
  min-height: min(calc(100vh - var(--hh) - var(--hr) - 70px), 860px);
  min-height: min(calc(100svh - var(--hh) - var(--hr) - 70px), 860px);
}
.hero__text {
  flex: 1 1 440px; min-width: 0;
  padding: 40px var(--gutter) 150px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.hero__text h1 { max-width: 9.5em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero h1 .line > span { display: inline-block; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.hero__text { position: relative; z-index: 2; }  /* por encima de la cortina de la entrada */
.hero__sub { max-width: 27em; }
/* La foto se mete un poco bajo el texto y se funde con el fondo: sin bordes cortantes */
.hero__media { flex: 1.5 1 560px; min-width: 0; min-height: 520px; margin-left: -12vw; position: relative; overflow: hidden; background: #C8734A; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ground) 0%, rgba(241, 238, 234, 0.85) 10%, rgba(241, 238, 234, 0) 36%),
    linear-gradient(180deg, var(--ground) 0%, rgba(241, 238, 234, 0) 14%),
    linear-gradient(0deg, var(--ground) 0%, rgba(241, 238, 234, 0) 10%);
}
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero__text { padding-top: 28px; padding-bottom: 40px; gap: 22px; }
  .hero__media { min-height: 380px; flex-basis: 100%; margin-left: 0; }
  .hero__media img { object-position: 30% 35%; }
  .hero__media::after {
    background:
      linear-gradient(180deg, var(--ground) 0%, rgba(241, 238, 234, 0) 18%),
      linear-gradient(0deg, var(--ground) 0%, rgba(241, 238, 234, 0) 10%);
  }
}

/* Entrada de la portada */
.motion .hero h1 .line > span { transform: translateY(110%); animation: line-up 1s var(--ease-out) 200ms forwards; }
.motion .hero h1 .line:nth-child(2) > span { animation-delay: 300ms; }
.motion .hero__sub, .motion .hero__actions { opacity: 0; transform: translateY(16px); animation: rise 900ms var(--ease-out) forwards; }
.motion .hero__sub { animation-delay: 450ms; }
.motion .hero__actions { animation-delay: 560ms; }
.motion .hero__media img { transform: scale(1.12); animation: settle 3.4s var(--ease-out) 600ms forwards; }
.motion .booking__panel { opacity: 0; transform: translateY(24px); animation: rise 900ms var(--ease-out) 950ms forwards; }
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { to { transform: scale(1); } }

/* ---------- Reserva rápida (superpuesta a la portada) ---------- */
.booking { position: relative; z-index: 2; margin-top: -72px; }
.booking__panel { background: var(--surface); padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-end; }
.booking__panel h2 { flex: 1 1 200px; font-size: 28px; line-height: 1.1; align-self: center; }
.booking__panel .btn { flex: 1 1 200px; }
@media (max-width: 900px) { .booking { margin-top: -40px; } .booking__panel { padding: 24px 20px; } }

.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 170px; min-width: 0; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea {
  min-height: 52px; width: 100%;
  border: 1px solid var(--field-line); border-radius: 0; background: #FFFFFF;
  padding: 0 14px; font: inherit; font-size: 17px; color: var(--ink);
  transition: border-color 160ms ease;
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 160px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--green); outline-offset: 0; border-color: var(--green); }
.field--sm { flex: 1 1 130px; }
/* Fechas: en el móvil la casilla vacía sale en blanco, así que ponemos nosotros «dd/mm/aaaa». */
.date { position: relative; }
.date__hint { display: none; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 17px; line-height: 1.2; color: #7A6C63; pointer-events: none; }
.date.is-empty .date__hint { display: block; }
.date input:focus + .date__hint { display: none; }
.date.is-empty input:not(:focus)::-webkit-datetime-edit { opacity: 0; }
.date input::-webkit-date-and-time-value { text-align: left; }
/* Firefox ya enseña su propio «dd/mm/aaaa» */
@supports (-moz-appearance: none) or selector(::-moz-range-thumb) { .date.is-empty .date__hint { display: none; } }

/* ---------- Secciones ---------- */
.section { padding-top: var(--section); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: 40px; }
.section-head > div:first-child { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.split > * { min-width: 0; }
.col { display: flex; flex-direction: column; gap: 20px; }

/* ¿Cuántos sois? */
.picker { display: flex; flex-direction: column; gap: 10px; }
.picker__label { font-size: 15px; font-weight: 600; }
.picker__buttons { display: flex; gap: 8px; }
.picker button {
  min-width: 52px; height: 52px; padding: 0 12px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 18px;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.picker button:hover { background: var(--surface-2); }
.picker button:active { transform: scale(0.94); }
.picker button[aria-pressed="true"] { background: var(--green); color: #FFFFFF; }
.picker__summary { margin: 0 0 32px; font-size: 20px; font-weight: 600; color: var(--green); min-height: 1.5em; }
.picker__summary a { color: var(--green); }

.room-card { position: relative; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; overflow-anchor: none; transition: opacity 320ms ease, transform 320ms var(--ease-out), translate 700ms var(--ease-in-out); }
.room-card:hover { color: var(--ink); }
.room-card .ph { overflow: hidden; background: var(--surface); }
.room-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 800ms var(--ease-out); }
.room-card:hover img { transform: scale(1.04); }
.room-card .cta { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.room-card:hover .cta { text-decoration-thickness: 2px; }
.room-card.is-dim { opacity: 0.32; transform: scale(0.985); z-index: 1; }
.room-card.is-fit { z-index: 2; }  /* las que os valen pasan por encima al moverse */
.no-anim, .no-anim img { transition: none !important; }
.room-feature { display: flex; flex-direction: row; flex-wrap: wrap; background: var(--surface); }
.room-feature .ph { flex: 1.6 1 520px; min-width: 0; }
.room-feature .ph img { height: 520px; aspect-ratio: auto; object-fit: cover; }
.room-feature .body { flex: 1 1 320px; min-width: 0; padding: 40px; display: flex; flex-direction: column; gap: 14px; justify-content: flex-end; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 32px; }
.picker__summary + .room-grid { margin-top: 0; }      /* la de terraza ha bajado al final */
.room-grid + .room-feature { margin-top: 32px; }
.room-grid .body { padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 600px) { .room-feature .ph img { height: 300px; } .room-feature .body { padding: 28px 20px; } }

/* ---------- La terraza: la foto se abre a toda la pantalla ---------- */
.scene { position: relative; margin-top: var(--section); }
.scene__frame { position: relative; overflow: hidden; }
.scene__frame picture { display: block; height: 100%; }
.scene__frame img { width: 100%; height: 640px; object-fit: cover; object-position: 55% 50%; }
@media (orientation: portrait) { .scene__frame img { object-position: 50% 50%; } }
.scene__caption { padding-top: 40px; }
.scene__caption .wrap { display: flex; flex-wrap: wrap; gap: 16px 64px; align-items: baseline; }
.scene__caption .wrap > * { flex: 1 1 420px; }
.scene__caption a { font-weight: 600; }
@media (max-width: 900px) { .scene__frame img { height: 420px; } }

.motion .scene { height: 190vh; height: 190svh; }
.motion .scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.motion .scene__frame { position: absolute; inset: 0; clip-path: inset(var(--it, 14vh) var(--ix, 64px) var(--ib, 14vh) var(--ix, 64px)); }
.motion .scene__frame img { height: 100%; transform: scale(var(--is, 1.12)); will-change: transform; }
.motion .scene__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 160px 0 calc(48px + var(--rh) * 1.3); color: #FFFFFF;
  background: linear-gradient(to top, rgba(22, 15, 12, 0.86) 0%, rgba(22, 15, 12, 0.7) 45%, rgba(22, 15, 12, 0) 100%);
  opacity: var(--co, 0); transform: translateY(var(--cy, 24px));
}
.motion .scene__caption a { color: #FFFFFF; }
.motion .scene__caption a:hover { color: var(--mint); }
@media (max-width: 900px) { .motion .scene { height: 165vh; height: 165svh; } .motion .scene__frame img { height: 100%; } .motion .scene__caption { padding: 120px 0 calc(32px + var(--rh) * 1.3); } }

/* ---------- Opiniones ---------- */
.reviews { columns: 3 320px; column-gap: 24px; }
.review { break-inside: avoid; margin: 0 0 24px; padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 20px; }
.review blockquote { font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.review--big blockquote { font-size: 30px; line-height: 1.28; }
.review figcaption { font-size: 15px; font-weight: 600; }
.review figcaption span { display: block; font-weight: 500; opacity: 0.85; margin-top: 2px; }
.review--green { background: var(--green); color: #FFFFFF; }
.review--sand { background: var(--surface); color: var(--ink); }
.review--wood { background: var(--ink); color: var(--on-dark); }
.review--mint { background: #CFE7DE; color: var(--ink); }
.review--terra { background: #9C4F2E; color: #FFFFFF; }
.review--stone { background: var(--surface-2); color: var(--ink); }
figcaption { font-size: 15px; font-weight: 600; }
@media (max-width: 600px) { .review { padding: 28px 24px 24px; } .review--big blockquote { font-size: 25px; } }

/* ---------- Campos de color y la silueta de la sierra ---------- */
.field-dark { background: var(--ink); color: var(--on-dark); --ridge-front: var(--ink); --ridge-back: var(--ink-soft); }
.field-green { background: var(--green); color: #FFFFFF; --ridge-front: var(--green); --ridge-back: var(--green-dark); }
.field-dark a:hover { color: var(--mint); }
.field-green a:hover { color: var(--mint); }
.has-ridge { position: relative; margin-top: calc(var(--section) + var(--rh) * 0.3); }
.has-ridge.after-field { margin-top: 0; }
.band { padding-top: 120px; padding-bottom: 120px; }
.band.before-ridge { padding-bottom: calc(96px + var(--rh) * 1.3); }
@media (max-width: 900px) { .band { padding-top: 80px; padding-bottom: 88px; } .band.before-ridge { padding-bottom: calc(64px + var(--rh) * 1.3); } }

.ridge { position: absolute; left: 0; right: 0; bottom: calc(100% - 2px); height: calc(var(--rh) * 1.3); pointer-events: none; overflow: hidden; --p: 1; }
.ridge svg { position: absolute; left: 0; bottom: 0; width: 100%; transform-origin: 50% 100%; overflow: visible; }
.ridge__back { height: 100%; fill: var(--ridge-back); transform: translateY(calc((1 - var(--p)) * 45%)) scaleY(calc(0.35 + 0.65 * var(--p))); }
.ridge__front { height: 76.9%; fill: var(--ridge-front); transform: scaleY(calc(0.4 + 0.6 * var(--p))); }
.ridge--over-dark { --ridge-back: #3F2F27; }
.ridge--over-green { --ridge-back: #1E4A3F; }
.field-green .ridge--over-dark { --ridge-back: #1E4A3F; }

/* El monograma: A de Alma, R de Rosa */
.monogram { width: min(420px, 100%); color: var(--on-dark); }
.monogram svg { width: 100%; height: auto; overflow: visible; }
.mo-final path, .mo-ink { fill: currentColor; stroke: currentColor; stroke-width: 1.4; }
.mo-anim { pointer-events: none; }
.mo-final .mo-st { fill: var(--gold); stroke: var(--gold); }
/* Notas del monograma: centradas bajo el dibujo, con las mismas letras del logo en dorado */
.monogram-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(420px, 100%); margin-top: 32px; padding-top: 26px; border-top: 1px solid rgba(212, 169, 106, 0.45); }
.monogram-notes p { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 18px; text-align: center; font-size: 15px; line-height: 1.45; color: var(--on-dark-soft); text-wrap: balance; }
.monogram-notes p + p { border-left: 1px solid rgba(212, 169, 106, 0.45); }
.mono-letter { height: 46px; width: auto; fill: var(--gold); }
/* Con animación, el monograma espera vacío hasta que las tres estrellas lo dibujan */
.motion .monogram:not(.done) .mo-final { opacity: 0; }

/* Lo que incluye */
.services { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 48px; align-content: start; }
.services dt { font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.services dd { margin: 8px 0 0; }

/* Navaluenga */
.places { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 48px; }
.places li { display: flex; flex-direction: column; gap: 8px; }
.places a { font-family: var(--serif); font-size: 28px; line-height: 1.15; text-underline-offset: 6px; }
.places__lead { grid-column: 1 / -1; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.places__lead a { font-size: clamp(32px, 3vw, 40px); }
.places__lead span { font-size: 18px; max-width: 36em; }

/* Contacto (sobre madera) */
.big-phone { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 64px); line-height: 1; text-decoration: none; color: var(--mint); align-self: flex-start; }
.big-phone:hover { color: #FFFFFF; }
.details { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.details dt { font-size: 15px; font-weight: 600; }
.details dd { margin: 2px 0 0; }
.form-panel { background: var(--surface); padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.field-dark .form-panel { background: var(--ink-2); }
.field-dark .form-panel .field input, .field-dark .form-panel .field textarea { border-color: transparent; }
.form-row { display: flex; flex-wrap: wrap; gap: 18px; }
.form-row .field { flex: 1 1 200px; }
.form-note { font-size: 15px; }
.field-dark .form-note { color: var(--on-dark-soft); }
.form-msg { min-height: 1.5em; font-weight: 600; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #9B2C1F; }
.field-dark .form-msg.ok { color: var(--mint); }
.field-dark .form-msg.err { color: #F4A896; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .form-panel { padding: 28px 20px; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); --ridge-front: var(--ink); --ridge-back: var(--ink-soft); }
.site-footer.has-ridge { position: relative; margin-top: calc(var(--section) + var(--rh) * 0.3); }
.site-footer.has-ridge.after-field { margin-top: 0; }
.site-footer .wrap { padding-top: 96px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.site-footer.joined .wrap { padding-top: 40px; }
.footer-word { width: 100%; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; font-size: 16px; }
.footer-row a { color: var(--on-dark); }
.footer-row a:hover { color: var(--mint); }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 900px) { .site-footer .wrap { padding-top: 64px; } }

/* ---------- Páginas interiores ---------- */
.page-head { padding-top: 56px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 24px 80px; align-items: flex-end; }
.page-head h1 { flex: 1 1 520px; }
.page-head > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) { .page-head { padding-top: 32px; padding-bottom: 40px; } }

.room-nav { position: sticky; top: var(--hh); z-index: 20; background: var(--ground); transition: top 360ms var(--ease-out); }
.hdr-hidden .room-nav { top: 0; }
.room-nav .wrap { display: flex; gap: 8px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.room-nav .wrap::-webkit-scrollbar { display: none; }
.room-nav a { flex: none; background: var(--surface); text-decoration: none; padding: 12px 16px; font-size: 16px; font-weight: 600; transition: background-color 160ms ease, color 160ms ease; }
.room-nav a:hover { background: var(--surface-2); color: var(--ink); }
.room-nav a[aria-current="true"] { background: var(--green); color: #FFFFFF; }

.room-item .wrap { padding-top: 96px; display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; }
.room-item:nth-of-type(even) .wrap { flex-direction: row-reverse; }
.room-photos { flex: 1.6 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.room-photos .ph { overflow: hidden; background: var(--surface); }
.room-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room-photos .ph:first-child { grid-column: 1 / 3; }
.room-photos.two { grid-template-columns: 2fr 1fr; }
.room-photos.two .ph:first-child { grid-column: auto; }
.room-photos.two .ph:last-child img { aspect-ratio: 3 / 4; }
.room-photos.one { grid-template-columns: 1fr; }
.room-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.facts dt { font-size: 15px; font-weight: 600; }
.facts dd { margin: 2px 0 0; }
.facts__wide { grid-column: 1 / -1; }   /* las camas y la terraza, a lo ancho: son los textos largos */
@media (max-width: 600px) { .room-photos { flex-basis: 100%; } .room-item .wrap { padding-top: 72px; } }

.prose { max-width: 46em; display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.prose h2 { font-size: 28px; line-height: 1.2; margin-top: 24px; }

.values { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 48px; }
.values dt { font-family: var(--serif); font-size: 28px; }
.values dd { margin: 8px 0 0; }

/* ---------- Movimiento al hacer scroll ---------- */
.motion .reveal { opacity: 0; transform: translateY(12px); transition: opacity 450ms ease, transform 450ms var(--ease-out); transition-delay: calc(var(--d, 0ms) * 0.6); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .reveal-img > img { clip-path: inset(0 0 100% 0); transform: scale(1.1); transition: clip-path 0.7s var(--ease-in-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); }
.motion .reveal-img.in > img { clip-path: inset(0 0 0 0); transform: none; }
.motion .reveal-img > .zoom > img { clip-path: inset(0 0 100% 0); transform: scale(1.1); transition: clip-path 0.7s var(--ease-in-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); }
.motion .reveal-img.in > .zoom > img { clip-path: inset(0 0 0 0); transform: none; }
.motion .room-card:hover .reveal-img.in img { transform: scale(1.04); transition-duration: 800ms; transition-delay: 0ms; }

/* Transición suave entre páginas (navegadores que la admiten) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 220ms ease both; }
  ::view-transition-new(root) { animation: vt-in 380ms var(--ease-out) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  .room-card img, .room-card:hover img { transition: none; transform: none; }
  .btn:active, .picker button:active { transform: none; }
  .site-header { transition: none; }
}

/* Móviles estrechos (360 px y menos): los títulos caben en dos líneas */
@media (max-width: 400px) {
  .t-h2 { font-size: clamp(27px, 8.4vw, 34px); }
  .prose h2 { font-size: clamp(22px, 7vw, 28px); }
  .mono-letter { height: 38px; }
  .monogram-notes p { padding: 0 12px; }
}

/* ---------- La sierra bajo la cabecera, al entrar en la web ---------- */
.top-ridge { position: relative; height: var(--hr); background: var(--ink); overflow: hidden; margin-bottom: -1px; }
.top-ridge svg { position: absolute; left: 0; bottom: 0; width: 100%; transform-origin: 50% 100%; overflow: visible; }
.top-ridge__back { height: 100%; fill: #4A3A31; }
.top-ridge__front { height: 74%; fill: var(--ground); }
.top-ridge__draw { display: none; }
.motion .top-ridge__draw { display: block; position: absolute; inset: 0; clip-path: inset(0 100% 0 0); animation: trace 1.8s var(--ease-in-out) 200ms forwards, line-out 500ms ease 2.75s forwards; }
.top-ridge__line { height: 74%; }
.top-ridge__line path { fill: none; stroke: var(--ground); stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.motion .top-ridge__front { animation: ridge-up 1.4s var(--ease-out) 1.3s both; }
.motion .top-ridge__back { animation: ridge-up 1.5s var(--ease-out) 1.65s both; }
@keyframes trace { to { clip-path: inset(0 0 0 0); } }
@keyframes line-out { to { opacity: 0; } }
/* La foto de la portada sube con el borde en forma de sierra */
.hero__curtain { display: none; }
.motion .hero__curtain { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 0; height: 120%; z-index: 1; pointer-events: none; animation: curtain-up 1.9s var(--ease-in-out) 700ms forwards; }
.hero__curtain::before { content: ""; flex: 1 1 auto; background: var(--ground); }
.hero__curtain svg { display: block; flex: none; width: 100%; height: 16.667%; margin-top: -1px; fill: var(--ground); }
@keyframes curtain-up { to { transform: translateY(-100%); } }
@keyframes ridge-up { from { transform: scaleY(0.05); } to { transform: none; } }

/* La sierra que sube sobre el final de la foto de la terraza */
.scene + .has-ridge { margin-top: 0; }
.no-js .scene + .has-ridge .ridge, .js:not(.motion) .scene + .has-ridge .ridge { display: none; }
.no-js .scene + .has-ridge, .js:not(.motion) .scene + .has-ridge { margin-top: var(--section); }


/* ================= Mejoras: formulario, historia, mapa, galería, móvil ================= */

/* Formularios: campos opcionales y ayudas */
.form-panel > .field { flex: none; }   /* en columna, el alto lo marca el contenido */
.opt { font-weight: 400; color: var(--ink-soft); }
.field-hint { font-size: 14px; color: var(--ink-soft); }

/* Citas de huéspedes (Nuestra historia) */
.quote-line { margin: 0; padding-left: 20px; border-left: 3px solid var(--green); display: flex; flex-direction: column; gap: 8px; }
.quote-line blockquote { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.quote-line figcaption { font-size: 15px; font-weight: 600; color: var(--ink-soft); }

/* Mapa de contacto: Google Maps solo se carga si se pulsa */
.map { border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.04); padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.map__place { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.map__place svg { width: 22px; height: 22px; fill: var(--mint); flex: none; }
.map__note { font-size: 14px; color: var(--on-dark-soft); }
.map.is-loaded { padding: 0; border: 0; background: none; gap: 10px; }
.map iframe { display: block; width: 100%; height: 300px; border: 0; }
.map.is-loaded .map__note { padding: 0; }

/* Galería: las fotos de las habitaciones se amplían */
.zoom { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.zoom img { display: block; }
.zoom::after {
  content: ""; position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(36, 25, 20, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 22px no-repeat;
  pointer-events: none;
}
.zoom:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.lightbox { padding: 0; margin: 0; border: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; max-height: 100vh; max-height: 100dvh; background: transparent; color: #FFFFFF; overflow: hidden; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(20, 14, 11, 0.94); }
.lightbox__img { display: block; max-width: min(1600px, calc(100vw - 32px)); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; user-select: none; -webkit-user-select: none; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #FFFFFF; cursor: pointer; }
.lightbox__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox__btn:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 15px; color: var(--on-dark-soft); pointer-events: none; }   /* que no tape las flechas en el móvil */
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next, .lightbox.is-single .lightbox__count { display: none; }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 10px; transform: none; } }

/* Barra fija del móvil: llamar y reservar siempre a mano */
.action-bar { display: none; }
@media (max-width: 960px) {
  .js .action-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--ink); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(110%); transition: transform 320ms var(--ease-out);
  }
  .js .action-bar.is-on { transform: none; }
  .js .action-bar.is-typing, .js.menu-locked .action-bar, .js.menu-locked .action-bar.is-on { transform: translateY(110%); }
  .action-bar > * { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 16px; font-weight: 600; white-space: nowrap; }
  .action-bar__call { color: var(--on-dark); border: 1px solid rgba(255, 255, 255, 0.35); text-decoration: none; }
  .action-bar__call:hover { color: var(--on-dark); background: rgba(255, 255, 255, 0.08); }
  .action-bar__call svg { width: 20px; height: 20px; fill: currentColor; }
  .js .site-footer .wrap { padding-bottom: 112px; }   /* que la barra no tape el pie */
}

/* Portada en el móvil: primero la foto, luego el texto */
@media (max-width: 900px) {
  .hero__media { order: -1; min-height: 300px; }
  .hero__text { padding-top: 16px; padding-bottom: 32px; }
  .booking { margin-top: 0; }
}

/* Fechas de llegada y salida en la misma fila en el móvil */
@media (max-width: 600px) {
  .booking__panel { gap: 16px 12px; }
  .form-row .field--date, .booking__panel .field--date { flex: 1 1 130px; }
}
@supports (-webkit-touch-callout: none) {
  input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; }
}

/* Carruseles en el móvil: habitaciones y opiniones se deslizan de lado */
@media (max-width: 600px) {
  .reviews, .room-grid {
    display: flex; columns: auto; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 14px; scroll-padding-left: var(--gutter);
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .reviews::-webkit-scrollbar, .room-grid::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 84%; margin: 0; scroll-snap-align: start; }
  .room-grid .room-card { flex: 0 0 80%; scroll-snap-align: start; }
  .reviews:focus-visible, .room-grid:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .action-bar { transition: none; }
}

/* WhatsApp: enlace con icono (contacto y grupos) */
.wa-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; padding: 8px 0; align-self: flex-start; }
.wa-link svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.field-dark .wa-link, .field-green .wa-link { color: var(--on-dark); }
.field-dark .wa-link:hover, .field-green .wa-link:hover { color: var(--mint); }
@media (max-width: 380px) { .action-bar > * { font-size: 15px; gap: 5px; } .action-bar__call svg { width: 18px; height: 18px; } }
/* Icono de chat (WhatsApp): solo contorno */
svg.i-chat { fill: none !important; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.action-bar svg, .wa-link svg { flex: none; }   /* que el icono no encoja cuando el texto es largo */


/* ================= Diseño y animaciones (segunda ronda) ================= */

/* 1) Las animaciones de entrada solo en la primera página de la visita */
.seen .top-ridge svg { animation: none !important; }
.seen .top-ridge__draw, .motion.seen .hero__curtain { display: none; }
.motion.seen .hero h1 .line > span { transform: none; animation: none; }
.motion.seen .hero__sub, .motion.seen .hero__actions, .motion.seen .hero__rating { opacity: 1; transform: none; animation: none; }
.motion.seen .hero__media { clip-path: none; animation: none; }
.motion.seen .hero__media img { transform: none; animation: none; }
.motion.seen .booking__panel { opacity: 1; transform: none; animation: none; }

/* 4) Puntitos de los carruseles del móvil */
.dots { display: none; }
.dots.is-on { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--surface-2); transition: width 220ms var(--ease-out), background 220ms ease; }
.dots span.is-active { width: 22px; background: var(--green); }
.dots + .room-feature { margin-top: 32px; }

/* 6) Iconos de "Qué incluye tu estancia" */
.srv-icon { display: block; margin-bottom: 12px; }
.srv-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 7) Nota de Google en la portada */
.hero__rating { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 16px; color: var(--ink-soft); text-decoration: none; }
.hero__rating svg { width: 18px; height: 18px; fill: #C9962B; flex: none; }
.hero__rating strong { color: var(--ink); }
.hero__rating:hover span { text-decoration: underline; text-underline-offset: 4px; }
.motion .hero__rating { opacity: 0; transform: translateY(16px); animation: rise 900ms var(--ease-out) 660ms forwards; }

/* 8) Contacto en color claro */
.contact-light .big-phone { color: var(--green); }
.contact-light .map { border-color: var(--field-line); background: var(--surface); }
.contact-light .map__place svg { fill: var(--green); }
.contact-light .map__note { color: var(--ink-soft); }
.contact-light .wa-link { color: var(--ink); }
.contact-light .wa-link:hover { color: var(--green); }
.contact-light .wa-link svg { stroke: var(--green); }
/* Los formularios no se estiran hasta el final de la columna de al lado */
.split > .form-panel { align-self: flex-start; }
/* Trozos de texto que no se parten («hasta 2 personas») */
.nw { white-space: nowrap; }
/* «Reservar» en la propia página de reserva: texto blanco legible y una raya para marcarla */
.nav .btn[aria-current="page"] { color: #FFFFFF; box-shadow: inset 0 -3px 0 var(--mint); }
/* En el móvil, los enlaces del pie y la nota de Google se pulsan mejor con más alto */
@media (max-width: 600px) {
  .footer-row nav { gap: 0 24px; }
  .footer-row nav a { display: inline-block; padding: 10px 0; }
}
@media (max-width: 900px) { .hero__rating { padding: 8px 0; } }
/* En pantallas estrechas la sierra se dibuja más ancha que la pantalla: los montes no se ven apretados */
@media (max-width: 900px) { .ridge svg, .top-ridge svg { width: 150%; left: -25%; } }
@media (max-width: 600px) { .ridge svg, .top-ridge svg { width: 220%; left: -60%; } }

/* «Qué incluye tu estancia»: el comedor arriba y, debajo, el desayuno y el salón */
.mosaico { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.mosaico .ph { overflow: hidden; background: var(--surface); }
.mosaico .ph:first-child { grid-column: 1 / 3; }
.mosaico img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.mosaico .ph:first-child img { aspect-ratio: 3 / 2; }
.mosaico figcaption { grid-column: 1 / 3; margin-top: 2px; color: var(--ink-soft); }

/* ================= Tercera ronda: revisión completa (noviembre) ================= */

/* Menú del móvil: llamar y WhatsApp debajo de «Reservar» (la barra de abajo se esconde con el menú abierto) */
.nav__extra { display: none; }
@media (max-width: 960px) {
  .js .nav .nav__extra { display: flex; gap: 10px; margin-top: 12px; }
  .js .nav .nav__extra a:not(.btn) {
    flex: 1 1 0; min-width: 0; min-height: 52px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.2;
    color: var(--on-dark); border: 1px solid rgba(255, 255, 255, 0.35);
  }
  .js .nav .nav__extra a:not(.btn):hover { color: var(--on-dark); background: rgba(255, 255, 255, 0.08); }
  .nav__extra svg { width: 20px; height: 20px; flex: none; }
  .nav__extra .i-phone { fill: currentColor; }
  .js.motion .menu-open .nav > *:nth-child(7) { transition-delay: 240ms; }
}

/* Móvil: los subtítulos, claramente más pequeños que el título de su sección; «Qué incluye» más compacto */
@media (max-width: 600px) {
  .t-h3, .services dt, .places a { font-size: 22px; line-height: 1.2; }
  .places a { display: inline-block; padding: 9px 0; margin: -9px 0; }
  .room-nav a { padding: 14px 16px; }
  .places__lead a { font-size: 26px; }
  .places { gap: 28px; }
  .places__lead { padding-bottom: 28px; }
  .services { gap: 26px; }
  .services dt { display: flex; align-items: center; gap: 12px; }
  .services .srv-icon { margin-bottom: 0; }
  .services .srv-icon svg { width: 28px; height: 28px; }
  .services dd { margin-top: 6px; }
}

/* Historia: en el móvil, primero el título y el texto; el logo, más pequeño, después */
@media (max-width: 900px) {
  .hist__text { order: -1; }
  .hist .monogram { width: min(240px, 62%); }
  .hist__mark { display: flex; flex-direction: column; align-items: center; }
  .monogram-notes { width: min(520px, 100%); }
  .split.hist { row-gap: 40px; }
}

/* Portátiles con poca altura (1366×768, 1280×720…): «¿Cuándo venís?» se ve sin tener que bajar */
@media (min-width: 901px) and (max-height: 880px) {
  :root { --hr: 52px; }
  .hero__text { padding-top: 20px; padding-bottom: 104px; gap: 20px; }
  .hero .t-hero { font-size: clamp(48px, 4.8vw, 66px); }
  .hero__media { min-height: 440px; }
}

/* Tablet: la foto de la portada más alta, para que no se corte el cartel del hotel */
@media (min-width: 601px) and (max-width: 900px) {
  .hero__media { min-height: min(58vw, 540px); }
  .hero__media img { object-position: 30% 28%; }
  .hero__media::after {
    background:
      linear-gradient(180deg, var(--ground) 0%, rgba(241, 238, 234, 0) 9%),
      linear-gradient(0deg, var(--ground) 0%, rgba(241, 238, 234, 0) 10%);
  }
}

/* «¿Cuántos sois?»: la frase solo sale cuando alguna habitación se queda fuera, y su hueco no salta */
.picker__summary { margin-top: -12px; margin-bottom: 20px; }

/* Habitaciones: la tabla para compararlas y lo que tienen todas */
.rooms-overview { display: flex; flex-wrap: wrap; gap: 48px 80px; padding-bottom: 40px; }
.compare { flex: 1.5 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.amenities { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.compare__table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.4; }
.compare__table th, .compare__table td { text-align: left; vertical-align: top; padding: 14px 18px 14px 0; border-bottom: 1px solid var(--surface-2); }
.compare__table th:last-child, .compare__table td:last-child { padding-right: 0; }
.compare__table thead th { padding-top: 0; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.compare__table tbody th { font-weight: 600; }
.compare__table tbody th a { display: inline-block; padding: 5px 0; margin: -5px 0; text-decoration-color: rgba(36, 25, 20, 0.35); }   /* más fácil de pulsar */
.compare__table tbody th a:hover { text-decoration-color: currentColor; }
.m-only { display: none; }
.amenities__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 28px; }
.amenities__list li { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 1.35; }
.amenities__list svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) {
  .compare__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare__table, .compare__table tbody, .compare__table tr, .compare__table th { display: block; }
  .compare__table tr { padding: 12px 0; border-bottom: 1px solid var(--surface-2); }
  .compare__table th, .compare__table td { border: 0; padding: 0; }
  .compare__table tbody th { font-size: 18px; margin-bottom: 2px; }
  .compare__table td { display: inline; font-size: 16px; color: var(--ink-soft); text-transform: lowercase; }
  .compare__table td + td::before { content: "\00a0· "; }   /* el punto se queda con la palabra de antes */
  .m-only { display: inline; }
  .amenities__list li { font-size: 16px; }
}

/* Reserva: junto al formulario, la foto, los datos y llamar; «Antes de venir», debajo y a lo ancho */
.talk { margin-top: 8px; padding: 24px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.talk__actions { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.talk .btn { gap: 10px; }
.talk .btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.talk .wa-link svg { stroke: var(--green); }
@media (max-width: 960px) { .talk { display: none; } }   /* en el móvil ya están llamar y WhatsApp en la barra de abajo */
.antes { padding-top: 96px; }
.antes > h2 { margin-bottom: 32px; }
.antes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px 40px; }
@media (max-width: 900px) { .antes { padding-top: 64px; } .antes > h2 { margin-bottom: 24px; } .antes__grid { gap: 18px; } }

/* Cabecera entre 961 y 1180 px: el menú cabe en una línea sin partir «Nuestra historia» */
.nav a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) {
  .logo img { width: 210px; }
  .nav { gap: 4px 16px; font-size: 15px; }
  .nav .btn { padding: 0 18px; font-size: 15px; }
}

/* ---------- Retoques de noviembre: flechas, iconos que se dibujan, rótulo del pie ---------- */
.btn--go::after { content: "→"; margin-left: 10px; transition: transform 220ms var(--ease-out); }
@media (hover: hover) { .btn--go:hover::after { transform: translateX(5px); } }
/* Los iconos de «Qué incluye» se dibujan al aparecer */
.motion .reveal .srv-icon svg * { stroke-dasharray: 110; stroke-dashoffset: 110; transition: stroke-dashoffset 1.1s var(--ease-in-out); transition-delay: calc(var(--d, 0ms) + 150ms); }
.motion .reveal.in .srv-icon svg * { stroke-dashoffset: 0; }
/* El rótulo del pie se descubre de izquierda a derecha */
.motion .footer-word-wrap.reveal { opacity: 1; transform: none; }
.motion .footer-word-wrap .footer-word { clip-path: inset(0 100% 0 0); transition: clip-path 1.5s var(--ease-in-out); }
.motion .footer-word-wrap.in .footer-word { clip-path: inset(0 0 0 0); }
.contact-side .form-panel { flex: none; }

/* ---------- Reserva: noches, WhatsApp con los datos, panel de «enviada» ---------- */
.stay-info { margin: -4px 0 0; font-weight: 600; color: var(--green); }
.form-done { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; align-self: flex-start; border-top: 4px solid var(--green); }
.form-done[hidden] { display: none; }
.form-done:focus { outline: none; }
.form-done__sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; width: 100%; margin: 0; }
.form-done .btn { gap: 10px; }
.form-done .btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.form-done .wa-link svg, #reservationForm .wa-link svg { stroke: var(--green); }
#reservationForm .wa-link { color: var(--ink); min-height: 44px; }
.link-btn { background: none; border: 0; padding: 10px 0; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link-btn:hover { color: var(--green); }
select option:disabled { color: #9A8E86; }
/* El enlace sobre la foto de la terraza, más fácil de pulsar con el dedo */
.scene__caption a { display: inline-block; padding: 9px 0; }
#reservationForm[hidden] { display: none; }

/* ---------- Navaluenga desde el aire: cuatro vídeos verticales del dron ---------- */
/* Cada tarjeta es una foto fija (el primer fotograma) con su vídeo encima: al tocarle el turno, la foto cobra vida. */
.band.nava-top { padding-bottom: 72px; }
.band.clips-band { padding-top: 0; display: flex; flex-direction: column; gap: 28px; }
.clips-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.clips-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: none; border: 1px solid rgba(255, 255, 255, 0.5); color: #FFFFFF; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color 160ms ease; }
.clips-toggle[hidden] { display: none; }
.clips-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.clips-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.clips-toggle .i-play, .clips-toggle[data-paused="true"] .i-pause { display: none; }
.clips-toggle[data-paused="true"] .i-play { display: block; }
.clips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.clip { margin: 0; display: flex; flex-direction: column; gap: 14px; transition: transform 520ms var(--ease-out); }
.clip__frame { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #1E4A3F; }
.clip__frame > img, .clip__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.clip__video { opacity: 0; transition: opacity 520ms ease; pointer-events: none; }
.clip.is-live .clip__video { opacity: 1; }
/* Mientras se turnan (ordenador), el que se mueve sube un poco y los demás se apagan levemente */
.clip__frame::after { content: ""; position: absolute; inset: 0; background: #1E4A3F; opacity: 0; transition: opacity 520ms ease; pointer-events: none; }
.clips.is-relay.is-playing .clip:not(.is-active) .clip__frame::after { opacity: 0.22; }
.clips.is-relay.is-playing .clip.is-active { transform: translateY(-8px); }
.clip__open { position: absolute; inset: 0; z-index: 2; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; }
.clip__open:focus-visible { outline: 3px solid #FFFFFF; outline-offset: -6px; }
.clip__badge { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(36, 25, 20, 0.72); color: #FFFFFF; transition: transform 220ms var(--ease-out), background-color 160ms ease; }
.clip__badge svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .clip__open:hover .clip__badge { background: var(--ink); transform: scale(1.1); } }
.no-js .clip__open { display: none; }
.clip figcaption { display: flex; flex-direction: column; gap: 2px; }
.clip__bar { display: block; height: 2px; margin-bottom: 12px; background: rgba(255, 255, 255, 0.28); overflow: hidden; }
.clip__bar i { display: block; height: 100%; background: #FFFFFF; transform: scaleX(0); transform-origin: 0 50%; }
.clip strong { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.2; }
.clip__desc { font-size: 15px; color: #FFFFFF; }
.field-green .dots span { background: rgba(255, 255, 255, 0.35); }
.field-green .dots span.is-active { background: #FFFFFF; }
.clips-band .dots.is-on { margin-top: -10px; }
@media (max-width: 900px) {
  .band.nava-top { padding-bottom: 48px; }
  /* en el móvil se pasan con el dedo, y asoma el siguiente */
  .clips { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scroll-padding-left: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; }
  .clips::-webkit-scrollbar { display: none; }
  .clips:focus-visible { outline: 3px solid #FFFFFF; outline-offset: -3px; }
  .clip { flex: 0 0 62%; max-width: 300px; scroll-snap-align: start; }
}

/* ---------- Visor de los vídeos: a pantalla completa, uno tras otro, como las historias ---------- */
.reel { --rh: min(100vh - 40px, 920px); --rw: calc(var(--rh) * 9 / 16); padding: 0; margin: 0; border: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: transparent; color: #FFFFFF; overflow: hidden; }
@supports (height: 100dvh) { .reel { --rh: min(100dvh - 40px, 920px); height: 100dvh; max-height: 100dvh; } }
@media (max-aspect-ratio: 9/16) { .reel { --rw: 100vw; --rh: calc(100vw * 16 / 9); } }
.reel[open] { display: grid; place-items: center; }
.reel::backdrop { background: transparent; }
.reel__bg { position: absolute; inset: 0; background: rgba(20, 14, 11, 0.95); }
.reel__stage { position: relative; width: var(--rw); height: var(--rh); overflow: hidden; background: #140E0B; transform-origin: 0 0; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.reel__still, .reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.reel__video { opacity: 0; transition: opacity 260ms ease; }
.reel__video.is-on { opacity: 1; }
.reel__stage::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: 110px; background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); pointer-events: none; }
.reel__bars { position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px; display: flex; gap: 5px; pointer-events: none; }
.reel__bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.38); overflow: hidden; }
.reel__bars i { display: block; height: 100%; background: #FFFFFF; transform: scaleX(0); transform-origin: 0 50%; }
.reel__cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; margin: 0; padding: 96px 20px 22px; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.66)); display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.reel__cap strong { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }
.reel__cap span { font-size: 16px; }
.reel__ctl { position: absolute; z-index: 3; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(20, 14, 11, 0.5); color: #FFFFFF; cursor: pointer; }
.reel__ctl svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reel__ctl:hover { background: rgba(20, 14, 11, 0.82); }
.reel__ctl:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.reel__close { top: 28px; right: 12px; }
.reel__pause { top: 28px; left: 12px; }
.reel__pause svg { fill: currentColor; stroke: none; }
.reel__pause .i-play, .reel__pause[data-paused="true"] .i-pause { display: none; }
.reel__pause[data-paused="true"] .i-play { display: block; }
.reel__prev, .reel__next { top: 50%; margin-top: -26px; width: 52px; height: 52px; background: rgba(255, 255, 255, 0.14); }
.reel__prev:hover, .reel__next:hover { background: rgba(255, 255, 255, 0.26); }
.reel__prev { left: calc(50% - var(--rw) / 2 - 72px); }
.reel__next { right: calc(50% - var(--rw) / 2 - 72px); }
@media (max-width: 700px), (max-aspect-ratio: 9/16) {
  /* sin sitio a los lados: las flechas van sobre el vídeo, más discretas */
  .reel__prev, .reel__next { width: 44px; height: 44px; margin-top: -22px; background: rgba(20, 14, 11, 0.35); }
  .reel__prev { left: 8px; }
  .reel__next { right: 8px; }
}
/* lo que acompaña al vídeo aparece cuando ya ha llegado a su sitio */
.reel__bars, .reel__cap, .reel__ctl, .reel__stage::before { opacity: 0; transition: opacity 240ms ease; }
.reel.is-open .reel__bars, .reel.is-open .reel__cap, .reel.is-open .reel__ctl, .reel.is-open .reel__stage::before { opacity: 1; }
