/* =========================================================================
   Hotel Las Cañas — hoja de estilos
   Sistema MULTI-TEMA: los tokens cambian según html[data-theme].
   Temas: esmeralda (por defecto), costa-azul, carbon-oro (oscuro), editorial.
   Solo cambian las variables (color, tipografía, radios, sombras); ni el
   HTML ni la lógica se tocan.
   ========================================================================= */

/* --- Tokens comunes (medidas y tipografía base; el color lo pone cada tema) --- */
:root {
  --maxw: 1180px;
  --gutter: clamp(1rem, 4vw, 1.5rem);
  --radius: 16px;
  --radius-sm: 10px;

  /* Derivados comunes a todos los temas */
  --ring: color-mix(in srgb, var(--brand) 55%, transparent);
  --danger-weak: color-mix(in srgb, var(--danger) 14%, transparent);
}

/* =========================== Tema: Esmeralda (por defecto) =========================== */
:root,
:root[data-theme="esmeralda"] {
  --brand: #153e33;
  --brand-700: #113128;
  --brand-300: #3d6353;
  --ink: #221a12;
  --paper: #fffbf4;        /* tarjetas: marfil luminoso */
  --warm: #ece0cd;         /* tinte cálido para insets */
  --line: #e1d6c1;
  --muted: #6c6054;
  --bg: #f6efe5;           /* fondo: crema cálido refrescado y luminoso */
  --terra: #bd603f;        /* acento terracota */
  --terra-d: #a4502f;      /* acento fuerte (eyebrow, hover) */
  --gold: #d8c590;
  --surface: #fffdf8;      /* campos / superficie elevada (marfil cálido) */
  --on-brand: #fffbf4;
  --danger: #b4432f;
  --shadow-sm: 0 1px 2px #0d231c14, 0 2px 8px -4px #0d231c1f;
  --shadow-md: 0 20px 45px -32px #0d231c66;
  --shadow-lg: 0 40px 80px -30px #0d231caa;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

/* =========================== Tema: Costa Azul (lujo costero) =========================== */
:root[data-theme="costa-azul"] {
  --brand: #16324f;
  --brand-700: #102338;
  --brand-300: #41607f;
  --ink: #1b2733;
  --paper: #fbfdfd;
  --warm: #e0e9ea;
  --line: #d2dddd;
  --muted: #566571;
  --bg: #edf2f3;           /* fondo: bruma costera fresca y clara */
  --terra: #bf9638;        /* acento dorado (reforzado para contraste) */
  --terra-d: #7a5f23;      /* dorado profundo para texto pequeño */
  --gold: #c9a24b;
  --surface: #ffffff;
  --on-brand: #f6f2ea;
  --danger: #b23b32;
  --shadow-sm: 0 1px 2px #0c233b14, 0 2px 8px -4px #0c233b1f;
  --shadow-md: 0 20px 45px -32px #0c233b66;
  --shadow-lg: 0 40px 80px -30px #0c233baa;
  --font-body: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

/* =========================== Tema: Carbón & Oro (oscuro premium) =========================== */
:root[data-theme="carbon-oro"] {
  --brand: #c9a96b;        /* el oro actúa como color primario (botones) */
  --brand-700: #b8975a;
  --brand-300: #d8bd84;
  --ink: #ece7df;
  --paper: #221f19;
  --warm: #2c2820;
  --line: #3a342b;
  --muted: #a39b8c;
  --bg: #191813;           /* fondo: carbón cálido refinado (más acogedor) */
  --terra: #d8bd84;        /* champán */
  --terra-d: #e0c793;      /* champán claro (eyebrow sobre oscuro) */
  --gold: #c9a96b;
  --surface: #27231c;
  --on-brand: #191813;     /* texto oscuro sobre botones dorados */
  --danger: #ec8368;
  --shadow-sm: 0 1px 2px #00000055, 0 2px 10px -4px #00000080;
  --shadow-md: 0 22px 48px -28px #000000c0;
  --shadow-lg: 0 44px 84px -28px #000000e0;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

/* =========================== Tema: Editorial Blanco (minimal) =========================== */
:root[data-theme="editorial-blanco"] {
  --brand: #2f6b52;        /* verde sobrio */
  --brand-700: #255440;
  --brand-300: #5a8b76;
  --ink: #1a1a1a;
  --paper: #ffffff;
  --warm: #f0ebe0;
  --line: #e9e2d5;
  --muted: #5a564e;
  --bg: #faf8f3;           /* fondo: blanco papel cálido y nítido */
  --terra: #b0553c;        /* acento terracota sobrio */
  --terra-d: #8f4531;
  --gold: #c9b48c;
  --surface: #ffffff;
  --on-brand: #ffffff;
  --danger: #b23b2e;
  --shadow-sm: 0 1px 2px #1a1a1a12, 0 2px 8px -4px #1a1a1a1a;
  --shadow-md: 0 20px 45px -32px #1a1a1a44;
  --shadow-lg: 0 40px 80px -30px #1a1a1a55;
  --font-body: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

/* =========================== Base =========================== */
* { box-sizing: border-box; }
/* El atributo hidden siempre gana, aunque la clase defina display. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Al cambiar de tema, una transición suave del lienzo (respeta reduced-motion). */
body { transition: background-color .35s ease, color .35s ease; }
@media (prefers-reduced-motion: reduce) { body { transition: none; } }
/* Compensa el header fijo al saltar a una sección con el teclado o un ancla. */
section[id] { scroll-margin-top: 84px; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--brand); color: var(--on-brand);
  padding: .6rem 1rem; border-radius: 0 0 10px 10px; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .72rem;
  color: var(--terra-d); font-weight: 600;
}
.lede { color: var(--muted); font-size: 1.06rem; max-width: 48ch; }

/* =========================== Botones =========================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .78em 1.3em; border-radius: 999px; font-size: .9rem;
  font-weight: 600; cursor: pointer; border: 1px solid transparent;
  font-family: var(--font-body); line-height: 1;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn--sm { padding: .55em 1em; font-size: .82rem; }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.btn--solid:hover { background: var(--brand-700); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn[data-loading="true"] { position: relative; color: transparent; pointer-events: none; }
.btn[data-loading="true"]::after {
  content: ""; position: absolute; width: 1.05em; height: 1.05em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  color: var(--on-brand); animation: spin .6s linear infinite;
}
.btn--ghost[data-loading="true"]::after { color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn[data-loading="true"]::after { animation-duration: 1.4s; }
}

/* Enlace con apariencia de texto (acciones de barra) */
.linkish {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; font-size: .88rem; color: var(--muted);
}
.linkish:hover { color: var(--ink); }

/* =========================== Navegación =========================== */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: .8rem var(--gutter);
  display: flex; align-items: center; gap: 1.2rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--brand); flex-shrink: 0; }
/* Logo (imagen) de la marca: versión clara por defecto, dorada en el tema oscuro. */
.brand__logo { height: 46px; width: auto; display: block; }
.brand__logo--oscuro { display: none; }
:root[data-theme="carbon-oro"] .brand__logo--claro { display: none; }
:root[data-theme="carbon-oro"] .brand__logo--oscuro { display: block; }
.foot__brand .brand__logo { height: 50px; }

.nav__links { display: flex; gap: 1.4rem; margin-left: .5rem; font-size: .9rem; color: var(--muted); }
.nav__links a { position: relative; padding: .2rem 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--terra); transition: width .22s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { margin-left: auto; display: flex; align-items: center; gap: .85rem; }

/* Zona de cuenta */
.account { display: flex; align-items: center; gap: .7rem; }
.account__hi { font-size: .88rem; color: var(--muted); max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__hi strong { color: var(--ink); font-weight: 600; }

/* ===== Selector de tema ===== */
.theme { position: relative; }
.theme__btn {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  font: inherit; font-size: .85rem; font-weight: 500; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: .5em .9em; transition: color .18s ease, border-color .18s ease;
}
.theme__btn:hover { color: var(--ink); border-color: var(--brand); }
.theme__menu {
  position: absolute; top: calc(100% + .5rem); right: 0; z-index: 50;
  width: 220px; display: grid; gap: .15rem; padding: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.theme__title { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; padding: .3rem .5rem .2rem; margin: 0; }
.theme__opt {
  display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left;
  font: inherit; font-size: .9rem; font-weight: 500; color: var(--ink); cursor: pointer;
  background: transparent; border: 0; border-radius: 9px; padding: .55rem .6rem;
  transition: background .15s ease;
}
.theme__opt:hover { background: var(--warm); }
.theme__opt[aria-checked="true"] { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-weight: 600; }
.theme__opt[aria-checked="true"]::after {
  content: ""; width: .55rem; height: .55rem; margin-left: auto; border-radius: 50%; background: var(--brand);
}
.theme__swatch { display: inline-flex; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--line); flex-shrink: 0; }
.theme__swatch i { width: 10px; height: 20px; display: block; }

/* ===== Selector de idioma (ES / EN) ===== */
.lang {
  display: inline-flex; align-items: center; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang__opt {
  font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  color: var(--muted); background: transparent; border: 0; cursor: pointer;
  padding: .5em .75em; line-height: 1; transition: color .18s ease, background .18s ease;
}
.lang__opt + .lang__opt { border-left: 1px solid var(--line); }
.lang__opt:hover { color: var(--ink); }
.lang__opt[aria-pressed="true"] { background: var(--brand); color: #fff; }
.lang__opt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Menú hamburguesa (oculto en desktop) */
.nav__burger {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 40px; height: 40px; cursor: pointer; padding: 0; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column; gap: .3rem;
  padding: .6rem var(--gutter) 1.1rem; border-top: 1px solid var(--line);
  background: var(--bg);
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a, .nav__mobile .linkish { padding: .7rem .2rem; font-size: 1rem; color: var(--ink); text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.account--mobile { padding-top: .8rem; display: flex; flex-wrap: wrap; gap: .6rem; }

/* =========================== Contenedores / ritmo =========================== */
.shell { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section + .section { padding-top: 0; }
.section__head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section__head h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: .7rem 0 1rem; }

/* =========================== Hero cinematográfico =========================== */
.hero {
  position: relative; min-height: min(92vh, 820px);
  display: flex; align-items: center; isolation: isolate; color: #fff;
  padding: clamp(5rem, 12vh, 9rem) var(--gutter) clamp(8rem, 14vw, 11rem);
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0d231c; }
.hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #0d231c55 0%, #0d231c1f 35%, #0d231cd9 100%),
    linear-gradient(90deg, #0d231c99, #0d231c14 62%);
}
.hero__content { max-width: 42rem; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 600; color: #fff; opacity: .92; }
.hero__title {
  font-family: var(--font-head); font-weight: 500; letter-spacing: -.015em; line-height: 1.02;
  font-size: clamp(2.8rem, 7.5vw, 5.4rem); margin: 1rem 0 1.2rem; text-shadow: 0 2px 34px #0d231c80;
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__lede { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 36ch; color: #fff; opacity: .95; line-height: 1.5; }
.hero__scroll {
  position: absolute; left: 50%; bottom: clamp(8.5rem, 15vw, 11.5rem); transform: translateX(-50%);
  color: #fff; opacity: .8; display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid #ffffff55; border-radius: 50%; transition: background .2s ease, opacity .2s ease;
  animation: bob 2.2s ease-in-out infinite;
}
.hero__scroll:hover { opacity: 1; background: #ffffff1f; }
@keyframes bob { 0%, 100% { transform: translateX(-50%); } 50% { transform: translateX(-50%) translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll { animation: none; } }

/* =========================== Barra de reserva flotante =========================== */
.bookingwrap { position: relative; z-index: 4; margin-top: clamp(-6.5rem, -9vw, -4.5rem); padding: 0 var(--gutter); }
.bookingbar { max-width: var(--maxw); margin: 0 auto; }
.booking__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.1rem, 2.5vw, 1.6rem); display: grid; gap: .9rem;
  box-shadow: var(--shadow-lg);
}
.booking__cardtitle { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); }
.booking__grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr 1fr 1.3fr auto; align-items: end;
}
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label { font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); font-weight: 600; }
.field__opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .72rem .8rem; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-weak);
}
.field__err { color: var(--danger); font-size: .78rem; min-height: 0; }
.field__err:empty { display: none; }

.booking__go { padding-top: .95em; padding-bottom: .95em; }

/* Campos de fecha más prominentes y amigables */
.field--date input[type="date"] {
  min-height: 3rem; font-size: 1rem; font-weight: 500; cursor: pointer;
}
.field--date input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: .65; padding: .15rem;
}
.field--date input[type="date"]:hover { border-color: var(--brand-300); }
/* En el tema oscuro, aclara el icono del calendario para que se vea. */
:root[data-theme="carbon-oro"] .field--date input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) brightness(1.5); }

/* Resumen visible de la selección de fechas */
.booking__summary {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0; justify-self: start;
  font-weight: 600; color: var(--brand); font-size: .95rem;
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: 999px; padding: .5rem .95rem;
}
.booking__summary svg { flex-shrink: 0; }

.booking__hint { margin: 0; font-size: .86rem; min-height: 0; color: var(--muted); }
.booking__hint:empty { display: none; }
.booking__hint.err { color: var(--danger); font-weight: 500; }
.booking__hint.ok { color: var(--brand); font-weight: 500; }

/* =========================== Intro / experiencia =========================== */
.intro__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.intro__text h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: .7rem 0 1rem; }
.intro__stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.intro__stats li { background: var(--paper); padding: clamp(1.1rem, 3vw, 1.6rem); display: flex; flex-direction: column; gap: .2rem; }
.intro__stat { font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--brand); }
.intro__lbl { font-size: .84rem; color: var(--muted); }

