:root {
  --bg: #f4efe8;
  --ink: #1b1510;
  --muted: #6d6258;
  --accent: #8b1c1c;
  --accent-dark: #6b1212;
  --card: #fffdf9;
  --line: #e6d9cc;
  --shadow: 0 18px 50px rgba(40, 24, 12, 0.08);
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(244, 239, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand img {
  height: 46px;
  width: auto;
  border-radius: 8px;
  background: #fff;
}
.brand strong { display: block; font-size: 15px; }
.brand small { color: var(--muted); }
nav { display: flex; align-items: center; gap: 14px; }
nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.beta {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
}

.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 22px 24px;
}
.kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 10px;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 12px;
}
.lead { color: var(--muted); font-size: 18px; margin: 0 0 28px; max-width: 40rem; }

.dates {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  background: var(--card);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  align-items: end;
}
.dates label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.dates input, .sheet-card input, .sheet-card textarea {
  font: inherit;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
button, .primary {
  font: inherit;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
}
button:hover, .primary:hover { background: var(--accent-dark); }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.catalog { max-width: 1100px; margin: 0 auto; padding: 12px 22px 64px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.section-head h2 { font-family: var(--serif); font-weight: 500; margin: 0; }
.section-head p { color: var(--muted); margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: inherit;
  box-shadow: none;
  font-weight: 400;
  display: flex;
  flex-direction: column;
}
button.card {
  background: var(--card);
  color: inherit;
  font-weight: 400;
  border-radius: 18px;
}
button.card:hover {
  background: var(--card);
  color: inherit;
  transform: translateY(-2px);
}
.card img, .ph {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #ece4d9;
}
.thumb {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: block;
  width: 100%;
}
.thumb:hover { background: transparent; }
.thumb .count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(20, 12, 8, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
}
.card-cal {
  display: flex;
  justify-content: flex-end;
  padding: 6px 12px 0;
}
.card-cal button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 2px;
  border-radius: 0;
}
.card-cal button:hover { background: transparent; color: var(--accent-dark); }
.card-cal svg { width: 18px; height: 18px; }
.meta-btn {
  background: transparent;
  color: inherit;
  font-weight: 400;
  border-radius: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}
.meta-btn:hover { background: transparent; color: inherit; }
.ph { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.card .meta { padding: 14px 16px 16px; }
.card.unavailable {
  opacity: 0.78;
}
.card.unavailable img {
  filter: grayscale(0.25);
}
.tag-unavail {
  display: inline-block;
  margin: 0 0 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #efe4d6;
  color: #6b4e12;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.muted { color: var(--muted); }
.card h3 { margin: 0 0 4px; font-size: 18px; }
.card .sub { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.aviso {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff6e5;
  color: #6b4e12;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}
.aviso.sheet { font-size: 14px; margin: 12px 0; }

.empty, .error {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 22px 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--muted);
}
.fine { font-size: 13px; }

dialog:not(.lightbox) {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 560px;
  width: calc(100% - 24px);
}
dialog:not(.lightbox)::backdrop { background: rgba(20, 12, 8, 0.45); }
.sheet-card {
  background: var(--card);
  border-radius: 20px;
  padding: 22px;
  position: relative;
  box-shadow: var(--shadow);
}
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  padding: 4px 10px;
}
.close:hover { background: #f0e8df; color: var(--ink); }
.sheet-card img.hero-photo,
.sheet-hero img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0;
  cursor: zoom-in;
}
.sheet-hero {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
  width: 100%;
  border-radius: 12px;
}
.sheet-hero:hover { background: transparent; }
.sheet-hero .count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(20, 12, 8, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
}
.thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 10px 0 14px;
  padding-bottom: 4px;
}
.thumbs button {
  flex: 0 0 72px;
  width: 72px;
  height: 56px;
  padding: 0;
  border-radius: 8px;
  background: #ece4d9;
  overflow: hidden;
  border: 2px solid transparent;
}
.thumbs button:hover { background: #ece4d9; }
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
}
.sheet-card h3 { font-family: var(--serif); font-size: 26px; margin: 0 0 6px; }
.form-grid { display: grid; gap: 10px; margin: 16px 0; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.otp {
  font-size: 28px;
  letter-spacing: 0.4em;
  text-align: center;
  font-weight: 700;
}
.msg { color: var(--accent); font-size: 14px; min-height: 1.2em; }
.ok { color: #1f6b3a; }

.lightbox {
  max-width: min(1100px, calc(100vw - 16px));
  width: auto;
  height: auto;
  background: transparent;
  border: 0;
  padding: 0;
}
.lightbox::backdrop { background: rgba(12, 8, 6, 0.88); }
.lightbox img {
  display: block;
  max-width: min(1100px, calc(100vw - 16px));
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}
.lb-close {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  padding: 6px 14px;
}
.lb-close:hover { background: rgba(255,255,255,0.22); color: #fff; }
.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 42px;
  line-height: 1;
  padding: 8px 16px;
  border-radius: 999px;
}
.lb-nav:hover { background: rgba(255,255,255,0.22); color: #fff; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-count {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  margin: 0;
  text-align: center;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lb-nav[hidden] { display: none; }

.cal-dialog {
  max-width: 420px;
  width: calc(100% - 24px);
  border: 0;
  padding: 0;
  background: transparent;
}
.cal-dialog::backdrop { background: rgba(20, 12, 8, 0.45); }
.cal-card {
  background: var(--card);
  border-radius: 20px;
  padding: 22px 18px 16px;
  position: relative;
  box-shadow: var(--shadow);
}
.cal-card h3 { font-family: var(--serif); margin: 0 28px 12px 0; font-weight: 500; }
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.cal-nav p { margin: 0; font-weight: 700; text-transform: capitalize; }
.cal-nav button {
  background: #f0e8df;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  padding: 4px 12px;
  border-radius: 10px;
}
.cal-nav button:hover { background: #e4d9cc; color: var(--ink); }
.cal-week, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.cal-week span { font-size: 11px; color: var(--muted); font-weight: 700; }
.cal-grid button {
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 0;
  border-radius: 8px;
  min-height: 36px;
}
.cal-grid button:hover { background: #f0e8df; color: inherit; }
.cal-grid button:disabled { opacity: 1; cursor: default; }
.cal-grid .mute { color: #c4b8aa; font-weight: 400; }
.cal-grid .reserva { background: #f3d7a0; color: #6b4e12; }
.cal-grid .renta { background: var(--accent); color: #fff; }
.cal-grid .bloqueo { background: #cfd8dc; color: #37474f; }
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.cal-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}
.cal-legend .dot.reserva { background: #f3d7a0; }
.cal-legend .dot.renta { background: var(--accent); }
.cal-legend .dot.bloqueo { background: #cfd8dc; }

.rates {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid #eadfd3;
  border-radius: 10px;
  overflow: hidden;
}
.rates li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  font-size: 13px;
  border-top: 1px solid #eadfd3;
}
.rates li:first-child { border-top: 0; }
.rates span { color: var(--muted); }

@media (max-width: 720px) {
  .dates, .form-grid.two { grid-template-columns: 1fr; }
  .dates button { width: 100%; }
}
