/* ============================================================
   1) TOKENS — Aquí se configura la identidad visual
   ============================================================ */
:root{
  --bg: #14110d;
  --surface: #201a13;
  --surface-2: #2a2117;
  --ivory: #f3e9d8;
  --muted: #a8967c;
  --gold: #c9a24d;
  --gold-bright: #e8c76f;
  --gold-text: var(--gold-bright);
  --stripe-red: #a5342a;
  --stripe-navy: #26405c;
  --stripe-cream: #ece0c8;
  --error: #d9695a;

  --radius: 18px;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --tint: rgba(0,0,0,0.25);
  --tint-strong: rgba(0,0,0,0.3);
  --tint-soft: rgba(0,0,0,0.2);
}

/* ============================================================
   MODO CLARO — paleta pensada aparte (no es solo "invertir" el
   oscuro): fondo crema cálido, texto café espresso (nunca negro
   puro), y un dorado más profundo para que sí se note sobre
   fondos claros.
   ============================================================ */
body.light-mode{
  --bg: #f7f2e6;
  --surface: #ffffff;
  --surface-2: #efe4cd;
  --ivory: #2b2117;
  --muted: #6b5d47;
  --gold: #d4ab5a;
  --gold-bright: #e0b862;
  --gold-text: #8a6420;
  --error: #c0392b;

  --tint: #ffffff;
  --tint-soft: #fbf7ef;
  --tint-strong: #f0e5cd;
}

/* Bordes más marcados en claro — sobre blanco/crema, un borde
   dorado muy transparente casi no se nota. */
body.light-mode .day-chip,
body.light-mode .time-slot,
body.light-mode .summary-box,
body.light-mode .countdown-unit,
body.light-mode input,
body.light-mode select,
body.light-mode textarea,
body.light-mode .service-card,
body.light-mode .pro-card,
body.light-mode .dashboard-tile,
body.light-mode .config-menu-item,
body.light-mode .choice-card,
body.light-mode .negocio-row,
body.light-mode .blocked-row,
body.light-mode .appointment-card,
body.light-mode .stat-box,
body.light-mode .dia-horario-card{
  border: 1.5px solid rgba(184,134,58,0.35);
}

/* Tarjeta principal: sombra suave en vez del glow dorado que se
   usaba sobre fondo oscuro. */
body.light-mode .card,
body.light-mode .modal-card{
  box-shadow: 0 10px 30px rgba(43,33,23,0.1);
}

/* El logotipo/marca dorada brillante se ve pálida sobre blanco —
   la oscurecemos un poco solo para esa firma. */
body.light-mode .brand-mark-icon{ opacity:.7; }

/* Inputs: quitamos el "vidrio oscuro" y dejamos un blanco limpio
   con borde definido, en vez del fondo semitransparente negro. */
body.light-mode input::placeholder,
body.light-mode textarea::placeholder{ color: rgba(107,93,71,0.55); }

/* El selector de hora nativo, y los checkboxes, en modo claro. */
body.light-mode input[type="date"],
body.light-mode input[type="time"]{ color-scheme: light; }
body.light-mode .barber-stripe{ opacity:.85; }
body.light-mode input,
body.light-mode select,
body.light-mode textarea{
  background: rgba(0,0,0,0.03);
  border-color: rgba(184,147,63,0.35);
}
body.light-mode .card, body.light-mode .modal-card{
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

*{ box-sizing: border-box; }

/* Garantizamos que [hidden] siempre oculte el elemento, incluso si
   otra regla (como display:flex de los botones) intenta pisarlo. */
[hidden]{ display: none !important; }

html, body{
  margin:0;
  padding:0;
  min-height:100vh;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
}

body{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 32px 16px;
  position: relative;
  overflow-x:hidden;
}

/* Textura de fondo sutil: vetas de cuero + viñeta */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at 20% 15%, rgba(201,162,77,0.10), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(165,52,42,0.12), transparent 45%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 5px);
  pointer-events:none;
  z-index:0;
}

/* ============================================================
   2) TARJETA PRINCIPAL
   ============================================================ */