/* =========================== Amenidades =========================== */
.amenities__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.amenity {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.1rem, 2.5vw, 1.5rem) .7rem; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.amenity:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); box-shadow: var(--shadow-sm); }
.amenity__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.amenity__name { font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.2; }

/* =========================== Catálogo de habitaciones =========================== */
.rooms__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.card__photo {
  aspect-ratio: 3 / 2.2; margin: 0; width: 100%; object-fit: cover; display: block; background: var(--warm);
  filter: saturate(1.07) contrast(1.03); transition: transform .5s ease, filter .35s ease;
}
.card:hover .card__photo { transform: scale(1.06); filter: saturate(1.12) contrast(1.05) brightness(1.03); }
.card__body { padding: 1.2rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.3rem; margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card__tipo {
  align-self: flex-start; font-size: .66rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); border-radius: 999px;
  padding: .25em .75em; margin-bottom: .7rem;
}
.card__price {
  color: var(--terra-d); font-weight: 700; font-size: 1.08rem; margin-top: 1rem;
  padding-top: .9rem; border-top: 1px solid var(--line);
}
.card__price:empty { display: none; }
.card__pricenote { color: var(--muted); font-weight: 500; font-size: .82rem; }
.stay__loading { grid-column: 1 / -1; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .card:hover .card__photo { transform: none; } }

