/* =====================================================================
   Barbier Du Roi · Página de citas (Barbiercitax)
   Paleta: dorado antiguo #C49A50 (igual al logo), negro #1A1A1A, hueso #F5F1E8
   Tipografía (3.8, elegida por el dueño): Playfair Display en los títulos
   e Inter en los textos y los números (cifras de ancho fijo en precios,
   totales, horas y tablas). Las letras se sirven desde /fonts/ (ver
   css/fonts.css). Tamaño base 17 px y contraste alto.
   ===================================================================== */

:root {
  --gold: #C49A50;
  --gold-hover: #B0873F;
  --gold-text: #6B4E1C;      /* dorado oscuro legible sobre fondo claro */
  --gold-soft: #F2E6CC;
  --ink: #1A1A1A;
  --ink-soft: #2E2B24;
  --muted: #555046;          /* gris cálido con buen contraste (7:1) */
  --faint: #A39A86;
  --bone: #F5F1E8;
  --paper: #FFFDF8;
  --line: #E2D9C5;
  --line-strong: #C9BB9A;
  --night: #131313;
  --danger: #9B2C2C;
  --danger-soft: #F7E3E0;
  --ok: #2F6B3A;

  /* 3.8: Playfair Display (títulos) e Inter (textos y números). El chino y
     cualquier letra que no traen caen en las letras del sistema. */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;

  --radius-s: 6px;
  --radius-m: 12px;
  --shadow-soft: 0 2px 10px rgba(26, 26, 26, 0.06);
  --shadow-pop: 0 12px 32px rgba(26, 26, 26, 0.14);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 106.25%; /* 17 px: más fácil de leer en el celular */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

button,
input,
textarea,
select { font: inherit; color: inherit; }

button { cursor: pointer; }

button,
a,
label { -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--gold-text);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--gold);
  padding: 10px 14px;
  z-index: 100;
  border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; }

.main {
  flex: 1;
  width: 100%;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
}

/* ---------------------------------------------------------------------
   Barra superior y progreso
   --------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 241, 232, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}

.topbar__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 16px 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.topbar__brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
}

.topbar__logo {
  height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.topbar__step {
  justify-self: end;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-align: right;
}

.link-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: none;
  border: 0;
  padding: 8px 6px 8px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-s);
}

.progress {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 10px;
  display: grid;
  /* 3.6.1: una barrita por paso (5, o 4 sin el paso de la asistente) */
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 5px;
}

.progress__seg {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  transition: background-color 0.3s var(--ease);
}
.progress__seg.is-done { background: var(--gold); }

/* ---------------------------------------------------------------------
   Pantallas
   --------------------------------------------------------------------- */
.screen {
  max-width: 640px;
  margin: 0 auto;
  padding: 26px 18px 48px;
}

.screen.is-entering { animation: screen-in 0.35s var(--ease); }

@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.screen__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.95rem;
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.screen__title:focus { outline: none; }
.screen__title--center { text-align: center; }

.screen__lead {
  margin: 0 0 22px;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 34em;
}
.screen__lead--center { text-align: center; margin-left: auto; margin-right: auto; }

.group-title {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 26px 0 10px;
}
.group-title:first-child { margin-top: 0; }

.group-lead {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hint-box {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-s);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------------
   Bienvenida: portada con foto de la barbería
   --------------------------------------------------------------------- */
.screen--welcome {
  max-width: none;
  padding: 0 0 40px;
}

.welcome-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #FBF7EC;
  background:
    radial-gradient(120% 80% at 50% 0%, #2A2416 0%, transparent 60%),
    var(--night);
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 92px;
  min-height: min(68vh, 560px);
  min-height: min(68svh, 560px);
  display: flex;
  flex-direction: column;
}

.welcome-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2; /* la foto va debajo del velo oscuro */
}

.welcome-hero__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 7s linear;
}
.welcome-hero__img.is-on {
  opacity: 1;
  transform: scale(1);
}

/* Velo oscuro para que el texto se lea sobre cualquier foto */
.welcome-hero.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 55% at 50% 42%, rgba(10, 10, 10, 0.25) 0%, transparent 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.62) 0%, rgba(10, 10, 10, 0.5) 45%, rgba(10, 10, 10, 0.9) 100%);
}

.welcome-hero__tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.tool-btn,
.lang-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(251, 247, 236, 0.35);
  background: rgba(19, 19, 19, 0.45);
  color: #FBF7EC;
  font-size: 0.9375rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lang-pick { position: relative; padding-right: 8px; }

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 8px 18px 8px 0;
  max-width: 11.5em;
  text-overflow: ellipsis;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23C49A50' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
.lang-select option { color: var(--ink); background: var(--paper); }

.lang-pick--light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
  backdrop-filter: none;
}
.lang-pick--light .lang-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231A1A1A' stroke-width='1.6'/%3E%3C/svg%3E");
}

.welcome-hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 26px;
}

.hero__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo-img {
  max-width: min(300px, 74vw);
  max-height: min(300px, 40vh);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
  animation: crown-in 0.8s var(--ease) both;
}