.card{
  position:relative;
  z-index:1;
  width:100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-radius: var(--radius);
  border: 1px solid rgba(201,162,77,0.18);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.65),
    0 0 0 1px rgba(0,0,0,0.4);
  overflow:hidden;
  animation: cardIn .7s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes cardIn{
  from{ opacity:0; transform: translateY(18px) scale(.98); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}

/* --- Poste de barbero: elemento firma, franja lateral animada --- */
.barber-stripe{
  position:absolute;
  top:0; left:0;
  width:10px;
  height:100%;
  background: transparent;
}

/* Variante "Barbería" — la de siempre */
.barber-stripe.franja-barberia{
  background: repeating-linear-gradient(
    -45deg,
    var(--stripe-red) 0 14px,
    var(--stripe-cream) 14px 28px,
    var(--stripe-navy) 28px 42px
  );
  background-size: 100% 200%;
  animation: pole-spin 6s linear infinite;
}

/* Variante "Spa / Salón de belleza" — listón suave en rosa palo y
   dorado rosado, con un brillo lento en vez del giro rápido. */
.barber-stripe.franja-spa{
  background: repeating-linear-gradient(
    -45deg,
    #f3c9d6 0 10px,
    #fbeee3 10px 18px,
    #e3aec4 18px 26px,
    #f6d9c4 26px 32px,
    #eec2d3 32px 40px
  );
  background-size: 100% 220%;
  animation: pole-spin-spa 9s ease-in-out infinite;
}

@keyframes pole-spin{
  from{ background-position: 0 0; }
  to{ background-position: 0 84px; }
}

@keyframes pole-spin-spa{
  0%{ background-position: 0 0; }
  50%{ background-position: 0 88px; }
  100%{ background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce){
  .barber-stripe{ animation: none; }
  .card{ animation: none; }
}

.card-inner{
  padding: 40px 32px 32px 40px;
}

/* ============================================================
   3) ENCABEZADO — nombre de la barbería (dinámico según el link)
   ============================================================ */
.eyebrow{
  display:flex;
  align-items:center;
  gap:8px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 600;
  margin-bottom: 14px;
}

.eyebrow .dot{
  width:5px; height:5px;
  border-radius:50%;
  background: var(--gold);
}

.barbershop-name{
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 0.95;
  letter-spacing: .01em;
  color: var(--ivory);
  margin: 0 0 6px 0;
  text-shadow: 0 2px 0 rgba(0,0,0,.3);
}

.welcome-sub{
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 28px 0;
}

.welcome-sub strong{
  color: var(--gold-text);
  font-weight: 600;
}

/* ============================================================
   4) FORMULARIO
   ============================================================ */
form{ display:flex; flex-direction:column; gap:18px; }

.field{ display:flex; flex-direction:column; gap:7px; }

.field-row{
  display:flex;
  gap:12px;
}
.field-row .field{ flex:1; min-width:0; }

label{
  font-size: 12px;
  font-weight: 600;
  letter-spacing:.03em;
  color: var(--muted);
  text-transform: uppercase;
}

.input-wrap{
  position:relative;
  display:flex;
  align-items:center;
}

.input-wrap svg{
  position:absolute;
  left:14px;
  width:17px;
  height:17px;
  color: var(--muted);
  pointer-events:none;
  transition: color .2s ease;
}

.input-wrap.has-toggle input{ padding-right:42px; }

.toggle-password-btn{
  position:absolute;
  right:12px;
  width:22px;
  height:22px;
  padding:0;
  background:none;
  border:none;
  color: var(--muted);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: color .2s ease;
}
.toggle-password-btn:hover{ color: var(--gold-text); }
.toggle-password-btn svg{ width:18px; height:18px; }

input{
  width:100%;
  background: var(--tint);
  border: 1.5px solid rgba(201,162,77,0.18);
  border-radius: 11px;
  padding: 13px 14px 13px 40px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ivory);
  outline:none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

select{
  width:100%;
  background: var(--tint);
  border: 1.5px solid rgba(201,162,77,0.18);
  border-radius: 11px;
  padding: 13px 38px 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ivory);
  outline:none;
  cursor:pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  appearance:none;
  -webkit-appearance:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a24d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
select:hover{ border-color: rgba(201,162,77,0.35); }
select:focus{ border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,77,0.15); }

.cat-icono-chico{
  width:32px; height:32px;
  flex-shrink:0;
  border-radius:50%;
  background: rgba(201,162,77,0.12);
  color: var(--gold-text);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-right:10px;
}
.cat-icono-chico svg{ width:17px; height:17px; }

.categoria-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
.categoria-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding: 22px 12px;
  background: var(--tint);
  border: 1.5px solid rgba(201,162,77,0.18);
  border-radius: 14px;
  cursor:pointer;
  font-family: var(--font-body);
  transition: border-color .2s ease, background .2s ease, transform .1s ease;
}
.categoria-card:hover{
  border-color: var(--gold-text);
  background: rgba(201,162,77,0.1);
  transform: translateY(-2px);
}
.categoria-icono{
  width:52px; height:52px;
  border-radius:50%;
  background: rgba(201,162,77,0.12);
  color: var(--gold-text);
  display:flex;
  align-items:center;
  justify-content:center;
}
.categoria-icono svg{ width:26px; height:26px; }
.categoria-nombre{
  font-size: 13.5px;
  font-weight:700;
  color: var(--ivory);
  text-align:center;
}

.categoria-acordeon{
  margin-bottom: 10px;
  border: 1px solid rgba(201,162,77,0.15);
  border-radius: 10px;
  overflow:hidden;
}
.categoria-acordeon-titulo{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  background: var(--tint-soft);
  cursor:pointer;
  font-weight:700;
  font-size: 14px;
  color: var(--ivory);
  list-style:none;
}
.categoria-acordeon-titulo::-webkit-details-marker{ display:none; }
.categoria-acordeon-titulo::before{
  content:"▸";
  color: var(--gold-text);
  transition: transform .15s ease;
  margin-right:2px;
}
.categoria-acordeon[open] .categoria-acordeon-titulo::before{ transform: rotate(90deg); }
.categoria-acordeon-contenido{
  padding: 10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

input::placeholder{ color: rgba(168,150,124,0.55); }

input:hover{ border-color: rgba(201,162,77,0.35); }

input:focus{
  border-color: var(--gold-text);
  background: var(--tint-strong);
  box-shadow: 0 0 0 4px rgba(201,162,77,0.14);
}

input:focus + svg,
.input-wrap:focus-within svg{ color: var(--gold-text); }

/* WhatsApp: prefijo de país fijo dentro del input */
.phone-wrap input{ padding-left: 62px; }
.phone-prefix{
  position:absolute;
  left: 38px;
  font-size: 14.5px;
  font-weight:600;
  color: var(--ivory);
  padding-right: 8px;
  border-right: 1.5px solid rgba(201,162,77,0.25);
  pointer-events:none;
}

.hint{
  font-size: 12px;
  color: var(--muted);
  min-height: 15px;
}
.hint.error{ color: var(--error); }

/* ============================================================
   4b) CHECKBOX DE TÉRMINOS Y CONDICIONES
   ============================================================ */
.terms-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  cursor:pointer;
  user-select:none;
  margin-top: -2px;
}

.terms-check input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
}

.checkmark{
  flex-shrink:0;
  width:18px;
  height:18px;
  margin-top:1px;
  border-radius:5px;
  border: 1.5px solid rgba(201,162,77,0.4);
  background: var(--tint);
  position:relative;
  transition: background .15s ease, border-color .15s ease;
}

.checkmark::after{
  content:"";
  position:absolute;
  left:5px;
  top:1px;
  width:5px;
  height:9px;
  border: solid #201a13;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .15s ease;
}

.terms-check input:checked + .checkmark{
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: var(--gold-text);
}
.terms-check input:checked + .checkmark::after{ transform: rotate(45deg) scale(1); }

.terms-check input:focus-visible + .checkmark{
  box-shadow: 0 0 0 3px rgba(201,162,77,0.3);
}