/* ===== Tarjeta de habitación: foto clicable + botón "Ver detalles" ===== */
.card__photo-btn { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; }
.card__ver { margin-top: 1rem; align-self: flex-start; }

/* ===== Modal de habitación (detalles + reservar) ===== */
.room-modal__box { max-width: 620px; width: min(93vw, 620px); padding: 0; overflow: auto; max-height: 92vh; }
.room-modal__img { width: 100%; height: 270px; object-fit: cover; display: block; }
.room-modal__info { padding: 1.3rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; }
.room-modal__title { font-size: 1.5rem; margin: .1rem 0 0; }
.room-modal__desc { color: var(--muted); }
.room-modal__subt { font-weight: 600; margin: .5rem 0 0; }
.room-modal__list { list-style: none; margin: .1rem 0 .2rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .9rem; }
.room-modal__list li { position: relative; padding-left: 1.35rem; font-size: .92rem; }
.room-modal__list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.room-modal__cta { margin-top: .9rem; align-self: flex-start; }
@media (max-width: 560px) { .room-modal__list { grid-template-columns: 1fr; } .room-modal__img { height: 200px; } }

/* Métodos de pago aceptados (Paso 3) */
.paymethods { margin: -.4rem 0 1rem; font-size: .82rem; color: var(--muted); }
.paymethods:empty { display: none; }
.paymethods strong { color: var(--ink); font-weight: 600; }

