:root {
  --bg: #f7f2ea;
  --paper: #fffdf9;
  --ink: #2c2620;
  --muted: #7d7062;
  --line: #e6dccd;
  --clay: #8a5a35;
  --clay-dark: #6b4426;
  --sage: #6f7d5c;
  --busy: #e9e2d7;
  --sel: #8a5a35;
  --range: #f0e1d2;
  --error: #a23a2a;
  --radius: 14px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--clay-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(30px, 5vw, 46px); margin: 6px 0 8px; }
h2 { font-size: 28px; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 28px 0 10px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--error); font-size: 14px; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: rgba(247, 242, 234, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 22px; text-decoration: none; color: var(--clay-dark); }
.topbar nav { display: flex; gap: 18px; align-items: center; }
.topbar nav a { text-decoration: none; color: var(--ink); font-size: 15px; }
@media (max-width: 600px) { .topbar nav a:not(.btn) { display: none; } }

.btn { display: inline-block; border: 0; border-radius: 10px; background: var(--clay); color: #fff !important; padding: 12px 20px;
  font: 600 15px var(--sans); cursor: pointer; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--clay-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }

.hero { padding-top: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--sage); margin: 0; font-weight: 600; }
.meta { color: var(--muted); margin: 0 0 18px; }
.rating { margin-left: 8px; color: var(--ink); white-space: nowrap; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; border-radius: var(--radius); overflow: hidden; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; background: var(--busy); overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery button:first-child { grid-row: span 2; }
.gallery .more { position: absolute; right: 12px; bottom: 12px; background: #fff; color: var(--ink); padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; }
  .gallery button:first-child { grid-column: span 2; grid-row: auto; }
  .gallery button:nth-child(n+4) { display: none; }
}

.layout { display: grid; grid-template-columns: 1fr 420px; gap: 48px; padding-top: 36px; padding-bottom: 60px; align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }
.content section { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.room { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 2px; }
.room .icon { font-size: 22px; }
.room span:last-child { color: var(--muted); font-size: 14px; }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 20px; }
.rules { padding-left: 20px; }
.map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

.booking { position: sticky; top: 76px; }
@media (max-width: 960px) { .booking { position: static; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 12px 30px rgba(60, 40, 20, .08); }
.price-head { font-family: var(--serif); font-size: 22px; margin-bottom: 12px; }
.price-head small { font-family: var(--sans); font-size: 14px; color: var(--muted); }

/* Calendario */
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cal-nav button { border: 1px solid var(--line); background: #fff; border-radius: 50%; width: 34px; height: 34px; cursor: pointer; font-size: 18px; color: var(--ink); }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr; gap: 18px; }
.cal-title { text-align: center; font-weight: 600; text-transform: capitalize; margin-bottom: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.cal-dow { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-day { position: relative; border: 0; background: none; height: 46px; cursor: pointer; font: 500 14px var(--sans); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; }
.cal-day small { font-size: 10px; color: var(--muted); font-weight: 400; }
.cal-day:hover:not(:disabled) { outline: 1.5px solid var(--ink); }
.cal-day:disabled { cursor: default; color: #b9ad9e; text-decoration: line-through; }
.cal-day:disabled small { visibility: hidden; }
.cal-day.busy { background: var(--busy); border-radius: 0; }
.cal-day.checkout-only { text-decoration: none; color: var(--ink); cursor: pointer; }
.cal-day.in-range { background: var(--range); border-radius: 0; }
.cal-day.start, .cal-day.end { background: var(--sel); color: #fff; }
.cal-day.start small, .cal-day.end small { color: #f6e9dc; }
.cal-day.start { border-radius: 10px 0 0 10px; }
.cal-day.end { border-radius: 0 10px 10px 0; }
.cal-day.start.end { border-radius: 10px; }
.cal-empty { height: 46px; }
.cal-hint { font-size: 13px; color: var(--muted); text-align: center; margin: 8px 0 0; min-height: 20px; }
.legend { font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; margin: 4px 0 14px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.dot.busy { background: var(--busy); }
.dot.sel { background: var(--sel); }

label { display: grid; gap: 4px; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
input, select, textarea { font: 15px var(--sans); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--clay); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--clay); outline-offset: -1px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.row label.check { margin-bottom: 22px; }
fieldset.currency { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
fieldset.currency legend { font-size: 14px; font-weight: 500; padding: 0 4px; }
fieldset.currency label { margin-bottom: 4px; }
fieldset.currency span { color: var(--muted); }
.hp { position: absolute; left: -9999px; }

.quote { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 8px; }
.quote .line { display: flex; justify-content: space-between; font-size: 15px; padding: 3px 0; }
.quote .total { font-weight: 600; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.quote .alt { text-align: right; color: var(--muted); font-size: 13px; }
.done { text-align: center; }
.done .big { font-size: 40px; }

.footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 40px; }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); z-index: 30; }

.lightbox { position: fixed; inset: 0; background: rgba(20, 15, 10, .92); z-index: 50; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; padding: 10px 18px; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