.hero__crown {
  margin: 0 auto 12px;
  animation: crown-in 0.8s var(--ease) both;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 12.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: 'opsz' 96;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero__rule {
  display: block;
  width: 88px;
  height: 2px;
  margin: 18px auto 14px;
  background: var(--gold);
  transform-origin: center;
  animation: rule-in 0.9s 0.25s var(--ease) both;
}

.hero__kicker {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__greeting {
  margin: 0;
  max-width: 24em;
  font-size: 1.1875rem;
  line-height: 1.45;
  color: #F3EEDF;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

@keyframes crown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@keyframes rule-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.welcome-body {
  position: relative;
  max-width: 640px;
  margin: -64px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.welcome-form,
.contact-form {
  display: grid;
  gap: 22px;
}

.welcome-form {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 24px 20px;
}

.review-banner {
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--radius-m);
  border-left: 4px solid var(--gold);
  padding: 16px 18px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow-pop);
}
.review-banner__text { margin: 0; font-size: 1rem; }
.review-banner__actions { display: flex; align-items: center; gap: 16px; }
.review-banner .link-btn { color: #D9D2C0; }

/* ---------- Experiencias de clientes ---------- */
.experiences { margin-top: 18px; min-width: 0; }

.experiences__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 12px;
}

.experiences__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.experiences__summary {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.experiences__summary strong { color: var(--ink); font-size: 1.0625rem; }

.experiences__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 82%);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 12px;
  margin: 0 -2px;
  scrollbar-width: thin;
}

.exp-card {
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-card__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.exp-card__by { margin: auto 0 0; font-size: 0.9375rem; color: var(--muted); }
.exp-card__by strong { color: var(--ink); }
.exp-card__date { margin: 0; font-size: 0.8125rem; color: var(--muted); }

.mini-stars { display: inline-flex; gap: 1px; font-size: 1.05rem; line-height: 1; }
.mini-star { color: #DDD3BD; }
.mini-star.is-on { color: var(--gold); }

/* ---------------------------------------------------------------------
   Campos de formulario
   --------------------------------------------------------------------- */
.field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field__label {
  font-weight: 600;
  font-size: 1rem;
  padding: 0;
}

.field__hint {
  font-size: 0.875rem;
  color: var(--muted);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.input {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 13px 14px;
  font-size: 1rem; /* 16 px o más evita el zoom automático en iPhone */
  line-height: 1.35;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: #8F866F; }
.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(196, 154, 80, 0.4);
}
.input[aria-invalid='true'] { border-color: var(--danger); }
.input--area { resize: vertical; min-height: 64px; }

.toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toggle__btn {
  padding: 13px 10px;
  border: 1.5px solid var(--line-strong);
  background: #FFFFFF;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 1.0625rem;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.toggle__btn[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold);
}

.form-error {
  margin: 0;
  white-space: pre-line;
  padding: 11px 14px;
  background: var(--danger-soft);
  color: var(--danger);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-s);
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-error--spaced { margin-bottom: 18px; }

/* ---------------------------------------------------------------------
   Botones
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--gold); }
.btn--block { width: 100%; }
.btn--big { padding: 16px 22px; font-size: 1.0625rem; }
.btn--small { padding: 9px 14px; font-size: 0.9375rem; }

.btn.is-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.link-btn {
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.9375rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  border-radius: 50%;
  color: var(--ink);
}
.icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------------------------------------------------------------------
   Equipo (peluqueros y asistentes)
   --------------------------------------------------------------------- */
.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.person {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.person[aria-pressed='true'] {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
}

.person__photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }

.person__initials {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.person__body {
  padding: 11px 12px 13px;
  display: grid;
  gap: 3px;
}

.person__name {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
}

.person__specialty {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.35;
}

/* 3.5: "Sorpresa" va al final y con la misma tarjeta clara que los demás,
   para que no parezca ya escogida (antes era negra y salía primera). */
.person--surprise .person__photo {
  background:
    radial-gradient(circle at 50% 45%, #2C2618 0%, var(--ink) 70%);
}

.rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
  font-size: 0.875rem;
  color: var(--muted);
}
.rating strong { color: var(--ink); font-size: 0.9375rem; }
.rating--new {
  align-self: start;
  width: max-content;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-text);
  font-weight: 600;
  font-size: 0.8125rem;
}

.check-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  display: none;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
[aria-pressed='true'] > .check-badge { display: grid; }

/* ---------------------------------------------------------------------
   Servicios (con foto y selección múltiple)
   --------------------------------------------------------------------- */
.screen--with-bar { padding-bottom: 120px; }

.svc-list {
  display: grid;
  gap: 10px;
}

.svc {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 10px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.svc[aria-pressed='true'] {
  border-color: var(--gold);
  background: #FFF9E8;
  box-shadow: 0 0 0 1.5px var(--gold);
}

.svc__img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc__img--icon { color: var(--gold); }

.svc__body {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-top: 2px;
}

.svc__name {
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.svc__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.svc__time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  color: var(--gold-text);
  font-weight: 600;
}

.svc__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  align-self: stretch;
  padding: 2px 2px 0 0;
}

.svc__price {
  font-weight: 700;
  font-size: 1.0625rem;
  white-space: nowrap;
}

.svc__check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
  background: #FFFFFF;
}
.svc__check svg { opacity: 0; }
.svc[aria-pressed='true'] .svc__check { background: var(--gold); border-color: var(--gold); }
.svc[aria-pressed='true'] .svc__check svg { opacity: 1; }

.badge-pop {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px 2px 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-pop svg { width: 12px; height: 12px; }

/* ---------- 3.6.1: paso "¿Algo con la asistente?" ---------- */
/* Cuánto cambia la duración: "Tu cita no dura más" / "Tu cita dura 10 min más" */
.asst-time {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -6px 0 20px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-m);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: var(--shadow-soft);
}
.asst-time svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--gold-text); }
.asst-time.is-more { background: var(--gold-soft); }
/* El botón "Continuar sin asistente" es largo: puede ir en dos líneas sin empujar la barra */
#btnAssistantNext { white-space: normal; text-align: center; line-height: 1.25; max-width: 58%; }

/* ---------- Asistente acompañante ---------- */
.companion {
  margin-top: 28px;
  padding-top: 4px;
}

.companion__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.chip-person {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px 12px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  transition: border-color 0.15s, background-color 0.15s;
}
.chip-person[aria-pressed='true'] {
  border-color: var(--gold);
  background: #FFF9E8;
  box-shadow: 0 0 0 1.5px var(--gold);
}
.chip-person:disabled { opacity: 0.45; cursor: not-allowed; }

.chip-person__avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.chip-person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.chip-person__initials { font-family: var(--serif); color: var(--gold); font-size: 1.15rem; }
.chip-person__body { display: grid; gap: 1px; min-width: 0; }
.chip-person__name { font-weight: 600; line-height: 1.25; }
.chip-person__sub { font-size: 0.875rem; color: var(--muted); line-height: 1.3; }
.chip-person .rating { margin-top: 1px; }

/* ---------- Barra fija con el total ---------- */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: rgba(19, 19, 19, 0.97);
  color: var(--bone);
  border-top: 2px solid var(--gold);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.action-bar__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.action-bar__info { display: grid; min-width: 0; }
.action-bar__count { font-size: 0.9375rem; color: #DDD6C4; }
.action-bar__total { font-size: 1.25rem; font-weight: 700; color: var(--gold); }
.action-bar .btn { flex: none; min-width: 9em; }

/* ---------------------------------------------------------------------
   Calendario
   --------------------------------------------------------------------- */
.calendar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 14px 12px 12px;
  box-shadow: var(--shadow-soft);
}

.calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.calendar__month {
  font-size: 1.25rem;
  font-weight: 600;
}

.calendar__weekdays,
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar__weekdays {
  margin-bottom: 4px;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.day {
  position: relative;
  aspect-ratio: 1;
  min-height: 42px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-s);
  font-size: 1.0625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  transition: background-color 0.12s;
}
.day:disabled {
  color: #B3AA96;
  font-weight: 400;
  cursor: not-allowed;
}
.day--empty { visibility: hidden; }
.day.is-today::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--gold);
}
.day[aria-pressed='true'] {
  background: var(--ink);
  color: var(--gold);
}
.day.is-loading { color: var(--faint); }

.calendar__legend {
  margin: 10px 2px 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------------
   Horarios
   --------------------------------------------------------------------- */
.slots { margin-top: 26px; }

.slots__title {
  font-size: 1.1875rem;
  font-weight: 600;
  margin: 0 0 14px;
}
.slots__title::first-letter { text-transform: uppercase; }

.slot-group + .slot-group { margin-top: 18px; }

.slot-group__label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 8px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}

.slot {
  padding: 13px 6px;
  border: 1.5px solid var(--line-strong);
  background: #FFFFFF;
  border-radius: var(--radius-s);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.12s, border-color 0.12s;
}
.slot[aria-pressed='true'] {
  background: var(--gold);
  border-color: var(--gold);
}

.empty-state {
  padding: 18px;
  background: var(--paper);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-m);
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0;
}