/* =========================== Ubicación =========================== */
.place__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.place__text h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: .7rem 0 1rem; }
.place__addr { color: var(--ink); font-weight: 600; margin-top: 1.2rem; }
.place__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.place__photo {
  margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--warm);
}
.place__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Experiencia editorial: piscina y restaurante ===== */
.features__stack { display: grid; gap: clamp(1.4rem, 3vw, 2rem); }
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.feature__media { margin: 0; min-height: 260px; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature__text { padding: clamp(1.5rem, 4vw, 3rem); align-self: center; }
.feature__text h3 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: .5rem 0 .7rem; }
.feature__text p:last-child { color: var(--muted); font-size: 1.02rem; }
/* Alterna el lado de la imagen. */
.feature__media { order: 1; }
.feature__text { order: 2; }
.feature--reverse .feature__media { order: 2; }
.feature--reverse .feature__text { order: 1; }

/* --- Realce de fotos de secciones: viveza sutil + zoom suave al pasar --- */
.feature__media img, .place__photo img, .room-modal__img, .nearby__img {
  filter: saturate(1.07) contrast(1.03);
}
.feature__media img, .nearby__img { transition: transform .55s ease, filter .35s ease; }
.feature:hover .feature__media img { transform: scale(1.04); filter: saturate(1.11) contrast(1.04) brightness(1.02); }
.nearby__card:hover .nearby__img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .feature:hover .feature__media img, .nearby__card:hover .nearby__img { transform: none; }
}

