:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --card: #161514;
  --line: #2a2620;
  --gold: #d4a64a;
  --gold-light: #f1d48a;
  --gold-dark: #9c7428;
  --gold-grad: linear-gradient(135deg, #f1d48a 0%, #d4a64a 45%, #9c7428 100%);
  --text: #efe9de;
  --muted: #9a9284;
  --danger: #e06a5a;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: radial-gradient(ellipse at top, #1a1712 0%, var(--bg) 55%) fixed;
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

/* HERO */
.hero { display: flex; justify-content: center; padding: max(env(safe-area-inset-top), 8px) 16px 0; }
.hero-logo { width: 100%; max-width: 420px; height: auto; display: block;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at center, #000 60%, transparent 100%); }

/* TABS */
.tabs { display: flex; gap: 6px; max-width: 560px; margin: 0 auto 8px; padding: 4px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; width: calc(100% - 32px); }
.tab { flex: 1; padding: 11px 8px; border-radius: 999px; font-size: 14px; font-weight: 500;
  letter-spacing: .5px; color: var(--muted); transition: .2s; }
.tab.active { background: var(--gold-grad); color: #1a1408; font-weight: 600; }

main { max-width: 560px; margin: 0 auto; padding: 12px 16px 24px; }
.panel { display: none; }
.panel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.title { font-family: "Cinzel", serif; font-weight: 700; font-size: 20px; letter-spacing: 1px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 8px 0 14px; }
.hint { color: var(--muted); font-size: 13px; margin: -6px 0 14px; line-height: 1.5; }

/* STEPS */
.steps { list-style: none; display: flex; justify-content: space-between; margin: 10px 0 18px; position: relative; }
.steps::before { content: ""; position: absolute; top: 14px; left: 12%; right: 12%; height: 1px; background: var(--line); }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); position: relative; }
.steps li span { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.steps li.active, .steps li.done { color: var(--gold-light); }
.steps li.active span { background: var(--gold-grad); color: #1a1408; border-color: transparent; }
.steps li.done span { border-color: var(--gold); color: var(--gold); }
.steps.hidden { display: none; }

.step-view { display: none; }
.step-view.active { display: block; animation: fade .3s ease; }

/* SERVICES */
.services { display: grid; gap: 10px; }
.service { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  text-align: left; padding: 16px 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); transition: .2s; }
.service:hover, .service:focus-visible { border-color: var(--gold-dark); outline: none; }
.service.selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.service .name { font-weight: 500; font-size: 15px; }
.service .dur { color: var(--muted); font-size: 12px; margin-top: 3px; }
.service .price { font-family: "Cinzel", serif; font-weight: 700; font-size: 18px; color: var(--gold-light); white-space: nowrap; }

/* DAYS */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.day { padding: 12px 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; transition: .2s; }
.day .wd { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.day .dn { font-family: "Cinzel", serif; font-size: 22px; font-weight: 700; }
.day .mo { font-size: 11px; color: var(--muted); text-transform: lowercase; }
.day:hover:not(:disabled) { border-color: var(--gold-dark); }
.day.selected { background: var(--gold-grad); border-color: transparent; color: #1a1408; }
.day.selected .wd, .day.selected .mo { color: #3a2c10; }
.day:disabled { opacity: .3; cursor: not-allowed; }

/* SLOTS */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { padding: 12px 4px; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  font-weight: 500; font-size: 15px; transition: .2s; }
.slot:hover { border-color: var(--gold); color: var(--gold-light); }
.slot.selected { background: var(--gold-grad); color: #1a1408; border-color: transparent; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; border: 1px dashed var(--line);
  border-radius: var(--radius); font-size: 14px; line-height: 1.6; }

/* SUMMARY */
.summary { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; display: grid; gap: 6px; font-size: 14px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; }
.summary .row b { font-weight: 500; color: var(--muted); }
.summary .row span { text-align: right; }
.summary .total span { font-family: "Cinzel", serif; font-weight: 700; color: var(--gold-light); font-size: 16px; }

/* FORM */
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); letter-spacing: .3px; }
input[type="text"], input[type="tel"] { width: 100%; padding: 14px 16px; font: inherit; font-size: 16px;
  color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; outline: none; transition: .2s; }
input:focus { border-color: var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; }
.check input { accent-color: var(--gold); width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; }
.error { color: var(--danger); font-size: 13px; min-height: 1em; }

/* BUTTONS */
.btn { display: block; width: 100%; text-align: center; text-decoration: none; padding: 15px 18px;
  border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: .5px; transition: .2s; }
.btn.primary { background: var(--gold-grad); color: #1a1408; box-shadow: 0 6px 20px rgba(212,166,74,.18); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border: 1px solid var(--line); color: var(--muted); margin-top: 10px; }
.btn.ghost:hover { border-color: var(--gold-dark); color: var(--gold-light); }
.btn.small { padding: 9px 14px; font-size: 13px; width: auto; display: inline-block; margin: 0; }
.nav-buttons { margin-top: 18px; }
.nav-buttons.hidden { display: none; }

/* DONE */
.done { text-align: center; }
.done .summary { text-align: left; }
.done-icon { width: 64px; height: 64px; margin: 6px auto 4px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: #1a1408; font-size: 30px; font-weight: 700; }

/* MY BOOKINGS */
.booking { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px; display: grid; gap: 8px; }
.booking.past { opacity: .5; }
.booking .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.booking .when { font-family: "Cinzel", serif; font-weight: 700; color: var(--gold-light); }
.booking .svc { font-size: 14px; }
.booking .meta { color: var(--muted); font-size: 12px; }
.booking .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge.cancel { color: var(--danger); border-color: rgba(224,106,90,.4); }

/* FOOTER */
.footer { text-align: center; padding: 10px 16px 30px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.footer .small { font-size: 11px; opacity: .7; }
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 260px; margin: 0 auto 12px; }
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dark), transparent); }
.divider i { color: var(--gold); font-style: normal; font-size: 12px; }
.footer a { color: var(--gold-light); text-decoration: none; }
.wa-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.wa-icon { width: 20px; height: 20px; color: #25d366; flex-shrink: 0; }

/* MAPA */
.map-box { max-width: 560px; margin: 0 auto 18px; display: grid; gap: 10px; }
.map-address { display: flex; align-items: flex-start; justify-content: center; gap: 8px; color: var(--text); font-size: 13px; line-height: 1.5; }
.map-address b { font-family: "Cinzel", serif; color: var(--gold-light); letter-spacing: .5px; }
.pin-icon { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.map-frame { width: 100%; height: 220px; border: 1px solid var(--gold-dark); border-radius: var(--radius);
  filter: grayscale(.35) contrast(1.05); background: var(--card); }
.map-btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; justify-self: center; }
.footer .map-btn { color: var(--gold-light); }

/* TOAST */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: #1d1a15; border: 1px solid var(--gold-dark); color: var(--text); padding: 12px 18px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
