/* Azur Barber Club — sitio público
   Paleta tomada del local: negro de los uniformes, hueso de las paredes,
   dorado del bordado y madera de la barra y los espejos. */
:root {
  --ink: #0e0e0e;
  --panel: #171615;
  --panel-2: #1f1d1b;
  --line: rgba(242, 239, 233, 0.1);
  --line-2: rgba(242, 239, 233, 0.2);
  --bone: #f2efe9;
  --stone: #9a948a;
  --gold: #c9a35a;
  --gold-hi: #e2c68a;
  --wood: #a7713f;
  --wood-dk: #5e3b1f;
  --danger: #e2675c;
  --wa: #25d366;
  --display: 'Rye', Georgia, serif;
  --body: 'Manrope', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; }
.wrap { width: min(100% - 32px, 1040px); margin-inline: auto; }
.muted { color: var(--stone); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Tipografía: Rye (la letra del logo) solo para títulos; Manrope para todo lo demás */
.section { padding-top: 56px; }
.section__title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 8vw, 40px); line-height: 1.1; margin-bottom: 18px; }
.label { font-size: 13px; font-weight: 700; color: var(--stone); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 0; cursor: pointer; font: 700 16px var(--body); padding: 0 24px; border-radius: 14px; text-decoration: none; transition: transform .12s ease, background .2s, border-color .2s; }
.btn:active { transform: scale(.98); }
.btn--gold { background: var(--gold); color: #17110a; }
.btn--gold:hover { background: var(--gold-hi); }
.btn--line { background: transparent; color: var(--bone); border: 1.5px solid var(--line-2); }
.btn--line:hover { border-color: var(--gold); }
.btn--quiet { background: var(--panel-2); color: var(--bone); }
.btn--whatsapp { background: var(--wa); color: #06210f; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { display: block; text-align: center; margin: 14px auto 0; color: var(--stone); font-weight: 600; font-size: 15px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: rgba(14,14,14,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__brand img { width: 40px; height: 40px; }
.nav__brand span { font-family: var(--display); font-size: 22px; line-height: 1; }
.nav__links { display: none; gap: 28px; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--stone); }
.nav__links a:hover { color: var(--bone); }
@media (min-width: 820px) { .nav { padding-inline: 32px; } .nav__links { display: flex; } }

/* HERO: los barberos en marcos de madera, como los espejos del local */
.hero { padding-top: 28px; }
.hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 12.5vw, 76px); line-height: 1; letter-spacing: -.01em; }
.hero__lead { color: var(--stone); font-size: 17px; margin-top: 10px; max-width: 34ch; }
.mirrors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.mirror { text-decoration: none; display: grid; gap: 2px; }
.mirror__frame {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden;
  padding: 7px;
  background: linear-gradient(160deg, #c48a52 0%, var(--wood) 35%, var(--wood-dk) 100%);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.12);
}
.mirror__frame::after { content: ''; position: absolute; inset: 7px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(226,198,138,.55); pointer-events: none; }
.mirror__frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; transition: transform .5s ease; }
.mirror:hover .mirror__frame img { transform: scale(1.03); }
.mirror__initials { display: grid; place-items: center; width: 100%; height: 100%; background: var(--bone); color: var(--ink); font: 400 44px var(--display); border-radius: 2px; }
.mirror__name { font-family: var(--display); font-size: 26px; margin-top: 10px; }
.mirror__cta { color: var(--gold-hi); font-weight: 700; font-size: 14px; }
.hero__any { margin-top: 18px; }
.hero__facts { display: grid; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero__facts div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; font-size: 15px; }
.hero__facts dt { color: var(--stone); }
@media (min-width: 820px) {
  .hero { display: grid; grid-template-columns: 1fr 1.15fr; grid-template-areas: "title mirrors" "lead mirrors" "any mirrors" "facts mirrors"; column-gap: 56px; align-content: start; padding-top: 64px; }
  .hero__title { grid-area: title; align-self: end; }
  .hero__lead { grid-area: lead; }
  .mirrors { grid-area: mirrors; margin-top: 0; gap: 20px; }
  .hero__any { grid-area: any; align-self: start; width: auto; justify-self: start; }
  .hero__facts { grid-area: facts; align-self: start; }
}