/* =========================== Galería =========================== */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; grid-auto-flow: dense; gap: 1rem; }
.gallery__item {
  margin: 0; padding: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--warm); cursor: pointer; display: block; position: relative; font: inherit; color: inherit;
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
}
.gallery__item:hover, .gallery__item:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.07) contrast(1.03); transition: transform .5s ease, filter .35s ease; }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; background: #0d231c00; transition: background .25s ease;
}
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.08); filter: saturate(1.12) contrast(1.04) brightness(1.03); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { background: #0d231c14; }
.gallery__item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
@media (prefers-reduced-motion: reduce) { .gallery__item:hover img, .gallery__item:focus-visible img { transform: none; } }

/* Lightbox (imagen ampliada) */
.modal__box.lightbox__box {
  width: auto; max-width: min(94vw, 1100px); padding: .5rem; background: var(--bg);
  overflow: visible;
}
.lightbox__img { display: block; width: 100%; max-height: 82vh; object-fit: contain; border-radius: 10px; background: var(--warm); }
.lightbox__x {
  top: -.6rem; right: -.6rem; background: var(--bg); border: 1px solid var(--line); border-radius: 50%;
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
}

/* =========================== Pie =========================== */
/* ===== Pie oscuro (marca) estilo compacto ===== */
.foot { background: var(--brand); color: #ffffffcc; border-top: 2px solid color-mix(in srgb, var(--gold) 55%, transparent); }
.foot__inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(.85rem, 2vw, 1.25rem) var(--gutter) .7rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .9rem;
}
.foot .brand__logo--claro { display: none; }
.foot .brand__logo--oscuro { display: block; }
.foot__motto { color: #ffffffb3; font-family: var(--font-head); font-style: italic; margin-top: .35rem; font-size: .95rem; }
.foot__controls { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.foot__social { display: flex; gap: .6rem; }
.foot__controls .foot__social { margin-top: 0; }
.foot__social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ffffff33; border-radius: 10px; color: #ffffffcc; transition: color .18s ease, border-color .18s ease, transform .18s ease; }
.foot__social a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.foot .lang { border-color: #ffffff33; }
.foot .lang__opt { color: #ffffffcc; }
.foot .lang__opt:hover { color: #fff; }
.foot .lang__opt[aria-pressed="true"] { background: var(--gold); color: var(--brand); }
.foot .theme { position: relative; }
.foot .theme__btn { color: #ffffffcc; border-color: #ffffff33; }
.foot .theme__btn:hover { color: #fff; border-color: var(--gold); }
.foot .theme__menu { top: auto; bottom: calc(100% + .5rem); right: auto; left: 0; }
.foot__col h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: #ffffffa6; font-family: var(--font-body); font-weight: 700; position: relative; padding-bottom: .3rem; margin-bottom: .35rem; }
.foot__col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.foot__line { display: flex; align-items: flex-start; gap: .5rem; margin: 0 0 .1rem; font-size: .9rem; color: #ffffffcc; line-height: 1.3; }
.foot__line:last-child { margin-bottom: 0; }
.foot__line svg { flex-shrink: 0; width: 15px; height: 15px; color: var(--gold); margin-top: .15rem; }
.foot__line a:hover { color: var(--gold); }
.foot__col a:hover { color: var(--gold); }
.foot__bar { padding: .4rem var(--gutter) .6rem; text-align: center; }
.foot__copy { font-size: .82rem; color: #ffffffcc; margin: 0 auto .25rem; text-align: center; line-height: 1.3; }
.foot__bar .foot__legal { justify-content: center; margin: 0 auto; }
.foot__dev { font-size: .78rem; color: #ffffff99; margin: .4rem auto 0; text-align: center; letter-spacing: .02em; }

/* =========================== Modales =========================== */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: #0d231c7a; backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal__box {
  position: relative; width: min(460px, 100%); max-height: calc(100dvh - 2rem); overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-lg);
  animation: pop .22s ease;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) {
  .modal__backdrop, .modal__box { animation: none; }
}
.modal__x {
  position: absolute; top: .9rem; right: .9rem; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; line-height: 0; padding: .4rem; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.modal__x:hover { color: var(--ink); background: color-mix(in srgb, var(--line) 50%, transparent); }
.modal__title { font-size: clamp(1.5rem, 3vw, 1.75rem); padding-right: 2rem; }
.modal__sub { color: var(--muted); font-size: .94rem; margin: .5rem 0 1.3rem; }
.mform { display: grid; gap: .95rem; }
.modal__submit { width: 100%; margin-top: .5rem; }
.modal__msg { margin: 0; font-size: .9rem; min-height: 0; }
.modal__msg:empty { display: none; }
.modal__msg.ok { color: var(--brand); font-weight: 600; }
.modal__msg.err { color: var(--danger); font-weight: 600; }

/* Titular de la reserva (solo lectura) */
.holder {
  display: grid; gap: .1rem; background: var(--warm); border: 1px solid var(--line);
  border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1.1rem;
}
.holder__label { font-size: .68rem; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); font-weight: 600; }
.holder__name { font-weight: 600; color: var(--ink); }
.holder__tel { font-size: .88rem; color: var(--muted); }

/* Indicador de pasos (sin números: solo etiquetas, con punto en el activo) */
.steps { list-style: none; display: flex; gap: .55rem; padding: 0; margin: 0 0 1.3rem; }
.steps__item {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .45rem; min-width: 0;
  font-size: .82rem; font-weight: 600; color: var(--muted); text-align: center;
  padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--warm);
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.steps__item::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%; flex-shrink: 0;
  background: var(--line); transition: background .2s ease;
}
.steps__item.is-current { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.steps__item.is-current::before,
.steps__item.is-done::before { background: var(--brand); }
.steps__item.is-done { color: var(--ink); }

/* Pasos del modal de reserva */
.step__hint { color: var(--muted); font-size: .9rem; margin-bottom: .1rem; }
.step__alt { text-align: center; font-size: .88rem; color: var(--muted); margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
@media (max-width: 440px) { .grid2 { grid-template-columns: 1fr; } }

/* Tipos de habitación (radios con tarjeta) */
.tipos { border: 0; padding: 0; margin: 0; display: grid; gap: .55rem; }
.tipo {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .3rem .8rem;
  border: 1px solid var(--line); border-radius: 12px; padding: .75rem .85rem; cursor: pointer;
  background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.tipo:hover { border-color: var(--brand-300); }
.tipo:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--ring); border-color: var(--brand); }
.tipo:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.tipo input { accent-color: var(--brand); width: 1.05rem; height: 1.05rem; margin: 0; }
.tipo__name { font-weight: 600; color: var(--ink); }
.tipo__desc { grid-column: 2 / 3; font-size: .82rem; color: var(--muted); }
.tipo__price { grid-row: 1 / 3; grid-column: 3; text-align: right; font-weight: 700; color: var(--terra-d); white-space: nowrap; }
.tipo__price small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }
/* En anchos estrechos, el precio se apila bajo el nombre (evita desbordes). */
@media (max-width: 420px) {
  .tipo { grid-template-columns: auto 1fr; column-gap: .6rem; }
  .tipo__name, .tipo__desc { grid-column: 2; }
  .tipo__price { grid-column: 2; grid-row: auto; text-align: left; margin-top: .15rem; }
  .tipo__price small { display: inline; margin-left: .25rem; }
}

/* Totales */
.total, .paytotal {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .85rem 1rem; border-radius: 12px;
  background: var(--warm); border: 1px solid var(--line);
}
.total[hidden] { display: none; }
.total__label, .paytotal__label { color: var(--muted); font-size: .9rem; font-weight: 600; }
.total__val, .paytotal__val { font-family: var(--font-head); font-size: 1.5rem; color: var(--brand); }
.paytotal { margin-bottom: .9rem; }

/* Aviso de pago en modo prueba */
.paynote {
  display: flex; align-items: center; gap: .45rem; margin: 0 0 1rem;
  font-size: .84rem; font-weight: 500; color: var(--terra-d);
  background: color-mix(in srgb, var(--terra) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--terra) 30%, transparent);
  border-radius: 10px; padding: .6rem .8rem;
}
.paynote svg { flex-shrink: 0; }

/* Entrada de número de tarjeta con marca */
.cardinput { position: relative; }
.cardinput input { padding-right: 4.6rem; }
.cardbrand {
  position: absolute; right: .7rem; top: 50%; transform: translateY(-50%);
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: var(--brand);
  text-transform: uppercase;
}

.success__pay { color: var(--muted); font-size: .9rem; margin-bottom: .4rem; }
.success__pay strong { color: var(--ink); }

/* Seguimiento de estado (QR + enlace) en la confirmación */
.success__estado {
  margin: 1rem auto; padding: 1rem; max-width: 300px;
  background: var(--warm); border: 1px solid var(--line); border-radius: 14px;
}
.success__estado[hidden] { display: none; }
.success__estado-tit { margin: 0 0 .6rem; font-weight: 600; color: var(--brand); font-size: .92rem; }
.success__qr { display: block; margin: 0 auto .6rem; width: 160px; height: 160px; border-radius: 8px; background: #fff; }
.success__estado-link { display: inline-block; color: var(--brand); font-weight: 600; font-size: .9rem; text-decoration: underline; }
.misresv__estado { margin: .2rem 0 0; }
.misresv__estado a { color: var(--brand); font-size: .86rem; font-weight: 600; text-decoration: underline; }

/* Instrucciones de pago manual (transferencia / efectivo) en la confirmación */
.success__pagoinstr {
  margin: 1rem auto; padding: 1rem; max-width: 320px; text-align: left;
  background: var(--warm); border: 1px solid var(--line); border-radius: 12px;
}
.success__pagoinstr[hidden] { display: none; }
.pagoinstr__tit { margin: 0 0 .3rem; font-weight: 700; color: var(--brand); }
.pagoinstr__txt { margin: .2rem 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.pagoinstr__datos { margin: .6rem 0; border-top: 1px solid var(--line); }
.pagoinstr__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.pagoinstr__row span { color: var(--muted); }

.disp-nota { font-size: .82rem; min-height: 0; }
.disp-nota:empty { display: none; }
.disp-nota.ok { color: var(--brand); }
.disp-nota.err { color: var(--danger); }

/* Éxito de reserva */
.success { text-align: center; padding: .5rem 0; }
.success[hidden] { display: none; }
.success__badge {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem;
  border-radius: 50%; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand);
}
.success__lead { font-family: var(--font-head); font-size: 1.4rem; color: var(--ink); }
.success__num {
  margin: 1rem auto; font-size: 1rem; color: var(--muted);
  background: var(--warm); border: 1px dashed var(--line); border-radius: 12px; padding: .8rem 1rem;
}
.success__num strong { font-size: 1.6rem; color: var(--brand); font-family: var(--font-head); display: block; }
.success__note { color: var(--muted); font-size: .9rem; margin-bottom: .4rem; }
.success__keep { color: var(--terra-d); font-size: .86rem; font-weight: 600; margin-bottom: 1rem; }
.success__horario { color: var(--muted); font-size: .86rem; margin: 0 0 .4rem; }
.success__firma { margin: .2rem auto 1.2rem; line-height: 1.5; }
.success__firma p { margin: 0; color: var(--muted); font-size: .92rem; }
.success__firma-marca { font-family: var(--font-head); color: var(--brand); font-size: 1.1rem; font-weight: 600; }

/* =========================== Opt-in de promociones =========================== */
.optin {
  display: flex; align-items: flex-start; gap: .6rem; cursor: pointer;
  font-size: .9rem; color: var(--ink); line-height: 1.35;
  background: var(--warm); border: 1px solid var(--line); border-radius: 12px;
  padding: .7rem .85rem;
}
.optin input { accent-color: var(--brand); width: 1.05rem; height: 1.05rem; margin: .1rem 0 0; flex-shrink: 0; }
.optin__text { color: var(--muted); }

/* =========================== Botón de peligro (cancelar) =========================== */
.btn--danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.btn--danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* =========================== Insignias de estado =========================== */
.badge {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: .28em .7em; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.badge::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.badge--ok { color: #1f7a4d; background: color-mix(in srgb, #1f7a4d 14%, transparent); border-color: color-mix(in srgb, #1f7a4d 30%, transparent); }
.badge--info { color: #2563a8; background: color-mix(in srgb, #2563a8 14%, transparent); border-color: color-mix(in srgb, #2563a8 30%, transparent); }
.badge--off { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: color-mix(in srgb, var(--danger) 28%, transparent); }
:root[data-theme="carbon-oro"] .badge--ok { color: #6fd39b; }
:root[data-theme="carbon-oro"] .badge--info { color: #7fb4e8; }

/* =========================== Modal: Mis reservas =========================== */
.modal__box--wide { width: min(620px, 100%); }
.misresv { display: grid; gap: .9rem; }
.misresv__loading, .misresv__empty { color: var(--muted); font-size: .95rem; margin: .4rem 0; }
.misresv__empty { text-align: center; padding: 1.4rem 0; }
.misresv__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem 1.1rem; display: grid; gap: .5rem;
}
.misresv__top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.misresv__num { font-size: .95rem; color: var(--muted); }
.misresv__num strong { color: var(--ink); font-family: var(--font-head); font-size: 1.2rem; }
.misresv__tipo { font-weight: 600; color: var(--ink); margin: 0; }
.misresv__meta { color: var(--muted); font-size: .9rem; margin: 0; }
.misresv__total { color: var(--terra-d); font-weight: 700; font-size: 1.05rem; margin: 0; }
.misresv__msg { margin: 0; font-size: .85rem; min-height: 0; }
.misresv__msg:empty { display: none; }
.misresv__msg.ok { color: var(--brand); font-weight: 600; }
.misresv__msg.err { color: var(--danger); font-weight: 600; }
.misresv__acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .2rem; }
.misresv__form { display: grid; gap: .7rem; margin-top: .3rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.misresv__form[hidden] { display: none; }
.misresv__formbtns { display: flex; flex-wrap: wrap; gap: .6rem; }
:root[data-theme="carbon-oro"] .misresv__form input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) brightness(1.5); }

/* =========================== Animación de entrada =========================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================== Responsivo =========================== */
@media (max-width: 980px) {
  .amenities__grid { grid-template-columns: repeat(3, 1fr); }
  .rooms__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item--wide { grid-column: span 2; }
}

@media (max-width: 920px) {
  .intro__grid, .place__grid { grid-template-columns: 1fr; }
  .booking__grid { grid-template-columns: 1fr 1fr; }
  .booking__go { grid-column: 1 / -1; }
  .feature { grid-template-columns: 1fr; }
  .feature__media, .feature--reverse .feature__media { order: 0; min-height: 220px; }
  .feature__text, .feature--reverse .feature__text { order: 0; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav.open .nav__mobile { display: flex; }
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .nav__cancel, .nav__inner > .account { display: none; }
  .nav__inner { gap: .5rem; }
  .theme__label { display: none; }
  .theme__btn { padding: .5em; }
  .booking__grid { grid-template-columns: 1fr; }
  .rooms__grid { grid-template-columns: 1fr; }
  .amenities__grid { grid-template-columns: 1fr 1fr; }
  .intro__stats { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item--tall, .gallery__item--wide { grid-row: auto; grid-column: auto; }
  .foot__inner { grid-template-columns: 1fr; }
  /* En móvil el título queda sobre el centro de la imagen (zona clara del scrim):
     reforzamos el velo y la sombra para mantener la legibilidad sin tocar el desktop. */
  .hero__scrim {
    background:
      linear-gradient(180deg, #0d231c8c 0%, #0d231c73 45%, #0d231ce6 100%),
      linear-gradient(90deg, #0d231c73, #0d231c33 70%);
  }
  .hero__title { text-shadow: 0 1px 2px #0d231c, 0 2px 10px #0d231ccc, 0 0 40px #0d231c99; }
}

/* ===== Cerca del hotel (atracciones) ===== */
.nearby { margin-top: clamp(2rem, 5vw, 3.5rem); }
.nearby__title { font-family: var(--font-head, Georgia, "Times New Roman", serif); font-size: clamp(1.4rem, 3vw, 2rem); margin: .3rem 0 1.4rem; color: var(--ink); }
.nearby__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.nearby__card { background: var(--surface, var(--paper)); border: 1px solid var(--line); border-radius: 14px; padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.nearby__card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(0,0,0,.35); }
.nearby__img { width: 100%; height: 180px; object-fit: cover; display: block; background: var(--warm); border-radius: 14px 14px 0 0; }
.nearby__body { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1 1 auto; }
.nearby__card h4 { font-family: var(--font-head, Georgia, serif); font-size: 1.15rem; margin: 0; color: var(--ink); }
.nearby__card p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1 1 auto; line-height: 1.5; }
.nearby__card a { color: var(--brand); font-weight: 600; font-size: .88rem; text-decoration: none; margin-top: .2rem; }
.nearby__card a:hover { text-decoration: underline; }
.nearby__note { color: var(--muted); font-size: .82rem; margin-top: 1rem; }

/* ===== Páginas legales ===== */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(5.5rem, 11vw, 7.5rem) 1.25rem 4rem; }
.legal__back { display: inline-flex; align-items: center; gap: .4rem; color: var(--brand); text-decoration: none; margin-bottom: 1.2rem; font-weight: 600; font-size: .9rem; }
.legal__back:hover { text-decoration: underline; }
.legal h1 { font-family: var(--font-head, Georgia, serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ink); margin: 0 0 .3rem; }
.legal__updated { color: var(--muted); font-size: .85rem; margin: 0 0 1.4rem; }
.legal h2 { font-family: var(--font-head, Georgia, serif); font-size: 1.3rem; color: var(--ink); margin: 2rem 0 .6rem; }
.legal h3 { font-size: 1.05rem; color: var(--ink); margin: 1.3rem 0 .4rem; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--brand); }
.legal strong { color: var(--ink); }
.legal .aviso { background: var(--surface, var(--paper)); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px; padding: .9rem 1.1rem; color: var(--ink); margin: 1rem 0 1.6rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.legal th { background: var(--surface, var(--paper)); color: var(--ink); }

/* Enlaces legales en el pie */
.foot__legal { display: flex; flex-wrap: wrap; gap: .3rem .9rem; justify-content: center; margin-top: .5rem; }
.foot__legal a { color: inherit; opacity: .92; text-decoration: none; font-size: .85rem; }
.foot__legal a:hover { opacity: 1; text-decoration: underline; color: var(--gold); }

/* =========================================================================
   Ajustes de UX avanzados (solo frontend, compatibles con CSP estricta).
   Todo el comportamiento vive en app.js; aquí solo el estilo y la animación.
   ========================================================================= */

/* ===== Indicador de progreso de scroll (barra fina superior) ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 55;
  background: transparent; pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--terra), color-mix(in srgb, var(--terra) 55%, var(--brand)));
  will-change: transform;
}

/* ===== Botón flotante "volver arriba" ===== */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 1.6rem); bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 45; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer; border: 1px solid var(--line);
  background: var(--surface); color: var(--brand); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.92);
  transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s,
              background .2s ease, color .2s ease, border-color .2s ease;
}
.to-top.is-visible {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .28s ease, transform .28s ease, visibility 0s,
              background .2s ease, color .2s ease, border-color .2s ease;
}
.to-top:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); transform: translateY(-2px); }
.to-top:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .to-top { transform: none; }
  .to-top.is-visible, .to-top:hover, .to-top:active { transform: none; }
}

/* ===== Esqueletos de carga (shimmer) para datos asíncronos ===== */
.skel { position: relative; overflow: hidden; background: var(--warm); border-radius: 8px; }
.skel::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 65%, transparent), transparent);
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .skel::after { animation: none; }
  .skel { opacity: .75; }
}

.skeleton-card { pointer-events: none; }
.skeleton-card__photo { aspect-ratio: 3 / 2.2; width: 100%; border-radius: 0; }
.skeleton-card__body { padding: 1.2rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .7rem; }
.skeleton-card__chip { width: 5.5rem; height: 1.1rem; border-radius: 999px; }
.skeleton-card__title { width: 70%; height: 1.4rem; }
.skeleton-card__line { width: 100%; height: .85rem; }
.skeleton-card__line--short { width: 55%; }
.skeleton-card__price { width: 40%; height: 1.1rem; margin-top: .9rem; }

/* ===== Disponibilidad: indicador de carga sutil ===== */
.booking__hint.loading { display: inline-flex; align-items: center; gap: .5rem; }
.booking__hint.loading::before {
  content: ""; width: 1rem; height: 1rem; flex-shrink: 0; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-top-color: var(--brand); animation: spin .7s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .booking__hint.loading::before { animation-duration: 1.4s; } }

/* ===== Microinteracciones refinadas (hover elegante en botones) ===== */
@media (hover: hover) {
  .btn--solid:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn--ghost:hover { transform: translateY(-1px); }
}
.btn--solid:active, .btn--ghost:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) {
  .btn--solid:hover, .btn--ghost:hover,
  .btn--solid:active, .btn--ghost:active { transform: none; }
}

/* =========================================================================
   Efecto 3D (tilt): inclinación interactiva con profundidad.
   Perspectiva en los contenedores; la transformación la pone tilt3d.js por
   elemento (inline). Todo compatible con CSP estricta (sin JS inline aquí).
   ========================================================================= */
.nearby__grid, .gallery__grid, .rooms__grid { perspective: 900px; }
.tilt3d {
  transform-style: preserve-3d;
  transition: transform .15s ease-out, box-shadow .15s ease-out;
  will-change: transform;
}
/* Elevación mientras el puntero está sobre el elemento (la clase la pone el JS). */
.tilt3d.is-tilting { box-shadow: var(--shadow-lg); }
/* Brillo sutil que sigue al cursor (capa superior, no captura clics). */
.tilt3d { position: relative; }
.tilt3d::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; opacity: var(--tilt-glare, 0);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%),
    rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 55%);
  mix-blend-mode: soft-light; transition: opacity .2s ease-out;
}
/* En móvil/táctil y con movimiento reducido no se aplica el efecto. */
@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .tilt3d { transform: none !important; transition: none; }
  .tilt3d::before { display: none; }
}