.terms-text{
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.terms-text a{
  color: var(--gold-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.terms-text a:hover{ color: var(--gold-text); }

/* ============================================================
   5) BOTÓN CONTINUAR
   ============================================================ */
.btn-continue{
  margin-top: 8px;
  width:100%;
  border:none;
  border-radius: 11px;
  padding: 15px 20px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight:700;
  letter-spacing:.02em;
  cursor:pointer;
  color: #201a13;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow: 0 10px 24px -10px rgba(201,162,77,0.55);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-continue:hover:not(:disabled){
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(201,162,77,0.7);
  filter: brightness(1.04);
}

.btn-continue:active:not(:disabled){ transform: translateY(0); }

.btn-continue:disabled{
  opacity:.45;
  cursor:not-allowed;
  box-shadow:none;
}

.btn-continue svg{
  width:16px; height:16px;
  transition: transform .2s ease;
}
.btn-continue:hover:not(:disabled) svg{ transform: translateX(3px); }

.footnote{
  margin: 18px 0 0 0;
  text-align:center;
  font-size: 11.5px;
  color: rgba(168,150,124,0.75);
  line-height:1.5;
}

@media (max-width: 480px){
  .card-inner{ padding: 32px 22px 26px 30px; }
  .barbershop-name{ font-size: 32px; }
  .field-row{ flex-direction: column; gap:18px; }
}

/* ============================================================
   6) VERIFICACIÓN — link volver, casillas OTP, reenviar código
   ============================================================ */
.back-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size: 12.5px;
  font-weight:600;
  color: var(--muted);
  text-decoration:none;
  margin-bottom: 18px;
  transition: color .2s ease, gap .2s ease;
}
.back-link svg{ width:14px; height:14px; }
.back-link:hover{ color: var(--gold-text); gap:9px; }

.otp-row{
  display:flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.otp-box{
  width: 100%;
  aspect-ratio: 1 / 1;
  text-align:center;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0;
  background: var(--tint);
  border: 1.5px solid rgba(201,162,77,0.18);
  border-radius: 11px;
  color: var(--ivory);
  outline:none;
  padding:0;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .12s ease;
}

.otp-box:hover{ border-color: rgba(201,162,77,0.35); }

.otp-box:focus{
  border-color: var(--gold-text);
  background: var(--tint-strong);
  box-shadow: 0 0 0 4px rgba(201,162,77,0.14);
  transform: translateY(-1px);
}

.otp-box.filled{ border-color: rgba(201,162,77,0.55); }

.otp-box.shake{ animation: shake .35s ease; border-color: var(--error); }

@keyframes shake{
  0%, 100%{ transform: translateX(0); }
  20%{ transform: translateX(-6px); }
  40%{ transform: translateX(6px); }
  60%{ transform: translateX(-4px); }
  80%{ transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce){
  .otp-box.shake{ animation: none; border-color: var(--error); }
}

.resend-btn{
  background:none;
  border:none;
  padding:0;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight:700;
  color: var(--gold-text);
  cursor:pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.resend-btn:hover{ color: var(--gold-text); }
.resend-btn:disabled{
  color: rgba(168,150,124,0.6);
  cursor:not-allowed;
  text-decoration:none;
}

#resendTimer{
  color: rgba(168,150,124,0.75);
  margin-left: 2px;
}

@media (max-width: 480px){
  .otp-box{ font-size: 20px; }
  .otp-row{ gap: 7px; }
}

/* ============================================================
   7) TARJETA ANCHA (para la pantalla de servicio, con más contenido)
   ============================================================ */
.wide-card{ max-width: 460px; }

/* ============================================================
   8) SELECCIÓN DE SERVICIO
   ============================================================ */
.service-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.service-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  width:100%;
  text-align:left;
  background: var(--tint);
  border: 1.5px solid rgba(201,162,77,0.18);
  border-radius: 11px;
  padding: 13px 16px;
  cursor:pointer;
  font-family: var(--font-body);
  transition: border-color .2s ease, background .2s ease;
}

.service-card:hover{ border-color: rgba(201,162,77,0.4); }

.service-card.selected{
  border-color: var(--gold-text);
  background: rgba(201,162,77,0.1);
}

.service-name{
  font-size: 14.5px;
  font-weight:600;
  color: var(--ivory);
}

.service-meta{
  font-size: 12.5px;
  color: var(--muted);
  white-space:nowrap;
}

/* ============================================================
   9) SELECTOR DE SEMANA (7 días a la vez, con flechas)
   ============================================================ */
.week-picker{ display:flex; flex-direction:column; gap:10px; }

.week-label{
  text-align:center;
  font-size: 12px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin:0;
}

.week-nav{
  display:flex;
  align-items:center;
  gap:8px;
}

.week-row{
  flex:1;
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:5px;
}

.day-chip{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  padding: 9px 2px;
  background: var(--tint);
  border: 1.5px solid rgba(201,162,77,0.18);
  border-radius: 10px;
  cursor:pointer;
  font-family: var(--font-body);
  transition: border-color .2s ease, background .2s ease;
}

.day-chip:hover:not(:disabled){ border-color: rgba(201,162,77,0.4); }

.day-chip.selected{
  border-color: var(--gold-text);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}
.day-chip.selected .day-chip-dow,
.day-chip.selected .day-chip-num{ color: #201a13; }

.day-chip:disabled{
  opacity:.35;
  cursor:not-allowed;
}

.day-chip-hoy{ border-color: rgba(201,162,77,0.5); }
.day-chip-hoy .day-chip-dow{ color: var(--gold-text); }
.day-chip-hoy.selected .day-chip-dow{ color: #201a13; }

.tight{ margin-bottom: 12px !important; }

.month-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom: 10px;
}

.month-label{
  font-size: 12.5px;
  font-weight:700;
  color: var(--gold-text);
  margin:0;
  text-align:center;
}

.knob-sm{
  width:28px; height:28px;
}
.knob-sm svg{ width:13px; height:13px; }

.week-row-compact .day-chip{ padding: 6px 2px; }
.week-row-compact .day-chip-num{ font-size: 14px; }
.week-row-compact .day-chip-dow{ font-size: 8px; }

/* ============================================================
   22) MODAL — detalle de una cita ocupada
   ============================================================ */
.modal-overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 20px;
  z-index: 100;
}

.modal-card{
  position:relative;
  width:100%;
  max-width: 380px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(201,162,77,0.25);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
  animation: cardIn .25s ease both;
}

.modal-close{
  position:absolute;
  top:14px; right:14px;
  width:26px; height:26px;
  border-radius:50%;
  border:none;
  background: var(--tint);
  color: var(--muted);
  cursor:pointer;
  font-size: 13px;
}
.modal-close:hover{ color: var(--ivory); }

.day-chip-dow{
  font-size: 9.5px;
  font-weight:700;
  letter-spacing:.03em;
  color: var(--muted);
}

.day-chip-num{
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ivory);
  line-height:1.1;
}

.day-chip-sub{
  font-size: 7.5px;
  color: var(--error);
  white-space:nowrap;
}

.carousel-knob:disabled{
  opacity:.3;
  cursor:not-allowed;
}
.carousel-knob:disabled:hover{
  transform:none;
  border-color: rgba(201,162,77,0.3);
  background: rgba(0,0,0,0.3);
}

@media (max-width: 480px){
  .day-chip-dow{ font-size: 8.5px; }
  .day-chip-num{ font-size: 15px; }
}

/* ============================================================
   9b) SELECCIÓN DE HORA (debajo del calendario)
   ============================================================ */
.time-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:8px;
}

.time-slot{
  padding: 10px 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight:600;
  color: var(--ivory);
  background: var(--tint);
  border: 1.5px solid rgba(201,162,77,0.18);
  border-radius: 9px;
  cursor:pointer;
  transition: border-color .2s ease, background .2s ease;
}

.time-slot:hover{ border-color: rgba(201,162,77,0.4); }

.time-slot.selected{
  border-color: var(--gold-text);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #201a13;
}

/* Input de fecha: forzamos el selector nativo a modo oscuro */
input[type="date"]{ color-scheme: dark; }

@media (max-width: 480px){
  .time-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   10) RESUMEN (pantalla de confirmar)
   ============================================================ */
.summary-box{
  display:flex;
  flex-direction:column;
  gap: 2px;
  margin-bottom: 24px;
  background: var(--tint-soft);
  border: 1px solid rgba(201,162,77,0.15);
  border-radius: 12px;
  overflow:hidden;
}

.summary-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(201,162,77,0.1);
}
.summary-row:last-child{ border-bottom:none; }

