/* ==========================================================================
   Barber SaaS — Página de reservas (lo que ve el cliente)
   ========================================================================== */
body.reserva { min-height: 100vh; }
.rs-fondo { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px circle at 15% 10%, rgba(255, 75, 43, 0.16), transparent 60%),
    radial-gradient(600px circle at 90% 90%, rgba(255, 181, 71, 0.07), transparent 60%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 26px);
}
.rs-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0 80px; display: grid; grid-template-columns: 1fr 500px; gap: 56px; align-items: start; }

/* ---- Marca de la barbería ---- */
.rs-marca { position: sticky; top: 56px; display: flex; flex-direction: column; gap: 18px; padding-top: 10px; }
.rs-marca-top { display: flex; align-items: center; gap: 14px; }
.rs-sello { width: 54px; height: 54px; border-radius: 16px; background: var(--grafito); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--linea-2), 0 10px 30px -10px rgba(255, 75, 43, 0.5); }
.rs-sello .poste { width: 16px; height: 34px; border-radius: 99px; box-shadow: 0 0 0 2px var(--negro); }
.rs-nombre { font-family: var(--f-display); font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 760; letter-spacing: -0.045em; line-height: 0.95; text-wrap: balance; max-width: 11ch; }
.rs-lugar { font-size: 18px; color: var(--humo); }
.rs-datos { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.rs-dato { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--espuma-2); }
.rs-dato .ic { color: var(--neon-2); width: 19px; height: 19px; }
.rs-dato small { color: var(--humo); font-size: 13.5px; }
.rs-horario { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; font-size: 13.5px; color: var(--humo); padding: 14px 16px; border-radius: 16px; background: rgba(20, 19, 19, 0.7); box-shadow: inset 0 0 0 1px var(--linea); max-width: 330px; }
.rs-horario b { color: var(--espuma); font-weight: 500; text-transform: capitalize; }
.rs-horario .es-hoy { color: var(--neon-2); }
.rs-powered { font-size: 13px; color: var(--humo-2); margin-top: 8px; }
.rs-powered a { color: var(--humo); }
.rs-powered a b { font-weight: 800; }

/* ---- Tarjeta de reserva ---- */
.rs-card { background: rgba(20, 19, 19, 0.96); border-radius: 30px; box-shadow: var(--sombra-flota); padding: 10px 22px 24px; min-width: 0; }
@supports (backdrop-filter: blur(10px)) { .rs-card { background: rgba(20, 19, 19, 0.82); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); } }
.rs-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; margin: 8px 0 18px; border-radius: 16px; background: #0f0e0e; box-shadow: inset 0 0 0 1px var(--linea); }
.rs-tab { height: 44px; border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--humo); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.25s, color 0.25s; }
.rs-tab.is-on { background: var(--espuma); color: var(--tinta); }
.rs-tab small { font-family: var(--f-mono); font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--neon-suave); color: #ffab99; }
.rs-tab.is-on small { background: rgba(196, 45, 14, 0.12); color: var(--neon-tinta); }
.rs-tab small:empty { display: none; }

.rs-paso { padding: 16px 0 18px; border-bottom: 1px solid var(--linea); }
.rs-paso:last-of-type { border-bottom: 0; }
.rs-paso-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rs-paso-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, 0.07); flex: none; }
.rs-paso.is-hecho .rs-paso-n { background: var(--ok); color: #06301c; }
.rs-paso.is-hecho .rs-paso-n .ic { width: 15px; height: 15px; }
.rs-paso-cab h2 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; flex: 1; }
.rs-paso-cab .resumen { font-size: 13.5px; color: var(--humo); text-align: right; }
.rs-paso-cab button.resumen { color: var(--neon-2); font-weight: 600; }
.rs-paso.is-bloqueado { opacity: 0.4; pointer-events: none; }
.rs-paso.is-bloqueado .rs-paso-cuerpo { display: none; }
.rs-paso.is-plegado .rs-paso-cuerpo { display: none; }
.rs-paso.is-plegado .rs-paso-cab { margin-bottom: 0; }