/* =========================================================================
   Reseñas de huéspedes
   ========================================================================= */
.reviews__list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem; margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}
.reviews__loading, .reviews__empty, .reviews__msg { grid-column: 1 / -1; color: var(--muted); }
.reviews__msg.err { color: var(--danger); }
.review {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.35rem; display: flex; flex-direction: column; gap: .55rem;
  box-shadow: var(--shadow-sm);
}
.review__top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.review__name { font-weight: 700; color: var(--ink); }
.review__text { color: var(--muted); font-size: .95rem; line-height: 1.55; flex: 1 1 auto; }
.review__date { color: var(--muted); font-size: .8rem; opacity: .85; }
.stars { display: inline-flex; gap: .05rem; font-size: 1rem; line-height: 1; letter-spacing: .02em; }
.stars span { color: var(--line); }
.stars span.is-on { color: var(--gold); }
:root[data-theme="carbon-oro"] .stars span.is-on,
:root[data-theme="costa-azul"] .stars span.is-on { color: var(--terra); }

/* Formulario de reseña */
.reviews__formwrap { max-width: 44rem; }
.reviews__form {
  background: var(--surface, var(--paper)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.6rem);
  display: flex; flex-direction: column; gap: .9rem;
}
.reviews__form .field__label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.reviews__login {
  background: var(--warm); border: 1px dashed var(--line); border-radius: 12px;
  padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; color: var(--ink);
}
.reviews__login p { color: var(--muted); margin: 0; }

