:root {
  --black: #0e0d0c;
  --ink: #1b1917;
  --gold: #b8955a;
  --gold-2: #d6b98a;
  --gold-soft: #f3ead9;
  --cream: #f7f2ea;
  --paper: #fffdf9;
  --line: #e7dfd2;
  --muted: #7a7166;
  --ok: #3f7d5a;
  --bad: #b04a3c;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --r: 14px;
  --shadow: 0 20px 60px -20px rgba(20, 15, 5, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
[hidden] { display: none !important; }

.demo-ribbon { background: var(--gold-soft); color: #6b5530; font-size: 12px; text-align: center; padding: 6px 16px; letter-spacing: .02em; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 22px; font-size: 14px; font-weight: 500; letter-spacing: .02em; text-decoration: none; transition: .2s; white-space: nowrap; }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a6834a; }
.btn-gold:disabled { background: #d8cdb9; cursor: not-allowed; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 16px; display: grid; place-items: center; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px max(16px, calc((100% - 1160px) / 2)); background: rgba(14,13,12,.92); backdrop-filter: blur(10px); color: #fff; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { height: 52px; width: auto; display: block; }
.footer .logo { height: 54px; }
.mono { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -.02em; color: var(--gold-2); line-height: 1; border: 1px solid var(--gold); padding: 6px 8px 4px; }
.brand-txt { font-size: 12px; line-height: 1.2; letter-spacing: .04em; color: #eee; }
.brand-txt b { color: var(--gold-2); font-weight: 600; }
.brand-txt small { display: block; font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: #aaa; }
.nav-links { display: flex; gap: 26px; font-size: 14px; }
.nav-links a, .nav-links button { text-decoration: none; color: #ddd; }
.nav-links a:hover, .nav-links button:hover { color: var(--gold-2); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 88vh; display: grid; align-items: center; color: #fff; overflow: hidden;
  background: radial-gradient(ellipse at 75% 30%, #5a4426 0%, transparent 55%), radial-gradient(ellipse at 10% 90%, #3a2a17 0%, transparent 50%), var(--black); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 88%; opacity: .32; filter: grayscale(.55) sepia(.35) brightness(.85); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,13,12,.92) 0%, rgba(14,13,12,.7) 45%, rgba(14,13,12,.35) 100%); }
.hero-inner { position: relative; z-index: 1; width: min(1160px, 100% - 32px); margin-inline: auto; padding: 80px 0; }
.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8vw, 104px); line-height: .95; margin: 0 0 22px; }
.hero h1 em { color: var(--gold-2); }
.lead { font-size: 18px; max-width: 520px; color: #d8d2c8; margin: 0 0 32px; font-weight: 300; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 36px; list-style: none; padding: 0; margin: 48px 0 0; }
.hero-proof b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--gold-2); }
.hero-proof span { font-size: 12px; color: #aaa; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- pasos ---------- */
.steps { background: var(--ink); color: #fff; padding: 36px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps-grid span { font-family: var(--serif); color: var(--gold); font-size: 30px; }
.steps-grid h3 { margin: 4px 0 4px; font-weight: 500; font-size: 17px; }
.steps-grid p { margin: 0; color: #aaa; font-size: 14px; }

/* ---------- secciones ---------- */
.section { padding: 96px 0; }
.section.dark { background: var(--black); color: #fff; }
.section.cream { background: var(--cream); }
.title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 auto 36px; max-width: 520px; }

.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 18px; font-size: 14px; color: var(--ink); }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.cat-intro { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: stretch; background: var(--cream); border-radius: var(--r); padding: 16px; margin-bottom: 20px; animation: fade .3s; }
.cat-media { position: relative; border-radius: 10px; overflow: hidden; min-height: 220px; background: linear-gradient(150deg, #d9bf94, #8a6a40 55%, #2b2016); display: grid; place-items: center; }
.cat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-icon { font-size: 56px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
.cat-text { padding: 6px 8px 6px 0; }
.cat-text h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0 0 8px; }
.cat-text > p { margin: 0 0 14px; color: #4d463d; }
.cat-text dl { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin: 0 0 14px; }
.cat-text dt { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: 2px; }
.cat-text dd { margin: 0; font-size: 14px; }
.cat-tip { margin: 0; font-size: 14px; background: #fff; border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.cat-hint { font-size: 13px; color: var(--muted); margin: -4px 0 10px; }
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.svc { display: flex; align-items: center; gap: 16px; text-align: left; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: .2s; width: 100%; color: var(--ink); }
.svc:hover { border-color: var(--gold); }
.svc.on { border-color: var(--gold); background: var(--gold-soft); }
.svc-info { flex: 1; min-width: 0; }
.svc-info b { display: block; font-weight: 500; font-size: 15px; }
.svc-info small { color: var(--muted); font-size: 13px; }
.svc-price { text-align: right; white-space: nowrap; }
.svc-price b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.svc-price small { color: var(--muted); font-size: 12px; }
.svc-check { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; font-size: 14px; color: transparent; transition: .2s; }
.svc.on .svc-check { background: var(--gold); border-color: var(--gold); color: #fff; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.member { border: 1px solid #2c2925; border-radius: var(--r); padding: 32px 24px; text-align: center; }
.avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-family: var(--serif); font-size: 30px; color: var(--gold-2); background: #24201b; border: 1px solid var(--gold); }
.member h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0; }
.member p { color: #9a9288; margin: 4px 0 18px; font-size: 14px; }
.member .btn { font-size: 13px; padding: 9px 18px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 40px 0 32px; }
.gallery figure { margin: 0; position: relative; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(160deg, #c9a878, #6e5332 60%, #2b2016); }
.gallery figure:nth-child(2n) { background: linear-gradient(160deg, #e7d2b0, #a07a4c 60%, #4a3520); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events: none; }
.gallery figcaption { z-index: 1; position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,.5); }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.reviews blockquote { margin: 0; background: #fff; padding: 28px; border-radius: var(--r); font-family: var(--serif); font-size: 21px; line-height: 1.35; }
.reviews cite { display: block; margin-top: 14px; font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--muted); }

.cta-band { background: var(--gold); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 50px); margin: 0 0 6px; }
.cta-band p { margin: 0 0 24px; opacity: .9; }
.cta-band .btn-gold { background: var(--black); }

.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.addr { font-size: 17px; margin: 0 0 6px; }
.tel { font-family: var(--serif); font-size: 28px; text-decoration: none; color: var(--gold); }
.hours { width: 100%; max-width: 380px; border-collapse: collapse; margin: 18px 0 26px; font-size: 15px; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }
.hours tr.closed td:last-child { color: var(--muted); }
.hours tr.today td { font-weight: 600; }
.contact-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.map { border-radius: var(--r); overflow: hidden; min-height: 380px; background: var(--cream); }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }

.footer { background: var(--black); color: #888; padding: 36px 0; font-size: 13px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a { color: #bbb; }

/* ---------- carrito fijo ---------- */
.cartbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 20px; background: var(--black); color: #fff; padding: 10px 10px 10px 22px; border-radius: 999px; box-shadow: var(--shadow); width: min(480px, calc(100% - 32px)); justify-content: space-between; }
.cartbar b { display: block; font-size: 14px; font-weight: 500; }
.cartbar span { font-size: 13px; color: var(--gold-2); }

/* ---------- modales ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(14,13,12,.55); backdrop-filter: blur(3px); animation: fade .2s; }
.modal-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(980px, calc(100% - 32px)); max-height: calc(100% - 40px); background: var(--paper); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); animation: pop .25s ease; }
.modal-panel.small { width: min(480px, calc(100% - 32px)); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; text-align: center; }
.modal-head > div { flex: 1; text-align: center; }
.step-label { margin: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.progress { height: 3px; background: var(--line); }
.progress span { display: block; height: 100%; width: 25%; background: var(--gold); transition: width .3s; }
.book-body { display: grid; grid-template-columns: 1fr 300px; flex: 1; min-height: 0; }
.book-main { padding: 22px; overflow-y: auto; }
.book-summary { border-left: 1px solid var(--line); padding: 22px; background: var(--cream); overflow-y: auto; }
.modal-foot { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fff; }
.foot-total span { display: block; font-size: 12px; color: var(--muted); }
.foot-total b { font-family: var(--serif); font-size: 24px; }

.cat-title { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.cat-title:first-child { margin-top: 0; }
.book-main .svc-list { grid-template-columns: 1fr; gap: 8px; }
.book-main .svc { padding: 14px 16px; }

.sum-title { font-family: var(--serif); font-size: 22px; margin: 0 0 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sum-row small { display: block; color: var(--muted); font-size: 12px; }
.sum-meta { font-size: 14px; margin: 14px 0 0; display: grid; gap: 6px; }
.sum-meta div { display: flex; gap: 8px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ink); }
.sum-total b { font-family: var(--serif); font-size: 28px; }
.sum-empty { color: var(--muted); font-size: 14px; }
.sum-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

.staff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.staff-opt { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-align: left; color: var(--ink); }
.staff-opt.on { border-color: var(--gold); background: var(--gold-soft); }
.staff-opt .avatar { width: 48px; height: 48px; font-size: 18px; margin: 0; background: var(--ink); }
.staff-opt b { display: block; font-weight: 500; }
.staff-opt small { color: var(--muted); font-size: 13px; }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.day { flex: none; width: 64px; padding: 10px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; color: var(--ink); }
.day small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.day b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.1; }
.day i { display: block; font-style: normal; font-size: 10px; color: var(--muted); }
.day.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.day.on small, .day.on i { color: var(--gold-2); }
.day:disabled { opacity: .35; cursor: not-allowed; }
.month-label { font-size: 14px; color: var(--muted); margin: 0 0 10px; text-transform: capitalize; }
.slot-group { margin-top: 20px; }
.slot-group h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { padding: 10px 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; color: var(--ink); }
.slot:hover { border-color: var(--gold); }
.slot.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.no-slots { padding: 30px; text-align: center; color: var(--muted); background: var(--cream); border-radius: var(--r); margin-top: 16px; }

.form { display: grid; gap: 14px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold-2); border-color: var(--gold); }
.field .err { color: var(--bad); font-size: 12px; margin-top: 4px; display: none; }
.field.invalid input { border-color: var(--bad); }
.field.invalid .err { display: block; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; cursor: pointer; }
.chip input { accent-color: var(--gold); margin: 0; }
.field label.chip { display: inline-flex; margin: 0; font-weight: 400; }
.chip:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--gold); }
.policy { font-size: 13px; background: var(--cream); padding: 12px 14px; border-radius: 10px; color: #5f574c; }

.confirm { text-align: center; padding: 10px 0; }
.confirm-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 34px; display: grid; place-items: center; margin: 0 auto 16px; animation: pop2 .4s ease; }
@keyframes pop2 { from { transform: scale(.4); opacity: 0; } }
.confirm h3 { font-family: var(--serif); font-size: 34px; font-weight: 400; margin: 0 0 6px; }
.code { display: inline-block; font-family: ui-monospace, monospace; font-size: 26px; letter-spacing: .12em; background: var(--ink); color: var(--gold-2); padding: 10px 20px; border-radius: 10px; margin: 14px 0 6px; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0; }
.reminder-preview { text-align: left; max-width: 440px; margin: 10px auto 0; }
.reminder-preview p { font-size: 12px; color: var(--muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .14em; }
.wa-bubble { background: #dcf8c6; color: #111; border-radius: 12px 12px 12px 2px; padding: 12px 14px; font-size: 14px; position: relative; }
.wa-bubble time { display: block; text-align: right; font-size: 11px; color: #667; margin-top: 4px; }

/* ---------- gestionar ---------- */
.manage-body { padding: 22px; overflow-y: auto; }
.appt-card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: #fff; margin-bottom: 14px; }
.appt-card h4 { margin: 0 0 4px; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.appt-card .meta { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.appt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.badge { display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--gold-soft); color: #7a5f30; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.badge.cancelada { background: #f6dfdb; color: var(--bad); }
.badge.completada { background: #e1efe6; color: var(--ok); }
.badge.no-show { background: #eee; color: #555; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; background: #fbefe0; color: #7a5420; margin: 10px 0; }
.alert.ok { background: #e3f1e8; color: var(--ok); }
.hint { font-size: 13px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; z-index: 90; transition: .3s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-media img { opacity: .28; }
  .hero::after { background: linear-gradient(180deg, rgba(14,13,12,.6), rgba(14,13,12,.85)); }
  .svc-list, .team, .reviews { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .cat-intro { grid-template-columns: 1fr; gap: 14px; }
  .cat-media { min-height: 160px; }
  .cat-text dl { grid-template-columns: 1fr 1fr; }
  .cat-text dl div:first-child { grid-column: 1 / -1; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding-bottom: 2px; }
  .tab { flex: none; }
  .steps-grid { grid-template-columns: 1fr; gap: 18px; }
  .book-body { grid-template-columns: 1fr; }
  .book-summary { display: none; }
  .modal-foot { display: flex; }
  .modal-panel { top: auto; bottom: 0; transform: translateX(-50%); width: 100%; max-height: 94%; border-radius: 20px 20px 0 0; animation: up .25s ease; }
  @keyframes up { from { transform: translate(-50%, 40px); opacity: 0; } }
  .staff-grid, .form .row2 { grid-template-columns: 1fr; }
  .hero-proof { gap: 22px; }
  .section { padding: 72px 0; }
}
@media (min-width: 901px) {
  .book-summary .btn { margin-top: 18px; }
}
@media (max-width: 520px) {
  .brand-txt { display: none; }
  .logo { height: 38px; }
  .nav .btn { padding: 10px 16px; font-size: 13px; }
}
