/* Estância · site público de reservas (baseado no protótipo "Reservas Estancia") */
:root {
  --gold: #b29955;
  --line: rgba(255,255,255,0.14);
  --line-2: rgba(255,255,255,0.24);
  --muted: rgba(255,255,255,0.64);
  --muted-2: rgba(255,255,255,0.72);
}
* { box-sizing: border-box; }
body { margin: 0; background: #000; color: #fff; font-family: 'Jost', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #fff; }
input, textarea, button, select { font-family: inherit; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.42); }
button { font-family: inherit; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { max-width: 1280px; width: 100%; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Header */
.site-header { border-bottom: 1px solid rgba(255,255,255,0.12); position: sticky; top: 0; z-index: 20; background: #000; }
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-header img { height: 40px; width: auto; display: block; }
.site-nav { display: flex; gap: 28px; align-items: center; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav a { color: var(--muted-2); }
.site-nav a:hover, .site-nav a.on { color: #fff; }

/* Idioma e restaurante */
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); }
.lang-switch a { padding: 5px 9px; font-size: 12px; letter-spacing: 0.1em; color: var(--muted-2); }
.lang-switch a.on { background: var(--gold); color: #000; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.on:hover { color: #000; }
.venue-pick select { background: #000; color: #fff; border: 1px solid var(--line-2); padding: 6px 10px; font-size: 13px; letter-spacing: 0.04em; max-width: 260px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Steps */
.steps { padding-top: 28px; display: flex; gap: 32px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.step .n { font-weight: 500; }
.step .bar { width: 32px; height: 1px; background: currentColor; }
.step.done { color: #fff; }
.step.cur { color: var(--gold); }

/* Common */
.eyebrow { color: var(--gold); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.label-gold { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
h1.hero { margin: 0; font-size: 56px; line-height: 1.05; font-weight: 400; letter-spacing: -0.01em; }
h1.title { margin: 0; font-size: 48px; line-height: 1.1; font-weight: 400; }
.lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted-2); max-width: 520px; text-wrap: pretty; }
.text { margin: 0; font-size: 16px; color: var(--muted-2); line-height: 1.6; }
.small-note { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.56); }

.btn-gold { padding: 16px 40px; background: var(--gold); color: #000; border: 0; font-size: 15px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; display: inline-block; text-align: center; }
.btn-gold:hover { background: #fff; color: #000; }
.btn-gold.lg { padding: 18px 40px; }
.btn-gold.sm { padding: 14px 28px; font-size: 14px; letter-spacing: 0.1em; }
.btn-gold:disabled, .btn-gold.disabled { background: rgba(178,153,85,0.35); cursor: not-allowed; }
.btn-line { padding: 12px 22px; min-height: 44px; background: transparent; border: 1px solid #fff; color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn-line.dim { border-color: var(--line-2); color: var(--muted-2); }
.btn-line.dim:hover { color: #fff; border-color: #fff; }
.btn-line.gold { border-color: var(--gold); color: var(--gold); }
.btn-link { align-self: flex-start; background: transparent; border: 0; color: var(--gold); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; padding: 0; }

.chip { background: transparent; color: #fff; border: 1px solid var(--line-2); cursor: pointer; }
.chip:hover { border-color: rgba(255,255,255,0.5); }
.chip.sel, .chip.sel:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.chip.off { color: rgba(255,255,255,0.32); border: 1px dashed var(--line); text-decoration: line-through; cursor: not-allowed; }
.chip.off:hover { border-color: var(--line); }

/* Step 1 */
.grid-main { padding-top: 40px; padding-bottom: 140px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 64px; align-items: start; }
.col { display: flex; flex-direction: column; min-width: 0; }
.intro { display: flex; flex-direction: column; gap: 16px; }
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.row-inline { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.party-val { font-size: 22px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.sq { width: 44px; height: 44px; border: 1px solid var(--line-2); background: transparent; color: #fff; font-size: 20px; cursor: pointer; }
.sq:hover { border-color: var(--gold); color: var(--gold); }
.sq.sm { width: 36px; height: 36px; font-size: 16px; }
.sq:disabled { opacity: 0.3; cursor: default; }
.sq:disabled:hover { border-color: var(--line-2); color: #fff; }
.stepper .num { width: 40px; text-align: center; font-size: 20px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0; min-height: 64px; }
.day .wd { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.day .dn { font-size: 20px; font-weight: 500; }
.day.closed { opacity: 0.4; }
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.area { padding: 14px 16px; min-height: 48px; text-align: left; font-size: 15px; }
.svc-hours { font-size: 13px; color: rgba(255,255,255,0.5); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { padding: 12px 0; min-height: 48px; font-size: 16px; font-weight: 500; }
.empty-msg { font-size: 15px; color: var(--muted); padding: 8px 0; }
.loading { opacity: 0.5; pointer-events: none; }

.aside { display: flex; flex-direction: column; gap: 32px; position: sticky; top: 110px; min-width: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; font-size: 15px; line-height: 1.6; }
.info-grid > div { display: flex; flex-direction: column; gap: 6px; }
.info-grid .v { color: rgba(255,255,255,0.8); white-space: pre-line; }

.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #000; border-top: 1px solid var(--gold); }
.bottom-bar .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.bottom-bar .sum { display: flex; flex-direction: column; gap: 2px; }
.bottom-bar .sum span:last-child { font-size: 18px; }

.banner { margin-top: 24px; padding: 14px 18px; border: 1px solid var(--gold); color: #fff; font-size: 15px; }
.banner a { margin-left: 8px; }
.error-box { padding: 14px 18px; border: 1px solid #d9534f; color: #ffb3b0; font-size: 15px; }

/* Step 2 */
.grid-details { padding-top: 40px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 64px; align-items: start; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .ta { height: 52px; padding: 0 16px; background: transparent; border: 1px solid var(--line-2); color: #fff; font-size: 16px; outline: none; border-radius: 0; }
.field input:focus, .ta:focus { border-color: var(--gold); }
.field.err input { border-color: #d9534f; }
.field .msg { font-size: 13px; color: #ff8a86; text-transform: none; letter-spacing: 0; }
.ta { height: auto; min-height: 88px; padding: 14px 16px; font-size: 15px; resize: vertical; width: 100%; }
.check-row { display: flex; align-items: center; gap: 12px; background: transparent; border: 0; color: rgba(255,255,255,0.8); font-size: 15px; cursor: pointer; padding: 0; text-align: left; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-row .box { width: 22px; height: 22px; flex-shrink: 0; border: 1px solid var(--gold); color: #000; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.check-row input:checked + .box { background: var(--gold); }
.check-row input:checked + .box::after { content: '✓'; }
.policy { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--muted); }
.summary { border: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 110px; min-width: 0; }
.summary img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.summary .body { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.kv { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.kv span:first-child { color: rgba(255,255,255,0.6); }
.kv span:last-child { text-align: right; }

/* Step 3 */
.narrow { max-width: 780px; padding-top: 40px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.check-circle { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.res-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; padding: 20px; border: 1px solid var(--line); }
.res-card img { width: 160px; aspect-ratio: 1; object-fit: cover; display: block; }
.res-card .big { font-size: 24px; }
.acc { border: 1px solid var(--line); }
.acc > summary { list-style: none; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; cursor: pointer; }
.acc > summary::-webkit-details-marker { display: none; }
.acc .t { font-size: 20px; }
.acc .s { font-size: 14px; color: rgba(255,255,255,0.6); }
.acc .s.done { color: var(--gold); }
.acc .ic { color: var(--gold); font-size: 20px; }
.acc .ic::before { content: attr(data-closed); }
.acc[open] .ic::before { content: '−'; }
.acc .panel { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips .c { display: inline-flex; align-items: center; padding: 12px 18px; min-height: 44px; font-size: 15px; background: transparent; color: #fff; border: 1px solid var(--line-2); cursor: pointer; }
.chips.sm .c { padding: 8px 14px; min-height: 40px; font-size: 14px; }
.chips input:checked + .c { background: var(--gold); color: #000; border-color: var(--gold); }
.chips input:focus-visible + .c { outline: 2px solid #fff; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 10px 0; margin-bottom: -1px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: rgba(255,255,255,0.6); font-size: 15px; cursor: pointer; }
.tabs button.on { border-bottom-color: var(--gold); color: #fff; }
.group-title { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.56); }
.seats { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.seat { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.seat .av { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; background: transparent; color: rgba(255,255,255,0.6); border: 1px dashed rgba(255,255,255,0.3); }
.seat .av.me { background: var(--gold); color: #000; border: 1px solid var(--gold); }
.seat span:last-child { font-size: 13px; color: var(--muted); }
.info-rows { display: flex; flex-direction: column; }
.info-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 32px; padding: 24px 0; border-top: 1px solid var(--line); }
.info-row .label { color: var(--gold); }
.info-row .c2 { display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.8); grid-column: span 2; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.map-card { border: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.map-card .map { min-height: 220px; background: #111; }
.map-card iframe { width: 100%; height: 100%; min-height: 220px; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9); display: block; }
.map-card .body { padding: 28px; display: flex; flex-direction: column; gap: 16px; }

.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal .box { max-width: 440px; width: 100%; background: #0c0c0c; border: 1px solid rgba(255,255,255,0.18); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.modal h2 { margin: 0; font-size: 28px; font-weight: 400; }
.btn-white { padding: 14px 24px; background: #fff; color: #000; border: 0; font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.btn-ghost { padding: 14px 24px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--gold); color: #000; padding: 12px 22px; font-size: 14px; z-index: 60; }

/* Consentimento de cookies */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 760px; margin: 0 auto; background: #0c0c0c; border: 1px solid var(--gold); padding: 16px 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,0.85); }
.consent[hidden] { display: none; }
.consent .btns { display: flex; gap: 8px; }
.consent .btn-white, .consent .btn-ghost { padding: 10px 18px; font-size: 13px; }

/* Survey stars */
.rate { display: flex; gap: 6px; flex-wrap: wrap; }
.rate label { position: relative; }
.rate input { position: absolute; opacity: 0; }
.rate .c { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); cursor: pointer; font-size: 15px; }
.rate input:checked + .c { background: var(--gold); color: #000; border-color: var(--gold); }

.site-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,0.12); }
.site-footer .wrap { padding-top: 24px; padding-bottom: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.5); }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  h1.hero { font-size: 40px; }
  h1.title { font-size: 36px; }
  .site-nav { gap: 10px 16px; font-size: 12px; flex-wrap: wrap; }
  .res-card { grid-template-columns: 1fr; }
  .res-card img { width: 100%; aspect-ratio: 16/9; }
  .info-row .c2 { grid-column: auto; }
  .aside { position: static; }
  .days { gap: 4px; }
  .day .dn { font-size: 17px; }
}
