:root {
  --bg: #090909;
  --ink: #f6f1e7;
  --muted: #c9c2b4;
  --gold: #e4d0a0;
  --gold-deep: #b8924a;
  --line: rgba(228, 208, 160, 0.28);
  --cream: #f4efe6;
  --danger: #e0a090;
  --ok: #b7d3c2;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(228, 208, 160, 0.16), transparent 42%),
    radial-gradient(ellipse at 100% 80%, rgba(29, 78, 137, 0.12), transparent 32%);
}
body > * { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, .brand span, .ticket-brand, .monogram {
  font-family: "Cinzel", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}
h1 { font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.05; margin: 0 0 0.35em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.15; margin: 0 0 0.4em; }
p { margin: 0 0 0.9em; color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.wrap { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); }
.section-kicker {
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin: 0 0 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
  background: rgba(9, 9, 9, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand img, .hero-logo { mix-blend-mode: screen; }
.brand span { font-size: 1.15rem; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a.active, .nav a:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 1px;
  width: 22px;
  background: var(--gold);
  margin: 5px auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  letter-spacing: 0.03em;
}
.btn-gold {
  background: linear-gradient(180deg, #f0ddb0, #c6a15b);
  color: #1c140b;
  font-weight: 600;
}
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: rgba(228, 208, 160, 0.45);
}
.text-link { color: var(--gold); }

.hero {
  min-height: calc(100dvh - 70px);
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: 28px 20px 56px;
}
.hero-logo { width: min(440px, 88vw); height: auto; margin: 8px auto 10px; }
.hero-lead {
  max-width: 28ch;
  font-size: 1.25rem;
  font-weight: 300;
  color: #efe8da;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-place {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  text-align: left;
  margin: 34px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.55);
}
.hero-place strong { display: block; color: var(--ink); font-weight: 500; }
.hero-place small { color: var(--gold); letter-spacing: 0.04em; }
.pole {
  width: 16px;
  height: 72px;
  border-radius: 9px;
  border: 2px solid #dedede;
  background: repeating-linear-gradient(
    135deg,
    #f4f4f4 0 7px,
    #b42318 7px 14px,
    #f4f4f4 14px 21px,
    #1d4e89 21px 28px
  );
}
.pole-sm { width: 10px; height: 26px; border-width: 1px; }

.ficha {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ficha article { padding: 26px 22px 10px; }
.ficha article + article { border-left: 1px solid var(--line); }
.ficha h2 { font-size: 1.7rem; }

.band { padding: 78px 0; }
.place-grid, .split, .loyalty-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}
.map-frame {
  border: 1px solid var(--line);
  padding: 8px;
  background: #0c0c0c;
}
.map-frame iframe { width: 100%; height: 360px; border: 0; filter: grayscale(0.45) contrast(1.05); }
.steps-how {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.steps-how li {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
}
.steps-how strong {
  display: block;
  font-family: "Cinzel", serif;
  color: var(--gold);
  margin-bottom: 8px;
}

.story { padding: 54px 0 80px; max-width: 780px; }
.story-lead { font-size: 1.25rem; color: #efe8da; }
.chapter {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.ch-num { margin: 0; color: var(--gold); font-family: "Cinzel", serif; font-size: 1.2rem; }
.page-block { padding: 48px 0 80px; }
.page-head { margin-bottom: 28px; }

.board {
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 4px #090909, inset 0 0 0 5px rgba(228, 208, 160, 0.28);
  padding: 8px 18px;
  background: #100e0c;
}
.board-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dotted rgba(228, 208, 160, 0.25);
}
.board-row:last-child { border-bottom: 0; }
.board-row strong { display: block; color: var(--ink); font-weight: 500; }
.board-row small { color: var(--muted); }
.board-row span { color: var(--gold); font-family: "Cinzel", serif; white-space: nowrap; }

.chairs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.chair, .choice, .appt, .person, .ticket, .loyalty, .gift-banner {
  border: 1px solid var(--line);
  background: rgba(16, 14, 12, 0.8);
}
.chair, .choice {
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 14px;
  width: 100%;
  color: inherit;
}
.choice { margin-bottom: 10px; }
.choice.on, .day-chip.on, .time-chip.on { border-color: var(--gold); }
.choice small, .choice strong, .chair small, .chair strong { display: block; }
.choice em { margin-left: auto; font-style: normal; color: var(--gold); font-family: "Cinzel", serif; }
.monogram {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
}

.rule, .stamps { display: flex; flex-wrap: wrap; gap: 8px; }
.stamp {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}
.stamp.on { background: linear-gradient(180deg, #f0ddb0, #c6a15b); color: #1c140b; border-color: transparent; }
.stamp.gift {
  width: auto;
  min-width: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--cream);
  color: #1c140b;
  font-family: "Cinzel", serif;
}

.wizard { margin-top: 8px; }
.stepper {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  flex-wrap: wrap;
}
.stepper li {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8d877c;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
}
.stepper li.on { color: var(--gold); border-color: var(--gold); }
.stepper li.ok { color: var(--ink); }
.crumb { color: var(--gold); }
.day-scroller, .time-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.day-chip, .time-chip, .text-btn {
  background: #120f0c;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 14px;
}
.day-chip, .time-chip { min-width: 74px; padding: 10px 8px; }
.day-chip { display: grid; justify-items: center; }
.time-chip.shut { border-color: var(--gold); color: var(--gold); }
.slot-board { margin: 8px 0 22px; }
.slot-board .row-actions { margin-top: 12px; }
.day-chip strong { font-size: 1.15rem; }
button:disabled { opacity: 0.38; cursor: not-allowed; }
.back {
  background: none;
  border: 0;
  color: var(--gold);
  padding: 0 0 12px;
}
.field { display: grid; gap: 6px; margin: 12px 0; color: var(--muted); }
input, select, textarea {
  width: 100%;
  background: #12100e;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: inherit;
}
textarea { resize: vertical; min-height: 120px; }
.free-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--gold);
  margin: 12px 0;
}
.free-toggle input { width: auto; }
.free-toggle small { grid-column: 2; }
.error { color: var(--danger); }
.ok-note { color: var(--ok); }
.ticket {
  background:
    radial-gradient(circle at 0 78px, #090909 11px, transparent 12px),
    radial-gradient(circle at 100% 78px, #090909 11px, transparent 12px),
    var(--cream);
  color: #1c140b;
  padding: 22px 20px;
}
.ticket p, .ticket h2, .ticket dt { color: #1c140b; }
.ticket-brand { letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; margin: 0; }
.ticket-code { font-family: "Cinzel", serif; font-size: 1.3rem; }
.ticket dl { display: grid; gap: 8px; margin: 12px 0; }
.ticket dl > div {
  display: grid;
  grid-template-columns: 4.8rem 1fr;
  gap: 8px 12px;
  align-items: start;
  border-top: 1px dashed rgba(28, 20, 11, 0.25);
  padding-top: 8px;
}
.ticket dt { margin: 0; }
.ticket dd { margin: 0; font-weight: 600; text-align: right; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ticket .btn-ghost { color: #1c140b; border-color: rgba(28, 20, 11, 0.35); }

.app-stage {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0;
}
body[data-view="app"] .site-header,
body[data-view="app"] .site-footer { display: none; }
.app-aside h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); }
.aside-place { color: var(--gold); }
.app-frame {
  height: min(860px, calc(100dvh - 48px));
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #0c0c0c;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.app-top, .app-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.app-top a { color: var(--gold); text-decoration: none; }
.app-top strong { font-family: "Cinzel", serif; letter-spacing: 0.14em; }
.app-body { flex: 1; overflow: auto; padding: 16px; }
.app-tabs { border-bottom: 0; border-top: 1px solid var(--line); gap: 4px; }
.tab {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 8px 4px;
}
.tab.on { color: var(--gold); }
.loyalty, .gift-banner, .person, .appt { padding: 14px; margin-bottom: 12px; }
.gift-banner { background: var(--cream); color: #1c140b; }
.gift-banner strong, .gift-banner small { display: block; }
.gift-banner small { color: #5c5142; }
.loyalty-count { color: var(--ink); }
.mini-stamps { display: inline-flex; gap: 4px; }
.mini-stamps i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: block;
}
.mini-stamps i.on { background: var(--gold); }
.row-actions, .date-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.date-bar { justify-content: space-between; margin-bottom: 12px; }
.tag {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.appt.concluido { border-color: rgba(183, 211, 194, 0.55); }
.appt.cancelado { opacity: 0.55; }
.panel-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: start; }
.pin-gate { max-width: 420px; margin: 40px auto; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.footer-links { display: grid; gap: 6px; }
.footer-links a { color: var(--gold); text-decoration: none; }
.legal { width: min(1080px, calc(100% - 40px)); margin: 18px auto 0; font-size: 0.85rem; }

.mural-home, .mural-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.kind-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0 0 4px;
}
.kind-pick label {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--muted);
}
.kind-pick input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.kind-pick label:has(input:checked) {
  background: linear-gradient(180deg, #f0ddb0, #c6a15b);
  color: #1c140b;
  border-color: transparent;
}
.kind-pick label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.note {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 12px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.note p { margin: 0; }
.note-text { color: var(--ink); font-size: 1.05rem; line-height: 1.45; }
.note-by { color: var(--gold); font-size: 0.85rem; margin-top: 10px !important; }
.note .text-btn { margin-top: 8px; }
.note-critica { border-color: rgba(224, 160, 144, 0.7); }
.note-elogio { border-color: rgba(183, 211, 194, 0.7); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: fixed;
    inset: 69px 0 0 0;
    background: rgba(9, 9, 9, 0.97);
    flex-direction: column;
    padding: 24px;
    z-index: 6;
  }
  body.menu-open .nav { display: flex; }
  .ficha, .place-grid, .split, .loyalty-band, .mural-home, .mural-layout, .steps-how, .chairs, .panel-grid, .footer-grid, .app-stage {
    grid-template-columns: 1fr;
  }
  .ficha article + article { border-left: 0; border-top: 1px solid var(--line); }
  .app-stage { width: 100%; padding: 0; gap: 0; }
  .app-aside { display: none; }
  .app-frame { height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .chapter { grid-template-columns: 1fr; }
  .site-header .btn-gold { padding: 0.7rem 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