.rs-servicios { display: flex; flex-direction: column; gap: 8px; }
.rs-opcion { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; text-align: left; width: 100%; padding: 14px 16px; border-radius: 16px; background: #1a1818; box-shadow: inset 0 0 0 1px var(--linea); transition: box-shadow 0.2s, background 0.2s; }
.rs-opcion:hover { background: #201e1e; }
.rs-opcion.is-on { box-shadow: inset 0 0 0 2px var(--neon); background: #221715; }
.rs-opcion b { font-size: 15.5px; font-weight: 600; }
.rs-opcion small { grid-column: 1; font-size: 13px; color: var(--humo); }
.rs-opcion .precio { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-weight: 650; font-size: 16px; }
.rs-opcion .precio small { display: block; font-weight: 400; font-size: 12px; }

.rs-barberos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.rs-barbero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 18px; background: #1a1818; box-shadow: inset 0 0 0 1px var(--linea); text-align: center; transition: box-shadow 0.2s; }
.rs-barbero.is-on { box-shadow: inset 0 0 0 2px var(--neon); background: #221715; }
.rs-barbero b { font-size: 14.5px; }
.rs-barbero small { font-size: 12px; color: var(--humo); line-height: 1.3; }
.rs-barbero .avatar { width: 46px; height: 46px; font-size: 15px; }
.rs-barbero--libre .avatar { background: var(--grafito-2); }
.rs-barbero--libre .avatar .poste { width: 12px; height: 24px; border-radius: 99px; }

.rs-dias { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; margin: 0 -2px 6px; scroll-snap-type: x proximity; }
.rs-dias::-webkit-scrollbar { display: none; }
.rs-dia { flex: none; width: 64px; padding: 10px 0; border-radius: 16px; background: #1a1818; box-shadow: inset 0 0 0 1px var(--linea); display: flex; flex-direction: column; align-items: center; gap: 2px; scroll-snap-align: start; }
.rs-dia small { font-size: 11.5px; color: var(--humo); text-transform: capitalize; }
.rs-dia b { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.rs-dia.is-on { background: var(--espuma); color: var(--tinta); box-shadow: none; }
.rs-dia.is-on small { color: var(--tinta-2); }
.rs-dia:disabled { opacity: 0.35; cursor: not-allowed; }
.rs-franja { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--humo); margin: 12px 0 8px; }
.rs-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rs-slot { height: 42px; border-radius: 12px; font-family: var(--f-mono); font-size: 13px; box-shadow: inset 0 0 0 1px var(--linea-2); transition: background 0.15s; }
.rs-slot:hover { background: rgba(255, 255, 255, 0.06); }
.rs-slot.is-on { background: var(--neon); color: #170805; box-shadow: none; font-weight: 600; }

.rs-form { display: flex; flex-direction: column; gap: 12px; }
.rs-campo { display: flex; flex-direction: column; gap: 6px; }
.rs-campo label { font-size: 13px; color: var(--humo); font-weight: 500; }
.rs-input { height: 48px; padding: 0 16px; border-radius: 14px; background: #1a1818; border: 1px solid var(--linea-2); color: var(--espuma); font-size: 15.5px; width: 100%; }
.rs-input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-suave); }
.rs-input[aria-invalid="true"] { border-color: var(--error); }
.rs-tel { display: grid; grid-template-columns: auto 1fr; }
.rs-tel span { display: grid; place-items: center; padding: 0 14px; border-radius: 14px 0 0 14px; background: #222020; border: 1px solid var(--linea-2); border-right: 0; font-family: var(--f-mono); font-size: 14px; color: var(--humo); }
.rs-tel .rs-input { border-radius: 0 14px 14px 0; }
.rs-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--humo); line-height: 1.45; cursor: pointer; }
.rs-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--neon); flex: none; }
.rs-error { font-size: 12.5px; color: #ffa39b; }

.rs-medios { display: flex; flex-direction: column; gap: 8px; }
.rs-medio { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #1a1818; box-shadow: inset 0 0 0 1px var(--linea); text-align: left; width: 100%; }
.rs-medio.is-on { box-shadow: inset 0 0 0 2px var(--neon); background: #221715; }
.rs-medio-radio { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--humo-2); flex: none; display: grid; place-items: center; }
.rs-medio.is-on .rs-medio-radio { box-shadow: inset 0 0 0 2px var(--neon); }
.rs-medio.is-on .rs-medio-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--neon); }
.rs-medio b { font-size: 15px; display: block; }
.rs-medio small { display: block; font-size: 12.5px; color: var(--humo); }
.rs-medio-tag { margin-left: auto; font-family: var(--f-mono); font-size: 10.5px; padding: 3px 8px; border-radius: 6px; background: var(--ok-suave); color: #8ff0c4; white-space: nowrap; }

.rs-resumen { margin-top: 16px; padding: 16px; border-radius: 18px; background: #0f0e0e; box-shadow: inset 0 0 0 1px var(--linea); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.rs-resumen div { display: flex; justify-content: space-between; gap: 12px; }
.rs-resumen span { color: var(--humo); }
.rs-resumen .total { padding-top: 10px; border-top: 1px solid var(--linea); font-size: 16px; }
.rs-resumen .total b { font-size: 20px; }
.rs-cta { width: 100%; margin-top: 16px; }
.rs-nota { text-align: center; font-size: 12.5px; color: var(--humo-2); margin-top: 10px; }

/* ---- Confirmación ---- */
.rs-ok { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 18px 4px 6px; }
.rs-ok-ico { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #06301c; animation: rs-pop 0.6s var(--ease-rebote) both; box-shadow: 0 0 0 10px var(--ok-suave); }
.rs-ok-ico .ic { width: 36px; height: 36px; stroke-width: 2.4; }
@keyframes rs-pop { from { transform: scale(0.4); opacity: 0; } }
.rs-ok h2 { font-family: var(--f-display); font-size: 30px; font-weight: 750; letter-spacing: -0.035em; line-height: 1.05; }
.rs-ok p { color: var(--humo); max-width: 34ch; }
.rs-ok .rs-resumen { width: 100%; text-align: left; }
.rs-wa { width: 100%; text-align: left; padding: 14px; border-radius: 18px; background-color: var(--chat-fondo); background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 18px 18px; box-shadow: inset 0 0 0 1px var(--linea); }
.rs-wa-k { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--humo); margin-bottom: 10px; }
.rs-wa-k .ic { width: 15px; height: 15px; color: var(--ok); }
.rs-wa .msg { max-width: 94%; }
.rs-acciones { display: flex; flex-direction: column; gap: 8px; width: 100%; }

/* ---- Fila virtual ---- */
.rs-fila-vivo { display: flex; gap: 10px; margin-bottom: 14px; }
.rs-fila-vivo div { flex: 1; padding: 14px; border-radius: 16px; background: #1a1818; box-shadow: inset 0 0 0 1px var(--linea); }
.rs-fila-vivo b { display: block; font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.rs-fila-vivo small { font-size: 12.5px; color: var(--humo); }
.rs-turno { text-align: center; padding: 26px 20px; border-radius: 24px; background: linear-gradient(160deg, #2a1714, #161313 70%); box-shadow: inset 0 0 0 1px rgba(255, 75, 43, 0.4); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rs-turno .k { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--humo); }
.rs-turno-pos { font-family: var(--f-display); font-size: 110px; font-weight: 780; line-height: 0.9; letter-spacing: -0.06em; color: var(--neon); text-shadow: 0 0 40px rgba(255, 75, 43, 0.5); }
.rs-turno-pos.cambia { animation: rs-pop 0.6s var(--ease-rebote); }
.rs-turno p { color: var(--humo); }
.rs-turno p b { color: var(--espuma); }
.rs-turno-barra { width: 100%; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 6px; }
.rs-turno-barra .poste { display: block; height: 100%; border-radius: 8px; transition: width 0.6s var(--ease); }
.rs-turno--ya { background: linear-gradient(160deg, #123a29, #141313 70%); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.5); }
.rs-turno--ya .rs-turno-pos { color: var(--ok); text-shadow: 0 0 40px rgba(61, 220, 151, 0.45); font-size: 64px; }

/* ---- Capa de pago ---- */
.capa-rs { position: fixed; inset: 0; z-index: 80; background: rgba(5, 4, 4, 0.65); display: grid; place-items: center; padding: 16px; animation: capa-entra 0.25s var(--ease); }
.capa-rs[hidden] { display: none; }
@keyframes capa-entra { from { opacity: 0; } }
.rs-pago { width: min(400px, 100%); background: #f5f1ea; color: var(--tinta); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; box-shadow: var(--sombra-flota); animation: rs-pop 0.4s var(--ease-rebote); color-scheme: light; }
.rs-pago-marca { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tinta-2); }
.rs-pago h3 { font-family: var(--f-display); font-size: 26px; font-weight: 750; letter-spacing: -0.03em; }
.rs-pago p { color: var(--tinta-2); font-size: 14px; }
.rs-pago-monto { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; }
.rs-pago .poste { width: 100%; height: 8px; border-radius: 8px; animation-play-state: running; }
.rs-pago-ok { width: 64px; height: 64px; border-radius: 50%; background: #0b7a4b; color: #fff; display: grid; place-items: center; animation: rs-pop 0.5s var(--ease-rebote); }
.rs-pago-ok .ic { width: 32px; height: 32px; stroke-width: 2.4; }
.rs-pago .btn { width: 100%; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .rs-shell { grid-template-columns: 1fr; gap: 26px; padding: 26px 0 60px; width: min(560px, calc(100% - 32px)); }
  .rs-marca { position: static; gap: 12px; }
  .rs-nombre { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .rs-horario { display: none; }
}
@media (max-width: 480px) {
  .rs-card { padding: 6px 14px 18px; border-radius: 24px; }
  .rs-slots { grid-template-columns: repeat(3, 1fr); }
  .rs-barberos { grid-template-columns: repeat(2, 1fr); }
  .rs-turno-pos { font-size: 92px; }
}

/* ---------- Tus citas: próxima cita, calificar, repetir, mover ---------- */
.rs-mis { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.rs-mia { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: linear-gradient(160deg, #1f1615, #161414 70%); box-shadow: inset 0 0 0 1px rgba(255, 75, 43, 0.28); }
.rs-mia-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.rs-mia-k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--humo); }
.rs-mia > b { font-size: 16.5px; font-weight: 650; }
.rs-mia > span { color: var(--humo); font-size: 14.5px; }
.rs-mia-acc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rs-mia-acc .btn { flex: 1 1 auto; justify-content: center; }
.rs-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.rs-chip .ic { width: 13px; height: 13px; }
.rs-chip--ok { background: var(--ok-suave); color: var(--ok); }
.rs-chip--alerta { background: var(--alerta-suave); color: var(--alerta); }
.rs-calif { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; background: #1a1818; box-shadow: inset 0 0 0 1px var(--linea); text-align: left; width: 100%; }
.rs-calif b { font-size: 16px; font-weight: 650; }
.rs-calif small { color: var(--humo); font-size: 13px; line-height: 1.4; }
.rs-calif textarea.rs-input { height: auto; min-height: 64px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.rs-estrellas { display: flex; gap: 4px; margin: 4px 0; }
.rs-estrella { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--humo-2); transition: color 0.15s, transform 0.15s; }
.rs-estrella .ic { width: 30px; height: 30px; }
.rs-estrella:hover { transform: scale(1.08); }
.rs-estrella.is-on { color: #ffc14d; }
.rs-estrella.is-on .ic { fill: currentColor; }
.rs-gracias { display: inline-flex; align-items: center; gap: 6px; color: var(--espuma) !important; }
.rs-gracias .ic { width: 18px; height: 18px; color: #ffc14d; fill: currentColor; }
.rs-repetir { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 18px; text-align: left; background: #1a1818; box-shadow: inset 0 0 0 1px var(--linea-2); transition: background 0.2s; }
.rs-repetir:hover { background: #221e1d; }
.rs-repetir > .ic { width: 22px; height: 22px; color: var(--neon-2); }
.rs-repetir b { display: block; font-size: 15.5px; font-weight: 650; }
.rs-repetir small { display: block; font-size: 13px; color: var(--humo); }
.rs-cambio { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: start; padding: 14px 16px; border-radius: 18px; background: var(--info-suave); box-shadow: inset 0 0 0 1px rgba(122, 162, 255, 0.35); margin-bottom: 6px; }
.rs-cambio > .ic { width: 20px; height: 20px; color: var(--info); margin-top: 2px; }
.rs-cambio b { display: block; font-size: 14.5px; }
.rs-cambio span { display: block; font-size: 13px; color: var(--humo); margin-top: 2px; }
.rs-cambio .btn { grid-column: 2; justify-self: start; }
.rs-tachado { text-decoration: line-through; color: var(--humo); font-weight: 500; }
.rs-nota--izq { text-align: left; margin: 0; }
.rs-pago.rs-confirmar { align-items: stretch; text-align: left; gap: 10px; background: #161414; color: var(--espuma); box-shadow: 0 0 0 1px var(--linea-2), 0 30px 80px -20px rgba(0, 0, 0, 0.8); }
.rs-pago.rs-confirmar h3 { color: var(--espuma); }
.rs-pago.rs-confirmar p { color: var(--humo); }
.rs-confirmar .rs-acciones { margin-top: 6px; }
.rs-mas-barberias { display: inline-flex; align-items: center; gap: 6px; }
.rs-mas-barberias .ic { width: 14px; height: 14px; }