.summary-row.total{ background: rgba(201,162,77,0.08); }

.summary-label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing:.03em;
  color: var(--muted);
}

.summary-value{
  font-size: 14px;
  font-weight:600;
  color: var(--ivory);
  text-align:right;
}

.summary-row.total .summary-value{
  color: var(--gold-text);
  font-size: 16px;
}

/* ============================================================
   11) INICIO — estado vacío
   ============================================================ */
.empty-state{
  text-align:center;
  padding: 12px 0 4px;
}

.time-grid .empty-state{
  grid-column: 1 / -1;
  padding: 24px 12px 8px;
}

.empty-icon{
  width:56px; height:56px;
  margin: 0 auto 18px;
  border-radius:50%;
  background: rgba(201,162,77,0.1);
  border: 1.5px solid rgba(201,162,77,0.25);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--gold-text);
}
.empty-icon svg{ width:26px; height:26px; }

.empty-title{
  font-size: 19px;
  font-weight:700;
  color: var(--ivory);
  margin: 0 0 6px 0;
}

.empty-sub{
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 22px 0;
  line-height:1.5;
}

.empty-state .btn-continue{ text-decoration:none; }

/* ============================================================
   12) INICIO — estado con cita activa
   ============================================================ */
.badge{
  display:inline-block;
  font-size: 11px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform: uppercase;
  color: #1f3a5f;
  background: var(--stripe-cream);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.appointment-card{
  background: var(--tint);
  border: 1.5px solid rgba(201,162,77,0.2);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
}

.appointment-service{
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ivory);
  margin: 0 0 4px 0;
  letter-spacing:.01em;
}

.appointment-datetime{
  font-size: 13.5px;
  color: var(--gold-text);
  font-weight:600;
  margin: 0 0 18px 0;
}

.countdown{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:8px;
}

.countdown-unit{
  display:flex;
  flex-direction:column;
  align-items:center;
  background: var(--tint-strong);
  border-radius: 9px;
  padding: 10px 4px;
}

.countdown-num{
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold-text);
  line-height:1;
}

.countdown-label{
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing:.05em;
  color: var(--muted);
  margin-top: 4px;
}

.action-row{
  display:flex;
  gap:10px;
  margin-bottom: 10px;
}

.btn-secondary,
.btn-danger{
  flex:1;
  border: 1.5px solid rgba(201,162,77,0.3);
  background: transparent;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight:700;
  padding: 12px 14px;
  border-radius: 11px;
  cursor:pointer;
  transition: border-color .2s ease, background .2s ease, opacity .2s ease;
}

.btn-secondary:hover{ border-color: var(--gold-text); background: rgba(201,162,77,0.08); }
.btn-secondary:disabled{ opacity:.4; cursor:not-allowed; }

.or-divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 12px;
  text-transform:uppercase;
  letter-spacing:1px;
}
.or-divider::before, .or-divider::after{
  content:"";
  flex:1;
  height:1px;
  background: rgba(201,162,77,0.18);
}

.btn-google{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border: 1.5px solid rgba(201,162,77,0.25);
  background: rgba(255,255,255,0.04);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight:700;
  padding: 12px 14px;
  border-radius: 11px;
  cursor:pointer;
  transition: border-color .2s ease, background .2s ease;
}
.btn-google:hover{ border-color: var(--gold-text); background: rgba(255,255,255,0.08); }
.btn-google:disabled{ opacity:.5; cursor:not-allowed; }

.btn-google-primary{
  border-color: rgba(201,162,77,0.5);
  background: rgba(255,255,255,0.06);
  padding: 14px;
  font-size: 15px;
  box-shadow: 0 0 0 1px rgba(201,162,77,0.08);
}