/* ---------------------------------------------------------------------
   Resumen tipo tarjeta de invitación
   --------------------------------------------------------------------- */
.ticket {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--gold);
  padding: 30px 22px 24px;
  margin-bottom: 26px;
  text-align: center;
}

.ticket__crown { margin: 0 auto 10px; }

.ticket__for {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
}

.ticket__name {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 2px 0 6px;
  overflow-wrap: anywhere;
}

.ticket__badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--ink);
  color: var(--gold);
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.ticket__rows {
  margin: 18px 0 0;
  text-align: left;
  border-top: 1px solid var(--line);
}

.ticket__row {
  display: grid;
  grid-template-columns: 7.2em 1fr;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}

.ticket__row dt {
  color: var(--muted);
  font-size: 0.9375rem;
  padding-top: 1px;
}

.ticket__row dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ticket__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.ticket__list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.ticket__list li span:last-child { white-space: nowrap; font-weight: 500; color: var(--ink-soft); }
.ticket__list em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 0.875rem; }

.ticket__total dt { color: var(--ink); font-weight: 600; }
.ticket__total dd {
  font-size: 1.3rem;
  font-weight: 700;
}

/* ---------------------------------------------------------------------
   Confirmación final y opinión
   --------------------------------------------------------------------- */
.done__mark {
  display: block;
  margin: 8px auto 16px;
  animation: crown-in 0.5s var(--ease) both;
}

.done__actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.review__head { text-align: center; margin-bottom: 20px; }

.review__avatar {
  width: 96px;
  height: 96px;
  margin: 4px auto 14px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--ink);
  border: 3px solid var(--gold);
}
.review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review__initials { font-family: var(--serif); font-size: 2rem; color: var(--gold); }

.review__form {
  display: grid;
  gap: 22px;
  padding: 22px 18px;
}

.review__done { text-align: center; padding-top: 24px; }
.review__done .ticket__crown { margin: 0 auto 14px; width: 56px; height: 35px; }

.star-input {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.star-btn {
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  font-size: 2.6rem;
  line-height: 1;
  color: #DDD3BD;
  border-radius: 50%;
  transition: transform 0.12s, color 0.12s;
}
.star-btn.is-on { color: var(--gold); }
.star-btn:active { transform: scale(0.9); }

.star-input__text {
  margin: 0;
  min-height: 1.5em;
  text-align: center;
  font-weight: 600;
  color: var(--gold-text);
}

/* ---------------------------------------------------------------------
   Avisos y carga
   --------------------------------------------------------------------- */
.notice {
  max-width: 640px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  text-align: center;
  color: var(--ink-soft);
}

.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 1rem;
  padding: 14px 2px;
  margin: 0;
}
.loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--gold);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  background: var(--ink);
  color: var(--bone);
  padding: 12px 18px;
  border-radius: var(--radius-s);
  border-left: 3px solid var(--gold);
  font-size: 0.9375rem;
  box-shadow: var(--shadow-pop);
  max-width: calc(100vw - 32px);
  animation: toast-in 0.25s var(--ease);
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------------------------------------------------------------------
   Pie de página
   --------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 20px calc(30px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}
.footer p { margin: 0; }
#footerHours { white-space: pre-line; }

.main-site {
  margin: 0 auto 22px;
  width: min(100%, 360px);
}

.footer__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px !important;
}

.footer a {
  color: var(--ink-soft);
  text-underline-offset: 3px;
}
.footer .main-site { color: var(--gold); text-decoration: none; }

.footer__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  margin: 18px 0 6px;
}

.footer__admin { margin-top: 14px !important; font-size: 0.875rem; }

/* ---------------------------------------------------------------------
   Efectos al pasar el mouse (solo en dispositivos con mouse)
   --------------------------------------------------------------------- */
