/* El Corralito booking: shared tokens and components. Light theme locked, like the main site. */
:root {
  --cobalt: #1650b4;
  --cobalt-deep: #0f3a85;
  --cobalt-tint: #e8effa;
  --cream: #fbfaf7;
  --sand: #f3efe6;
  --sun: #f2a91d;
  --sun-tint: #fdf3dd;
  --ink: #14213d;
  --muted: #5a6275;
  --line: #e3e1da;
  --white: #ffffff;
  --ok: #18794e;
  --ok-tint: #e3f4ea;
  --warn: #9a6200;
  --bad: #b42318;
  --bad-tint: #fdecea;
  --wa: #0c8d4c;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 16px/1.5 'Instrument Sans', system-ui, sans-serif;
}
h1, h2, h3 { font-family: 'Bricolage Grotesque', system-ui, sans-serif; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 6vw, 40px); }
h2 { font-size: clamp(21px, 4.5vw, 26px); }
h3 { font-size: 18px; }
a { color: var(--cobalt); }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden { display: none !important; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar .in { max-width: 1040px; margin: auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 18px; }
.brand .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4.2' fill='%23f2a91d'/%3E%3Cg stroke='%23f2a91d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 2.8v2.4M12 18.8v2.4M2.8 12h2.4M18.8 12h2.4M5.5 5.5l1.7 1.7M16.8 16.8l1.7 1.7M5.5 18.5l1.7-1.7M16.8 7.2l1.7-1.7'/%3E%3C/g%3E%3C/svg%3E") center / 70% no-repeat; flex: none; }
.topbar .spacer { flex: 1; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--white); }
.lang button { border: 0; background: none; padding: 6px 11px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--cobalt); color: #fff; }

.wrap { max-width: 1040px; margin: auto; padding: 24px 16px 96px; }
.narrow { max-width: 640px; }

/* demo ribbon */
.demo-ribbon { background: var(--sun-tint); color: #6b4500; border-bottom: 1px solid #f0d9a6; font-size: 13.5px; text-align: center; padding: 7px 16px; }

/* cards & buttons */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 99px;
  padding: 13px 22px; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 48px;
  background: var(--cobalt); color: #fff; transition: transform .08s, background .15s;
}
.btn:hover { background: var(--cobalt-deep); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.ghost { background: var(--white); color: var(--cobalt); border: 1.5px solid var(--cobalt); }
.btn.ghost:hover { background: var(--cobalt-tint); }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.danger { background: var(--white); color: var(--bad); border: 1.5px solid #f1b8b2; }
.btn.wa { background: var(--wa); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; min-height: 36px; font-size: 14px; }

/* forms */
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.input, select.input, textarea.input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--white);
  min-height: 48px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-tint); }
.input.invalid { border-color: var(--bad); }
textarea.input { min-height: 90px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cobalt); flex: none; }

/* steps */
.steps { display: flex; gap: 6px; margin: 4px 0 22px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps i.on { background: var(--cobalt); }

/* guest count chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  min-width: 46px; height: 46px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--white);
  font-weight: 700; cursor: pointer; padding: 0 12px;
}
.chip[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

/* calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-nav { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; font-size: 18px; }
.cal-nav[disabled] { opacity: .35; cursor: default; }
.months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .months { grid-template-columns: 1fr; } .months .month:nth-child(2) { display: none; } }
.month h3 { text-align: center; font-size: 16px; }
.grid7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.grid7 .dow { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.day {
  aspect-ratio: 1 / 1; border: 0; background: none; border-radius: 10px; font-weight: 600; cursor: pointer;
  position: relative; font-size: 15px; max-height: 48px;
}
.day:hover:not([disabled]) { background: var(--cobalt-tint); }
.day[disabled] { color: #b9bcc5; cursor: default; }
.day.full { color: #b9bcc5; text-decoration: line-through; }
.day.in-range { background: var(--cobalt-tint); border-radius: 0; }
.day.start, .day.end { background: var(--cobalt); color: #fff; }
.day.start { border-radius: 10px 0 0 10px; }
.day.end { border-radius: 0 10px 10px 0; }
.day.start.end { border-radius: 10px; }
.day.today::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--sun); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* summary bar (sticky on phones) */
.sumbar {
  position: sticky; bottom: 0; background: var(--white); border-top: 1px solid var(--line); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; margin: 22px -16px -96px; z-index: 10;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.sumbar .txt { flex: 1; font-size: 14px; line-height: 1.35; }
.sumbar .txt b { font-size: 16px; }

/* room cards */
.rooms { display: grid; gap: 16px; }
.room { display: grid; grid-template-columns: 240px 1fr; overflow: hidden; padding: 0; }
@media (max-width: 640px) { .room { grid-template-columns: 1fr; } }
.room .ph {
  min-height: 170px; background: linear-gradient(135deg, var(--cobalt) 0%, #3a79d6 55%, var(--sun) 140%);
  background-size: cover; background-position: center; position: relative;
}
.room .ph .tag { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .92); border-radius: 99px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; }
.room .body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.room .facts { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 13px; background: var(--sand); border-radius: 99px; padding: 4px 10px; }
.price { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.price .amt { font-family: 'Bricolage Grotesque', sans-serif; font-size: 24px; font-weight: 700; }
.price .per { font-size: 13px; color: var(--muted); }

/* notices */
.note { border-radius: 12px; padding: 12px 14px; font-size: 14.5px; }
.note.info { background: var(--cobalt-tint); }
.note.warn { background: var(--sun-tint); color: #6b4500; }
.note.bad { background: var(--bad-tint); color: var(--bad); }
.note.ok { background: var(--ok-tint); color: var(--ok); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 12px; z-index: 100; max-width: calc(100% - 32px); box-shadow: var(--shadow);
}

/* key-value table */
.kv { width: 100%; border-collapse: collapse; }
.kv td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv td:first-child { color: var(--muted); padding-right: 12px; width: 42%; }
.kv tr:last-child td { border-bottom: 0; }
.kv .total td { font-weight: 700; color: var(--ink); }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--cobalt-tint); border-top-color: var(--cobalt); animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }
