/* Genis Barber — negro del logo, acero pulido, ficha clara para reservar */
:root {
  --black: #000;
  --steel-900: #1a1b1d;
  --steel-700: #2c2e31;
  --steel-500: #8b9097;
  --steel-300: #c4c8cd;
  --chalk: #e7e8ea;
  --paper: #f6f6f7;
  --ink: #000;
  --wa: #25d366;
  --wa-dark: #128c4b;
  --danger: #b3261e;

  --gold: #c9a45c;
  --gold-deep: #8a6a2f;
  --gold-metal: linear-gradient(180deg, #f6e6b4 0%, #d9b768 40%, #9c7634 55%, #c9a45c 72%, #f1dc9c 100%);
  --chrome: linear-gradient(180deg, #fff 0%, #dfe2e6 38%, #7d828a 52%, #c8ccd1 70%, #f3f4f6 100%);

  --f-display: "Marcellus", "Trajan Pro", Georgia, serif;
  --f-body: "Instrument Sans", system-ui, sans-serif;

  --r-s: 4px;
  --r-m: 10px;
  --gutter: clamp(16px, 5vw, 48px);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--chalk);
  font: 400 1rem/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(12px, 4vw, 40px) var(--gutter) 56px;
  display: grid;
  justify-items: center;
  text-align: center;
}
.hero__mark { display: block; width: min(86vw, 440px); }
.hero__logo { width: 100%; height: auto; }
.hero__body { margin-top: 8px; max-width: 34rem; }
.hero__where {
  margin: 0; color: var(--gold);
  font: 400 clamp(1.15rem, 3.6vw, 1.5rem)/1.2 var(--f-display); letter-spacing: .04em;
}
.hero__where::before, .hero__where::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--gold-deep); vertical-align: middle; margin: 0 12px; }
.hero__lead { margin: 14px auto 0; color: var(--steel-300); font-size: 1.05rem; max-width: 30ch; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 16px 0 0; font-size: .95rem; color: var(--steel-300);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--steel-500); flex: none; }
.status.is-open::before { background: var(--wa); box-shadow: 0 0 0 4px rgba(37,211,102,.18); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
@media (max-width: 420px) { .hero__actions .btn { flex: 1 1 100%; } }

/* Tablet y escritorio: logo a la izquierda, mensaje y botones a la derecha */
@media (min-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center; justify-items: start; text-align: left;
    column-gap: clamp(32px, 5vw, 72px);
    min-height: min(88vh, 760px);
    padding-bottom: 48px;
  }
  .hero__mark { width: 100%; max-width: 520px; justify-self: end; }
  .hero__body { margin: 0; }
  .hero__where { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
  .hero__where::before { display: none; }
  .hero__where::after { width: 48px; margin-right: 0; }
  .hero__lead { margin-left: 0; font-size: 1.15rem; }
  .hero__actions { justify-content: flex-start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn--steel { background: var(--gold-metal); color: var(--ink); border-color: #f6e6b455; box-shadow: 0 6px 22px rgba(201,164,92,.22); }
.btn--ghost { background: transparent; color: var(--chalk); border-color: var(--steel-700); }
.btn--ghost:hover { border-color: var(--steel-500); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:disabled { background: var(--steel-300); color: #fff; cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--wa { background: var(--wa); color: #00210c; }

/* ---------- Section titles ---------- */
main > section { max-width: var(--maxw); margin: 0 auto; padding: 56px var(--gutter); }
.h2 { font: 400 clamp(1.8rem, 5vw, 2.4rem)/1.1 var(--f-display); margin: 0 0 28px; color: var(--chalk); }
.h2--ink { color: var(--ink); }

/* ---------- Price list (pizarra de barbería) ---------- */
.menu__list { list-style: none; margin: 0; padding: 0; max-width: 680px; }
.menu__item { border-top: 1px solid var(--steel-700); }
.menu__item:last-child { border-bottom: 1px solid var(--steel-700); }
.menu__btn {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline;
  padding: 18px 4px; background: none; border: 0; text-align: left; cursor: pointer;
}
.menu__name { font-size: 1.1rem; font-weight: 500; }
.menu__price { font: 400 1.5rem/1 var(--f-display); background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.menu__meta { color: var(--steel-500); font-size: .9rem; }
.menu__go { color: var(--steel-500); font-size: .9rem; text-align: right; }
.menu__btn:hover .menu__go { color: var(--gold); }

/* ---------- Booking sheet ---------- */
.booking { padding-top: 24px; }

/* Escritorio: servicios y horario a la izquierda, reserva a la derecha */
@media (min-width: 1024px) {
  main {
    max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
    display: grid; column-gap: 56px;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "menu booking" "info booking" "gallery gallery";
    align-items: start;
  }
  main > section { max-width: none; margin: 0; padding: 56px 0; }
  .menu { grid-area: menu; }
  .info { grid-area: info; padding-top: 8px; }
  .booking { grid-area: booking; padding-top: 56px; }
  .gallery { grid-area: gallery; }
  .info__grid { grid-template-columns: 1fr; gap: 24px; }
  .menu__list { max-width: none; }
}
.sheet {
  background: var(--paper); color: var(--ink);
  border-top: 3px solid var(--gold);
  border-radius: var(--r-m);
  padding: clamp(22px, 5vw, 44px);
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.step__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 1.05rem/1.2 var(--f-body); }
.step__n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--ink); font-size: .85rem;
}
.step.is-done .step__n { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.step.is-locked { opacity: .38; pointer-events: none; }

.chips, .slots { display: flex; flex-wrap: wrap; gap: 8px; }
.pick {
  border: 1.5px solid #cfd2d6; background: #fff; color: var(--ink);
  border-radius: var(--r-s); padding: 10px 14px; cursor: pointer; text-align: left;
  min-height: 44px;
}
.pick small { display: block; color: #5b6067; font-size: .82rem; }
.pick:hover { border-color: var(--ink); }
.pick[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pick[aria-checked="true"] small { color: var(--gold); }
.slots .pick { min-width: 74px; text-align: center; font-variant-numeric: tabular-nums; }
.slots__group { width: 100%; margin: 6px 0 2px; font-size: .85rem; color: #5b6067; }

.days {
  display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: 8px;
  overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity;
}
.day {
  scroll-snap-align: start;
  border: 1.5px solid #cfd2d6; background: #fff; border-radius: var(--r-s);
  padding: 8px 0; text-align: center; cursor: pointer; color: var(--ink);
}
.day b { display: block; font: 400 1.5rem/1.1 var(--f-display); }
.day span { font-size: .78rem; color: #5b6067; text-transform: lowercase; }
.day[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day[aria-checked="true"] span { color: var(--steel-300); }
.day[aria-checked="true"] b { color: var(--gold); }
.day:disabled { background: transparent; color: #b4b8bd; cursor: not-allowed; text-decoration: line-through; }
.day:disabled span { color: #b4b8bd; }
.empty { color: #5b6067; margin: 0; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.field em { font-style: normal; color: #5b6067; font-weight: 400; }
.field--wide, .summary, .form__error, .form .btn--block, .fineprint { grid-column: 1 / -1; }
.field input, .prow input {
  min-height: 48px; padding: 0 14px; border-radius: var(--r-s);
  border: 1.5px solid #cfd2d6; background: #fff; color: var(--ink); font-size: 1rem;
}
.field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px #0001; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.summary { border-top: 1px solid #d9dbde; padding-top: 14px; display: grid; gap: 2px; }
.summary:empty { display: none; }
.summary strong { font: 400 1.4rem/1.2 var(--f-display); }
.summary { border-top-color: #e3d3ad; }
.form__error { color: var(--danger); margin: 0; min-height: 0; font-size: .92rem; }
.form__error:empty { display: none; }
.fineprint { color: #5b6067; font-size: .85rem; margin: 0; }

.done { text-align: center; padding: 12px 0; }
.done h3 { font: 400 1.9rem/1.15 var(--f-display); margin: 0 0 10px; }
.done p { margin: 0 auto 18px; max-width: 42ch; color: #3d4146; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.gallery__grid img { outline: 1px solid #c9a45c33; outline-offset: -1px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: 2px; background: var(--steel-900); }
.gallery__empty {
  grid-column: 1 / -1; border: 1px dashed var(--steel-700); border-radius: var(--r-m);
  padding: 36px 20px; text-align: center; color: var(--steel-500);
}

/* ---------- Info ---------- */
.info__grid { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 40px; }
@media (max-width: 720px) { .info__grid { grid-template-columns: 1fr; gap: 28px; } }
.hours { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.hours th { text-align: left; font-weight: 500; padding: 9px 0; width: 7.5em; }
.hours td { padding: 9px 0; color: var(--steel-300); }
.hours tr + tr { border-top: 1px solid var(--steel-900); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--gold); }
.hours tr.is-today th::after { content: " · hoy"; color: var(--steel-500); font-weight: 400; }
.info__place p { margin: 0 0 12px; font-size: 1.1rem; max-width: 30ch; }
.link { color: var(--gold); text-underline-offset: 4px; }

.foot {
  max-width: var(--maxw); margin: 0 auto; padding: 32px var(--gutter) 110px;
  display: flex; justify-content: space-between; gap: 16px; color: var(--steel-500); font-size: .9rem;
  border-top: 1px solid var(--steel-900);
}
.foot p { margin: 0; }
.foot__admin { background: none; border: 0; color: var(--steel-500); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }

/* ---------- WhatsApp FAB + chat ---------- */
.wa-fab {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.35); z-index: 30;
}
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab[aria-expanded="true"] { display: none; }

.chat {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
  width: min(380px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 36px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #efe7dd; color: #111; border-radius: 14px; z-index: 40;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  animation: pop .18s ease-out;
}
.chat[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (max-width: 480px) { .chat { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; } }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #075e54; color: #fff; }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; background: #000; }
.chat__title { margin: 0; font-weight: 600; }
.chat__sub { margin: 0; font-size: .78rem; opacity: .85; }
.chat__close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; width: 40px; height: 40px; }
.chat__log { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.msg {
  max-width: 85%; padding: 7px 10px 6px; border-radius: 8px; font-size: .95rem; line-height: 1.4;
  box-shadow: 0 1px 0 rgba(0,0,0,.08); white-space: pre-line;
}
.msg--bot { align-self: flex-start; background: #fff; border-top-left-radius: 0; }
.msg--me { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 0; }
.msg time { display: block; text-align: right; font-size: .68rem; color: #667781; margin-top: 2px; }
.msg .btn { display: flex; width: fit-content; min-height: 38px; padding: 0 14px; font-size: .9rem; margin-top: 8px; }
.typing { align-self: flex-start; background: #fff; border-radius: 8px; padding: 10px 12px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa3a8; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .3; } }
.chat__chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; background: #efe7dd; }
.chat__chips button {
  flex: none; border: 1px solid #00a884; color: #007a62; background: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: .85rem; cursor: pointer;
}
.chat__input { display: flex; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #f0f2f5; }
.chat__input input { flex: 1; min-height: 44px; border: 0; border-radius: 999px; padding: 0 16px; background: #fff; color: #111; }
.chat__input button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #00a884; color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat__input svg { width: 20px; height: 20px; }

/* ---------- Panel ---------- */
.panel {
  width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  border: 0; border-radius: var(--r-m); padding: 28px; background: var(--paper); color: var(--ink);
}
.panel::backdrop { background: rgba(0,0,0,.75); }
.panel__close { position: absolute; right: 10px; top: 8px; }
.panel__close button { background: none; border: 0; font-size: 1.8rem; cursor: pointer; width: 40px; height: 40px; }
.panel .form { grid-template-columns: 1fr; max-width: 280px; }
.pblock { border-top: 1px solid #d9dbde; padding: 20px 0; }
.pblock h3 { margin: 0 0 4px; font-size: 1.05rem; }
.pblock .fineprint { margin-bottom: 12px; }
.upload { position: relative; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; margin-top: 14px; }
.pgrid figure { margin: 0; position: relative; }
.pgrid img { aspect-ratio: 4/5; object-fit: cover; width: 100%; border-radius: 2px; }
.pgrid button {
  position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.75); color: #fff; cursor: pointer;
}
.plist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.plist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-radius: var(--r-s); font-size: .92rem; }
.plist li small { color: #5b6067; display: block; }
.plist button { background: none; border: 1px solid #cfd2d6; border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: .85rem; }
.prow { display: flex; gap: 8px; flex-wrap: wrap; }
.prow input { flex: 1; min-width: 160px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: var(--paper); color: var(--ink); padding: 10px 18px; border-radius: 999px;
  font-size: .92rem; z-index: 60; box-shadow: 0 8px 30px rgba(0,0,0,.4);
}

/* Acción principal de la reserva en dorado, igual que el botón del hero */
#btn-confirmar:not(:disabled) { background: var(--gold-metal); color: var(--ink); box-shadow: 0 6px 22px rgba(201,164,92,.28); }

/* Panel: fotos pendientes de guardar y salida */
.btn--ghost-ink { background: transparent; color: var(--ink); border-color: #c5c8cc; }
.btn--ghost-ink:hover { border-color: var(--ink); }
.btn--gold { background: var(--gold-metal); color: var(--ink); }
.btn--gold:disabled { opacity: .6; cursor: wait; }
.pending {
  margin-top: 16px; padding: 14px; border-radius: var(--r-m);
  background: #fff; border: 1.5px dashed var(--gold);
}
.pending__title { margin: 0; font-weight: 600; font-size: .95rem; }
.pending .pgrid { margin-top: 10px; }
.pending__actions { margin-top: 14px; }
.pgrid__label { margin: 18px 0 0; font-size: .9rem; font-weight: 600; color: #3d4146; }
.panel__exit { border-top: 1px solid #d9dbde; padding-top: 20px; }
