/* =========================================================
   Barbería Filo — sitio público (tema oscuro + dorado)
   ========================================================= */
:root {
  --bg: #0F0E0C;
  --surface: #1A1815;
  --surface-2: #24211C;
  --border: #322D26;
  --text: #F3EDE2;
  --muted: #A69E90;
  --gold: #C9A227;
  --gold-2: #E2C15A;
  --gold-ink: #1A1408;
  --ok: #7FC8A0;  --ok-bg: rgba(127,200,160,.12);
  --err: #EF8A7A; --err-bg: rgba(239,138,122,.12);
  --warn: #E9C46A; --warn-bg: rgba(233,196,106,.12);
  --info: #8EC5E8; --info-bg: rgba(142,197,232,.12);
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-full: 999px;
  --head: 'Oswald', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-2); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; letter-spacing: .01em; line-height: 1.15; margin: 0; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; padding-top: 40px; padding-bottom: 64px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.gold { color: var(--gold-2); }
[hidden] { display: none !important; }
.material-symbols-outlined { font-size: 20px; vertical-align: middle; user-select: none; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r-full); border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-outline { background: transparent; color: var(--gold-2); border-color: var(--gold); }
.btn-outline:hover { background: rgba(201,162,39,.12); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-danger { background: transparent; color: var(--err); border-color: rgba(239,138,122,.4); }
.btn-danger:hover { background: var(--err-bg); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn.is-loading { opacity: .6; cursor: wait; }

/* ---------- Barra demo ---------- */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 8px 14px; flex-wrap: wrap; padding: 8px 16px; background: #2A2312; color: var(--gold-2); font-size: .82rem; text-align: center; }
.demo-bar a { color: var(--text); font-weight: 600; }
.demo-bar-link { text-decoration: none; border-bottom: 1px dashed var(--gold); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(15,14,12,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--head); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .04em; }
.brand img { border-radius: 10px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 8px 12px; font-weight: 500; border-radius: var(--r-full); }
.main-nav a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 80px; background: radial-gradient(900px 420px at 80% 10%, rgba(201,162,39,.16), transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); text-transform: uppercase; }
.lead { color: var(--muted); font-size: 1.12rem; margin: 18px 0 28px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 10px 22px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.hero-facts li { display: flex; align-items: center; gap: 6px; }
.hero-facts .material-symbols-outlined { color: var(--gold); }
.hero-art { position: relative; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.pole { position: absolute; left: 12%; top: 0; bottom: 0; width: 46px; border-radius: 24px; overflow: hidden; border: 4px solid #3a342b; box-shadow: 0 0 40px rgba(201,162,39,.15); }
.pole-stripes { position: absolute; inset: -60px 0; background: repeating-linear-gradient(-45deg, #b83a2e 0 16px, #f3ede2 16px 32px, #2a5a9a 32px 48px, #f3ede2 48px 64px); animation: pole 3s linear infinite; }
@keyframes pole { to { transform: translateY(60px); } }
.hero-card { position: relative; margin-left: 20%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 24px; width: min(320px, 80%); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.hero-card-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; }
.hero-card-head .material-symbols-outlined { color: var(--ok); }
.hero-card-time { font-family: var(--head); font-size: 1.5rem; margin: 8px 0 14px; }
.hero-card-avatars { display: flex; }
.hero-card-avatars .avatar { margin-right: -8px; border: 2px solid var(--surface); }
@media (prefers-reduced-motion: reduce) { .pole-stripes { animation: none; } html { scroll-behavior: auto; } }

.avatar { --c: var(--gold); width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 22%, var(--surface-2)); color: var(--c); font-weight: 700; font-size: .9rem; flex-shrink: 0; border: 1.5px solid color-mix(in srgb, var(--c) 55%, transparent); }
.avatar-lg { width: 76px; height: 76px; font-size: 1.5rem; font-family: var(--head); }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2, .location h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); text-transform: uppercase; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.price-card h3 { color: var(--gold); text-transform: uppercase; font-size: 1.05rem; letter-spacing: .1em; margin-bottom: 8px; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-row { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--border); color: var(--text); text-decoration: none; }
.price-list li:last-child .price-row { border-bottom: 0; }
.price-row:hover .price-name { color: var(--gold-2); }
.price-name { font-weight: 600; }
.price-desc { color: var(--muted); font-size: .84rem; }
.price-dots { flex: 1; }
.price-amount { font-family: var(--head); font-size: 1.15rem; color: var(--gold-2); white-space: nowrap; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.team-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.team-card h3 { font-size: 1.3rem; margin-top: 10px; }
.team-title { color: var(--gold); margin: 0; font-size: .9rem; font-weight: 600; }
.team-card p.small { margin: 6px 0 4px; flex: 1; }
.team-days { display: flex; gap: 4px; margin: 6px 0 14px; }
.team-days .day { width: 26px; height: 26px; border-radius: 50%; font-size: .68rem; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: #6b6458; }
.team-days .day.on { background: rgba(201,162,39,.18); color: var(--gold-2); font-weight: 700; }

.location { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; margin-top: 18px; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--border); text-align: left; font-weight: 500; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.today th, .hours tr.today td { color: var(--gold-2); font-weight: 700; }
.location-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; }
.location-icon { font-size: 36px; color: var(--gold); }
.location-card h3 { font-size: 1.4rem; margin: 8px 0; }
.location-card p { margin: 4px 0; color: var(--muted); }
.location-card .btn { margin-top: 14px; }

.cta { padding: 0 0 84px; }
.cta-inner { text-align: center; background: linear-gradient(135deg, #2a2312, #15120c); border: 1px solid #4a3c17; border-radius: var(--r-lg); padding: 56px 24px; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; }
.cta p { color: var(--muted); margin: 10px 0 26px; }

.site-footer { border-top: 1px solid var(--border); padding: 40px 0 24px; background: #0b0a09; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { margin: 8px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .82rem; color: #7d7568; }

/* ---------- Reserva ---------- */
.booking { padding-top: 32px; padding-bottom: 72px; }
.booking-head h1 { font-size: 2.2rem; text-transform: uppercase; }
.booking-head p { margin: 8px 0 0; }
.steps { list-style: none; padding: 0; margin: 18px 0 26px; display: flex; gap: 8px; flex-wrap: wrap; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .88rem; font-weight: 600; }
.steps li span { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.steps li.active { color: var(--text); border-color: var(--gold); }
.steps li.active span { background: var(--gold); color: var(--gold-ink); }
.steps li.done { color: var(--text); cursor: pointer; }
.steps li.done span { background: rgba(127,200,160,.2); color: var(--ok); }

.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.booking-main { min-width: 0; }
.step-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; margin-bottom: 18px; }
.step-panel h2 { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 16px; }
.choice-group { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 18px 0 10px; }
.choice-group:first-child { margin-top: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--r-md); border: 1.5px solid var(--border); background: var(--bg); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover { border-color: #5a5142; }
.choice.selected { border-color: var(--gold); background: rgba(201,162,39,.08); }
.choice-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.choice-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.choice-barber { justify-content: flex-start; }
.back { margin-top: 18px; }

.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.date-chip { flex: 0 0 64px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: var(--r-md); border: 1.5px solid var(--border); background: var(--bg); color: var(--text); font: inherit; cursor: pointer; }
.date-chip .dow, .date-chip .mon { font-size: .72rem; text-transform: uppercase; color: var(--muted); }
.date-chip .dom { font-family: var(--head); font-size: 1.4rem; }
.date-chip:disabled { opacity: .3; cursor: not-allowed; }
.date-chip.selected { border-color: var(--gold); background: var(--gold); color: var(--gold-ink); }
.date-chip.selected .dow, .date-chip.selected .mon { color: var(--gold-ink); }
.slot-area { margin-top: 10px; }
.slot-group h4 { font-family: 'Inter', sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 14px 0 8px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.slot { padding: 10px 0; border-radius: var(--r-sm); border: 1.5px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.slot:hover { border-color: var(--gold); }
.slot.selected { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.loading { color: var(--muted); padding: 14px 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.optional { font-weight: 400; color: #7d7568; }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-md); border: 1.5px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.summary { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.summary h3 { text-transform: uppercase; font-size: 1.1rem; margin-bottom: 12px; }
.summary dl { margin: 0; display: grid; gap: 10px; }
.summary dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.summary dd { margin: 2px 0 0; font-weight: 600; }
.sum-total { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.sum-total > div { display: flex; justify-content: space-between; align-items: baseline; }
.sum-total strong { font-family: var(--head); font-size: 1.3rem; }
.sum-deposit strong { color: var(--gold-2); }
.sum-total p { margin: 0; }
.reschedule-confirm { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 18px; font-size: .93rem; }
.alert-error { background: var(--err-bg); color: var(--err); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }

/* ---------- Pago y reserva ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.pay-card { padding: 30px; display: grid; gap: 16px; }
.pay-card h1 { font-size: 1.8rem; text-transform: uppercase; }
.pay-card p { margin: 0; }
.test-ribbon { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: var(--r-md); background: var(--info-bg); color: var(--info); font-weight: 600; font-size: .88rem; }
.pay-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--bg); border-radius: var(--r-md); padding: 16px; }
.pay-amount { font-family: var(--head); font-size: 1.8rem; color: var(--gold-2); }
.fake-card { justify-self: center; width: min(340px, 100%); aspect-ratio: 1.7; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, #3b3324, #17140f); border: 1px solid #4a3c17; }
.fake-chip { width: 42px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #e2c15a, #a8862f); }
.fake-number { font-family: ui-monospace, Consolas, monospace; font-size: 1.2rem; letter-spacing: .08em; }
.fake-meta { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .12em; color: var(--muted); }
.pay-actions { display: grid; gap: 10px; margin: 0; }

.success-hero { text-align: center; margin-bottom: 26px; }
.success-hero > .material-symbols-outlined { font-size: 56px; color: var(--ok); }
.success-hero h1 { font-size: 1.9rem; text-transform: uppercase; margin: 8px 0; }
.page-title h1 { font-size: 2rem; text-transform: uppercase; margin-bottom: 20px; }
.ticket { padding: 26px; display: grid; gap: 20px; margin-bottom: 20px; }
.ticket.is-cancelled { opacity: .8; }
.ticket-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ticket-head h2 { font-size: 1.6rem; margin: 10px 0 2px; }
.ticket-head p { margin: 0; }
.ticket-code { text-align: right; }
.ticket-code strong { display: block; font-family: var(--head); font-size: 1.3rem; color: var(--gold-2); letter-spacing: .06em; }
.ticket-when { display: grid; gap: 8px; padding: 16px; border-radius: var(--r-md); background: var(--bg); }
.ticket-when .material-symbols-outlined { color: var(--gold); margin-right: 8px; }
.ticket-money { margin: 0; display: grid; gap: 6px; }
.ticket-money div { display: flex; justify-content: space-between; }
.ticket-money dt { color: var(--muted); }
.ticket-money dd { margin: 0; font-weight: 600; }
.ticket-money .total { padding-top: 8px; border-top: 1px solid var(--border); }
.ticket-money .total dd { font-family: var(--head); font-size: 1.3rem; color: var(--gold-2); }
.ticket-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ticket-actions form { margin: 0; }

.chip { display: inline-block; padding: 3px 12px; border-radius: var(--r-full); font-size: .78rem; font-weight: 700; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-err { background: var(--err-bg); color: var(--err); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-info { background: var(--info-bg); color: var(--info); }
.chip-muted { background: var(--surface-2); color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .location { grid-template-columns: 1fr; }
  .hero-art { min-height: 220px; }
  .booking-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 12px; }
  .section { padding: 60px 0; }
  .hero { padding: 44px 0 56px; }
  .form-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .step-panel { padding: 18px; }
  .hero-actions .btn { flex: 1; }
  .ticket-head { flex-direction: column; }
  .ticket-code { text-align: left; }
}