/* Selector de calificación por estrellas (radios accesibles, CSP-safe).
   Orden inverso en el DOM (5→1) para poder iluminar con ~ en CSS. */
.rating {
  border: 0; margin: 0; padding: 0; display: inline-flex;
  flex-direction: row-reverse; justify-content: flex-end; gap: .15rem;
}
.rating input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating label {
  cursor: pointer; font-size: 1.9rem; line-height: 1; color: var(--line);
  padding: 0 .05rem; transition: color .12s ease, transform .12s ease;
}
.rating label:hover, .rating label:hover ~ label,
.rating input:checked ~ label { color: var(--gold); }
:root[data-theme="carbon-oro"] .rating label:hover,
:root[data-theme="carbon-oro"] .rating label:hover ~ label,
:root[data-theme="carbon-oro"] .rating input:checked ~ label,
:root[data-theme="costa-azul"] .rating label:hover,
:root[data-theme="costa-azul"] .rating label:hover ~ label,
:root[data-theme="costa-azul"] .rating input:checked ~ label { color: var(--terra); }
.rating input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.rating label:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .rating label { transition: none; } .rating label:hover { transform: none; } }

@media (max-width: 620px) {
  .reviews__list { grid-template-columns: 1fr; }
  .nearby__img { height: 160px; }
}