@media (hover: hover) {
  .link-back:hover { color: var(--gold-text); }
  .toggle__btn:hover { border-color: var(--ink); }
  .btn--gold:hover:not(:disabled) { background: var(--gold-hover); }
  .btn--outline:hover:not(:disabled) { background: rgba(26, 26, 26, 0.05); }
  .btn--dark:hover { background: #2A2A2A; }
  .icon-btn:hover:not(:disabled) { border-color: var(--ink); }
  .person:hover { border-color: var(--line-strong); box-shadow: var(--shadow-pop); }
  .person[aria-pressed='true']:hover { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
  .svc:hover { border-color: var(--line-strong); }
  .svc[aria-pressed='true']:hover { border-color: var(--gold); }
  .chip-person:hover:not(:disabled) { border-color: var(--line-strong); }
  .chip-person[aria-pressed='true']:hover { border-color: var(--gold); }
  .day:hover:not(:disabled):not([aria-pressed='true']) { background: var(--bone); }
  .slot:hover { border-color: var(--ink); }
  .star-btn:hover { transform: scale(1.08); }
  .tool-btn:hover, .lang-pick:hover { border-color: var(--gold); }
  .footer a:hover { color: var(--ink); }
}

/* ---------------------------------------------------------------------
   Pantallas grandes
   --------------------------------------------------------------------- */
@media (min-width: 640px) {
  .screen { padding: 38px 24px 64px; }
  .screen--welcome { padding: 0 0 56px; }
  .hero__logo-img { max-height: min(340px, 44vh); }
  .screen--with-bar { padding-bottom: 130px; }
  .screen__title { font-size: 2.3rem; }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .ticket { padding: 34px 36px 28px; }
  .done__actions { grid-template-columns: 1fr 1fr; }
  .done__actions > :last-child { grid-column: 1 / -1; }
  .welcome-hero { padding-bottom: 110px; }
  .welcome-form { padding: 28px 28px; }
  .experiences__track { grid-auto-columns: minmax(260px, 46%); }
  .svc { grid-template-columns: 84px 1fr auto; padding: 12px; }
  .svc__img { width: 84px; height: 84px; }
}

/* ---------------------------------------------------------------------
   Movimiento reducido
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* La barra fija del total no debe moverse durante la animación de entrada. */
.screen--with-bar.is-entering { animation-name: fade-in; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
#assistantBlock { margin-top: 30px; }
body.has-bar .footer { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
.ticket__row--stack { grid-template-columns: 1fr; gap: 6px; }
.ticket__row--stack dd { font-weight: 600; }
.slot { font-size: 0.97rem; padding: 12px 4px; }
.badge-pop { white-space: nowrap; }

/* ---------- Precios en dólares (referencia) ---------- */
.usd-note {
  margin: -10px 0 18px;
  font-size: 0.875rem;
  color: var(--muted);
}
.svc__prices { display: grid; justify-items: end; gap: 1px; }
.svc__usd { font-size: 0.8125rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.action-bar__usd { display: inline; font-size: 0.875rem; font-weight: 500; color: #D9D2C0; margin-left: 4px; }
.ticket__usd {
  display: block;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
.footer__credit { margin-top: 10px !important; font-size: 0.8125rem; }

/* =====================================================================
   Versión 3: la foto y el escudo acompañan todos los pasos
   ===================================================================== */
body.has-photo::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(245, 241, 232, 0.88), rgba(245, 241, 232, 0.93)),
    var(--bg-photo) center / cover no-repeat;
}

/* Barra superior oscura con la foto de la barbería y el escudo */
.topbar {
  background:
    linear-gradient(rgba(19, 19, 19, 0.82), rgba(19, 19, 19, 0.92)),
    var(--bg-photo, none) center 35% / cover no-repeat,
    var(--night);
  border-bottom: 1px solid rgba(196, 154, 80, 0.35);
  color: #F3EEDF;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.topbar .link-back { color: #F3EEDF; }
.topbar__step { color: #CFC7B3; }
.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
}
.topbar__logo {
  height: 42px;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
.topbar__brand span { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; }
.progress__seg { background: rgba(243, 238, 223, 0.22); }
.progress__seg.is-done { background: var(--gold); }
@media (max-width: 380px) {
  .topbar__brand span { display: none; }
}
@media (hover: hover) {
  .topbar .link-back:hover { color: var(--gold); }
}

/* Número de cita en el comprobante */
.ticket__code {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.ticket__code span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #D9D2C0;
}
.ticket__code { display: flex; width: max-content; margin: 0 auto 10px; }
body.has-photo::before {
  background:
    linear-gradient(rgba(245, 241, 232, 0.84), rgba(245, 241, 232, 0.9)),
    var(--bg-photo) center / cover no-repeat;
}

/* ---------------------------------------------------------------------
   App instalable: aviso "Instalar app" e instrucciones para iPhone
   --------------------------------------------------------------------- */
.app-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 14px;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid rgba(196, 154, 80, 0.45);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  box-shadow: var(--shadow-pop);
}
.app-banner__icon { width: 52px; height: 52px; border-radius: 12px; display: block; }
.app-banner__text { margin: 0; font-size: 1rem; line-height: 1.45; }
.app-banner__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.app-banner .link-btn { color: #D9D2C0; }
.app-banner--light {
  margin-top: 22px;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.install-dlg {
  width: min(420px, calc(100vw - 32px));
  max-width: none;
  border: 0;
  border-radius: var(--radius-m);
  padding: 26px 22px 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
  text-align: center;
}
.install-dlg::backdrop { background: rgba(19, 19, 19, 0.6); }
.install-dlg__icon { display: block; margin: 0 auto 10px; border-radius: 16px; }
.install-dlg__title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; margin: 0 0 16px; text-wrap: balance; }
.install-dlg__steps {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding-left: 1.4em;
  text-align: left;
  font-size: 1.0625rem;
  line-height: 1.45;
}
.install-dlg__share { vertical-align: -5px; margin-right: 4px; color: var(--gold-text); }

/* Invitación a dejar la reseña también en Google */
.google-box {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 18px 16px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  text-align: center;
}
.google-box__title { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.google-box__text { margin: 0; color: var(--muted); }
.google-box__btn { margin-top: 6px; }

/* =====================================================================
   Versión 3.3: teléfono con país, cumpleaños y permiso de promociones
   ===================================================================== */
.phone-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
}

/* La lista nativa de países queda invisible encima de la "cara" con
   bandera y código: se ve compacta y en el celular abre la lista del sistema. */
.country-pick {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 96px;
  background: #FFFFFF;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-s);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.country-pick:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(196, 154, 80, 0.4);
}
.country-pick__face {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 30px 0 12px;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.country-pick::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.country-pick__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 1rem; /* evita el zoom en iPhone */
}

.bday-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 8px;
}
body:not(.admin) select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
body:not(.admin) select.input[aria-invalid='true'] { border-color: var(--danger); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.consent__text { display: grid; gap: 2px; font-weight: 500; }
.consent__hint { font-weight: 400; font-size: 0.875rem; color: var(--muted); }

/* =====================================================================
   Versión 3.3, parte C: "Mi cuenta" del cliente y mensajes
   ===================================================================== */
.tool-group { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.tool-btn--account { position: relative; }
.tool-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #B42318;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
@media (max-width: 440px) {
  .tool-btn--share .tool-btn__text { display: none; }
  .tool-btn--share { padding: 0 11px; }
  /* 3.3.4: que "Mi cuenta" y el idioma quepan en una línea en celulares */
  .welcome-hero__tools { gap: 8px; }
  .tool-btn--account, .welcome-hero__tools .lang-pick { padding: 0 10px; gap: 5px; }
  .welcome-hero__tools .lang-pick > svg { display: none; }
  .welcome-hero__tools .lang-select { max-width: 9.5em; min-width: 0; flex: 1 1 auto; }
  .welcome-hero__tools .lang-pick { min-width: 0; flex: 0 1 auto; overflow: hidden; }
  .welcome-hero__tools .tool-group { flex: 0 0 auto; }
}
.tool-btn { white-space: nowrap; }

.screen--account { max-width: none; padding: 0 0 48px; }

.acc-head {
  background:
    linear-gradient(rgba(19, 19, 19, 0.84), rgba(19, 19, 19, 0.94)),
    var(--bg-photo, none) center 35% / cover no-repeat,
    var(--night);
  color: #F3EEDF;
  border-bottom: 1px solid rgba(196, 154, 80, 0.35);
  padding: calc(12px + env(safe-area-inset-top, 0px)) 0 20px;
}
.acc-head__inner { max-width: 760px; margin: 0 auto; padding: 0 18px; }
.acc-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 6px 0;
  color: #F3EEDF;
  font-weight: 500;
}
.acc-head__title {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.1;
  margin: 6px 0 4px;
}
.acc-head__title:focus { outline: none; }
.acc-head__sub { margin: 0; color: #CFC7B3; font-size: 0.95rem; overflow-wrap: anywhere; }

.acc-tabs {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(245, 241, 232, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.acc-tabs__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 18px;
  scrollbar-width: none;
}
.acc-tabs__inner::-webkit-scrollbar { display: none; }
.acc-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.acc-tab[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.acc-tab__badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #B42318;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.acc-wrap { max-width: 760px; margin: 0 auto; padding: 20px 18px 0; }
.acc-wrap--narrow { max-width: 520px; }
.acc-lead { margin: 0 0 16px; color: var(--ink-soft); }
.acc-panel { padding: 22px 20px; }
.acc-panel__title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; margin: 0 0 8px; }
.acc-form-plain { display: grid; gap: 14px; margin-bottom: 4px; }
.acc-code {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding-left: calc(14px + 0.4em);
}
.acc-login__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 12px 0 4px; }
.acc-perks { list-style: none; margin: 22px 4px 0; padding: 0; display: grid; gap: 10px; color: var(--ink-soft); }
.acc-perks li { position: relative; padding-left: 26px; }
.acc-perks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-text); font-weight: 700; }
.acc-bye { text-align: center; display: grid; gap: 10px; }

/* Mis citas */
.acc-sec + .acc-sec { margin-top: 28px; }
.acc-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
}
.acc-card__date {
  display: grid;
  place-content: center;
  height: 64px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--gold);
  text-align: center;
}
.acc-card__day { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1; }
.acc-card__mon { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #E7DCC3; }
.acc-card.is-past .acc-card__date { background: var(--gold-soft); color: var(--gold-text); }
.acc-card.is-past .acc-card__mon { color: var(--gold-text); }
.acc-card.is-cancelled .acc-card__body > p:not(.acc-card__status) { color: var(--muted); }
.acc-card__when { margin: 0; font-weight: 700; line-height: 1.3; }
.acc-card__svc { margin: 3px 0 0; line-height: 1.35; }
.acc-card__who,
.acc-card__for { margin: 3px 0 0; color: var(--muted); font-size: 0.93rem; line-height: 1.35; }
.acc-card__code { font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
.acc-card__status { margin: 8px 0 0; }
.acc-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.acc-msgbtn svg { flex: none; }
.acc-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #ECE6D8;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.acc-chip--ok { background: #E3F0E4; color: var(--ok); }
.acc-chip--cancel,
.acc-chip--noshow { background: var(--danger-soft); color: var(--danger); }
.btn--danger { background: var(--danger); color: #FFFFFF; }
.btn--outline.acc-btn-danger { border-color: var(--danger); color: var(--danger); }
.acc-stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 1px; }
.acc-stars span { color: #DDD3BD; }
.acc-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0;
  padding: 18px;
  text-align: center;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-m);
}
.acc-empty p { margin: 0; }
.acc-empty--quiet { color: var(--muted); }

/* Fotos de antes y después */
.acc-photos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.acc-photo { position: relative; margin: 0; width: 104px; }
.acc-photo__img {
  display: block;
  width: 104px;
  height: 104px;
  padding: 0;
  overflow: hidden;
  background: #E8E2D4;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.acc-photo__img img { width: 100%; height: 100%; object-fit: cover; }
.acc-photo figcaption { margin-top: 4px; text-align: center; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.acc-photo__del {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 30px;
  height: 30px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: var(--shadow-soft);
}

/* Mensajes */
.acc-thread-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.acc-thread-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  color: var(--ink);
}
.acc-thread-item.is-unread { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.acc-thread-item__main { display: grid; gap: 2px; min-width: 0; }
.acc-thread-item__who { font-weight: 700; line-height: 1.3; }
.acc-thread-item__when { color: var(--muted); font-size: 0.9rem; line-height: 1.35; }
.acc-thread-item__side { flex: none; display: grid; justify-items: end; gap: 6px; }
.acc-wa-box {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 16px;
  background: var(--gold-soft);
  border-radius: var(--radius-m);
}
.acc-wa-box p { margin: 0; }
.acc-wa { gap: 8px; }
.acc-thread__back { margin-bottom: 6px; }
.acc-thread__head { margin-bottom: 12px; }
.acc-thread__title { margin: 0; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.acc-thread__sub { margin: 4px 0 0; color: var(--muted); font-size: 0.93rem; }
.acc-bubbles {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 56vh;
  margin: 0 0 14px;
  padding: 14px 12px;
  overflow-y: auto;
  background: #EFE9DC;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.bub {
  align-self: flex-start;
  max-width: 84%;
  padding: 9px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.05);
}
.bub--me { align-self: flex-end; background: #F6E7C8; border-color: #E6CF9E; border-radius: 14px; border-bottom-right-radius: 4px; }
.bub--office { background: var(--ink); border-color: var(--ink); color: #F3EEDF; }
.bub__name { margin: 0; color: var(--gold-text); font-size: 0.78rem; font-weight: 700; }
.bub--office .bub__name { color: var(--gold); }
.bub__text { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.bub__note {
  margin: 6px 0 0;
  padding: 6px 8px;
  background: rgba(155, 44, 44, 0.08);
  border-radius: 8px;
  color: var(--danger);
  font-size: 0.82rem;
  line-height: 1.4;
}
.bub__meta { margin: 4px 0 0; color: var(--muted); font-size: 0.75rem; text-align: right; }
.bub--office .bub__meta { color: #BFB59C; }
.bub__seen { color: var(--ok); font-weight: 600; }
.acc-bubbles__empty { padding: 14px 0; color: var(--muted); text-align: center; }
.acc-composer { display: grid; gap: 10px; }
.acc-composer__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acc-composer__count { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* Mis datos y Privacidad */
.acc-form { display: grid; gap: 16px; margin-bottom: 16px; padding: 20px 18px; }
.acc-form__title { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.acc-priv { display: grid; gap: 12px; margin-bottom: 16px; padding: 18px; }
.acc-opt { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.acc-opt legend { margin-bottom: 8px; padding: 0; font-weight: 700; }
.acc-radio {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  background: #FFFFFF;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-weight: 500;
  cursor: pointer;
}
.acc-radio input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.acc-radio:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.acc-switch {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 14px 2px 2px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.acc-switch input { position: absolute; top: 14px; left: 2px; width: 52px; height: 30px; margin: 0; opacity: 0; cursor: pointer; }
.acc-switch__ui {
  position: relative;
  width: 52px;
  height: 30px;
  margin-top: 2px;
  background: #CFC6B2;
  border-radius: 999px;
  transition: background-color 0.15s;
}
.acc-switch__ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s var(--ease);
}
.acc-switch input:checked + .acc-switch__ui { background: var(--gold); }
.acc-switch input:checked + .acc-switch__ui::after { transform: translateX(22px); }
.acc-switch input:focus-visible + .acc-switch__ui { outline: 3px solid var(--gold-text); outline-offset: 2px; }
.acc-switch input:disabled + .acc-switch__ui { opacity: 0.6; }
.acc-switch__text { display: grid; gap: 2px; line-height: 1.35; }
.acc-switch__text small { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

/* Cuenta */
.acc-box { display: grid; gap: 10px; margin-bottom: 16px; padding: 18px; }
.acc-box__email { margin: 0; font-size: 1.1rem; font-weight: 700; overflow-wrap: anywhere; }
.acc-box__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-box--danger { border-color: #E9C4BF; }
.acc-box .acc-wa-box { margin-top: 0; }
section.acc-wa-box { margin: 0 0 16px; }
.acc-del-what { display: grid; gap: 4px; margin: 0; padding-left: 20px; color: var(--ink-soft); }
.acc-del-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.acc-del-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  line-height: 1.35;
}
.acc-del-list small { color: var(--muted); }

/* Ventana de Mi cuenta */
.acc-dlg {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  padding: 22px 18px;
  background: var(--bone);
  color: var(--ink);
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
}
.acc-dlg::backdrop { background: rgba(10, 10, 10, 0.55); }
.acc-dlg__title { margin: 0 0 10px; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.acc-dlg__summary { margin: 0 0 12px; padding: 10px 12px; background: var(--paper); border-left: 3px solid var(--gold); border-radius: var(--radius-s); line-height: 1.45; }
.acc-dlg__text { margin: 0 0 12px; color: var(--ink-soft); }
.acc-dlg__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.acc-dlg__photo { width: 100%; max-height: 62vh; object-fit: contain; background: #111111; border-radius: 10px; }
.acc-dlg .slots__title { margin-top: 18px; }
.acc-dlg .form-error { margin-top: 12px; }
.acc-cal { margin-top: 6px; }

/* Avisos (toast): que usen el ancho que necesitan, sin partirse en columnas angostas */
.toast { width: max-content; text-align: center; }
/* En el celular las pestañas de Mi cuenta se deslizan: un leve desvanecido a la derecha lo indica */
@media (max-width: 640px) {
  .acc-tabs__inner { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); padding-right: 40px; }
}

/* Avisos (toast) SIEMPRE opacos y con buen contraste: al aparecer solo se
   deslizan (antes se desvanecían y por un momento se veía el texto de atrás). */
.toast {
  opacity: 1;
  background: #141414;
  color: #FFFDF8;
  border: 1px solid #3A352B;
  border-left: 4px solid var(--gold);
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  animation: toast-up 0.2s var(--ease);
}
@keyframes toast-up {
  from { transform: translate(-50%, 10px); }
  to   { transform: translate(-50%, 0); }
}

/* Mi cuenta: citas de una persona cuya ficha no es de esta cuenta */
.acc-card__note {
  margin: 8px 0 0;
  padding: 7px 10px;
  background: var(--gold-soft);
  border-radius: var(--radius-s);
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.4;
}
.acc-del-list__shop { max-width: 13em; color: var(--muted); text-align: right; }

/* =====================================================================
   3.3.3: cierres, feriados y horario especial (calendario, aviso, mensaje)
   ===================================================================== */
.closure-banner {
  display: grid;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  box-shadow: var(--shadow-pop);
  min-width: 0;
}
.closure-banner__item {
  margin: 0;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.closure-banner__item + .closure-banner__item { padding-top: 8px; border-top: 1px solid var(--line); }
.closure-banner__icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--danger);
  color: #FFF;
  font-weight: 700;
  font-size: 0.9375rem;
}
.closure-banner__item.is-special .closure-banner__icon { background: var(--gold); color: var(--ink); }
.closure-banner__item > span:last-child::first-letter { text-transform: uppercase; }
.closure-banner__note { display: block; margin-top: 2px; color: var(--muted); font-size: 0.9375rem; }

/* Calendario: días cerrados, con horario especial o feriados */
.day__mark {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.day.day--closed { color: #B3AA96; font-weight: 400; }
.day.day--closed .day__mark { background: var(--danger); }
.day.day--closed:not(:disabled) { cursor: pointer; text-decoration: line-through; text-decoration-color: rgba(155, 44, 44, 0.55); }
.day.day--special { box-shadow: inset 0 0 0 1.5px var(--gold); }
.day[aria-pressed='true'] .day__mark { background: var(--gold); box-shadow: 0 0 0 1.5px var(--ink); }
.day[aria-pressed='true'].day--closed { color: var(--gold); text-decoration: none; }
.calendar__legend--cl { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; }
.day__mark--legend { position: static; flex: none; margin-top: 0.5em; }

/* Mensaje del día cerrado (en lugar de "no hay horas") */
.closed-msg {
  padding: 16px 18px;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-m);
  display: grid;
  gap: 6px;
}
.closed-msg p { margin: 0; }
.closed-msg__title { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.closed-msg__reopen { font-size: 1rem; color: var(--ok); font-weight: 600; }
.closed-msg__note { font-size: 0.9375rem; color: var(--ink-soft); font-style: italic; overflow-wrap: anywhere; }

/* Línea de horario especial o feriado abierto, arriba de las horas */
.day-info {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
}
.day-info p { margin: 0; }
.day-info__text { font-weight: 600; color: var(--gold-text); }
.day-info__note { margin-top: 4px !important; font-size: 0.9375rem; color: var(--ink-soft); overflow-wrap: anywhere; }

/* ---------------------------------------------------------------------
   3.5 parte 3: "explicar el gris"
   Días que trabaja cada persona y el motivo de un día sin horas libres.
   --------------------------------------------------------------------- */
.person__days {
  font-size: 0.875rem;
  color: var(--gold-text);
  font-weight: 600;
  line-height: 1.35;
}
.person--surprise .person__days { color: var(--gold); }

.why-msg {
  padding: 16px 18px;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-m);
  display: grid;
  gap: 10px;
}
.why-msg p { margin: 0; }
.why-msg__title { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.why-msg__hint { font-size: 0.9375rem; color: var(--ink-soft); }
.why-msg__pick { font-size: 0.9375rem; font-weight: 600; color: var(--ink-soft); }
.why-msg__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.why-btn {
  flex: 0 1 auto;
  max-width: 100%;
  padding: 12px 16px;
  min-height: 48px;
  background: var(--bone);
  color: var(--ink);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-s);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.why-btn--go { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.why-btn:hover { background: var(--gold-soft); }
.why-btn--go:hover { background: #B88C45; }
.why-btn:active { transform: translateY(1px); }

/* Resumen: "Dura unos 30 min con Carlos." (tiempo de cada barbero) */
.summary-dur {
  margin: -6px 0 16px;
  font-weight: 600;
  color: var(--gold-text);
}

/* =====================================================================
   3.5: Productos y apartados (portada, catálogo, día para recoger,
   dentro de la reserva y en Mi cuenta)
   ===================================================================== */

/* 3.5 (parte 5): tarjeta de productos y dudas, en la pantalla de cita confirmada */
.prod-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 18px 18px 18px;
  display: grid;
  gap: 12px;
  border-top: 3px solid var(--gold);
  text-align: left;
}
.prod-card__top { display: flex; align-items: center; gap: 12px; }
.prod-card__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
}
.prod-card__text { min-width: 0; }
.prod-card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
}
.prod-card__kicker {
  margin: 2px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.prod-card__lead { margin: 0; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.5; }
.prod-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prod-card__actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding-left: 10px; padding-right: 10px; text-decoration: none; line-height: 1.25; }
.prod-card__actions .btn svg { flex: none; }
.prod-card__actions.is-single { grid-template-columns: 1fr; }
@media (max-width: 359px) { .prod-card__actions { grid-template-columns: 1fr; } }

/* Pantalla Productos */
.prod-head .acc-head__sub { margin-bottom: 2px; }
.prod-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 14px; max-width: 360px; }
.prod-steps__seg { height: 4px; border-radius: 2px; background: rgba(243, 238, 223, 0.22); }
.prod-steps__seg.is-done { background: var(--gold); }
.prod-wrap { padding-bottom: 28px; }
.prod-step-title { margin: 4px 0 6px; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1.2; }
.prod-step-title--sub { margin-top: 26px; font-size: 1.35rem; }
.prod-help { margin-top: 22px; }
.prod-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.prod-bar .btn { min-width: 8em; }
.screen--products .form-error { margin: 0 0 12px; }

/* Tarjeta de producto con − / + */
.pq-list { display: grid; gap: 10px; }
.pq {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-areas: 'img body' 'img qty';
  gap: 4px 12px;
  align-items: start;
  padding: 10px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.pq.is-on { border-color: var(--gold); background: #FFF9E8; box-shadow: 0 0 0 1.5px var(--gold); }
.pq.is-focus { animation: pq-focus 1.6s var(--ease) 1; }
@keyframes pq-focus { 0%, 60% { box-shadow: 0 0 0 4px rgba(196, 154, 80, 0.55); } 100% { box-shadow: var(--shadow-soft); } }
.pq.is-out .pq__img { filter: grayscale(1); opacity: 0.6; }
.pq.is-out .pq__name,
.pq.is-out .pq__price strong { color: var(--muted); }
.pq__img {
  grid-area: img;
  width: 76px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: var(--gold);
}
.pq__img img { width: 100%; height: 100%; object-fit: cover; }
.pq__ph { display: grid; place-items: center; }
.pq__body { grid-area: body; min-width: 0; display: grid; gap: 2px; }
.pq__name { margin: 0; font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
/* 3.5 (parte 5): tamaño del producto y título de la categoría */
.pq__size { font-weight: 500; font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
.pq-group { margin: 16px 0 8px; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.pq-group:first-child { margin-top: 4px; }
.pq__desc { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.pq__price { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; line-height: 1.3; }
.pq__price strong { font-size: 1.05rem; }
.pq__usd { font-size: 0.82rem; color: var(--muted); }
.pq-tag { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.pq-tag--out { background: #E7E1D3; color: #5A5446; }
.pq-tag--few { background: var(--ink); color: var(--gold); }
.pq__qty { grid-area: qty; justify-self: end; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.pq__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: #FFFFFF;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  display: grid;
  place-items: center;
}
.pq__btn[data-pq='plus']:not(:disabled) { background: var(--gold); border-color: var(--gold); }
.pq__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pq__n { min-width: 2ch; text-align: center; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.pq--compact { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: 'img body qty'; align-items: center; padding: 8px; }
.pq--compact .pq__img { width: 56px; height: 56px; }
.pq--compact .pq__qty { margin-top: 0; }
.pq--compact .pq__btn { width: 40px; height: 40px; }
@media (min-width: 560px) {
  .pq { grid-template-columns: 88px minmax(0, 1fr) auto; grid-template-areas: 'img body qty'; align-items: center; }
  .pq__img { width: 88px; height: 88px; }
  .pq__qty { margin-top: 0; }
}

/* Día para recoger */
.pday-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.pday {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 8px 4px 9px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  color: var(--ink);
  line-height: 1.15;
}
.pday__top { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.pday__num { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; }
.pday__mon { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-text); }
.pday[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.pday[aria-pressed='true'] .pday__top,
.pday[aria-pressed='true'] .pday__mon { color: #E7DCC3; }
.ppart { border: 0; margin: 20px 0 0; padding: 0; }
.ppart__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ppart__btn {
  padding: 9px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 600;
}
.ppart__btn[aria-pressed='true'] { background: var(--gold); border-color: var(--gold); }
.prod-next { margin-top: 22px; }

/* Resumen y listo */
.prod-ticket { padding: 22px 18px 18px; margin-bottom: 14px; }
.prod-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.prod-lines li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.prod-lines__img { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; background: var(--ink); color: var(--gold); display: grid; place-items: center; }
.prod-lines__img img { width: 100%; height: 100%; object-fit: cover; }
.prod-lines__img svg { width: 22px; height: 22px; }
.prod-lines__name { font-weight: 600; line-height: 1.3; }
.prod-lines__amt { font-weight: 600; white-space: nowrap; }
.prod-pay {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-s);
  font-weight: 600;
  text-align: left;
  line-height: 1.45;
}
.prod-pay--plain { margin-top: 0; font-weight: 500; font-size: 0.95rem; }
.prod-form { margin-top: 4px; }
.prod-done { text-align: center; }
.prod-done .prod-ticket { text-align: left; }
.prod-done__title { margin-top: 0; }

/* Dentro de la reserva (paso Resumen) */
.prod-add { padding: 16px; margin: 0 0 22px; display: grid; gap: 12px; }
.prod-add__head { display: flex; align-items: flex-start; gap: 12px; }
.prod-add__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; }
.prod-add__title { margin: 0; font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.prod-add__lead { margin: 2px 0 0; color: var(--muted); font-size: 0.93rem; line-height: 1.4; }
.prod-add__sel { margin: 0; padding: 8px 12px; background: #FFF9E8; border: 1px solid var(--gold); border-radius: var(--radius-s); line-height: 1.4; }
.prod-add__toggle { justify-self: start; }
.prod-done-appt { margin: -6px 0 22px; }
.prod-done-appt .group-title { margin-top: 0; }
.hint-box--warn { background: var(--danger-soft); border-left-color: var(--danger); color: var(--danger); }

/* Mi cuenta: Mis apartados y "Agregar producto" */
.acc-ap__items { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.acc-ap__items li { display: flex; align-items: center; gap: 10px; line-height: 1.3; }
.acc-ap__img { flex: none; width: 36px; height: 36px; border-radius: 6px; overflow: hidden; background: var(--ink); color: var(--gold); display: grid; place-items: center; }
.acc-ap__img img { width: 100%; height: 100%; object-fit: cover; }
.acc-ap__img svg { width: 18px; height: 18px; }
.acc-ap__pay { margin: 8px 0 0; font-size: 0.9rem; color: var(--gold-text); font-weight: 600; }
.acc-ap__note { color: var(--muted); }
.acc-card__prod { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--gold-text); font-weight: 600; font-size: 0.93rem; line-height: 1.35; }
.acc-card__prod svg { flex: none; width: 18px; height: 18px; }
.acc-dlg .pq-list { margin: 4px 0 4px; }
.acc-dlg__actions--sticky { position: sticky; bottom: -22px; margin: 16px -18px -22px; padding: 12px 18px 16px; background: var(--bone); border-top: 1px solid var(--line); }

/* =====================================================================
   3.5 (parte 6): tarjeta de fidelidad del cliente ("Vas 7 de 10").
   Sale en la pantalla de "Cita confirmada" y en Mi cuenta. Pensada para
   390 px: nunca se desborda ni se sale de la pantalla.
   ===================================================================== */
.loy-card { width: 100%; max-width: 460px; margin: 0 auto; }
.loy-card + .loy-card { margin-top: 12px; }
.loy-card__who { margin: 0 0 6px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.loy-card__inner {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--gold);
  border-radius: 2px;
}
.loy-card__inner.is-ready { background: var(--gold-soft); border-color: var(--gold); }
.loy-card__title { margin: 0; font-family: var(--serif); font-size: 1.12rem; color: var(--ink); }
.loy-card__count { margin: 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--gold-text); }
.loy-card__dots { display: flex; flex-wrap: wrap; gap: 6px; }
.loy-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: transparent;
}
.loy-dot.is-on { background: var(--gold); border-color: var(--gold); }
.loy-card__text { margin: 0; color: var(--ink-soft); font-weight: 600; line-height: 1.45; }
.loy-card__hint { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.45; }

/* 3.7: "+ ITBIS" junto a los precios y el total con ITBIS (solo si se suma al precio) */
.svc__tax { font-size: 0.8125rem; font-weight: 600; color: var(--gold-text); white-space: nowrap; }
.action-bar__tax { display: inline; font-size: 0.875rem; font-weight: 600; color: #E7C987; margin-left: 2px; white-space: nowrap; }
.ticket__tax { font-size: 0.875rem; font-weight: 600; color: var(--gold-text); white-space: nowrap; }
.ticket__total--tax dt, .ticket__total--tax dd { font-weight: 700; }
.pq__tax { font-size: 0.8125rem; font-weight: 600; color: var(--gold-text); white-space: nowrap; }
.tax-note { margin-top: -4px; }

/* =====================================================================
   3.8 · Letra nueva (pedido del dueño: "más legible")
   Títulos en Playfair Display (600/700) y textos y números en Inter.
   - Los números que antes iban con la letra de los títulos ahora van en
     Inter, más claros.
   - Cifras de ancho fijo (tabular-nums) en precios, totales, horas y
     tablas: los números quedan alineados uno debajo del otro.
   ===================================================================== */
.hero__title { font-weight: 600; letter-spacing: 0.01em; }
.acc-card__day,
.pday__num,
.loy-card__count { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; }
.loy-card__title { font-weight: 600; }
.svc__price, .svc__prices, .svc__usd, .svc__time,
.action-bar__count, .action-bar__total, .action-bar__usd,
.calendar__grid, .day, .slot, .slot-grid, .slots__title,
.ticket, .ticket__row, .ticket__rows, .ticket__total, .ticket__usd, .ticket__code, .ticket__tax,
.summary-dur, .asst-time,
.pq__price, .pq__usd, .prod-lines__amt, .prod-ticket, .pday, .pday__num,
.acc-card__day, .acc-card__when, .acc-thread-item__when,
.loy-card__count, .usd-note, table { font-variant-numeric: tabular-nums; }

/* =====================================================================
   3.8 · Membresías (tarjeta informativa) y descuento de bienvenida
   ===================================================================== */
/* Línea discreta en la bienvenida: no estorba la reserva */
.mem-line {
  margin: 14px auto 0;
  max-width: 460px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}
.mem-line .link-btn { font-weight: 600; color: var(--gold-text); }

/* La tarjeta (cita confirmada, Mi cuenta y su pantalla) */
.mem-card {
  max-width: 460px;
  margin: 18px auto 0;
  padding: 18px;
  display: grid;
  gap: 12px;
  border-top: 3px solid var(--gold);
  text-align: left;
}
.mem-card--screen { margin-top: 6px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius-m); }
.mem-card--acc { margin: 0; max-width: none; }
.mem-card__top { display: flex; align-items: center; gap: 12px; }
.mem-card__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
}
.mem-card__title { margin: 0; min-width: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; text-wrap: balance; }
.mem-card__lead { margin: 0; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.5; }
.mem-card__plans { display: grid; gap: 10px; }
.mem-card__note { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.45; }
.mem-plan {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #FFFCF4;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-m);
  min-width: 0;
}
.mem-plan__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.mem-plan__name { margin: 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.mem-plan__price { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mem-plan__price strong { font-size: 1.15rem; font-weight: 700; color: var(--gold-text); }
.mem-plan__price span { font-size: 0.875rem; color: var(--muted); }
.mem-plan__list { margin: 0; padding: 0 0 0 1.15em; display: grid; gap: 3px; font-size: 0.95rem; line-height: 1.4; color: var(--ink-soft); }
.mem-plan__list li::marker { color: var(--gold); }
.mem-plan__more summary { cursor: pointer; font-weight: 600; font-size: 0.93rem; color: var(--gold-text); padding: 4px 0; }
.mem-plan__more[open] summary { margin-bottom: 6px; }
.mem-plan__wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; line-height: 1.25; }
.mem-plan__wa svg { flex: none; }
.mem-screen { padding-top: 4px; padding-bottom: 28px; }
.mem-screen__back { margin-bottom: 4px; }
@media (min-width: 900px) {
  .mem-card--screen .mem-card__plans { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
  .mem-screen { max-width: 960px; }
}

/* Descuento de bienvenida por usar la app */
.app-banner__gift {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  background: rgba(196, 154, 80, 0.18);
  border: 1px solid rgba(196, 154, 80, 0.55);
  font-weight: 600;
  line-height: 1.4;
  color: #F3E3BE;
}
.app-banner--light .app-banner__gift { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-text); }
.install-dlg__gift { margin: 0 0 14px; padding: 10px 12px; background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: var(--radius-s); font-weight: 600; line-height: 1.45; color: var(--ink); }
.ticket__appw dt, .ticket__appw dd { color: var(--ok); font-weight: 700; }
.ticket__total--appw dt, .ticket__total--appw dd { font-weight: 700; }
.appw-note {
  max-width: 460px;
  margin: 10px auto 0;
  padding: 10px 12px;
  background: #E9F3EA;
  border-left: 4px solid var(--ok);
  border-radius: var(--radius-s);
  color: var(--ok);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
}
.appw-card { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line-strong); border-left: 4px solid var(--gold); border-radius: var(--radius-s); display: grid; gap: 4px; }
.appw-card.is-available { background: var(--gold-soft); border-color: var(--gold); }
.appw-card__title { margin: 0; font-weight: 700; color: var(--ink); }
.appw-card__text { margin: 0; color: var(--ink-soft); font-weight: 600; line-height: 1.45; }
.appw-card__hint { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.45; }

/* 3.8: con Inter (más ancha), el botón de la barra de abajo nunca se parte en dos renglones */
.action-bar .btn { white-space: nowrap; }
@media (max-width: 420px) {
  .action-bar__inner { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .action-bar .btn { min-width: 0; padding-left: 16px; padding-right: 16px; }
  .action-bar__count { font-size: 0.875rem; }
}
/* 3.8: "Continuar sin asistente" ahora cabe en un solo renglón (antes se permitía en dos) */
#btnAssistantNext { white-space: nowrap; max-width: none; }
@media (max-width: 360px) { #btnAssistantNext { font-size: 0.9375rem; padding-left: 12px; padding-right: 12px; } }

/* 3.8: ITBIS incluido en el precio ("Precios con ITBIS incluido") */
.ticket__taxnote { margin: 8px 0 0; font-size: 0.875rem; color: var(--ink-soft, #5A5446); text-align: right; }
.pq-taxnote { margin: 0 0 10px; }

/* =====================================================================
   3.11 (B): "Avísame si se libera un espacio" (lista de espera)
   ===================================================================== */
.wl-box { margin-top: 14px; }
.wl-open { width: 100%; justify-content: center; white-space: normal; }
.wl-form { margin-top: 4px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--paper); display: grid; gap: 12px; }
.wl-form__title { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin: 0; }
.wl-form__lead, .wl-form__day { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.wl-form__day strong { color: var(--ink); }
.wl-form .field { display: grid; gap: 6px; margin: 0; }
.wl-phone { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 8px; }
.wl-phone .input { min-width: 0; }
.wl-parts { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.wl-parts legend { margin-bottom: 6px; }
.wl-parts label { display: inline-flex; align-items: center; gap: 6px; font-size: 1rem; }
.wl-form__btns { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.wl-done { margin: 0; padding: 14px 16px; border-radius: var(--radius-m); background: var(--gold-soft); color: var(--ink); font-weight: 600; line-height: 1.5; }
