/* Grosso's Barbershop · estilo dashboard claro con negro & dorado */
:root {
  --bg: #080808;
  --card: #141414;
  --card-2: #1e1e1e;
  --line: #2a2a2a;
  --ink: #0b0b0b;
  --ink-2: #1d1d1d;
  --gold: #d4b13a;
  --gold-ink: #d4b13a;
  --gold-soft: rgba(212, 177, 58, .14);
  --text: #f3efe6;
  --muted: #9a958b;
  --gss: #4a4a4a;
  --ok: #5fbf7f;
  --ok-soft: rgba(95, 191, 127, .14);
  --bad: #e2675c;
  --bad-soft: rgba(226, 103, 92, .14);
  --warn: #e0a64a;
  --warn-soft: rgba(224, 166, 74, .14);
  --shadow: 0 0 0 1px #222;
  --r: 24px;
  --r-sm: 16px;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 16px; }

/* ---------- Marca ---------- */
.brand { display: flex; align-items: center; gap: 12px; }
.logo { position: relative; font-family: var(--display); font-weight: 900; font-stretch: 125%; color: var(--gold); letter-spacing: .01em; line-height: 1; }
.logo::before {
  content: "GSS"; position: absolute; left: 50%; bottom: 38%; transform: translateX(-50%);
  font-stretch: 62%; font-weight: 800; font-size: 1.55em; color: var(--gss); opacity: .55; z-index: -1; letter-spacing: 0;
}
.logo-wrap { position: relative; isolation: isolate; display: inline-flex; flex-direction: column; align-items: center; }
.logo-sub { font-family: var(--serif); color: #8d8d8d; font-size: .42em; margin-top: .08em; letter-spacing: .02em; }
.badge-logo { width: 46px; height: 46px; border-radius: 14px; background: var(--ink); border: 1px solid #2a2a2a; display: grid; place-items: center; font-size: 9px; flex: 0 0 auto; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 40;
  margin: -16px -16px 16px; padding: calc(12px + env(safe-area-inset-top)) 18px 12px; background: rgba(13,13,13,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #222; }
.topbar .name { font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: 16px; letter-spacing: .02em; color: #fff; }
.topbar .name small { display: block; font-family: var(--body); font-weight: 500; font-stretch: 100%; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.nav { display: flex; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.active, .chip:hover { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.chip.sm { padding: 6px 11px; font-size: 12px; }

/* ---------- Bento / tarjetas ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { background: var(--card); border-radius: var(--r); padding: 22px; position: relative; overflow: hidden; min-width: 0; box-shadow: var(--shadow); }
/* Tarjeta destacada: negra con dorado (como la verde de la referencia) */
.card.gold { background: var(--gold); color: var(--ink); }
.card.gold .eyebrow { color: rgba(17,17,17,.7); }
.card.gold .muted, .card.gold .small { color: rgba(17,17,17,.72); }
.card.gold .price { color: var(--ink); }
.card.gold .btn { background: var(--ink); color: var(--gold); }
.card.gold .arrow { background: var(--ink); color: var(--gold); }
.card.gold .dots { --dot: rgba(17,17,17,.08); }
.card.photo { padding: 0; min-height: 230px; }
.card.photo img, .card.photo video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.card.photo .tag { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .row-2 { grid-row: span 2; }
/* Puntitos decorativos como en la referencia */
.dots { --dot: rgba(255,255,255,.045); position: absolute; right: 0; top: 0; width: 55%; height: 100%; pointer-events: none;
  background-image: radial-gradient(var(--dot) 2.5px, transparent 3px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }

.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.h1 { font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: clamp(30px, 5vw, 50px); line-height: 1; letter-spacing: -.01em; }
.h2 { font-family: var(--display); font-weight: 800; font-stretch: 105%; font-size: 22px; line-height: 1.15; }
.h3 { font-weight: 700; font-size: 16px; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold-ink); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.big-num { font-family: var(--display); font-weight: 800; font-stretch: 105%; font-size: 38px; line-height: 1.05; letter-spacing: -.01em; }

/* Cuadradito de ícono + etiqueta de % (tarjetas de números) */
.ico { width: 46px; height: 46px; border-radius: 14px; background: var(--card-2); display: grid; place-items: center; color: var(--gold); flex: 0 0 auto; border: 1px solid var(--line); }
.ico svg { width: 22px; height: 22px; }
.card.gold .ico { background: var(--ink); color: var(--gold); border-color: transparent; }
.stat-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.card.gold .stat-label { color: rgba(17,17,17,.75); }
.stat-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.stat-note { font-size: 11px; line-height: 1.3; color: var(--muted); padding-bottom: 6px; }
.card.gold .stat-note { color: rgba(17,17,17,.7); }
.card.gold .delta.up { background: var(--ink); color: var(--gold); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.delta.up { background: var(--gold); color: var(--ink); }
.delta.down { background: var(--bad); color: #fff; }
.delta.flat { background: var(--card-2); color: var(--muted); }

/* Hero del inicio */
.hero { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 360px; background: var(--ink); color: #fff; container-type: inline-size; }
.hero .logo-wrap { font-size: min(76px, 12.5cqi); margin-top: .9em; }
.hero p { max-width: 400px; color: #e6e1d6; }
.hero .eyebrow { color: var(--gold); }
.hero .btn { background: var(--gold); color: var(--ink); }
.hero .btn.ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.hero-photo { background:
  linear-gradient(180deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.35) 38%, rgba(10,10,10,.55) 62%, rgba(10,10,10,.94) 100%),
  url("/img/hero.jpg") 62% 18% / cover no-repeat, var(--ink); }
.hero-photo p { text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.hero-photo .logo-sub { color: #bdbdbd; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--gold); color: var(--ink); font-weight: 700; border-radius: 14px; padding: 14px 22px; transition: transform .15s ease, opacity .15s ease; }
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.97); }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.dark { background: var(--ink); color: var(--gold); }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--gold); opacity: 1; }
.btn.sm { padding: 9px 14px; font-size: 13px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.red { background: var(--bad); color: #fff; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.arrow { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; position: absolute; top: 16px; right: 16px; }
.card:has(.arrow) .eyebrow { padding-right: 40px; }
.linkbtn { color: var(--gold-ink); text-decoration: underline; font-size: 12px; margin-left: 4px; font-weight: 600; }

/* Listas */
.list { list-style: none; display: flex; flex-direction: column; }
.list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.price { font-weight: 800; color: var(--gold); white-space: nowrap; }
.hours-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: 0; }
.hours-row.today { font-weight: 800; }
.hours-row.today span:first-child::after { content: "Hoy"; margin-left: 8px; font-size: 10px; background: var(--gold); color: var(--ink); border-radius: 999px; padding: 2px 7px; vertical-align: 2px; }
.special-row { color: var(--gold-ink); font-size: 13px; gap: 10px; }
.special-row > span:last-child { text-align: right; white-space: nowrap; }
.closed { color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery img, .gallery video { border-radius: var(--r-sm); aspect-ratio: 3/4; object-fit: cover; width: 100%; display: block; background: #1e1e1e; }
.gallery .g-item { position: relative; }
.card.photo img, .card.photo video, .gallery img, .gallery video { cursor: zoom-in; }
.g-play { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; font-size: 10px; pointer-events: none; }
.barber-card img { object-position: 55% 20%; }
.barber-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.85)); pointer-events: none; }
.barber-info { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: #fff; }
.barber-info .eyebrow { margin-bottom: 2px; color: var(--gold); }

/* ---------- Reservar ---------- */
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps span { flex: 1; height: 5px; border-radius: 5px; background: var(--line); }
.steps span.on { background: var(--gold); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.opt { text-align: left; background: var(--card-2); border: 2px solid transparent; border-radius: var(--r-sm); padding: 16px; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s; }
.opt:hover { border-color: #3a3a3a; }
.opt.sel { border-color: var(--gold); background: var(--gold-soft); }
.opt .top { display: flex; justify-content: space-between; gap: 8px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scroll-snap-type: x mandatory; }
.day { flex: 0 0 68px; scroll-snap-align: start; background: var(--card-2); border: 2px solid transparent; border-radius: 16px; padding: 10px 4px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.day b { font-family: var(--display); font-size: 22px; line-height: 1.1; }
.day small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.day .dot { font-size: 10px; color: var(--ok); }
.day.sel { background: var(--gold); color: var(--ink); }
.day.sel small { color: rgba(17,17,17,.7); }
.day.sel .dot { color: var(--ink); }
.day[disabled] { opacity: .35; pointer-events: none; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { background: var(--card-2); border: 2px solid transparent; border-radius: 12px; padding: 11px 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: #3a3a3a; }
.slot.sel { background: var(--gold); color: var(--ink); }
.slot-group { font-size: 11px; color: var(--muted); margin: 14px 0 8px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.input { background: var(--card-2); border: 2px solid transparent; border-radius: 12px; padding: 12px 14px; width: 100%; outline: none; font-size: 16px; }
.input:focus { border-color: var(--gold); }
select.input { appearance: none; }
.summary { background: var(--card-2); border-radius: var(--r-sm); padding: 14px 16px; display: grid; gap: 6px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary div span:first-child { color: var(--muted); }
.ticket { text-align: center; padding: 34px 20px; }
.ticket .check { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; margin: 0 auto 16px; font-size: 30px; font-weight: 900; }
.code { font-family: var(--display); font-stretch: 125%; font-weight: 900; letter-spacing: .14em; font-size: 26px; color: var(--gold); }

/* ---------- Reservas del cliente ---------- */
.bk { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--card-2); border-radius: var(--r-sm); }
.bk + .bk { margin-top: 8px; }
.bk .date-box { flex: 0 0 58px; text-align: center; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 8px 0; }
.bk .date-box b { display: block; font-family: var(--display); font-size: 22px; line-height: 1; color: var(--gold); }
.bk .date-box small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); }
.bk .info { flex: 1; min-width: 0; }
.bk .info .h3 { line-height: 1.25; }
.bk-acts { display: flex; gap: 8px; justify-content: flex-end; margin: 8px 0 4px; }
.status { display: inline-block; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: capitalize; }
.status.confirmada { background: var(--gold-soft); color: var(--gold-ink); }
.status.completada { background: var(--ok-soft); color: var(--ok); }
.status.cancelada { background: var(--bad-soft); color: var(--bad); }
.status.ausente { background: var(--warn-soft); color: var(--warn); }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; font-size: 14px; }
.avatar { width: 22px; height: 22px; border-radius: 50%; display: inline-block; vertical-align: middle; margin: -4px 6px -4px -6px; }
.avatar.lg { width: 44px; height: 44px; margin: 0; }
#gbtn { min-height: 44px; }

/* Acceso al panel */
.panel-card { display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 12px; cursor: pointer; }
.panel-card .h2 { font-size: 26px; }
.panel-arrow { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-size: 24px; flex: 0 0 auto; }

/* Visor de fotos */
.lb { position: fixed; inset: 0; z-index: 100; background: #050505; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 12px 40px; animation: f .2s ease; }
.lb-media { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 0; position: relative; }
.lb-media img { max-width: 100%; max-height: 100%; border-radius: 14px; object-fit: contain; }
.lb-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lb-x { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; background: #1b1b1b; color: #fff; font-size: 18px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(27,27,27,.85); font-size: 26px; color: var(--gold); z-index: 2; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.lb-cap { margin-top: 12px; font-weight: 600; }
.lb-count { position: absolute; top: 22px; left: 18px; font-size: 13px; color: #999; }

/* Toast / modal */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--gold); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: all .25s ease; z-index: 120; max-width: calc(100% - 32px); text-align: center; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--bad); }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); display: none; align-items: flex-end; justify-content: center; z-index: 80; padding: 16px; }
.modal-bg.open { display: flex; }
.modal { width: 100%; max-width: 480px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
@media (min-width: 640px) { .modal-bg { align-items: center; } }

.foot { text-align: center; color: #8d8a83; font-size: 12px; padding: 30px 0 10px; }
.foot a { color: var(--gold); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt { margin-top: 14px; } .mt-lg { margin-top: 22px; }
.hidden { display: none !important; }
.spin { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: s .7s linear infinite; margin: 20px auto; }
@keyframes s { to { transform: rotate(360deg); } }
.fade { animation: f .3s ease; }
@keyframes f { from { opacity: 0; transform: translateY(6px); } }
.bar { height: 8px; border-radius: 8px; background: var(--card-2); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 8px; }
.card.gold .bar { background: rgba(17,17,17,.15); }
.card.gold .bar i { background: var(--ink); }

/* ---------- Doc (privacidad) ---------- */
.doc h2 { font-family: var(--display); font-size: 18px; margin: 22px 0 6px; }
.doc p, .doc li { color: #cfc9bd; font-size: 15px; }
.doc ul { padding-left: 20px; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-3, .span-4 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr 1fr; gap: 10px; }
  .span-2, .span-3, .span-4, .m-full { grid-column: 1 / -1; }
  .card { padding: 18px; }
  .hero { min-height: 300px; }
  .hero-photo { min-height: 460px; background-position: center, 58% 12%, 0 0; }
  .big-num { font-size: 32px; }
}
@media (max-width: 420px) { .topbar .name small { display: none; } }
@media (max-width: 340px) { .topbar .name { display: none; } }
.day[disabled] .dot { color: var(--muted); }
.card.gold .panel-arrow { background: var(--ink); color: var(--gold); }
.panel-pill { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 14px; padding: 13px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 8px; max-width: 560px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed #3a3a3a; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--muted); }
.stamp.on { background: var(--gold); border: 0; color: var(--ink); }
.stamp.gift { border-color: var(--gold); font-size: 16px; }
.card.gold .stamp { border-color: rgba(17,17,17,.35); color: rgba(17,17,17,.6); }
.card.gold .stamp.on { background: var(--ink); color: var(--gold); }
.card.gold .stamp.gift { border-color: var(--ink); }
