/* ============================================================
   Smith Barbershop — Reserva online (app pública, mobile-first)
   Usa las variables de marca de tokens.css. Independiente de panel.css.
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Barra tricolor barber pole */
.pole { height: 4px; background: repeating-linear-gradient(
  115deg, var(--c-barber-red) 0 14px, #fff 14px 28px, var(--c-info) 28px 42px); }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 140px; }

/* ---------- Cabecera / marca ---------- */
.brand { text-align: center; padding: 28px 16px 8px; }
.brand img { height: 88px; margin: 0 auto 6px; width: auto; }
.brand__claim { color: var(--c-text-muted); font-size: .95rem; }

.tophead {
  display: flex; align-items: center; gap: 12px;
  max-width: 560px; margin: 0 auto; padding: 16px;
}
.tophead .back {
  background: var(--c-bg-3); border: 1px solid var(--c-border);
  color: var(--c-text); width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.2rem; line-height: 1; display: grid; place-items: center;
}
.tophead h1 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.tophead small { color: var(--c-text-muted); font-weight: 400; display: block; font-size: .8rem; }

/* ---------- Stepper ---------- */
.stepper { display: flex; gap: 6px; max-width: 560px; margin: 0 auto; padding: 4px 16px 12px; }
.stepper i {
  flex: 1; height: 4px; border-radius: 2px; background: var(--c-border);
  transition: background .2s;
}
.stepper i.on { background: var(--c-accent); }
.stepper i.done { background: var(--c-accent-600); }

/* ---------- Pasos ---------- */
.step { display: none; animation: fade .25s ease; }
.step.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.step h2 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 4px; }
.step .sub { color: var(--c-text-muted); font-size: .9rem; margin-bottom: 16px; }

/* ---------- Tarjetas seleccionables ---------- */
.opt {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 14px;
  background: var(--c-bg-3); border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; color: var(--c-text);
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--c-accent-600); }
.opt.sel { border-color: var(--c-accent); background: #33261d; }
.opt__body { flex: 1; min-width: 0; }
.opt__title { font-weight: 600; font-family: var(--font-head); }
.opt__meta { color: var(--c-text-muted); font-size: .85rem; }
.opt__price { font-weight: 700; color: var(--c-accent-300); white-space: nowrap; }
.opt__check {
  width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--c-border);
  display: grid; place-items: center; flex-shrink: 0; color: transparent;
}
.opt.sel .opt__check { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.opt .chev { color: var(--c-text-muted); font-size: 1.2rem; }

/* Barra superior derecha: perfil + idioma (nunca choca con el botón atrás, que va a la izquierda) */
.topbar { position: fixed; top: 10px; right: 10px; z-index: 40; display: flex; align-items: center; gap: 8px; }
.iconbtn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  text-decoration: none; background: rgba(43,46,58,.92); border: 1px solid var(--c-border);
  color: var(--c-text); backdrop-filter: blur(6px);
}
.iconbtn:hover { border-color: var(--c-accent); color: var(--c-accent-300); }
/* Botón "Mi cuenta": mismo lenguaje visual que ES/EN, pero CON TEXTO. El icono
   suelto no se veía y los clientes no llegaban a su perfil. */
.acctbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px;
  border-radius: 30px; text-decoration: none; backdrop-filter: blur(6px);
  background: rgba(43,46,58,.92); border: 1px solid var(--c-accent-600, #8a5e3b);
  color: var(--c-accent-300, #b5895f);
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; white-space: nowrap;
}
/* El nombre se corta con puntos suspensivos y, además, nunca pasa de un tercio
   de la pantalla: así en un móvil estrecho no empuja al ES/EN ni se sale. */
.acctbtn span { max-width: min(16ch, 34vw); overflow: hidden; text-overflow: ellipsis; }
.acctbtn:hover { border-color: var(--c-accent); color: var(--c-accent-300); }
.acctbtn svg { flex: none; }
@media (max-width: 360px) { .acctbtn { padding: 0 10px; } .acctbtn span { max-width: 30vw; } }

/* Aviso de domingos — el horario sale de los turnos reales, no de un texto fijo. */
.domchip {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 5px;
  padding: 4px 10px; border-radius: 30px; font-size: .74rem; font-weight: 700;
  font-family: var(--font-head); letter-spacing: .02em; line-height: 1.3;
  background: rgba(181,137,95,.16); color: var(--c-accent-300, #b5895f);
  border: 1px solid var(--c-accent-600, #8a5e3b);
}
/* Versión pulsable: dos líneas. La segunda deja claro que al tocar se RESERVA,
   para que nadie entre por curiosidad y se encuentre dentro de una reserva.
   Deliberadamente DISCRETO: es un aviso de novedad, no la acción principal de la
   tarjeta (esa es "Reservar cita", abajo del todo). */
.domchip--btn {
  cursor: pointer; width: 100%; justify-content: space-between; text-align: left;
  padding: 6px 10px; margin-top: 8px; border-radius: var(--r-md, 10px);
  font-size: .72rem;
}
.domchip--btn .dl { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.domchip--btn .dl b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.domchip--btn .dl small {
  font-weight: 600; font-size: .68rem; opacity: .8; letter-spacing: 0;
  font-family: var(--font-body, inherit);
}
.domchip--btn .chev { font-size: 1rem; line-height: 1; opacity: .8; }
.domchip--btn:hover { background: rgba(181,137,95,.28); }

/* Banda de contexto del paso "Servicios" cuando se entra por el domingo:
   dónde estás, con quién, y la salida a un toque. */
.ctxbar {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  padding: 9px 12px; border-radius: var(--r-md, 10px);
  background: rgba(181,137,95,.12); border: 1px solid var(--c-accent-600, #8a5e3b);
}
.ctxbar .ctx-t {
  flex: 1; min-width: 0; font-family: var(--font-head); font-weight: 700;
  font-size: .86rem; color: var(--c-accent-300, #b5895f);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ctxbar .ctx-x {
  flex: none; background: none; border: 1px solid var(--c-border); border-radius: 30px;
  color: var(--c-text); padding: 4px 12px; font-size: .78rem; font-weight: 700;
  font-family: var(--font-head); cursor: pointer;
}
.ctxbar .ctx-x:hover { border-color: var(--c-accent); color: var(--c-accent-300); }

/* Compañeros libres cuando el barbero elegido no tiene hueco. La cita se queda
   en casa: el cliente es de la barbería, no de un barbero. */
.alts__h {
  margin: 4px 0 10px; text-align: center; font-family: var(--font-head);
  font-weight: 700; font-size: .95rem; color: var(--c-text);
}
.alts__p {
  margin: 12px 0 0; text-align: center; font-size: .82rem; color: var(--c-text-muted);
}
/* Cada compañero: su nombre completo arriba (así no compite por ancho con las
   horas) y debajo sus primeras horas libres. Enseñar varias horas es lo que
   evita que el cliente crea que solo le queda una. */
/* Sin fondo propio: así las horas (que sí lo llevan) resaltan dentro. */
.alt {
  background: transparent; border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg); padding: 10px 12px; margin-bottom: 10px;
}
.alt-top {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; color: var(--c-text); text-align: left;
  padding: 0; cursor: pointer; font: inherit;
}
.alt-top .avatar { width: 42px; height: 42px; flex: none; }
.alt-n {
  flex: 1; min-width: 0; font-family: var(--font-head); font-weight: 700;
  font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.alt-top .chev { color: var(--c-text-muted); font-size: 1.2rem; }
.alt-h { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.alt-h .slot { min-width: 72px; padding: 9px 10px; font-size: .92rem; }
.alt-mas {
  background: none; border: none; color: var(--c-accent-300, #b5895f);
  font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; padding: 0 6px;
}

/* ---- Estética / belleza ---- */
/* Mismo chip que el de domingos pero en tono rosado, para que se distingan de un
   vistazo cuando las dos barberías lleven el suyo. */
.domchip--est {
  background: rgba(198,140,160,.14); color: #d79bb0; border-color: #a76a80;
}
.domchip--est:hover { background: rgba(198,140,160,.26); }
.domcross--est { border-color: #a76a80; background: rgba(198,140,160,.10); }
.domcross--est:hover { background: rgba(198,140,160,.18); }
.domcross--est .chev { color: #d79bb0; }
/* La ZONA es el título; la profesional va dentro. Hoy es una persona, mañana
   puede ser otra: la ficha no puede llamarse como ella. */
.est-t { font-family: var(--font-head); font-size: 1.45rem; margin: 0 0 6px; }
.est-pro {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  padding: 10px 12px; border-radius: var(--r-lg);
  background: rgba(198,140,160,.10); border: 1px solid #a76a80;
}
.est-pro__img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  object-position: center 22%; flex: none; background: var(--c-surface);
}
.est-pro__t { min-width: 0; }
.est-pro__t b { display: block; font-family: var(--font-head); font-size: 1rem; }
.est-pro__t small { color: var(--c-text-muted); font-size: .84rem; }
.est-desc { margin-top: 10px; }
/* Dónde está: el que llega por un enlace compartido puede no saber ni de qué
   barbería le hablan. */
.est-ubi {
  display: flex; gap: 6px; margin-top: 10px; font-size: .86rem;
  color: var(--c-text-muted); line-height: 1.4;
}
/* Orientación de precios. TEXTO, no botones: en la ficha no se selecciona nada
   (para eso está "Ver servicios y reservar"). */
.est-lista { margin: 16px 0 4px; }
.est-desde {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 7px 0; border-bottom: 1px dashed var(--c-border);
  font-size: .9rem; color: var(--c-text-muted);
}
.est-desde b { color: var(--c-text); font-weight: 700; white-space: nowrap; }
.est-acciones { margin-top: 18px; }
.est-acciones .btn { justify-content: center; }
/* Bloque de la pantalla "cita confirmada" */
.okest {
  margin-top: 18px; padding: 14px; border-radius: var(--r-lg);
  background: rgba(198,140,160,.10); border: 1px solid #a76a80; text-align: center;
}
.okest b { display: block; font-family: var(--font-head); font-size: .98rem; }
.okest small { display: block; color: var(--c-text-muted); font-size: .82rem; margin-top: 3px; }
.okest-b { display: flex; gap: 8px; margin-top: 10px; }
.okest-b .btn { flex: 1; justify-content: center; padding: 9px 12px; font-size: .84rem; }
/* Chivato cruzado: "esta no abre domingos, pero la otra sí" (tarjeta pulsable) */
.domcross {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  margin: 12px 0 2px; padding: 11px 13px; border-radius: var(--r-lg);
  background: rgba(181,137,95,.10); border: 1px dashed var(--c-accent-600, #8a5e3b);
  color: var(--c-text); font: inherit; cursor: pointer;
}
.domcross:hover { background: rgba(181,137,95,.18); }
.domcross .dc-ico { font-size: 1.25rem; flex: none; }
.domcross .dc-t { flex: 1; min-width: 0; }
.domcross .dc-t b { display: block; font-family: var(--font-head); font-size: .92rem; }
.domcross .dc-t small { color: var(--c-text-muted); font-size: .8rem; }
.domcross .chev { color: var(--c-accent-300, #b5895f); font-size: 1.2rem; }
.langsw {
  display: flex; background: rgba(43,46,58,.92); border: 1px solid var(--c-border);
  border-radius: 30px; overflow: hidden; backdrop-filter: blur(6px);
}
.langsw button {
  background: none; border: none; color: var(--c-text-muted);
  padding: 6px 12px; font-weight: 700; font-size: .8rem; font-family: var(--font-head);
}
.langsw button.on { background: var(--c-accent); color: #fff; }

/* Tarjeta de barbería con foto */
.local-card {
  width: 100%; text-align: left; background: var(--c-bg-3); color: var(--c-text);
  border: 1.5px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden;
  margin-bottom: 14px; transition: border-color .15s;
}
.local-card:hover { border-color: var(--c-accent-600); }
.local-card__img { width: 100%; height: 140px; object-fit: cover; background: var(--c-surface); }
.local-card__b { padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.local-card__t { flex: 1; min-width: 0; }
.local-card__t b { font-family: var(--font-head); font-size: 1.05rem; display: block; }
.local-card__t small { color: var(--c-text-muted); font-size: .85rem; }
.local-card .chev { color: var(--c-text-muted); font-size: 1.3rem; }
/* Acción principal de la tarjeta, con su nombre escrito. Sin esto, lo único que
   decía "toca aquí" era una flechita gris, y los avisos de novedad se la comían. */
.local-card__cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 16px; border-top: 1px solid var(--c-border);
  background: rgba(181,137,95,.10);
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  color: var(--c-accent-300, #b5895f);
}
.local-card__cta .chev { color: inherit; font-size: 1.1rem; }
.local-card:hover .local-card__cta { background: rgba(181,137,95,.18); }
.maps {
  display: inline-flex; align-items: center; gap: 5px; color: var(--c-accent-300);
  font-size: .82rem; text-decoration: none; margin-top: 3px;
}
.maps:hover { text-decoration: underline; }

/* Valoraciones y miniaturas */
.rate { color: var(--c-gold); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.rate small { color: var(--c-text-muted); font-weight: 400; }
.rate--new { color: var(--c-info); background: rgba(0,148,205,.14); padding: 1px 8px; border-radius: 20px; font-size: .72rem; }
.starsrow span { color: var(--c-border); font-size: .95rem; }
.starsrow span.on { color: var(--c-gold); }
.cardmeta { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.thumbs { display: flex; gap: 4px; padding: 0 12px 12px; }
.thumbs img { width: 25%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.opt--barbero .rate { font-size: .8rem; }

/* Panel deslizante (ficha de barbero / valoración) */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6);
  display: none; align-items: flex-end; justify-content: center; }
.sheet.on { display: flex; animation: fade .2s ease; }
.sheet__panel { position: relative; background: var(--c-bg-2); width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 22px 16px calc(16px + env(safe-area-inset-bottom)); }
.sheet__close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--c-border); background: var(--c-bg-3); color: var(--c-text); font-size: 1rem; }
.sheet__hd { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.sheet__h { font-family: var(--font-head); font-size: 1rem; margin: 18px 0 10px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); cursor: pointer; }

/* Carrusel horizontal (3 visibles) */
.carousel { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.carousel__img {
  flex: 0 0 auto; width: 31%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--r-md); cursor: pointer; scroll-snap-align: start;
}

/* Visor de foto a pantalla completa */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s ease; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--r-md); }
.lightbox__x { position: fixed; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 1.1rem; z-index: 2; cursor: pointer; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 46px;
  border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 1.8rem;
  line-height: 1; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
.lightbox__count { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; background: rgba(0,0,0,.45); padding: 3px 12px; border-radius: 999px; font-size: .85rem; }
/* Portada de barbería */
.shopbanner { width: 100%; height: 200px; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 14px; }
.soc-follow { margin: 14px 0 6px; font-size: .82rem; color: var(--c-text-2, #9aa0a6); }
.about { margin-bottom: 4px; }
.about__txt.is-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.about__more { background: none; border: none; color: var(--c-accent-300, #b5895f); cursor: pointer;
  font: inherit; padding: 4px 0 0; text-decoration: underline; }
.socials { display: flex; gap: 10px; margin: 6px 0 12px; }
.socials .soc { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: var(--c-bg-3); border: 1px solid var(--c-border); color: var(--c-text); text-decoration: none; }
.socials .soc:hover { border-color: var(--c-accent); color: var(--c-accent-300); }
.team { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.teamcard { flex: 0 0 auto; width: 84px; color: var(--c-text);
  display: flex; flex-direction: column; align-items: center; gap: 4px; }
.teamcard .avatar { width: 64px; height: 64px; }
.teamcard__n { font-size: .78rem; text-align: center; line-height: 1.2; }

.review { border-top: 1px solid var(--c-border); padding: 10px 0; }
.review b { font-size: .85rem; }
.review p { color: var(--c-text-muted); font-size: .9rem; margin-top: 4px; }
.ratepick { display: flex; gap: 6px; font-size: 2.2rem; margin: 8px 0; }
.ratepick span { color: var(--c-border); cursor: pointer; transition: color .1s; }
.ratepick span.on { color: var(--c-gold); }

/* Iconos redondos (barbería / barbero) */
.avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  background: var(--c-surface); flex-shrink: 0; border: 1px solid var(--c-border);
}
.avatar--txt { display: grid; place-items: center; font-weight: 700;
  font-family: var(--font-head); color: var(--c-accent-300); font-size: 1.1rem; }

/* Servicio con descripción desplegable */
.svc { margin-bottom: 12px; }
.svc .opt { margin-bottom: 0; }
.svc-more { background: none; border: none; color: var(--c-accent-300); font-size: .82rem;
  padding: 6px 4px 2px 18px; cursor: pointer; font-family: var(--font-head); }
.svc-desc { color: var(--c-text-muted); font-size: .88rem; white-space: pre-line;
  padding: 4px 18px 8px; line-height: 1.55; }

/* Categoría de servicios */
/* Cabecera de grupo (PESTAÑAS, CEJAS, PEDICURA…).
   Antes era solo texto pequeño y los grupos se confundían entre sí: la carta
   parecía una lista continua. Ahora el nombre pesa y una raya fina lo acompaña
   hasta el borde, que es como se separan los bloques en una carta de servicios.
   El rombo y la raya son decorativos (::before / ::after): no se seleccionan ni
   los lee un lector de pantalla, y el HTML no cambia. */
.cat { display: flex; align-items: center; gap: 11px;
  font-family: var(--font-head); font-size: .95rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--c-gold); margin: 34px 0 14px; }
.cat::before { content: "✦"; font-size: .8em; opacity: .65; letter-spacing: 0; }
.cat::after { content: ""; flex: 1 1 24px; min-width: 24px; height: 1px;
  background: linear-gradient(to right, var(--c-gold), transparent); opacity: .45; }
.cat:first-child { margin-top: 0; }

/* ---------- Fechas (chips horizontales) ---------- */
.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px;
  scrollbar-width: thin; }
.date {
  flex: 0 0 auto; width: 64px; text-align: center; background: var(--c-bg-3);
  border: 1.5px solid var(--c-border); border-radius: var(--r-md); padding: 10px 4px; color: var(--c-text);
}
.date.sel { border-color: var(--c-accent); background: #33261d; }
.date small { display: block; color: var(--c-text-muted); font-size: .7rem; text-transform: uppercase; }
.date b { font-size: 1.3rem; font-family: var(--font-head); }
.date span { display: block; font-size: .72rem; color: var(--c-text-muted); }

/* ---------- Horas (grid de slots) ---------- */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.slot {
  background: var(--c-bg-3); border: 1.5px solid var(--c-border); border-radius: var(--r-md);
  padding: 12px 6px; color: var(--c-text); font-weight: 600; font-size: 1rem; text-align: center;
}
.slot:hover { border-color: var(--c-accent-600); }
.slot.sel { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }

.empty { text-align: center; color: var(--c-text-muted); padding: 30px 10px; }

/* ---------- Formulario ---------- */
.fld { margin-bottom: 14px; }
.fld label { display: block; font-size: .85rem; margin-bottom: 6px; color: var(--c-text-muted); }
.fld input[type=text], .fld input[type=tel], .fld input[type=email], .fld input[type=password], .fld textarea {
  width: 100%; background: var(--c-bg-2); border: 1.5px solid var(--c-border); border-radius: var(--r-md);
  padding: 13px 14px; color: var(--c-text); font-size: 1rem; font-family: inherit;
}
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--c-accent); }
.fld textarea { resize: vertical; min-height: 64px; }
.hp { position: absolute; left: -9999px; }
.birthday__hint { display: block; color: var(--c-accent-300); font-size: .78rem; margin-top: 5px; }
.birthday { background: linear-gradient(135deg, #33261d, var(--c-bg-3)); border: 1px solid var(--c-accent-600);
  border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 14px; }
.birthday label { display: block; font-size: .85rem; margin-bottom: 8px; color: var(--c-accent-300); }
.birthday input { width: 100%; background: var(--c-bg-2); border: 1.5px solid var(--c-border);
  border-radius: var(--r-md); padding: 12px 14px; color: var(--c-text); font-size: 1rem; font-family: inherit; }
.birthday input:focus { outline: none; border-color: var(--c-accent); }

/* Selector de cumpleaños (día/mes/año) */
.bdsel { display: flex; gap: 8px; }
.bdsel select {
  flex: 1; min-width: 0; background: var(--c-bg-2); border: 1.5px solid var(--c-border);
  border-radius: var(--r-md); padding: 12px 8px; color: var(--c-text); font-size: 1rem; font-family: inherit;
}
.bdsel select:focus { outline: none; border-color: var(--c-accent); }
.bdsel .bd-y { flex: 1.2; }
.check {
  display: flex; gap: 10px; align-items: flex-start; background: var(--c-bg-3);
  border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 12px; font-size: .85rem;
  color: var(--c-text-muted);
}
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--c-accent); }

/* Mini-mapa en el paso de datos */
.minimap { width: 100%; height: 170px; border: 0; border-radius: var(--r-lg); display: block; }
#mini-mapa { margin-bottom: 16px; }

/* ---------- Resumen ---------- */
.resumen { background: var(--c-bg-3); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: 16px; margin-bottom: 16px; }
.resumen .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; }
.resumen .row.tot { border-top: 1px solid var(--c-border); margin-top: 6px; padding-top: 10px;
  font-weight: 700; font-size: 1.05rem; }
.resumen .lbl { color: var(--c-text-muted); }

/* ---------- Barra de acción inferior ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; background: rgba(27,29,39,.96);
  backdrop-filter: blur(8px); border-top: 1px solid var(--c-border); padding: 12px 16px;
  display: none;
}
.actionbar.on { display: block; }
.actionbar__in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.actionbar .tot { flex: 1; }
.actionbar .tot small { display: block; color: var(--c-text-muted); font-size: .75rem; }
.actionbar .tot b { font-size: 1.15rem; font-family: var(--font-head); }

.btn {
  background: var(--c-accent); color: #fff; border: none; border-radius: var(--r-md);
  padding: 14px 22px; font-weight: 700; font-size: 1rem; font-family: var(--font-head);
  transition: background .15s; white-space: nowrap;
}
.btn:hover { background: var(--c-accent-600); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; border: 1.5px solid var(--c-border); color: var(--c-text); }

/* ---------- Éxito / cancelación ---------- */
.result { text-align: center; padding: 30px 10px; }
.result .ic {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 18px; font-size: 2.4rem; background: #33261d; border: 2px solid var(--c-accent);
}
.result .ic.err { background: #3a1d22; border-color: var(--c-barber-red); }
.result h2 { font-family: var(--font-head); margin-bottom: 8px; }
.result p { color: var(--c-text-muted); margin-bottom: 8px; }

/* ---------- Mi cuenta ---------- */
.authtabs { display: flex; background: var(--c-bg-3); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: 4px; margin-bottom: 18px; }
.authtab { flex: 1; background: none; border: none; color: var(--c-text-muted);
  padding: 10px; border-radius: var(--r-sm); font-family: var(--font-head); font-weight: 700; font-size: .9rem; }
.authtab.on { background: var(--c-accent); color: #fff; }

.acct-hi { display: flex; align-items: center; gap: 12px; background: var(--c-bg-3);
  border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 14px; margin: 8px 0 16px; }
.acct-h { font-family: var(--font-head); font-size: 1.05rem; margin: 20px 0 10px; }

.fidel { background: linear-gradient(135deg, #33261d, var(--c-bg-3));
  border: 1px solid var(--c-accent-600); border-radius: var(--r-lg); padding: 16px; margin-bottom: 8px; }
.fidel__top { display: flex; justify-content: space-between; font-family: var(--font-head);
  font-weight: 700; margin-bottom: 10px; }
.fidel__bar { height: 10px; background: rgba(255,255,255,.1); border-radius: 6px; overflow: hidden; }
.fidel__bar div { height: 100%; background: var(--c-accent); border-radius: 6px; transition: width .4s; }
.fidel__sub { color: var(--c-text-muted); font-size: .85rem; margin-top: 10px; }

.cita-card { background: var(--c-bg-3); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: 14px; margin-bottom: 10px; }
.cita-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cita-card__top b { font-family: var(--font-head); }

.badge { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.badge.reservada  { background: rgba(0,148,205,.18);  color: #4fc3f7; }
.badge.confirmada { background: rgba(148,171,79,.18);  color: #b6cf6a; }
.badge.completada { background: rgba(159,113,80,.22);  color: var(--c-accent-300); }
.badge.cancelada  { background: rgba(107,107,107,.22); color: #b3b3b3; }
.badge.no_show    { background: rgba(255,23,48,.16);   color: #ff6b7a; }

.spinner { text-align: center; color: var(--c-text-muted); padding: 30px; }
.pwa-install {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 55;
  background: var(--c-accent); color: #fff; border: none; border-radius: 30px;
  padding: 12px 22px; font-weight: 700; font-family: var(--font-head); font-size: .95rem;
  box-shadow: var(--shadow-2); animation: fade .3s ease;
}
.pwa-install:hover { background: var(--c-accent-600); }

.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  background: var(--c-barber-red); color: #fff; padding: 10px 18px; border-radius: 30px;
  font-size: .9rem; z-index: 50; box-shadow: var(--shadow-2);
}

/* ---------- Club Smith (consentimiento de marketing con gancho) ----------
   Nadie marca "quiero publicidad"; sí marcan "quiero mi regalo". La caja
   destaca el beneficio y late suavemente para que no pase desapercibida. */
.club {
  position: relative; margin: 16px 0;
  background: linear-gradient(145deg, rgba(181,163,115,.14), rgba(159,113,80,.08));
  border: 1.5px solid var(--c-gold); border-radius: var(--r-lg); padding: 16px;
  animation: club-latido 2.6s ease-in-out infinite;
}
@keyframes club-latido {
  0%, 100% { box-shadow: 0 0 0 0 rgba(181,163,115,.45); }
  50%      { box-shadow: 0 0 0 8px rgba(181,163,115,0); }
}
.club__h { font-family: var(--font-head, inherit); font-size: 1.05rem; font-weight: 800;
  margin: 0 0 2px; display: flex; align-items: center; gap: 8px; }
.club__h .ico { font-size: 1.3rem; animation: club-regalo 2.6s ease-in-out infinite; }
@keyframes club-regalo {
  0%, 82%, 100% { transform: rotate(0) scale(1); }
  86% { transform: rotate(-12deg) scale(1.18); }
  92% { transform: rotate(10deg) scale(1.18); }
}
.club__sub { color: var(--c-text-muted); font-size: .84rem; margin: 0 0 10px; }
.club__list { list-style: none; margin: 0 0 12px; padding: 0; font-size: .88rem; }
.club__list li { padding: 4px 0 4px 22px; position: relative; }
.club__list li::before { content: '✓'; position: absolute; left: 0; color: var(--c-gold); font-weight: 800; }
.club .check { background: transparent; border: 0; padding: 6px 0 0; font-size: .95rem;
  font-weight: 700; color: var(--c-text); }
.club .check input { width: 22px; height: 22px; accent-color: var(--c-gold); }
.club__legal { font-size: .72rem; color: var(--c-text-muted); margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) {
  .club, .club__h .ico { animation: none; }
}

/* ---------- Aviso de cuenta recién activada (cuenta.php?bienvenida=1) ---------- */
.acct-ok { background: rgba(46,125,50,.16); border: 1.5px solid #4caf50; border-radius: var(--r-lg);
  padding: 14px 16px; margin-bottom: 16px; }
.acct-ok__h { font-weight: 800; font-size: 1.05rem; margin: 0 0 4px; }
.acct-ok__p { margin: 0; font-size: .88rem; color: var(--c-text-muted); }
.fld label .opt { font-weight: 400; color: var(--c-text-muted); font-size: .85em; }

/* ---------- Ojito ver/ocultar clave (vincular.php) ---------- */
.pass-wrap { position: relative; }
.pass-wrap input { width: 100%; padding-right: 44px; box-sizing: border-box; }
.pass-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; font-size: 1.15rem; line-height: 1;
  padding: 6px; opacity: .8;
}
.pass-eye:hover { opacity: 1; }

/* ---------- "Ring" del Club: un meneo con brillo, una sola vez ----------
   Es un empujón amable, no un bloqueo: llama la atención y ya. */
@keyframes club-ring {
  0%, 100% { transform: translateX(0); }
  10%, 50%, 90% { transform: translateX(-7px); }
  30%, 70%     { transform: translateX(7px); }
}
.club--ring {
  animation: club-ring .6s ease-in-out 2, club-latido 2.6s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(181,163,115,.55);
}
@media (prefers-reduced-motion: reduce) {
  .club--ring { animation: none; box-shadow: 0 0 0 3px rgba(181,163,115,.55); }
}

/* ---- Zona de estética SIN profesional (lista de espera) ----
   Ocupa el sitio donde iba la ficha de la profesional: ni hueco vacío ni la
   foto de quien ya no trabaja aquí. El escaparate (precios, carta y galería)
   se mantiene intacto: es lo que sigue trayendo clientas mientras tanto. */
.est-pausa {
  background: var(--c-bg-2, #22242f);
  border: 1px solid var(--c-accent-700, #6d4b33);
  border-radius: var(--r-lg, 14px);
  padding: 16px;
  margin: 14px 0 4px;
}
.est-pausa b { display: block; font-family: var(--font-head, serif); font-size: 1.02rem; margin-bottom: 4px; }
.est-pausa p { margin: 0 0 12px; color: var(--c-text-muted, #9aa0ab); font-size: .9rem; line-height: 1.45; }
.est-pausa--banda { margin: 0 0 var(--sp-3, 14px); }
.est-pausa--banda p { margin: 0; }

/* Formulario de la lista de espera: mismo lenguaje visual que el resto de la
   app (fondo oscuro, esquinas suaves, acento marrón). Los chips se eligen
   tocando y el estado "elegido" tiene que verse de un vistazo. */
.esp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.esp-chip {
  background: var(--c-bg-2, #22242f);
  border: 1.5px solid var(--c-border, #333845);
  color: var(--c-text, #eee);
  border-radius: var(--r-md, 12px);
  padding: 11px 16px;
  font: inherit; font-size: .92rem; line-height: 1;
  cursor: pointer; transition: border-color .12s, background .12s;
}
.esp-chip:active { transform: scale(.97); }
.esp-chip.on {
  background: var(--c-accent, #9f7150);
  border-color: var(--c-accent, #9f7150);
  color: #fff; font-weight: 600;
}
.esp-legal {
  color: var(--c-text-muted, #9aa0ab);
  font-size: .8rem; line-height: 1.45;
  margin: 2px 0 14px;
}
