:root {
  --ink: #1c2418;
  --muted: #5d6758;
  --paper: #f6f1e7;
  --card: #fffaf2;
  --line: #e4d8c6;
  --leaf: #1f4a34;
  --leaf-soft: #dcebd9;
  --clay: #a65332;
  --sand: #efe4d2;
  --taken: #e9b8b3;
  --taken-ink: #7a2620;
  --holiday: #c6a15b;
  --ok: #1f6b45;
  --danger: #9b2c2c;
  --shadow: 0 18px 50px rgba(48, 36, 18, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(1200px 500px at 80% -10%, #efe2c8 0%, transparent 55%), var(--paper);
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 340;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; letter-spacing: -0.03em; }
h2 { font-weight: 620; margin: 0 0 6px; font-size: 1.45rem; }
h3 { font-weight: 560; margin: 18px 0 6px; font-size: 1.1rem; }
b, strong { font-weight: 560; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.offer {
  background: var(--clay); color: #fff; text-align: center; padding: 10px 16px; font-size: 0.98rem;
}
.offer span { opacity: 0.85; margin-left: 6px; font-size: 0.88rem; }

.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 12px 7vw;
  background: rgba(246, 241, 231, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(228, 216, 198, 0.8);
}
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.brand strong { display: block; font-family: Fraunces, serif; font-weight: 620; letter-spacing: -0.03em; }
.brand small { color: var(--muted); }
.mark {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 50% 42%, #d7e7c8 0 18%, transparent 19%),
    radial-gradient(circle at 50% 78%, #6d4a32 0 16%, transparent 17%),
    var(--leaf);
}
nav { display: flex; gap: 10px; }
nav a { text-decoration: none; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: var(--leaf); color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
nav a:hover, nav a:focus-visible { filter: brightness(1.1); }
.phone-row { display: flex; gap: 8px; }
.phone-row select { flex: 0 0 auto; width: auto; max-width: 48%; }
.phone-row input { flex: 1; min-width: 0; }
.or { display: flex; align-items: center; gap: 10px; margin: 6px 0; color: var(--muted); font-size: 0.9rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
main { padding: 0 7vw 48px; }
footer { padding: 8px 7vw 36px; color: var(--muted); font-size: 0.92rem; }
.loading { padding: 60px 0; color: var(--muted); }

.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: center; padding: 28px 0 8px; }
.hero h1 { font-weight: 460; font-size: clamp(2.6rem, 5.5vw, 5rem); line-height: 0.95; letter-spacing: -0.045em; margin: 6px 0 12px; }
.kicker { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.75rem; color: var(--clay); margin: 0; }
.lede { font-size: 1.2rem; color: #3c4638; margin: 0 0 6px; }
.description p { margin: 0 0 10px; }
.description ul { margin: 0 0 10px; padding-left: 1.2em; }
.description li { margin: 2px 0; }
.chips { list-style: none; padding: 0; margin: 16px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--sand); border-radius: 999px; padding: 5px 12px; font-size: 0.88rem; }
.hero-photo { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--sand); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.hero-photo img.on { opacity: 1; }
.hero-figure { margin: 0; }
.photo-caption { min-height: 1.4em; margin-top: 10px; text-align: center; color: var(--muted); font-size: 0.95rem; }
.photo-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.photo-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, 0.55); cursor: pointer; }
.photo-dots button.on { background: #fff; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.narrow { max-width: 720px; margin: 28px auto 0; }
.band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 22px; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sub { color: var(--muted); margin: 0 0 12px; }
.small { font-size: 0.86rem; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.row.big { font-size: 1.1rem; }
.good { color: var(--ok); }

.btn, .ghost, .danger, .ok, .count-pick button {
  border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn { background: var(--leaf); color: #fff; font-weight: 460; }
.btn:hover { background: #163a28; }
.btn.wa { background: #1d7a4a; }
.ghost { background: var(--sand); }
.ok { background: var(--ok); color: #fff; }
.danger { background: #f4dfd8; color: var(--danger); }
.wide { width: 100%; margin-top: 12px; text-align: center; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
:focus-visible { outline: 3px solid #d2a54a; outline-offset: 2px; }

.reserve { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 22px; margin-top: 30px; align-items: start; }
.side { display: grid; gap: 18px; position: sticky; top: 76px; }

.cal-nav { display: flex; gap: 8px; align-items: center; margin: 10px 0 4px; }
.cal-nav select { width: auto; flex: 1; margin: 0; }
.months { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.month h3 { margin: 10px 0 4px; }
.month h3::first-letter { text-transform: uppercase; }
.week, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.week { color: var(--muted); font-size: 0.75rem; text-align: center; margin-bottom: 4px; }
.day {
  position: relative; border: 0; background: #f3eee4; min-height: 48px; border-radius: 10px;
  padding: 6px 4px; cursor: pointer; text-align: center; font-size: 0.95rem;
}
.day small { display: block; font-size: 0.62rem; line-height: 1; margin-top: 2px; }
.day:hover:not(:disabled) { outline: 2px solid var(--leaf); }
.day.out { background: transparent; color: #b4ab9d; cursor: default; }
.day.taken { background: var(--taken); color: var(--taken-ink); text-decoration: line-through; }
.day.taken:disabled { opacity: 1; cursor: not-allowed; }
.day.pick { background: var(--leaf-soft); color: var(--leaf); text-decoration: none; font-weight: 560; }
.day.pick-end, .day.draft { background: var(--leaf); color: #fff; }
.day.holiday::after { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--holiday); }
.day.out:disabled { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 0.82rem; color: var(--muted); }
.dot { width: 11px; height: 11px; border-radius: 4px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.dot.free { background: #f3eee4; border: 1px solid #d9ccb8; }
.dot.taken { background: var(--taken); }
.dot.pick { background: var(--leaf); }
.dot.holiday { background: var(--holiday); border-radius: 50%; width: 8px; height: 8px; }
.hint { margin: 12px 0 0; padding: 10px 14px; background: #f7f0e2; border-radius: 12px; }

.count-pick { display: flex; gap: 8px; margin: 6px 0 14px; }
.count-pick button { background: var(--sand); width: 46px; height: 46px; padding: 0; font-size: 1.05rem; }
.count-pick button.on { background: var(--leaf); color: #fff; }
.ranges { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 10px; }
.ranges li { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff; }
.ranges .draft-row { border-style: dashed; background: transparent; }
.breakdown .row { margin: 2px 0; }
.breakdown .row.sub { margin: 0; font-size: 0.9rem; }
.nights { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.nights span { font-size: 0.72rem; background: var(--sand); border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.totals { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }

label { display: block; margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
input, select, textarea {
  display: block; width: 100%; margin-top: 4px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; padding: 10px 12px; color: var(--ink);
}
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset:disabled { opacity: 0.5; }
.check { display: flex; gap: 8px; align-items: center; color: var(--ink); }
.check input { width: auto; margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.conditions { margin-top: 12px; font-size: 0.9rem; background: #f7f0e2; border-radius: 12px; padding: 10px 14px; }
.conditions summary { cursor: pointer; font-weight: 460; }
.stars { display: flex; gap: 6px; margin-top: 10px; }
.stars label { margin: 0; }
.stars input { position: absolute; opacity: 0; width: 1px; }
.stars span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sand); cursor: pointer; color: var(--ink); }
.stars input:checked + span { background: var(--leaf); color: #fff; }
.stars input:focus-visible + span { outline: 3px solid #d2a54a; }

.note, .error, .okbox { border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.note { background: #f7f0e2; }
.error { background: #fde8e4; color: var(--danger); }
.okbox { background: #e7f3ea; }
.paybox { background: #f7f0e2; border-radius: 18px; padding: 16px; margin: 16px 0; }
.paybox p { margin: 0 0 10px; }
.bank { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 8px 0; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; }
.purchase { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.purchase li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; }
.purchase li.current { background: var(--sand); }

.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table th, .table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 460; font-size: 0.82rem; }
.num { text-align: right !important; white-space: nowrap; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 0.78rem; background: var(--sand); white-space: nowrap; }
.pill.pendiente { background: #f4e2bf; }
.pill.confirmada, .pill.pagada { background: #d7e4d8; }
.pill.liberada { background: #f0e4e1; color: var(--muted); }
.pill.vencida { background: #fde8e4; color: var(--danger); }

@media (max-width: 960px) {
  .reserve { grid-template-columns: 1fr; }
  /* One column: choose how many reservations, then the calendar, then the form. */
  .side { display: contents; }
  #planner { order: -1; }
  #book { order: 1; }
}
@media (max-width: 760px) {
  .top, main, footer { padding-left: 16px; padding-right: 16px; }
  .top { flex-wrap: wrap; gap: 8px; }
  nav { gap: 6px; font-size: 0.85rem; }
  nav a { padding: 7px 11px; }
  .hero, .band, .prices, .months { grid-template-columns: 1fr; }
  .hero { gap: 18px; }
  .three { grid-template-columns: 1fr 1fr 1fr; }
  .day { min-height: 42px; }
}
