:root {
  --ink: #20231f;
  --muted: #71766f;
  --cream: #f6f2ea;
  --paper: #fffdfa;
  --sage: #697968;
  --sage-dark: #40513f;
  --gold: #b39a6b;
  --line: #dedbd3;
  --shadow: 0 24px 60px rgba(35, 42, 34, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  height: 82px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(64, 81, 63, .12);
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  color: var(--paper); background: var(--sage-dark); border-radius: 50%;
  font: italic 25px Georgia, serif;
}
.brand strong { display: block; font-size: 19px; letter-spacing: .23em; line-height: 1; }
.brand small { display: block; margin-top: 5px; font-size: 8px; letter-spacing: .48em; color: var(--muted); }
.location { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

main { overflow: hidden; }
.hero {
  position: relative;
  padding: 72px 20px 62px;
  text-align: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(179,154,107,.13), transparent 24%),
    radial-gradient(circle at 90% 70%, rgba(105,121,104,.12), transparent 25%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border: 1px solid rgba(105,121,104,.1); border-radius: 50%;
}
.hero::before { width: 360px; height: 360px; left: -190px; top: -170px; }
.hero::after { width: 260px; height: 260px; right: -130px; bottom: -150px; }
.eyebrow { color: var(--sage); font-size: 11px; font-weight: 700; letter-spacing: .22em; }
h1 { margin: 18px 0 16px; font: 400 clamp(44px, 7vw, 78px)/.98 Georgia, serif; letter-spacing: -.045em; }
h1 em { color: var(--sage); font-weight: 400; }
.hero > p { margin: 0 auto; color: var(--muted); font-size: 17px; }
.rules { display: flex; justify-content: center; gap: 10px; margin: 36px auto 0; }
.rules div {
  width: 130px; padding: 15px 12px 13px; border: 1px solid rgba(105,121,104,.2);
  border-radius: 14px; background: rgba(255,253,250,.66); backdrop-filter: blur(8px);
}
.rules strong { font: 700 23px Georgia, serif; }
.rules span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.rules b { display: block; margin-top: 7px; color: var(--sage-dark); font-size: 11px; letter-spacing: .08em; }

.simulator {
  max-width: 1180px; margin: 0 auto; padding: 72px 24px 90px;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(310px, .8fr); gap: 32px; align-items: start;
}
.selection-panel, .quote { background: var(--paper); border: 1px solid rgba(64,81,63,.12); border-radius: 22px; box-shadow: var(--shadow); }
.selection-panel { padding: 32px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.section-heading > div { display: flex; align-items: center; gap: 12px; }
.step { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
h2 { margin: 0; font: 400 27px Georgia, serif; }
.selected-count { color: var(--sage); font-size: 12px; font-weight: 700; }
.search input {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: #faf8f3; color: var(--ink); font: inherit; outline: none;
}
.search input:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(105,121,104,.12); }
.loading, .error { padding: 34px 10px; text-align: center; color: var(--muted); }
.error { color: #8b3838; }
.regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.region {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 64px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px;
  cursor: pointer; transition: .18s ease; background: #fff;
}
.region:hover { transform: translateY(-1px); border-color: #aab2a8; }
.region.selected { border-color: var(--sage); background: #f0f3ed; box-shadow: inset 0 0 0 1px var(--sage); }
.region input { position: absolute; opacity: 0; pointer-events: none; }
.region-name { font-size: 13px; font-weight: 650; line-height: 1.25; }
.region-price { white-space: nowrap; color: var(--sage-dark); font-size: 12px; font-weight: 800; }
.region-check {
  flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center;
  border: 1px solid #c7cbc4; border-radius: 6px; color: transparent; font-size: 12px;
}
.selected .region-check { color: #fff; background: var(--sage-dark); border-color: var(--sage-dark); }
.no-results { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 24px; }

.quote { position: sticky; top: 24px; padding: 30px; }
.quote > .step { display: block; margin-bottom: 8px; }
.quote h2 { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.empty-state { padding: 52px 10px 42px; text-align: center; color: var(--muted); }
.empty-state span { display: block; margin-bottom: 12px; color: var(--gold); font-size: 30px; }
.empty-state p { margin: 0; font-size: 13px; line-height: 1.6; }
.quote-items { margin: 20px 0; padding: 0; list-style: none; }
.quote-items li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--muted); font-size: 12px; }
.line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 13px; }
.discount { color: var(--sage-dark); }
.total { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.total span { color: var(--muted); font-size: 13px; }
.total strong { font: 700 31px Georgia, serif; color: var(--sage-dark); }
.installments { margin-top: 8px; color: var(--muted); text-align: right; font-size: 12px; }
.whatsapp {
  display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding: 16px 18px;
  border-radius: 12px; color: #fff; background: var(--sage-dark); text-decoration: none; font-weight: 750;
  box-shadow: 0 12px 25px rgba(64,81,63,.2); transition: .18s ease;
}
.whatsapp:hover { transform: translateY(-2px); background: #314231; }
.whatsapp span { font-size: 20px; }
.fine-print { margin: 14px 4px 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }

footer { padding: 34px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); border-top: 1px solid rgba(64,81,63,.12); }
footer strong { color: var(--ink); font: 400 16px Georgia, serif; }
footer span { font-size: 10px; letter-spacing: .08em; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .simulator { grid-template-columns: 1fr; padding-top: 42px; }
  .quote { position: static; }
}
@media (max-width: 560px) {
  .topbar { height: 70px; padding: 0 18px; }
  .location { display: none; }
  .hero { padding: 52px 18px 42px; }
  .hero > p { max-width: 310px; font-size: 15px; line-height: 1.5; }
  .rules { gap: 6px; }
  .rules div { width: 31%; padding-inline: 6px; }
  .simulator { padding: 28px 12px 58px; gap: 18px; }
  .selection-panel, .quote { padding: 22px 18px; border-radius: 17px; }
  .section-heading { align-items: flex-start; }
  .section-heading > div { align-items: flex-start; }
  .selected-count { padding-top: 5px; text-align: right; }
  h2 { font-size: 23px; }
  .regions { grid-template-columns: 1fr; }
}
