/* Layout: portada con foto en arco (como un portal colonial) sobre una cinta de azulejo; bandas que alternan fondo; barra fija de WhatsApp en celular */
:root {
  --bg: #F2F4F3;
  --surface: #FFFFFF;
  --ink: #14263B;
  --ink-soft: #4A5A6B;
  --line: #D6DDDF;
  --brand: #1F4E8C;
  --brand-ink: #FFFFFF;
  --sun: #F0B429;
  --sun-ink: #3A2A00;
  --wa: #0B7A43;
  --wa-ink: #FFFFFF;
  --red: #B3262E;
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='none' stroke='%231F4E8C' stroke-width='1.4'%3E%3Cpath d='M14 2l12 12-12 12L2 14z'/%3E%3Cpath d='M14 8l6 6-6 6-6-6z'/%3E%3C/g%3E%3C/svg%3E");
  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 12px 32px rgba(20, 38, 59, .10);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1824;
    --surface: #152334;
    --ink: #EAF0F6;
    --ink-soft: #A5B4C4;
    --line: #27384C;
    --brand: #8DBBF5;
    --brand-ink: #0E1824;
    --sun-ink: #2A1E00;
    --red: #FF8A8F;
    --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='none' stroke='%238DBBF5' stroke-width='1.4'%3E%3Cpath d='M14 2l12 12-12 12L2 14z'/%3E%3Cpath d='M14 8l6 6-6 6-6-6z'/%3E%3C/g%3E%3C/svg%3E");
    --shadow: 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1824;
  --surface: #152334;
  --ink: #EAF0F6;
  --ink-soft: #A5B4C4;
  --line: #27384C;
  --brand: #8DBBF5;
  --brand-ink: #0E1824;
  --sun-ink: #2A1E00;
  --red: #FF8A8F;
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='none' stroke='%238DBBF5' stroke-width='1.4'%3E%3Cpath d='M14 2l12 12-12 12L2 14z'/%3E%3Cpath d='M14 8l6 6-6 6-6-6z'/%3E%3C/g%3E%3C/svg%3E");
  --shadow: 0 12px 32px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: 84px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 7.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.icon { width: 1.35em; height: 1.35em; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-soft { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.how-label { margin: 14px 0 6px; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Encabezado ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark svg { width: 30px; height: 30px; color: var(--brand); }
.mark span { display: block; font-size: .62rem; letter-spacing: .24em; font-weight: 600; color: var(--ink-soft); line-height: 1; }
.mark b { display: block; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.05; }
.nav { display: none; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 5px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.top-actions .btn { display: none; }
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang a, .lang button { font: 600 .85rem/1 var(--font-body); padding: 9px 13px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; background: none; border: 0; cursor: pointer; }
.lang [aria-current="true"] { background: var(--ink); color: var(--bg); }

/* ---------- Portada ---------- */
.hero { padding-block: 22px 44px; }
.hero .wrap { display: grid; gap: 26px; }
.hero-photo { order: -1; border-radius: 999px 999px 20px 20px; overflow: hidden; aspect-ratio: 4 / 3.1; background: var(--line); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero-text { display: grid; gap: 16px; align-content: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34ch; }
.price-chip { display: inline-flex; align-items: baseline; gap: .5em; flex-wrap: wrap; width: fit-content; background: var(--sun); color: var(--sun-ink); padding: 10px 18px; border-radius: 14px; font-weight: 600; }
.price-chip b { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.rating { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--ink-soft); flex-wrap: wrap; }
.rating a { color: inherit; }
.stars { color: var(--sun); letter-spacing: 2px; font-size: 1.05rem; text-shadow: 0 0 1px rgba(0,0,0,.35); }

.tile-rule { height: 22px; background-image: var(--tile); background-repeat: repeat-x; background-size: 28px 28px; background-position: center; opacity: .5; }

/* ---------- Secciones ---------- */
.band { padding-block: 56px; }
.band.alt { background: var(--surface); }
.sec-head { display: grid; gap: 10px; margin-bottom: 30px; max-width: 46ch; }
.sec-head p { color: var(--ink-soft); }

/* Habitación */
.room { display: grid; gap: 22px; }
.room-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.room-photo img { width: 100%; height: 100%; object-fit: cover; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 20px; box-shadow: var(--shadow); align-content: start; }
.band.alt .card { background: var(--bg); box-shadow: none; }
.rates { display: grid; gap: 0; border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; }
.rate { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.rate + .rate { border-top: 1.5px solid var(--ink); }
.rate .who { font-weight: 600; }
.rate .amt { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.rate .amt small { font-family: var(--font-body); font-size: .9rem; font-weight: 500; color: var(--ink-soft); margin-left: 6px; }
.fine { font-size: .95rem; color: var(--ink-soft); }
.amen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.amen li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.amen .icon { color: var(--brand); }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.times div { display: grid; gap: 2px; }
.times dt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.times dd { margin: 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.times { margin: 0; }

/* Por qué */
.why { display: grid; gap: 14px; grid-template-columns: 1fr; }
.why-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.why-item .icon { grid-row: span 2; width: 30px; height: 30px; color: var(--brand); margin-top: 2px; }
.why-item p { color: var(--ink-soft); }

/* Galería */
.gallery { columns: 2; column-gap: 10px; }
.gallery button { display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; break-inside: avoid; cursor: zoom-in; background: var(--line); }
.gallery img { width: 100%; height: auto; transition: transform .35s ease; }
.gallery button:hover img { transform: scale(1.03); }

dialog.lb { border: 0; padding: 0; background: transparent; width: 100%; height: 100%; max-width: 100vw; max-height: 100vh; color: #fff; }
dialog.lb::backdrop { background: rgba(5, 10, 16, .92); }
dialog.lb[open] { display: grid; place-items: center; }
.lb-img { max-width: calc(100vw - 24px); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 12px; object-fit: contain; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom, 0px)); text-align: center; padding: 0 70px; font-size: .95rem; }
.lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.3); }
.lb-x { top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(10px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(10px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }

/* Reseñas */
.reviews { display: grid; gap: 14px; }
.review { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 14px; align-content: start; margin: 0; }
.review::before { content: "\201C"; font-family: var(--font-display); font-size: 3.2rem; line-height: .6; color: var(--red); }
.review blockquote { margin: 0; font-size: 1.05rem; }
.review figcaption { font-size: .9rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.review-more { margin-top: 22px; }

/* Ubicación */
.where { display: grid; gap: 22px; }
.map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--line); min-height: 320px; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.map-ph { min-height: 320px; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; background-image: var(--tile); background-size: 28px 28px; color: var(--ink); }
.map-ph .pin { width: 46px; height: 46px; color: var(--red); }
.map-ph p { background: var(--surface); padding: 10px 14px; border-radius: 12px; max-width: 30ch; }
.addr { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.where-info { display: grid; gap: 16px; align-content: start; }
.where-info .btn-row { flex-direction: column; align-items: stretch; }

/* Contacto */
.contact { display: grid; gap: 14px; }
.contact a.big { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.contact a.big:hover { border-color: var(--ink); }
.contact .icon { width: 30px; height: 30px; color: var(--brand); }
.contact small { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.contact strong { font-family: var(--font-display); font-size: 1.35rem; font-variant-numeric: tabular-nums; }

/* Pie */
.foot { background: var(--ink); color: var(--bg); padding-block: 36px; font-size: .95rem; }
.foot .wrap { display: grid; gap: 14px; }
.foot a { color: inherit; }
.foot b { font-family: var(--font-display); font-size: 1.3rem; }
.foot small { opacity: .75; }

/* Barra fija (celular) */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.bar p { line-height: 1.15; font-size: .85rem; color: var(--ink-soft); }
.bar p b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Escritorio ---------- */
@media (min-width: 800px) {
  .room { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 28px; }
  .room-photo { aspect-ratio: auto; min-height: 100%; }
  .why { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .gallery { columns: 3; column-gap: 14px; }
  .gallery button { margin-bottom: 14px; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .where { grid-template-columns: 1.5fr 1fr; gap: 32px; }
  .where-info .btn-row { flex-direction: row; flex-wrap: wrap; }
  .contact { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .bar { display: none; }
  .nav { display: flex; }
  .top-actions .btn { display: inline-flex; }
  .hero { padding-block: 44px 64px; }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
  .hero-photo { order: 0; aspect-ratio: 4 / 5; }
  .band { padding-block: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gallery img { transition: none; }
  .btn:hover, .gallery button:hover img { transform: none; }
}