.location-buttons{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.location-buttons .btn-secondary{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
}

.link-manual-details{
  margin: 4px 0 14px 0;
}
.link-manual-details summary{
  font-size: 12px;
  color: var(--muted);
  cursor:pointer;
  user-select:none;
}
.link-manual-details summary:hover{ color: var(--gold-text); }

.hint-cargando{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:700;
  color: var(--gold-text) !important;
}
.hint-exito{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:700;
  color:#6fbf73 !important;
}

.ampm-picker{
  display:flex;
  align-items:center;
  gap:6px;
}
.ampm-picker select{
  width:auto;
  min-width:60px;
  flex:0 0 auto;
  text-align:center;
}
.ampm-picker span{ color: var(--muted); font-weight:700; }
.ampm-toggle{
  display:flex;
  margin-left:8px;
  border:1.5px solid rgba(201,162,77,0.3);
  border-radius:11px;
  overflow:hidden;
}
.ampm-toggle button{
  border:none;
  background:transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight:700;
  font-size:13px;
  padding:12px 14px;
  cursor:pointer;
}
.ampm-toggle button.selected{
  background: var(--gold);
  color:#14110d;
}

.dia-semana-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:8px;
}
.dia-semana-chip{
  padding:16px 4px;
  border:1.5px solid rgba(201,162,77,0.25);
  background: var(--tint-soft);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight:700;
  font-size:13px;
  border-radius:12px;
  cursor:pointer;
  transition: border-color .2s ease, background .2s ease, transform .1s ease;
}
.dia-semana-chip:hover{ border-color: var(--gold-text); }
.dia-semana-chip.selected{
  background: var(--gold);
  color:#14110d;
  border-color: var(--gold-text);
  transform: scale(1.04);
}

.anuncio-box{
  background: linear-gradient(135deg, rgba(201,162,77,0.15), rgba(201,162,77,0.05));
  border: 1.5px solid rgba(201,162,77,0.35);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  color: var(--gold-text);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.dia-horario-card{
  background: var(--tint-soft);
  border: 1px solid rgba(201,162,77,0.15);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.dia-horario-titulo{
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .5px;
  color: var(--ivory);
  margin-bottom: 8px;
}
.dia-horario-modo{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:6px;
}
.modo-btn.active{
  background: var(--gold);
  color:#14110d;
  border-color: var(--gold-text);
}
.asistencia-btn.active{
  background: var(--gold);
  color:#14110d;
  border-color: var(--gold-text);
}
.asistencia-btn:disabled{ opacity:.35; cursor:not-allowed; }

.modo-claro-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 4px;
  border-top: 1px solid rgba(201,162,77,0.12);
  margin-top: 8px;
}
.modo-claro-label{
  font-family: var(--font-body);
  font-weight:700;
  font-size:14px;
  color: var(--ivory);
}
.switch{
  position:relative;
  display:inline-block;
  width:46px;
  height:26px;
  flex-shrink:0;
}
.switch input{ opacity:0; width:0; height:0; }
.switch-slider{
  position:absolute; inset:0;
  background: rgba(255,255,255,0.15);
  border-radius:26px;
  cursor:pointer;
  transition: background .2s ease;
}
.switch-slider::before{
  content:"";
  position:absolute;
  width:20px; height:20px;
  left:3px; top:3px;
  background:#fff;
  border-radius:50%;
  transition: transform .2s ease;
}
.switch input:checked + .switch-slider{ background: var(--gold); }
.switch input:checked + .switch-slider::before{ transform: translateX(20px); }

.modo-claro-rincon{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(201,162,77,0.1);
  opacity:.55;
  font-size: 11px;
  color: var(--muted);
}
.modo-claro-rincon:hover{ opacity:1; }
.switch-sm{ width:32px; height:18px; }
.switch-sm .switch-slider::before{ width:13px; height:13px; }
.switch-sm input:checked + .switch-slider::before{ transform: translateX(14px); }

.precio-input-chico{
  font-size: 14px;
  padding: 10px 12px;
}
.duracion-input-grande{
  font-size: 16px;
  padding: 15px 12px;
  font-weight:700;
  text-align:center;
}

.btn-danger{
  border-color: rgba(217,105,90,0.35);
  color: var(--error);
}
.btn-danger:hover:not(:disabled){ background: rgba(217,105,90,0.1); border-color: var(--error); }

.btn-danger:disabled{
  opacity:.4;
  cursor:not-allowed;
}

/* ============================================================
   13) ASISTENTE DE 3 PASOS (servicio.html)
   ============================================================ */
.steps-indicator{
  display:flex;
  align-items:center;
  gap:6px;
  margin: 20px 0 26px 0;
}

.step-dot{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  flex-shrink:0;
}

.step-num{
  width:26px; height:26px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:700;
  color: var(--muted);
  background: var(--tint);
  border: 1.5px solid rgba(201,162,77,0.25);
  transition: all .2s ease;
}

.step-label{
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing:.03em;
  color: var(--muted);
  white-space:nowrap;
}

.step-dot.active .step-num{
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: var(--gold-text);
  color: #201a13;
}
.step-dot.active .step-label{ color: var(--gold-text); }

.step-dot.done .step-num{
  background: rgba(201,162,77,0.18);
  border-color: var(--gold-text);
  color: var(--gold-text);
}

.step-line{
  flex:1;
  height:1.5px;
  background: rgba(201,162,77,0.2);
  margin-bottom: 17px;
}

.step-panel{ display:flex; flex-direction:column; gap:16px; }

.step-back{
  align-self:flex-start;
  background:none;
  border:none;
  padding:0;
  margin: -6px 0 0 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight:600;
  color: var(--muted);
  cursor:pointer;
  transition: color .2s ease;
}
.step-back:hover{ color: var(--gold-text); }

/* ============================================================
   14) TARJETAS DE PROFESIONAL
   ============================================================ */
.pro-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}
.pro-list::-webkit-scrollbar{ width:5px; }
.pro-list::-webkit-scrollbar-thumb{ background: rgba(201,162,77,0.3); border-radius:5px; }

.pro-card{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  text-align:left;
  background: var(--tint);
  border: 1.5px solid rgba(201,162,77,0.18);
  border-radius: 11px;
  padding: 10px 14px;
  cursor:pointer;
  font-family: var(--font-body);
  transition: border-color .2s ease, background .2s ease;
}

.pro-card:hover{ border-color: rgba(201,162,77,0.4); }

.pro-card-bloqueado{
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(1);
}
.pro-card-bloqueado:hover{ border-color: rgba(201,162,77,0.18); }

.pro-card.selected{
  border-color: var(--gold-text);
  background: rgba(201,162,77,0.1);
}

.pro-avatar{
  flex-shrink:0;
  width:50px; height:50px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing:.03em;
  color: #201a13;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.pro-avatar-img{
  object-fit: cover;
  background: none;
}