/* PRECIOS: como la tabla de precios de una barbería */
.pricelist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pricelist li { border-bottom: 1px solid var(--line); }
.price { display: block; padding: 16px 0; text-decoration: none; }
.price__row { display: flex; align-items: baseline; gap: 10px; }
.price__name { font-size: 19px; font-weight: 700; }
.price__dots { flex: 1; border-bottom: 2px dotted var(--line-2); transform: translateY(-5px); min-width: 20px; }
.price__value { font-size: 19px; font-weight: 800; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.price__meta { display: block; color: var(--stone); font-size: 14px; margin-top: 2px; }
.price:hover .price__name { color: var(--gold-hi); }

/* GALERÍA: 3 fotos */
.gallery__track { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px; scroll-padding: 16px; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track figure { scroll-snap-align: start; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--panel); }
.gallery__track img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 820px) { .gallery__track { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); width: min(100% - 64px, 1040px); margin-inline: auto; padding: 0; overflow: visible; } }

/* CÓMO LLEGAR */
.visit { display: grid; gap: 16px; }
.visit__addr { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.visit__btns { display: grid; gap: 10px; margin-top: 18px; }
.visit__map { width: 100%; height: 260px; border: 0; border-radius: 10px; filter: grayscale(1) invert(.92) contrast(.9); }
@media (min-width: 820px) { .visit { grid-template-columns: 1fr 1.4fr; gap: 32px; } .visit__btns { display: flex; flex-wrap: wrap; } .visit__map { height: 100%; min-height: 300px; } }

/* FOOTER */
.footer { text-align: center; padding: 44px 16px 110px; margin-top: 64px; border-top: 1px solid var(--line); color: var(--stone); }
.footer__logo { width: 64px; height: 64px; margin: 0 auto 10px; }
.footer__name { font-family: var(--display); color: var(--bone); font-size: 20px; }
.footer__info { font-size: 14px; margin: 8px 0 14px; }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; margin-bottom: 26px; }
.footer__links a { color: var(--gold-hi); text-decoration: none; }
.powered { display: inline-block; color: #6d6961; }
.powered:hover { color: var(--bone); }
.powered svg { height: 44px; width: auto; }
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.5); }
.home .wa-float { opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .3s, transform .3s; }
.home .wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* ===== RESERVA ===== */
.booking { padding-top: 24px; max-width: 620px; min-height: 80svh; }
.booking__head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 10vw, 46px); line-height: 1.05; }
.booking__head p { color: var(--stone); margin: 6px 0 20px; }
.step { border-bottom: 1px solid var(--line); scroll-margin-top: 72px; }
.step:first-child { border-top: 1px solid var(--line); }
.step__head { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 14px 0; background: none; border: 0; color: var(--bone); cursor: pointer; text-align: left; font: inherit; }
.step__head:disabled { cursor: default; color: var(--stone); }
.step__n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--body); border: 1.5px solid var(--line-2); color: var(--stone); }
.step.is-open .step__n { background: var(--gold); color: #17110a; border-color: transparent; }
.step.is-done .step__n { background: transparent; border-color: var(--gold); color: var(--gold-hi); }
.step__title { font-weight: 800; font-size: 18px; }
.step__value { margin-left: auto; color: var(--gold-hi); font-size: 15px; font-weight: 700; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 58%; }
.step.is-done .step__value::after { content: 'Cambiar'; display: block; color: var(--stone); font-size: 12px; font-weight: 600; text-decoration: underline; }
.step.is-open .step__value { display: none; }
.step__body { display: none; padding: 2px 0 22px; }
.step.is-open .step__body { display: block; animation: fade .25s ease; }

.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 64px; text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1.5px solid var(--line); color: var(--bone); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--line-2); }
.opt.is-sel { border-color: var(--gold); background: rgba(201,163,90,.1); }
.opt__main { display: flex; flex-direction: column; min-width: 0; }
.opt__main strong { font-weight: 800; font-size: 17px; }
.opt small { color: var(--stone); font-size: 14px; }
.opt__side { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.opt__side b { font-weight: 800; font-size: 17px; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.opts--barbers { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.opt--barber { flex-direction: column; justify-content: flex-start; align-items: stretch; text-align: left; gap: 8px; padding: 8px 8px 12px; }
.opt--barber strong { font: 400 20px var(--display); padding: 0 4px; }
.opt--barber small { padding: 0 4px; }
.avatar { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--bone); color: var(--ink); font: 400 36px var(--display); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.opt--any { grid-column: 1 / -1; }
.avatar--any { background: var(--panel-2); color: var(--gold-hi); font: 800 15px var(--body); padding: 12px; text-align: center; line-height: 1.3; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 62px; padding: 9px 0; border-radius: 14px; display: flex; flex-direction: column; align-items: center; background: var(--panel); border: 1.5px solid var(--line); color: var(--bone); cursor: pointer; scroll-snap-align: start; font: inherit; }
.day small { font-size: 12px; color: var(--stone); font-weight: 600; }
.day b { font-size: 22px; font-weight: 800; line-height: 1.2; }
.day.is-sel { background: var(--gold); border-color: transparent; color: #17110a; }
.day.is-sel small { color: #4a3816; }
.day:disabled { opacity: .3; cursor: not-allowed; }
.slots { min-height: 90px; }
.slots__group { margin-top: 12px; }
.slots__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
@media (min-width: 480px) { .slots__grid { grid-template-columns: repeat(4, 1fr); } }
.slot { min-height: 48px; border-radius: 12px; background: var(--panel); border: 1.5px solid var(--line); color: var(--bone); font: 700 15px var(--body); cursor: pointer; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--gold); }
.slot.is-sel { background: var(--gold); color: #17110a; border-color: transparent; }
.slots__loading { display: flex; gap: 6px; justify-content: center; padding: 30px 0; }
.slots__loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: blink 1s infinite; }
.slots__loading span:nth-child(2) { animation-delay: .15s; } .slots__loading span:nth-child(3) { animation-delay: .3s; }

.summary, .ticket { background: var(--panel); border-radius: 14px; padding: 4px 16px; margin-bottom: 18px; }
.summary div, .ticket div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary div:last-child, .ticket div:last-child { border-bottom: 0; }
.summary span, .ticket span { color: var(--stone); }
.summary b, .ticket b { text-align: right; }
.gold { color: var(--gold-hi); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field small { color: var(--stone); font-weight: 500; }
.field input { width: 100%; min-height: 52px; padding: 0 16px; background: var(--panel); color: var(--bone); border: 1.5px solid var(--line-2); border-radius: 12px; font: 600 17px var(--body); }
.field input::placeholder { color: #67625a; font-weight: 500; }
.field input:focus { outline: none; border-color: var(--gold); }
.form-error { background: rgba(226,103,92,.12); border: 1px solid rgba(226,103,92,.4); color: #f4b1a9; padding: 12px 14px; border-radius: 12px; font-size: 15px; margin: 0 0 12px; }

.done { display: grid; gap: 10px; animation: fade .3s ease; }
.done__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #17110a; font-size: 28px; font-weight: 800; }
.done h2 { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.1; margin-top: 6px; }
.done > p { color: var(--stone); margin-bottom: 8px; }

@keyframes fade { from { opacity: 0; } }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Datos guardados */
.saved { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel); border: 1.5px solid rgba(201,163,90,.45); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.saved div { display: flex; flex-direction: column; min-width: 0; }
.saved__hi { color: var(--stone); font-size: 13px; }
.saved b { font-size: 17px; }
.saved small { color: var(--stone); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved__edit { margin: 0; flex: none; color: var(--gold-hi); background: none; border: 0; cursor: pointer; text-decoration: underline; font: 700 15px var(--body); }
.remember { display: flex; align-items: center; gap: 10px; margin: -2px 0 16px; font-size: 15px; cursor: pointer; }
.remember input { width: 20px; height: 20px; accent-color: var(--gold); }
