/* Peluquería Campayo — pared gris clara, lunares rojos y negros, rojo lacado del sofá y la mesa */
:root {
  /* Fondo claro: los nombres se mantienen de la plantilla (--black = fondo, --chalk = texto) */
  --black: #e4e4e1;      /* pared gris */
  --steel-900: #d3d3cf;  /* líneas suaves */
  --steel-700: #8b8b85;  /* bordes */
  --steel-500: #57574f;  /* texto secundario */
  --steel-300: #34342f;  /* texto de apoyo */
  --chalk: #1c1c1c;      /* texto principal (negro de los lunares) */
  --paper: #fafaf8;
  --ink: #1c1c1c;
  --wa: #25d366;
  --wa-dark: #128c4b;
  --danger: #a3170f;

  --gold: #c8261e;       /* rojo del sofá: acento */
  --gold-deep: #96180f;
  --gold-metal: linear-gradient(180deg, #d63a30 0%, #c8261e 55%, #b11e16 100%);
  --chrome: linear-gradient(180deg, #fff 0%, #e4e4e1 60%, #cfcfca 100%);

  --f-display: "Young Serif", Georgia, serif;
  --f-body: "Figtree", 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; }
[hidden] { display: none !important; }
.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-deep);
  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: #fff; border-color: transparent; box-shadow: 0 6px 22px rgba(200,38,30,.28); }
.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: #b9b9b4; 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  ---------- */
.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-deep); }