.pro-info{ display:flex; flex-direction:column; gap:2px; }

.pro-name{
  font-size: 14.5px;
  font-weight:600;
  color: var(--ivory);
}

.pro-especialidad{
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   16) TARJETA DE CITA — línea del profesional
   ============================================================ */
.appointment-pro{
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px 0;
}

/* ============================================================
   17) BARRA SUPERIOR (cerrar sesión) Y LISTA DE VARIAS CITAS
   ============================================================ */
.top-bar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.top-bar .eyebrow{ margin-bottom:0; }

.brand-mark-col{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
}
.brand-mark-icon{ width:20px; height:20px; opacity:.85; }

.logout-link{
  background:none;
  border:none;
  padding:0;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight:600;
  color: var(--muted);
  cursor:pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s ease;
}
.logout-link:hover{ color: var(--error); }

.citas-carousel{ margin-bottom: 16px; }

.carousel-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.carousel-track{
  flex:1;
  min-width:0;
}

.carousel-knob{
  flex-shrink:0;
  width:36px; height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,0.3);
  border: 1.5px solid rgba(201,162,77,0.3);
  color: var(--gold-text);
  cursor:pointer;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.carousel-knob svg{ width:16px; height:16px; }
.carousel-knob:hover{
  border-color: var(--gold-text);
  background: rgba(201,162,77,0.12);
  transform: scale(1.06);
}
.carousel-knob:active{ transform: scale(.96); }

.carousel-dots{
  display:flex;
  justify-content:center;
  gap:7px;
  margin-top: 14px;
}

.carousel-dot{
  width:7px; height:7px;
  border-radius:50%;
  border:none;
  padding:0;
  background: rgba(201,162,77,0.25);
  cursor:pointer;
  transition: background .2s ease, transform .2s ease;
}
.carousel-dot.active{
  background: var(--gold);
  transform: scale(1.3);
}

.in-progress-msg{
  background: rgba(201,162,77,0.1);
  border: 1px solid rgba(201,162,77,0.3);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--gold-text);
  text-align:center;
  margin: 0 0 10px 0;
}

.btn-add-cita{
  width:100%;
  text-align:center;
  justify-content:center;
  display:flex;
}

.limit-msg{ text-align:center; }

/* ============================================================
   19) LISTA DE CITAS DEL BARBERO (simple, sin carrusel)
   ============================================================ */
.citas-container{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.citas-container .appointment-card{ margin-bottom:0; }

/* ============================================================
   20) DASHBOARD DEL BARBERO
   ============================================================ */
.stats-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin: 18px 0;
}

.stat-box{
  background: var(--tint);
  border: 1.5px solid rgba(201,162,77,0.2);
  border-radius: 12px;
  padding: 14px 10px;
  text-align:center;
}

.stat-num{
  display:block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold-text);
  line-height:1;
}

.stat-label{
  display:block;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 6px;
  line-height:1.3;
}

.dashboard-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.dashboard-grid-4{ grid-template-columns: repeat(2, 1fr); }

.dashboard-tile{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  width:100%;
  padding: 18px 8px;
  background: var(--tint);
  border: 1.5px solid rgba(201,162,77,0.18);
  border-radius: 12px;
  color: var(--ivory);
  text-decoration:none;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight:600;
  cursor:pointer;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.dashboard-tile svg{ width:24px; height:24px; color: var(--gold-text); }
.dashboard-tile:hover{
  border-color: var(--gold-text);
  background: rgba(201,162,77,0.08);
  transform: translateY(-2px);
}
.dashboard-tile.active{
  border-color: var(--gold-text);
  background: rgba(201,162,77,0.14);
}

/* ============================================================
   LISTA COMPACTA DE CLIENTES BLOQUEADOS
   ============================================================ */
.blocked-list{
  display:flex;
  flex-direction:column;
  gap:5px;
  max-height: 270px;
  overflow-y: auto;
  padding-right: 4px;
}
.blocked-list::-webkit-scrollbar{ width:4px; }
.blocked-list::-webkit-scrollbar-thumb{ background: rgba(201,162,77,0.3); border-radius:5px; }

.blocked-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding: 8px 12px;
  background: var(--tint-soft);
  border: 1px solid rgba(201,162,77,0.15);
  border-radius: 8px;
}
.blocked-row-info{
  display:flex;
  flex-direction:column;
  gap:1px;
  overflow:hidden;
}
.blocked-row-nombre{
  font-size: 12.5px;
  font-weight:600;
  color: var(--ivory);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.blocked-row-numero{
  font-size: 10px;
  color: var(--muted);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.blocked-row-btn{
  flex-shrink:0;
  border: 1.5px solid rgba(217,105,90,0.4);
  background: rgba(217,105,90,0.1);
  color: var(--error);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight:700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor:pointer;
  transition: background .2s ease;
}
.blocked-row-btn:hover{ background: rgba(217,105,90,0.22); }

/* ============================================================
   PANEL DE ADMINISTRADOR DE LA PLATAFORMA — responsive
   ============================================================ */
.superadmin-card{
  max-width: 460px;
}
@media (min-width: 860px){
  .superadmin-card{
    max-width: 760px;
  }
  .negocios-lista{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:8px;
  }
}
@media (min-width: 1200px){
  .superadmin-card{
    max-width: 980px;
  }
  .negocios-lista{
    grid-template-columns: repeat(3, 1fr);
  }
}

.negocios-lista{
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height: 65vh;
  overflow-y:auto;
  padding-right:4px;
}
.negocios-lista::-webkit-scrollbar{ width:5px; }
.negocios-lista::-webkit-scrollbar-thumb{ background: rgba(201,162,77,0.3); border-radius:5px; }

.negocio-row{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  text-align:left;
  padding: 10px 12px;
  background: var(--tint);
  border: 1px solid rgba(201,162,77,0.15);
  border-radius: 10px;
  cursor:pointer;
  font-family: var(--font-body);
  transition: border-color .15s ease, background .15s ease;
}
.negocio-row:hover{ border-color: rgba(201,162,77,0.45); }

.negocio-row-estado{
  width:8px; height:8px;
  border-radius:50%;
  background: #6fbf73;
  flex-shrink:0;
}
.negocio-row-bloqueado{ background: var(--error); }

.negocio-row-info{
  display:flex;
  flex-direction:column;
  gap:2px;
  overflow:hidden;
  flex:1;
}
.negocio-row-nombre{
  font-size: 12.5px;
  font-weight:700;
  color: var(--ivory);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.negocio-row-sub{
  font-size: 10px;
  color: var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.negocio-row-meta{
  display:flex;
  flex-direction:column;
  align-items:center;
  flex-shrink:0;
}
.negocio-row-count{
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-text);
  line-height:1;
}
.negocio-row-count-label{
  font-size: 8px;
  color: var(--muted);
  text-transform:uppercase;
}

/* ============================================================
   TARJETAS DE ELECCIÓN (registro: empleado vs dueño)
   ============================================================ */
.choice-card{
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  text-align:left;
  padding: 16px;
  margin-bottom: 10px;
  background: var(--tint);
  border: 1.5px solid rgba(201,162,77,0.2);
  border-radius: 12px;
  cursor:pointer;
  font-family: var(--font-body);
  transition: border-color .2s ease, background .2s ease;
}
.choice-card svg{ width:26px; height:26px; color: var(--gold-text); flex-shrink:0; }
.choice-card:hover{ border-color: rgba(201,162,77,0.5); }
.choice-card.selected{ border-color: var(--gold-text); background: rgba(201,162,77,0.12); }

.choice-card-text{ display:flex; flex-direction:column; gap:3px; }
.choice-card-title{ font-size: 14px; font-weight:700; color: var(--ivory); }
.choice-card-sub{ font-size: 11.5px; color: var(--muted); line-height:1.3; }

/* ============================================================
   MENÚ DE CONFIGURACIÓN — tipo lista, con acordeón
   ============================================================ */
.config-menu{ display:flex; flex-direction:column; gap:8px; }

.config-menu-item{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding: 14px 14px;
  background: var(--tint);
  border: 1.5px solid rgba(201,162,77,0.18);
  border-radius: 12px;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight:600;
  cursor:pointer;
  text-align:left;
  transition: border-color .2s ease, background .2s ease;
}
.config-menu-item:hover{ border-color: rgba(201,162,77,0.4); }
.config-menu-item.active{ border-color: var(--gold-text); background: rgba(201,162,77,0.1); }
.config-menu-item-danger{ border-color: rgba(217,105,90,0.3); }
.config-menu-item-danger .config-menu-icon{ color: var(--error); }
.config-menu-item-danger:hover{ border-color: var(--error); background: rgba(217,105,90,0.08); }

.config-menu-icon{ width:19px; height:19px; color: var(--gold-text); flex-shrink:0; }
.config-menu-label{ flex:1; }
.config-menu-chevron{
  width:16px; height:16px;
  color: var(--muted);
  flex-shrink:0;
  transition: transform .2s ease;
}
.config-menu-chevron.open{ transform: rotate(90deg); }

.config-menu-panel{
  padding: 14px 4px 6px 4px;
  margin-top: -4px;
}

.foto-preview-row{
  display:flex;
  align-items:center;
  gap:14px;
}

.foto-preview{
  width:64px; height:64px;
  border-radius:50%;
  object-fit:cover;
  border: 2px solid var(--gold);
  flex-shrink:0;
}

.foto-preview-vacio{
  width:64px; height:64px;
  border-radius:50%;
  background: var(--tint);
  border: 1.5px dashed rgba(201,162,77,0.3);
  color: var(--muted);
  font-size: 9px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  flex-shrink:0;
}

.foto-preview-info{
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
}

.share-preview{
  background: var(--tint);
  border: 1.5px solid rgba(201,162,77,0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.share-preview-text{
  font-size: 13px;
  color: var(--ivory);
  line-height: 1.5;
  white-space: pre-line;
  margin: 0;
}

.divider{
  border:none;
  border-top: 1px solid rgba(201,162,77,0.15);
  margin: 26px 0 18px 0;
}

.section-title{
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-text);
  margin: 0 0 4px 0;
}

/* ============================================================
   21) LÍNEA DE TIEMPO (agenda del barbero, estilo calendario)
   ============================================================ */
.timeline-scroll{
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid rgba(201,162,77,0.15);
  border-radius: 10px;
  margin-bottom: 12px;
}
.timeline-scroll::-webkit-scrollbar{ width:5px; }
.timeline-scroll::-webkit-scrollbar-thumb{ background: rgba(201,162,77,0.3); border-radius:5px; }

.timeline-wrap{
  position:relative;
  display:flex;
}

.timeline-hours{
  position:relative;
  width:36px;
  flex-shrink:0;
  border-right: 1px solid rgba(201,162,77,0.15);
}

.tl-hour-label{
  position:absolute;
  left:0; right:0;
  transform: translateY(-50%);
  text-align:center;
  font-family: var(--font-display);
  font-size: 8.5px;
  color: var(--muted);
}

.timeline-body{
  position:relative;
  flex:1;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(201,162,77,0.14) 0px, rgba(201,162,77,0.14) 1px,
    transparent 1px, transparent 16px
  );
}

.tl-cell{
  position:absolute;
  left:2px; right:2px;
  border-radius:3px;
  border:none;
  padding:0;
  cursor:pointer;
}
.tl-cell.slot-libre{ background: transparent; }
.tl-cell.slot-libre:hover{ background: rgba(201,162,77,0.1); }
.tl-cell.slot-bloqueado{ background: rgba(168,150,124,0.35); }
.tl-cell.slot-seleccionado{ outline: 2px solid var(--gold); outline-offset: -2px; }
.tl-cell:disabled{ cursor:not-allowed; }

.tl-cita{
  position:absolute;
  left:2px; right:2px;
  z-index:3;
  border-radius:5px;
  border:none;
  border-left: 3px solid var(--error);
  cursor:pointer;
  text-align:left;
  padding: 2px 8px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:0;
  background: linear-gradient(135deg, rgba(217,105,90,0.55), rgba(217,105,90,0.38));
  transition: filter .15s ease;
}
.tl-cita:hover{ filter: brightness(1.15); }

.tl-cita-cumplida{
  opacity: .6;
  border-left-color: #6fbf73;
  background: linear-gradient(135deg, rgba(111,191,115,0.4), rgba(111,191,115,0.25));
}

.tl-cita-rango{
  font-size: 7.5px;
  font-weight:700;
  letter-spacing:.02em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  line-height:1;
}

.tl-cita-nombre{
  font-size: 10.5px;
  font-weight:700;
  color: #fff;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.tl-cita-servicio{
  font-size: 9px;
  font-weight:600;
  color: rgba(255,255,255,0.75);
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.tl-cita-doble{
  background: repeating-linear-gradient(45deg, rgba(217,105,90,0.65) 0 5px, rgba(217,105,90,0.35) 5px 10px);
  border-left-color: #fff;
}

.tl-ahora{
  position:absolute;
  left:0; right:0;
  height:2px;
  background: var(--gold-bright);
  z-index:5;
  box-shadow: 0 0 6px rgba(232,199,111,0.7);
}
.tl-ahora::before{
  content:"AHORA";
  position:absolute;
  left:2px;
  top:-8px;
  font-family: var(--font-display);
  font-size: 7.5px;
  letter-spacing:.05em;
  color: #201a13;
  background: var(--gold-bright);
  padding: 1px 4px;
  border-radius: 3px;
}

.grid-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  margin: 16px 0 10px 0;
}

.grid-day-label{
  font-size: 13px;
  font-weight:700;
  color: var(--gold-text);
  margin:0;
}

.grid-legend{ display:flex; gap:10px; flex-wrap:wrap; }
.legend-item{
  display:flex;
  align-items:center;
  gap:4px;
  font-size: 10.5px;
  color: var(--muted);
}
.legend-dot{ width:8px; height:8px; border-radius:3px; display:inline-block; }
.legend-libre{ background: var(--tint); border:1px solid rgba(201,162,77,0.3); }
.legend-ocupado{ background: rgba(217,105,90,0.5); }
.legend-bloqueado{ background: rgba(168,150,124,0.5); }

.grid-actions{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:6px;
  margin-bottom: 8px;
}

.btn-mini{
  border: 1.5px solid rgba(201,162,77,0.3);
  background: var(--tint-soft);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight:700;
  padding: 8px 4px;
  border-radius: 8px;
  cursor:pointer;
  transition: border-color .2s ease, background .2s ease, opacity .2s ease;
}
.btn-mini:hover:not(:disabled){ border-color: var(--gold-text); background: rgba(201,162,77,0.08); }
.btn-mini:disabled{ opacity:.35; cursor:not-allowed; }
.btn-mini.active{ border-color: var(--gold-text); background: rgba(201,162,77,0.15); color: var(--gold-text); }

.btn-mini-danger{
  border-color: rgba(217,105,90,0.35);
  color: var(--error);
}
.btn-mini-danger:hover{ background: rgba(217,105,90,0.1); border-color: var(--error); }

/* ============================================================
   18) ENCABEZADO DE LA BARBERÍA (logo, dirección, redes)
   ============================================================ */
.shop-header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom: 14px;
}

.shop-logo{
  flex-shrink:0;
  width:52px; height:52px;
  border-radius:50%;
  object-fit:cover;
  border: 1.5px solid rgba(201,162,77,0.35);
}

.shop-logo-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  font-family: var(--font-display);
  font-size: 18px;
  color: #201a13;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.shop-info{ min-width:0; flex:1; }

.shop-name{
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing:.01em;
  color: var(--ivory);
  line-height:1.1;
  margin:0 0 3px 0;
}

.shop-address{
  font-size: 12px;
  color: var(--muted);
  margin:0;
}

.shop-extra{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201,162,77,0.15);
}

.btn-map{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size: 12px;
  font-weight:700;
  color: var(--gold-text);
  text-decoration:none;
  border: 1.5px solid rgba(201,162,77,0.3);
  border-radius: 999px;
  padding: 6px 12px;
  transition: border-color .2s ease, background .2s ease;
}
.btn-map svg{ width:13px; height:13px; }
.btn-map:hover{ border-color: var(--gold-text); background: rgba(201,162,77,0.08); }

.social-row{ display:flex; gap:8px; }

.ana-agenda-brand-row{
  display:flex;
  align-items:center;
  gap:5px;
  flex-shrink:0;
  margin-left:8px;
}
.ana-agenda-brand-icon{ width:24px; height:24px; }
.ana-agenda-brand-nombre{
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing:.5px;
  color: var(--gold-text);
  white-space: nowrap;
}

.exito-icono{
  width:72px;
  height:72px;
  margin: 4px auto 0;
  border-radius:50%;
  background: linear-gradient(135deg, #7fcf83, #5aad5e);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  animation: exitoPop .4s cubic-bezier(.3,1.5,.5,1);
}
.exito-icono svg{ width:34px; height:34px; }
@keyframes exitoPop{
  0%{ transform: scale(0); opacity:0; }
  70%{ transform: scale(1.12); opacity:1; }
  100%{ transform: scale(1); }
}

.tutorial-icono{
  font-size: 44px;
  text-align:center;
  margin-top:6px;
}

.campo-autocompletado{
  animation: destelloDorado 1.5s ease;
}
@keyframes destelloDorado{
  0%{ background: rgba(201,162,77,0.45); border-color: var(--gold-bright); }
  100%{ background: var(--tint); }
}

.aviso-instalar-ios{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 999;
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid rgba(201,162,77,0.4);
  border-radius: 14px;
  padding: 12px 34px 12px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  animation: avisoSube .35s ease;
}
.aviso-instalar-ios-texto{
  margin:0;
  font-size: 12.5px;
  line-height:1.5;
  color: var(--ivory);
}
.aviso-instalar-ios-cerrar{
  position:absolute;
  top:8px; right:10px;
  background:none;
  border:none;
  color: var(--muted);
  font-size:14px;
  cursor:pointer;
  padding:4px;
}
@keyframes avisoSube{
  from{ transform: translateY(20px); opacity:0; }
  to{ transform: translateY(0); opacity:1; }
}

.social-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:30px; height:30px;
  border-radius:50%;
  color: var(--muted);
  background: var(--tint);
  border: 1px solid rgba(201,162,77,0.2);
  transition: color .2s ease, border-color .2s ease;
}
.social-icon svg{ width:15px; height:15px; }
.social-icon:hover{ color: var(--gold-text); border-color: var(--gold-text); }