/* ---------- 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(--gold); color: #fff; border-color: var(--gold); }
.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: #ffb3ad; }
.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: #d6d6d2; }
.day[aria-checked="true"] b { color: #ff8d84; }
.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: #eab3ae; }
.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 #c8261e33; 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-deep); }
.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-deep); text-underline-offset: 4px; }
.info__place .link { display: inline-flex; align-items: center; min-height: 44px; margin-right: 20px; }

.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(920px, 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; top: auto; right: auto; margin: 0; transform: translateX(-50%);
  max-width: calc(100vw - 32px); width: max-content; text-align: center;
  background: #111; color: #fff; border: 1px solid var(--gold); 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: #fff; box-shadow: 0 6px 22px rgba(200,38,30,.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: #fff; }
.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; }

/* Panel: seguridad */
.aviso { margin: -12px 0 16px; padding: 10px 14px; border-radius: var(--r-s); background: #fdecea; border: 1px solid var(--gold); font-size: .92rem; }
.psub { margin: 18px 0 8px; font-size: .95rem; }
.panel .form--pin { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.panel .form--pin .form__error, .panel .form--pin .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 560px) { .panel .form--pin { grid-template-columns: 1fr; } }
.estado-2fa { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 600; }
.estado-2fa::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa0a6; }
.estado-2fa--on::before { background: #1e9e53; }
#dos-pasos .btn { margin-top: 6px; }
.pasos-2fa { margin: 6px 0 10px; padding-left: 20px; display: grid; gap: 14px; font-size: .95rem; }
.pasos-2fa small { display: block; color: #5b6067; margin-top: 6px; }
.pasos-2fa code, .codigos code { font: 600 .95rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.pasos-2fa .prow { margin-top: 8px; }
.qr { margin-top: 10px; width: 200px; padding: 8px; background: #fff; border: 1px solid #d9dbde; border-radius: var(--r-s); }
.qr img, .qr canvas { display: block; width: 184px; height: 184px; }
.codigos { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 24px; }
.codigos li { background: #fff; padding: 6px 12px; border-radius: var(--r-s); border: 1px solid #d9dbde; }
.link-btn { background: none; border: 0; padding: 0; color: #3d4146; text-decoration: underline; cursor: pointer; font-size: .9rem; }
.field input { width: 100%; min-width: 0; }
.panel .form--pin .field span { min-height: 2.6em; display: flex; align-items: flex-end; }
@media (max-width: 560px) { .panel .form--pin .field span { min-height: 0; } }

.plist small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Con el PIN inicial solo se ve «Seguridad» → cambiar PIN */
.solo-seguridad .pblock:not(#bloque-seguridad),
.solo-seguridad #titulo-2fa,
.solo-seguridad #dos-pasos { display: none; }

/* Requisitos de la contraseña del panel */
.requisitos { grid-column: 1 / -1; padding: 12px 14px; border-radius: var(--r-s); background: #fff; border: 1px solid #d9dbde; }
.requisitos__titulo { margin: 0 0 6px; font-size: .9rem; font-weight: 600; }
.requisitos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.requisitos li { position: relative; padding-left: 24px; font-size: .9rem; color: #5b6066; }
.requisitos li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid #9aa0a6; box-sizing: border-box;
}
.requisitos li.ok { color: #1d6b35; }
.requisitos li.ok::before { content: "✓"; border: 0; background: #1d6b35; color: #fff; font-size: 10px; line-height: 14px; text-align: center; font-weight: 700; }
.ver-clave { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .9rem; cursor: pointer; }
.ver-clave input { width: 16px; height: 16px; accent-color: var(--ink); }

/* Cita confirmada */
.done__badge { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: #e6f2ea; color: #1d6b35; font-weight: 600; font-size: .85rem; }
.done__detalle { margin: 0 auto 6px !important; font-weight: 600; color: var(--ink) !important; }
.done__ayuda { margin-top: 16px !important; font-size: .9rem; }
.done__ayuda a { color: inherit; }
.btn--sm { padding: 8px 14px; font-size: .88rem; }


/* Buscar cita por móvil para anularla */
.buscar-cita { margin: 0 0 20px; padding: 12px 16px; border-radius: var(--r-m); border: 1px solid #d9dbde; background: #fff; }
.buscar-cita summary { cursor: pointer; font-weight: 600; font-size: .95rem; }
.buscar-cita[open] summary { margin-bottom: 12px; }
.buscar-cita__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
@media (max-width: 480px) { .buscar-cita__form { grid-template-columns: minmax(0, 1fr); } }
.buscar-cita .form__error:empty { display: none; }
.buscar-cita__lista { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.buscar-cita__lista:empty { display: none; }
.buscar-cita__lista li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; border-radius: var(--r-s); background: #f4f5f6; }
.buscar-cita__lista li small { display: block; color: #5b6066; }
.buscar-cita__lista li.vacio { display: block; background: none; padding: 0; color: #3d4146; }

/* ---------- Agenda de la peluquería ---------- */
.agenda__barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 4px 0 14px; }
.agenda__nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.agenda__flecha { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #c5c8cc; background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.agenda__flecha:hover { border-color: var(--ink); }
.agenda__titulo { margin: 0 0 0 8px; font: 400 1.35rem/1.2 var(--f-display); text-transform: none; }
.agenda__titulo::first-letter { text-transform: uppercase; }
.agenda__vistas { display: inline-flex; border: 1px solid #c5c8cc; border-radius: 999px; overflow: hidden; background: #fff; }
.agenda__vistas button { border: 0; background: none; padding: 8px 14px; font: inherit; font-size: .9rem; cursor: pointer; color: #3d4146; }
.agenda__vistas button + button { border-left: 1px solid #e1e3e6; }
.agenda__vistas button[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 600; }
.agenda { min-height: 120px; }
.agenda__ayuda { margin-top: 10px; }
.agenda__resumen { margin: 0 0 10px; font-size: .92rem; color: #3d4146; }
.agenda__vacio { margin: 0; padding: 26px 0; text-align: center; color: #6b7076; background: #fff; border-radius: var(--r-s); border: 1px dashed #d4d7da; }

/* Día */
.agenda__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cita { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border-radius: var(--r-s); border-left: 4px solid var(--gold); }
.cita__hora { display: grid; line-height: 1.2; }
.cita__hora b { font-size: 1.05rem; }
.cita__hora span { font-size: .82rem; color: #6b7076; }
.cita__datos { display: grid; gap: 2px; min-width: 0; font-size: .92rem; }
.cita__datos span { color: #4a4f55; overflow-wrap: anywhere; }
.cita__datos a { color: inherit; }
.cita--pasada { border-left-color: #c5c8cc; opacity: .7; }
.cita__estado { font-size: .82rem; color: #6b7076; }

/* Semana */
.semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.semana__dia { background: #fff; border-radius: var(--r-s); min-height: 150px; display: flex; flex-direction: column; overflow: hidden; }
.semana__cab { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 8px 4px; border: 0; border-bottom: 1px solid #eceef0; background: none; cursor: pointer; font: inherit; color: var(--ink); }
.semana__cab span { font-size: .78rem; text-transform: capitalize; color: #6b7076; }
.semana__cab b { font-size: 1.1rem; }
.semana__dia.es-hoy .semana__cab { background: var(--ink); color: #fff; }
.semana__dia.es-hoy .semana__cab span { color: #d9dbde; }
.semana__dia.cerrado { background: repeating-linear-gradient(135deg, #f7f7f8 0 8px, #eef0f2 8px 16px); }
.semana__citas { display: grid; gap: 4px; padding: 6px; align-content: start; }
.semana__nada { text-align: center; color: #9aa0a6; font-size: .82rem; padding-top: 6px; }
.chip { display: block; width: 100%; text-align: left; border: 0; border-radius: 6px; padding: 5px 6px; background: #fdeeed; border-left: 3px solid var(--gold); font: inherit; font-size: .8rem; line-height: 1.25; cursor: pointer; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip b { font-weight: 600; }
.chip--pasada { background: #f1f2f3; border-left-color: #c5c8cc; color: #6b7076; }

/* Mes */
.mes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mes__cab { text-align: center; font-size: .78rem; font-weight: 600; color: #6b7076; padding: 2px 0 4px; }
.mes__dia { position: relative; min-height: 92px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px; border: 0; border-radius: 6px; background: #fff; text-align: left; font: inherit; cursor: pointer; color: var(--ink); overflow: hidden; }
.mes__dia:hover { outline: 1.5px solid var(--gold); }
.mes__dia.fuera { opacity: .4; }
.mes__dia.cerrado { background: repeating-linear-gradient(135deg, #f7f7f8 0 8px, #eef0f2 8px 16px); }
.mes__num { font-size: .85rem; font-weight: 600; }
.mes__dia.es-hoy .mes__num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; }
.mes__cita { font-size: .74rem; line-height: 1.2; padding: 2px 4px; border-radius: 4px; background: #fdeeed; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mes__mas { font-size: .72rem; color: #6b7076; }
.mes__n { position: absolute; top: 6px; right: 6px; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #fff; font-size: .72rem; font-weight: 600; }

/* Año */
.anio { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.anio__mes { background: #fff; border-radius: var(--r-s); padding: 10px; }
.anio__titulo { display: flex; justify-content: space-between; align-items: baseline; width: 100%; margin-bottom: 6px; border: 0; background: none; padding: 0; font: 600 .95rem/1.2 var(--f-body); text-transform: capitalize; cursor: pointer; color: var(--ink); }
.anio__titulo span { font-weight: 400; font-size: .78rem; color: #6b7076; text-transform: none; }
.anio__dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.anio__dia { aspect-ratio: 1; border: 0; border-radius: 4px; font: inherit; font-size: .68rem; cursor: pointer; padding: 0; background: #f1f2f3; color: #4a4f55; }
.anio__dia.nivel-1 { background: #f6d3d0; }
.anio__dia.nivel-2 { background: #e98d86; }
.anio__dia.nivel-3 { background: #c8261e; color: #fff; }
.anio__dia.nivel-4 { background: #7e140d; color: #fff; }
.anio__dia.es-hoy { outline: 2px solid var(--ink); outline-offset: -2px; }

/* Móvil: semana en filas y mes con números */
@media (max-width: 640px) {
  .agenda__barra { flex-direction: column; align-items: stretch; }
  .agenda__titulo { flex-basis: 100%; margin: 6px 0 0; }
  .agenda__vistas { display: grid; grid-template-columns: repeat(4, 1fr); }
  .semana { grid-template-columns: 1fr; }
  .semana__dia { min-height: 0; flex-direction: row; }
  .semana__cab { width: 64px; flex-shrink: 0; border-bottom: 0; border-right: 1px solid #eceef0; }
  .semana__citas { flex: 1; }
  .mes__dia { min-height: 54px; align-items: center; padding: 4px 2px; }
  .mes__cita, .mes__mas { display: none; }
  .mes__n { position: static; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #fff; font-size: .72rem; font-weight: 600; }
  .cita { grid-template-columns: 54px minmax(0, 1fr); }
  .cita > :last-child { grid-column: 1 / -1; justify-self: start; }
}
.anio__leyenda { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 0; font-size: .82rem; color: #4a4f55; }
.anio__leyenda span { display: inline-flex; align-items: center; gap: 4px; }
.anio__leyenda i { display: inline-block; width: 14px; height: 14px; aspect-ratio: auto; cursor: default; }

/* Días con citas: fondo dorado suave y borde dorado */
.mes__dia.con-citas, .semana__dia.con-citas { background: #fbe3e1; box-shadow: inset 0 0 0 1.5px var(--gold); }
.mes__dia.con-citas .mes__cita, .semana__dia.con-citas .chip { background: #fff; }
.semana__dia.con-citas:not(.es-hoy) .semana__cab { background: #f3c9c5; }
.mes__dia.fuera.con-citas { opacity: .55; }

/* ---------- Agenda: nueva cita, vista día con horas y hoja ---------- */
.agenda__nueva { margin-left: auto; }
@media (max-width: 640px) { .agenda__nueva { margin-left: 0; } }

.linea { --eje: 52px; position: relative; margin-top: 4px; border-radius: var(--r-s); cursor: pointer; overflow: hidden;
  background-color: #fff; background-image: linear-gradient(to bottom, #f0f1f3 1px, transparent 1px); }
.linea__h { position: absolute; left: 0; right: 0; border-top: 1px solid #d9dcdf; pointer-events: none; }
.linea__h span { position: absolute; left: 8px; top: 3px; font-size: .74rem; color: #6b7076; font-variant-numeric: tabular-nums; }
.linea__cerrado { position: absolute; left: var(--eje); right: 0; background: repeating-linear-gradient(135deg, rgba(0,0,0,.03) 0 8px, rgba(0,0,0,.065) 8px 16px); }
.linea__ahora { position: absolute; left: var(--eje); right: 0; border-top: 2px solid #1f5fd1; pointer-events: none; z-index: 3; }
.linea__ahora::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: #1f5fd1; }
.ev { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1px;
  overflow: hidden; padding: 3px 8px; margin-left: 2px; border: 0; border-radius: 6px; text-align: left; font: inherit; font-size: .8rem; line-height: 1.25; cursor: pointer; }
.ev b { font-size: .78rem; font-variant-numeric: tabular-nums; }
.ev span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev--corta { flex-direction: row; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; }
.ev--cita { background: #fbe3e1; border-left: 4px solid var(--gold); color: var(--ink); }
.ev--cita:hover { background: #f6cfcb; }
.ev--pasada { background: #f1f2f3; border-left-color: #b8bcc1; color: #5b6066; }
.ev--bloqueo { background: repeating-linear-gradient(135deg, #eceef0 0 8px, #e1e4e7 8px 16px); border-left: 4px solid #7d848b; color: #2f3337; }
.ev--provisional { z-index: 4; border: 2px dashed var(--ink); background: rgba(255,255,255,.8); pointer-events: none; }
.chip--bloqueo { background: repeating-linear-gradient(135deg, #eceef0 0 6px, #e1e4e7 6px 12px); border-left-color: #7d848b; color: #2f3337; }

.hoja { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-m);
  background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: auto; }
.hoja::backdrop { background: rgba(0,0,0,.45); }
.hoja__cab { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px 20px; background: var(--paper); }
.hoja__cab h3 { margin: 0; font: 400 1.25rem/1.25 var(--f-display); }
.hoja__cab h3::first-letter { text-transform: uppercase; }
.hoja__cerrar { flex-shrink: 0; width: 38px; height: 38px; border: 0; background: none; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--ink); }
#hoja-cuerpo { padding: 4px 20px 20px; }
.hoja__menu { display: grid; gap: 10px; }
.hoja__menu .fineprint { margin: 4px 0 0; }
.hoja__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: none; }
.hoja__fila { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hoja__fila:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 420px) { .hoja__fila { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hoja__dia { grid-column: 1 / -1; } }
.hoja__fila[hidden] { display: none; }
.hoja .field select, .hoja .field input { width: 100%; min-width: 0; min-height: 48px; padding: 0 12px; border-radius: var(--r-s);
  border: 1.5px solid #cfd2d6; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.hoja .field select:focus, .hoja .field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px #0001; }
.hoja__botones { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sugerencias { list-style: none; margin: -4px 0 0; padding: 0; display: grid; gap: 4px; }
.sugerencias:empty { display: none; }
.sugerencias button { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid #e1e3e6; border-radius: 8px;
  background: #fff; font: inherit; font-size: .92rem; cursor: pointer; text-align: left; color: var(--ink); }
.sugerencias button:hover { border-color: var(--gold); }
.sugerencias span { color: #6b7076; }
.aviso-choque { margin: 0; padding: 9px 12px; border-radius: 8px; background: #fff1dc; border: 1px solid #f0a23b; font-size: .9rem; }
.aviso-choque[hidden] { display: none; }
.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.detalle { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0 0 16px; }
.detalle dt { color: #6b7076; font-size: .88rem; }
.detalle dd { margin: 0; overflow-wrap: anywhere; }
.detalle a { color: inherit; }
@media (max-width: 560px) {
  .hoja { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 92dvh; }
}

/* Arrastrar citas */
.ev--movible { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ev--arrastrando { z-index: 6; cursor: grabbing; box-shadow: 0 8px 22px rgba(0,0,0,.22); outline: 2px solid var(--gold); background: #f6cfcb; }
.mover__quien { margin: 0 0 10px; font-weight: 600; }
.mover { display: grid; gap: 4px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-s); background: #fff; }
.mover__antes { color: #6b7076; text-decoration: line-through; }
.mover__flecha { color: var(--gold); font-weight: 700; }
.mover__despues { font-size: 1.05rem; }

/* ---------- Pie con enlaces legales ---------- */
.foot { flex-wrap: wrap; align-items: center; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot__link { color: var(--steel-500); text-underline-offset: 3px; }
.foot__link:hover { color: var(--chalk); }
.menu__iva { margin: 10px 0 0; font-size: .85rem; color: var(--steel-500); }
.aviso-datos { font-size: .8rem; color: #5b6067; }
.aviso-datos a { color: inherit; }

/* ---------- Página legal ---------- */
.legal-page { background: var(--black); color: var(--chalk); }
.legal__top { max-width: 760px; margin: 0 auto; padding: 20px var(--gutter) 0; display: flex; justify-content: space-between; align-items: center; }
.legal__volver { color: var(--gold-deep); text-decoration: none; font-weight: 500; }
.legal__volver:hover { text-decoration: underline; }
.legal__top img { border-radius: 50%; }
.legal { max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 40px; line-height: 1.65; }
.legal h1 { font: 400 clamp(2rem, 6vw, 2.8rem)/1.1 var(--f-display); margin: 8px 0 12px; color: var(--chalk); }
.legal h2 { font: 400 1.7rem/1.2 var(--f-display); margin: 0 0 12px; color: var(--chalk); }
.legal h3 { font-size: 1.02rem; margin: 22px 0 6px; color: var(--chalk); }
.legal section { padding: 30px 0; border-top: 1px solid var(--steel-700); scroll-margin-top: 16px; }
.legal p, .legal li { color: var(--steel-300); max-width: 68ch; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal a { color: var(--gold-deep); }
.legal strong { color: var(--chalk); }
.legal__lead { font-size: 1.05rem; }
.legal__indice { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.legal__indice a { padding: 7px 14px; border: 1px solid var(--steel-700); border-radius: 999px; text-decoration: none; color: var(--chalk); font-size: .9rem; }
.legal__indice a:hover { border-color: var(--gold); }
.legal__datos { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 12px 0 18px; padding: 16px 18px; background: var(--steel-900); border-radius: var(--r-m); }
.legal__datos dt { color: var(--steel-500); }
.legal__datos dd { margin: 0; color: var(--chalk); overflow-wrap: anywhere; }
.legal__falta { color: #b45309 !important; font-style: italic; }
@media (max-width: 480px) { .legal__datos { grid-template-columns: 1fr; } .legal__datos dd { margin-bottom: 6px; } }
/* La página legal no usa la cuadrícula de la portada */
main.legal { display: block; max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 40px; }
main.legal > section { max-width: none; margin: 0; padding: 30px 0; }

/* ---------- Lunares de la pared del local (solo en la portada) ---------- */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 7% 14%, var(--ink) 0 18px, transparent 19px),
    radial-gradient(circle at 95% 34%, var(--gold) 0 10px, transparent 11px),
    radial-gradient(circle at 4% 40%, var(--gold) 0 13px, transparent 14px);
}
@media (min-width: 820px) {
  .hero::before {
    background:
      radial-gradient(circle at 4% 12%, var(--ink) 0 34px, transparent 35px),
      radial-gradient(circle at 97% 18%, var(--gold) 0 58px, transparent 59px),
      radial-gradient(circle at 88% 86%, var(--ink) 0 22px, transparent 23px),
      radial-gradient(circle at 9% 88%, var(--gold) 0 20px, transparent 21px);
  }
}
