/* =====================================================================
   Barbea · app del equipo y reserva del cliente · tema negro de marca (2026-10-13)
   Sistema aprobado: estructura Fresha, acabado Linear y color solo para estados.
   Sustituye a base.css + app.css + barbea-theme.css + booking.css + porem.css en la app.
   ===================================================================== */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fuentes/inter-latin.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #08090A; --bg-2: #0F1011; --panel: #141516; --panel-2: #1B1C1E; --raised: #242424;
  --borde: rgba(255, 255, 255, .08); --borde-2: rgba(255, 255, 255, .12); --borde-3: rgba(255, 255, 255, .24);
  --fg: #F7F8F8; --fg-2: #D0D6E0; --fg-3: #8A8F98; --fg-4: #62666D;
  --acento: #F7F8F8; --acento-suave: rgba(255, 255, 255, .08); --acento-borde: rgba(255, 255, 255, .18);
  --ambar: #F2C94C; --peligro: #EB5757;
  --boton: #F7F8F8; --boton-texto: #1C1C1C;
  --r-s: 8px; --r: 10px; --r-l: 14px; --r-xl: 18px;
  --ease: cubic-bezier(.32, .72, 0, 1); --ease-mano: cubic-bezier(.25, .46, .45, .94);
  --zs-arriba: max(env(safe-area-inset-top), var(--safe-area-inset-top, 0px));
  --zs-abajo: max(env(safe-area-inset-bottom), var(--safe-area-inset-bottom, 0px));
  --zs-izq: max(env(safe-area-inset-left), var(--safe-area-inset-left, 0px));
  --zs-der: max(env(safe-area-inset-right), var(--safe-area-inset-right, 0px));
}
/* La interfaz conserva una sola identidad Barbea para todo el equipo. */
[style*="--barber"] { --barbero: var(--fg-3); }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--fg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.5; letter-spacing: -.011em; font-feature-settings: "cv01", "ss03"; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: clip; }
main, section, article, div, header, footer, aside, nav { min-width: 0; }
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button, a, label, summary { touch-action: manipulation; }
::selection { background: rgba(236, 236, 236, .22); color: var(--fg); }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #1B1C1E; border: 3px solid var(--bg); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }
[hidden] { display: none !important; }
.sr-only, .visually-hidden { 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: fixed; z-index: 999; top: 12px; left: 12px; transform: translateY(-160%); background: var(--boton); color: var(--boton-texto); padding: 8px 14px; border-radius: var(--r); }
.skip-link:focus { transform: none; }

/* ---------- botones ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 9999px; background: rgba(255, 255, 255, .06); color: var(--fg); font-size: 14px; font-weight: 510; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .16s var(--ease-mano), transform .12s var(--ease-mano), border-color .16s var(--ease-mano), opacity .16s; }
.button:hover { background: rgba(255, 255, 255, .1); }
.button:active { transform: scale(.97); }
.button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.button-primary, .button-gold, .button-light { background: var(--boton); color: var(--boton-texto); }
.button-primary:hover, .button-gold:hover, .button-light:hover { background: #fff; }
.button-outline, .button-outline.dark { background: transparent; border-color: var(--borde-2); color: var(--fg); }
.button-outline:hover { background: rgba(255, 255, 255, .05); }
.button-danger { background: transparent; border-color: rgba(242, 163, 163, .35); color: var(--peligro); }
.button-danger:hover { background: rgba(242, 163, 163, .08); }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--fg-3); cursor: pointer; }
.icon-button:hover { background: rgba(255, 255, 255, .06); color: var(--fg); }
.icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.text-button, .text-link { border: 0; background: none; color: var(--fg-3); font-size: 13px; font-weight: 510; cursor: pointer; text-decoration: none; padding: 6px 0; }
.text-button:hover, .text-link:hover { color: var(--fg); }
.eyebrow { font-size: 13px; color: var(--fg-3); font-weight: 510; letter-spacing: -.011em; text-transform: none; }

/* ---------- campos ---------- */
input:not([type=checkbox]):not([type=color]), select, textarea {
  width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--borde-2); border-radius: var(--r-s); background: rgba(255, 255, 255, .03); color: var(--fg); font-size: 15px; outline: none; transition: border-color .16s var(--ease-mano), background-color .16s;
}
input::placeholder { color: var(--fg-4); }
input:focus, select:focus { border-color: var(--acento-borde); background: rgba(255, 255, 255, .05); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5 8 10l3.5-3.5' fill='none' stroke='%238A8F98' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; padding-right: 32px; }
input[type=checkbox] { appearance: none; width: 18px; height: 18px; margin: 0; flex: none; border: 1px solid var(--borde-3); border-radius: 5px; background: transparent; cursor: pointer; display: inline-grid; place-items: center; transition: background-color .12s, border-color .12s; }
input[type=checkbox]:checked { background: var(--boton) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 7 11l5-6' fill='none' stroke='%2308090A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 90% no-repeat; border-color: var(--boton); }
input[type=color] { width: 32px; height: 32px; padding: 0; border: 1px solid var(--borde-2); border-radius: var(--r-s); background: none; cursor: pointer; }
input[type=number] { appearance: textfield; -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { display: none; margin: 0; appearance: none; }
label { color: var(--fg-3); font-size: 13px; }
.consentimiento, .details-form .consentimiento { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; line-height: 1.5; cursor: pointer; }
.consentimiento input, .details-form .consentimiento input { width: 20px; height: 20px; min-height: 0; aspect-ratio: 1; margin: 2px 0 0; }

/* ---------- avisos (toast) ---------- */
.toast { position: fixed; z-index: 300; left: 50%; bottom: calc(24px + var(--zs-abajo)); transform: translate(-50%, 16px) scale(.98); opacity: 0; visibility: hidden; pointer-events: none; max-width: min(420px, calc(100vw - 32px)); padding: 10px 16px; border: 1px solid var(--borde-2); border-radius: 9999px; background: var(--raised); color: var(--fg); font-size: 14px; font-weight: 510; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .8); transition: transform .45s var(--ease), opacity .3s ease, visibility 0s .45s; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .45s var(--ease), opacity .3s ease, visibility 0s; }
.app-body:has(.recorrido[data-paso="siguiente"]) .toast { top: calc(72px + var(--zs-arriba)); bottom: auto; }
.toast[data-tone=error] { color: var(--peligro); border-color: rgba(242, 163, 163, .3); }
.toast.has-action { display: flex; align-items: center; gap: 12px; pointer-events: auto; }
.toast-action { flex: none; min-height: 32px; padding: 0 12px; border: 1px solid var(--borde-2); border-radius: 9999px; background: transparent; color: var(--fg); font: inherit; font-weight: 650; cursor: pointer; }

/* ---------- invitación para instalar la PWA ---------- */
.install-banner { position: fixed; z-index: 100; right: 24px; bottom: 104px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; width: min(560px, calc(100vw - 48px)); padding: 16px; border: 1px solid var(--borde-2); border-radius: var(--r-l); background: var(--panel-2); box-shadow: 0 24px 64px -24px rgba(0, 0, 0, .9); }
.install-banner p { display: grid; gap: 2px; margin: 0; min-width: 0; }
.install-banner p b { color: var(--fg); font-size: 14px; font-weight: 590; }
.install-banner p span { color: var(--fg-3); font-size: 13px; }
.install-banner .button { min-height: 36px; padding-inline: 14px; }

/* ===================== APP DEL EQUIPO ===================== */
.app-body { min-height: 100vh; min-height: 100dvh; }

/* entrada con PIN */
.login-screen { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: calc(24px + var(--zs-arriba)) 20px calc(24px + var(--zs-abajo)); background: var(--bg); }
.login-identity { display: grid; justify-items: center; gap: 8px; margin-bottom: 28px; text-align: center; animation: sube .7s var(--ease) both; }
.login-identity > p { margin: 0; color: var(--fg-3); font-size: 15px; }
.login-identity > strong { display: none; }
.app-wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); font-weight: 600; font-size: 20px; letter-spacing: -.03em; text-decoration: none; }
.app-wordmark > img { width: 22px; height: 22px; flex: none; }
.login-identity > .app-wordmark { display: inline-flex; width: auto; min-height: 48px; margin-bottom: 8px; padding: 0 14px; border: 1px solid var(--borde-2); border-radius: 14px; background: #141516; font-size: 20px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9); }
.login-identity > .app-wordmark::after { content: none; }
.login-identity > .app-wordmark > img { display: block; width: 24px; height: 24px; }
.login-screen { grid-template-rows: auto auto; align-content: center; }
.login-panel { width: min(380px, 100%); padding: 24px; border: 1px solid var(--borde); border-radius: var(--r-xl); background: var(--panel); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); animation: sube .7s var(--ease) .06s both; }
.login-panel h1 { margin: 0; font-size: 20px; font-weight: 510; letter-spacing: -.02em; }
.login-mode { margin: 4px 0 20px; color: var(--fg-3); font-size: 13px; }
.login-panel form { display: grid; gap: 14px; }
.login-panel label { display: grid; gap: 6px; }
#pinInput { font-size: 22px; letter-spacing: .5em; text-align: center; min-height: 52px; font-variant-numeric: tabular-nums; }
.login-panel .button { width: 100%; min-height: 44px; font-size: 15px; margin-top: 4px; }
.form-error { min-height: 1em; margin: 0; color: var(--peligro); font-size: 13px; }
.install-help { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--borde); color: var(--fg-3); font-size: 13px; }
.install-help summary { cursor: pointer; color: var(--fg-2); font-weight: 510; }
.install-help p { margin: 8px 0 0; }
.login-public { display: block; margin-top: 14px; color: var(--fg-3); font-size: 13px; text-align: center; text-decoration: none; }
.login-public:hover { color: var(--fg); }
.login-support { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.6; }
.login-support a { color: var(--acento); }

/* primer acceso: bloquea toda la app hasta que el dueño cree su PIN */
.pin-setup-screen { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; min-height: 100dvh; padding: calc(24px + var(--zs-arriba)) 20px calc(24px + var(--zs-abajo)); background: var(--bg); }
.pin-setup-card { width: min(420px, 100%); padding: 28px; border: 1px solid var(--borde); border-radius: var(--r-xl); background: var(--panel); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.pin-setup-card > .app-wordmark { display: block; margin-bottom: 28px; }
.pin-setup-card > .eyebrow { margin: 0 0 6px; color: var(--acento); }
.pin-setup-card h1 { margin: 0; font-size: 26px; font-weight: 550; letter-spacing: -.03em; }
.pin-setup-card > p:not(.eyebrow) { margin: 8px 0 24px; color: var(--fg-3); }
.pin-setup-card form, .pin-setup-card label { display: grid; gap: 8px; }
.pin-setup-card label { justify-items: center; text-align: center; }
.pin-setup-card form { gap: 16px; }
.pin-setup-card input { min-height: 52px; text-align: center; font-size: 22px; letter-spacing: .5em; font-variant-numeric: tabular-nums; }
.pin-setup-card .button { width: 100%; min-height: 46px; }

/* armazón */
.app-shell { min-height: 100vh; min-height: 100dvh; }
.app-sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; background: var(--bg-2); border-right: 1px solid var(--borde); }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; color: var(--fg); text-decoration: none; font-weight: 600; letter-spacing: -.03em; font-size: 16px; }
.sidebar-brand::before { content: ""; width: 28px; height: 28px; border-radius: 7px; background: #141516 url("../assets/marca/simbolo-blanco.svg") center / 18px no-repeat; flex: none; }
.app-sidebar nav { display: grid; gap: 2px; }
.nav-button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px; padding: 0 10px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--fg-3); font-size: 14px; font-weight: 510; text-align: left; cursor: pointer; transition: background-color .12s, color .12s; }
.nav-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav-button:hover { background: rgba(255, 255, 255, .04); color: var(--fg-2); }
.nav-button.is-active { background: rgba(255, 255, 255, .07); color: var(--fg); }
.sidebar-user { margin-top: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 8px; padding: 12px 8px 0; border-top: 1px solid var(--borde); }
.sidebar-user span { grid-column: 1; color: var(--fg-3); font-size: 12px; }
.sidebar-user b { grid-column: 1; font-weight: 510; font-size: 14px; }
.sidebar-user button { grid-column: 2; grid-row: 1 / 3; border: 0; background: none; color: var(--fg-3); font-size: 13px; cursor: pointer; }
.sidebar-user button:hover { color: var(--fg); }
.mobile-appbar, .mobile-tabs { display: none; }
.app-content { margin-left: 232px; padding: 32px clamp(20px, 3vw, 48px) 64px; min-height: 100vh; }

/* transición entre vistas */
.app-content.entra > .panel { animation: sube .45s var(--ease) both; }
@keyframes sube { from { opacity: .35; transform: translateY(8px); } }

.panel { max-width: 1120px; margin: 0 auto; }
.panel-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.panel-date { margin: 0 0 4px; color: var(--fg-3); font-size: 13px; }
.panel-header h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 510; letter-spacing: -.022em; text-transform: none; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.panel-actions .button { min-height: 32px; padding: 0 12px; font-size: 13px; }

/* estado del día */
.day-status { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--borde); border-radius: var(--r); background: var(--panel); }
.day-status > span { width: 8px; height: 8px; border-radius: 50%; background: var(--barbero, var(--fg-3)); flex: none; }
.day-status p { margin: 0; display: grid; }
.day-status b { font-weight: 510; }
.day-status small { color: var(--fg-3); font-size: 13px; }
.sound-toggle { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--fg-3); font-size: 13px; cursor: pointer; }

/* citas (filas tipo Linear) */
.timeline { display: grid; gap: 8px; }
.appointment-row { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 4px 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--borde); border-radius: var(--r); background: var(--panel); animation: sube .5s var(--ease) both; }
.timeline > .appointment-row:nth-child(2) { animation-delay: .03s; } .timeline > .appointment-row:nth-child(3) { animation-delay: .06s; } .timeline > .appointment-row:nth-child(n+4) { animation-delay: .09s; }
.appointment-row.is-next { border-color: var(--acento-borde); background: linear-gradient(180deg, rgba(236, 236, 236, .06), transparent 60%), var(--panel); }
.appointment-row > time { font-weight: 510; font-variant-numeric: tabular-nums; color: var(--fg-2); font-size: 14px; }
.appointment-row > i { position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--barbero, var(--fg-4)); }
.appointment-main { display: grid; gap: 2px; min-width: 0; }
.appointment-main h3 { margin: 0; font-size: 15px; font-weight: 510; letter-spacing: -.011em; }
.appointment-main p { margin: 0; color: var(--fg-3); font-size: 13px; }
.appointment-main > small { color: var(--fg-3); font-size: 12px; }
.next-label, .status-label { justify-self: start; display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 9999px; font-size: 12px; font-weight: 510; box-shadow: inset 0 0 0 1px var(--borde-2); color: var(--fg-3); }
.next-label { order: -1; margin-bottom: 4px; color: var(--fg-2); background: var(--acento-suave); box-shadow: inset 0 0 0 1px var(--acento-borde); }
.status-label { margin-top: 6px; }
.appointment-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.appointment-actions button { min-height: 32px; padding: 0 12px; border: 1px solid var(--borde-2); border-radius: 9999px; background: transparent; color: var(--fg-2); font-size: 13px; font-weight: 510; cursor: pointer; transition: background-color .12s, transform .12s; }
.appointment-actions button:hover { background: rgba(255, 255, 255, .06); }
.appointment-actions button:active { transform: scale(.96); }
.appointment-actions .is-primary { background: var(--boton); border-color: var(--boton); color: var(--boton-texto); }
.appointment-actions .is-primary:hover { background: #fff; }

/* vacíos */
.empty-state { display: grid; justify-items: center; gap: 6px; padding: 48px 20px; border: 1px dashed var(--borde-2); border-radius: var(--r-l); text-align: center; color: var(--fg-3); }
.empty-state i { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--borde); color: var(--fg-2); }
.empty-state i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.empty-state b { color: var(--fg); font-weight: 510; }
.empty-state span { font-size: 13px; }
.mini-empty { padding: 16px; color: var(--fg-3); font-size: 13px; text-align: center; border: 1px dashed var(--borde); border-radius: var(--r); }

/* semana */
.week-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--borde); border-radius: var(--r-l); overflow: hidden; background: var(--panel); }
.week-day { border-left: 1px solid var(--borde); min-height: 260px; }
.week-day:first-child { border-left: 0; }
.week-day > header { display: flex; align-items: baseline; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--borde); }
.week-day > header span { color: var(--fg-3); font-size: 12px; text-transform: capitalize; }
.week-day > header b { font-weight: 510; font-size: 15px; }
.week-day.is-today > header b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 9999px; background: var(--boton); color: var(--boton-texto); font-size: 13px; }
.week-day > div { display: grid; gap: 6px; padding: 8px; align-content: start; }
.week-day article { display: grid; padding: 6px 8px; border-radius: var(--r-s); background: var(--panel-2); border: 1px solid var(--borde); box-shadow: inset 2px 0 0 var(--barbero, var(--fg-4)); }
.week-day article time { color: var(--fg-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.week-day article b { font-size: 13px; font-weight: 510; }
.week-day article small { color: var(--fg-3); font-size: 11px; }
.week-day > div > i { color: var(--fg-4); font-size: 12px; font-style: normal; padding: 4px; }

/* números */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--borde); border-radius: var(--r-l); background: var(--panel); overflow: hidden; margin-bottom: 16px; }
.metric { display: grid; gap: 6px; padding: 18px 20px; border-left: 1px solid var(--borde); animation: sube .5s var(--ease) both; }
.metric:first-child { border-left: 0; }
.metric span { color: var(--fg-3); font-size: 13px; }
.metric b { font-size: 28px; font-weight: 510; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.metric.is-accent { background: linear-gradient(180deg, rgba(236, 236, 236, .07), transparent 70%); }
.metric.is-accent span { color: var(--fg-2); }
.data-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.data-layout--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.data-layout > section { padding: 18px 20px; border: 1px solid var(--borde); border-radius: var(--r-l); background: var(--panel); }
.data-layout h2 { margin: 0 0 14px; font-size: 13px; font-weight: 510; color: var(--fg-3); letter-spacing: -.011em; }
.data-list { margin: 0; display: grid; }
.data-list > div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--borde); font-size: 14px; }
.data-list > div:last-child { border-bottom: 0; }
.data-list dt { color: var(--fg-3); }
.data-list dd { margin: 0; font-weight: 510; font-variant-numeric: tabular-nums; }
.bar-row { display: grid; grid-template-columns: minmax(80px, 1fr) 2fr auto; gap: 12px; align-items: center; padding: 6px 0; font-size: 13px; color: var(--fg-2); }
.bar-row > i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bar-row > i b { display: block; height: 100%; border-radius: 3px; background: var(--fg-2); transform-origin: left; animation: crece .9s var(--ease) both; }
@keyframes crece { from { transform: scaleX(0); } }
.bar-row strong { font-weight: 510; font-variant-numeric: tabular-nums; }

/* segmentado */
.segmented { display: inline-flex; padding: 2px; border-radius: 9999px; background: rgba(255, 255, 255, .05); }
.segmented button { min-height: 28px; padding: 0 12px; border: 0; border-radius: 9999px; background: transparent; color: var(--fg-3); font-size: 13px; font-weight: 510; cursor: pointer; transition: background-color .16s, color .16s; }
.segmented button.is-active { background: rgba(255, 255, 255, .1); color: var(--fg); }

/* agenda del dueño */
.barber-selector { display: none; }
.owner-agenda { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.owner-agenda > section { border: 1px solid var(--borde); border-radius: var(--r-l); background: var(--bg-2); overflow: hidden; }
.owner-agenda > section > header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--borde); }
.owner-agenda > section > header span { width: 8px; height: 8px; border-radius: 50%; background: var(--barbero); }
.owner-agenda > section > header b { font-weight: 510; }
.owner-agenda > section > header small { margin-left: auto; color: var(--fg-3); font-size: 13px; }
.owner-agenda > section > div { display: grid; gap: 8px; padding: 10px; }
.owner-agenda .appointment-row { grid-template-columns: 56px 1fr; }
.owner-agenda .appointment-actions { grid-column: 1 / -1; justify-content: flex-start; }

/* tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--borde); border-radius: var(--r-l); background: var(--panel); }
.client-table, .settings-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.client-table th, .settings-table th { padding: 10px 14px; text-align: left; color: var(--fg-3); font-size: 12px; font-weight: 510; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.client-table td, .settings-table td { padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .04); white-space: nowrap; color: var(--fg-2); }
.client-table td b { color: var(--fg); font-weight: 510; }
.client-table tr:last-child td, .settings-table tr:last-child td { border-bottom: 0; }
.client-table a { color: var(--fg-2); text-decoration: none; }
.client-table a:hover { color: var(--fg); text-decoration: underline; }
.settings-table input[type=number] { width: 96px; }
.settings-table input[data-field=name] { min-width: 180px; }

/* ajustes */
.billing-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--acento-borde); border-radius: var(--r-l); background: var(--acento-suave); }
.billing-notice p { display: grid; gap: 2px; margin: 0; }
.billing-notice b, .billing-card b { font-weight: 510; }
.billing-notice span, .billing-card span, .billing-card small { color: var(--fg-3); font-size: 13px; }
.billing-notice .button { flex: none; min-height: 40px; }
.settings-cards { display: grid; gap: 10px; }
.settings-card { border: 1px solid var(--borde); border-radius: var(--r-l); background: var(--panel); overflow: hidden; }
.billing-card > .settings-body { grid-template-columns: 1fr auto; align-items: center; padding-top: 16px; }
.billing-card > .settings-body > div { display: grid; gap: 3px; }
.billing-card small { text-align: right; }
.settings-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.settings-card > summary::-webkit-details-marker { display: none; }
.settings-card > summary::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 1.5px solid var(--fg-3); border-bottom: 1.5px solid var(--fg-3); transform: rotate(-45deg); transition: transform .25s var(--ease); }
.settings-card[open] > summary::after { transform: rotate(45deg); }
.settings-card > summary > span { display: flex; align-items: center; gap: 10px; }
.settings-card > summary i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--borde); color: var(--fg-2); }
.settings-card > summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.settings-card > summary b { font-weight: 510; }
.settings-card > summary small { margin-left: auto; color: var(--fg-3); font-size: 13px; }
.settings-body { display: grid; gap: 12px; padding: 0 16px 16px; }
.loyalty-toggle { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 14px; background: #242424; }
.loyalty-toggle span { display: grid; gap: 2px; }
.loyalty-toggle small, .loyalty-gifts-head small { color: var(--fg-3); }
.loyalty-toggle .sound-switch { flex: none; border: 0; cursor: pointer; }
.loyalty-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.loyalty-gifts { display: grid; gap: 10px; }
.loyalty-gifts-head { display: flex; justify-content: space-between; gap: 12px; }
.loyalty-gifts article { display: grid; grid-template-columns: 90px minmax(150px, 1fr) minmax(150px, .8fr) minmax(170px, 1fr) auto; gap: 8px; align-items: end; padding: 12px; border: 1px solid var(--borde); border-radius: 16px; background: #242424; }
.loyalty-gifts input, .loyalty-gifts select { min-height: 44px; }
.loyalty-actions { display: flex; justify-content: space-between; gap: 10px; }
.reward-offer { display: grid; gap: 8px; margin-top: 16px; }
.reward-offer > span { color: var(--fg-3); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.reward-offer button { min-height: 56px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 10px 14px; border: 1px solid var(--borde); border-radius: 999px; background: #242424; color: var(--fg); }
.reward-offer button.active { border-color: #fff; background: #fff; color: #1C1C1C; }
.app-account-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--borde); border-radius: 14px; background: #242424; color: var(--fg); cursor: pointer; }
.app-account-check input[type=checkbox] { margin-top: 2px; }
.app-account-check span { display: grid; gap: 2px; line-height: 1.35; }
.app-account-check small { color: var(--fg-3); font-size: 12px; }
.stamp-event { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 12px 16px; border-radius: 999px; background: #242424; text-align: left; animation: stamp-land .52s cubic-bezier(.16,1,.3,1) both; }
.stamp-event i { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid #fff; border-radius: 50%; font-style: normal; font-weight: 750; }
.stamp-event span { display: grid; }
.stamp-event small { color: var(--fg-3); }
.stamp-event.is-missing { border-radius: 18px; animation: none; }
.stamp-event.is-missing i { border-color: #e8c766; color: #e8c766; }
@keyframes stamp-land { 0% { opacity: 0; transform: translateY(-28px) scale(.65) rotate(-9deg); filter: blur(8px); } 72% { transform: translateY(2px) scale(1.06) rotate(2deg); } 100% { opacity: 1; transform: none; filter: none; } }
@media (max-width: 720px) {
  .loyalty-numbers { grid-template-columns: 1fr; }
  .loyalty-gifts article { grid-template-columns: 80px 1fr; }
  .loyalty-gifts article label:nth-of-type(2), .loyalty-gifts article label:nth-of-type(4), .loyalty-gifts article .danger { grid-column: 1 / -1; }
}
.add-button { justify-self: start; min-height: 32px; padding: 0 12px; border: 1px dashed var(--borde-3); border-radius: 9999px; background: none; color: var(--fg-2); font-size: 13px; font-weight: 510; cursor: pointer; }
.add-button:hover { background: rgba(255, 255, 255, .04); }
.barber-setting { display: grid; grid-template-columns: 1.4fr .7fr .7fr; gap: 12px; padding: 14px; border: 1px solid var(--borde); border-radius: var(--r); background: var(--bg-2); }
.barber-setting > div { display: flex; gap: 8px; align-items: center; }
.barber-setting > label { display: grid; gap: 6px; }
.barber-setting fieldset { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.barber-setting legend { width: 100%; margin-bottom: 6px; color: var(--fg-3); font-size: 13px; }
/* B2 · Casilla «Activo» del barbero, aviso de sillas en la prueba y hoja para elegir quiénes siguen. */
.barber-setting > div > input[data-field="name"] { flex: 1; min-width: 0; }
.barber-setting .barber-active { display: inline-flex; flex: none; align-items: center; gap: 6px; color: var(--fg-2); font-size: 13px; white-space: nowrap; }
.barber-setting .barber-active input { width: 18px; height: 18px; padding: 0; }
.seat-notice { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--acento-borde); border-radius: var(--r); background: var(--acento-suave); color: var(--fg-2); font-size: 13px; line-height: 1.45; }
.seat-choice-list { display: grid; gap: 8px; margin: 12px 0; }
.seat-choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 12px; border: 1px solid var(--borde-2); border-radius: var(--r); cursor: pointer; }
.seat-choice input { width: 20px; height: 20px; flex: none; }
.seat-choice span { display: grid; gap: 2px; }
.seat-choice small { color: var(--fg-3); font-size: 13px; }
.barber-setting fieldset label { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border: 1px solid var(--borde-2); border-radius: 9999px; color: var(--fg-2); }
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.schedule-grid article { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border: 1px solid var(--borde); border-radius: var(--r); background: var(--bg-2); }
.schedule-grid article > b { grid-column: 1 / -1; font-weight: 510; }
.schedule-grid label { display: grid; gap: 4px; }
.schedule-grid label:has(input[type=checkbox]) { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: var(--fg-2); }
.more-options { border-top: 1px solid var(--borde); padding-top: 12px; }
.more-options summary { cursor: pointer; color: var(--fg-2); font-size: 14px; font-weight: 510; }
.more-options > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.more-options label { display: grid; gap: 6px; }
.more-options select { min-height: 44px; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 16px; border: 1px solid rgba(242, 163, 163, .18); border-radius: var(--r-l); }
.danger-zone > div { display: grid; }
.danger-zone b { font-weight: 510; }
.danger-zone span { color: var(--fg-3); font-size: 13px; }

/* hojas (cobro, cliente sin cita): suben desde abajo en el celular, ventana en escritorio */
.modal-shell { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: aparece .3s ease both; }
.modal { position: relative; width: min(480px, 100%); max-height: min(720px, calc(100dvh - 32px)); overflow-y: auto; display: grid; gap: 16px; padding: 20px; border: 1px solid var(--borde-2); border-radius: var(--r-xl); background: var(--panel); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9); animation: ventana .45s var(--ease) both; }
@keyframes aparece { from { opacity: 0; } }
@keyframes ventana { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes hoja { from { transform: translateY(100%); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h2 { margin: 0; font-size: 18px; font-weight: 510; letter-spacing: -.02em; }
.charge-services { display: grid; border: 1px solid var(--borde); border-radius: var(--r); overflow: hidden; max-height: 280px; overflow-y: auto; }
.charge-services label { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .04); color: var(--fg-2); font-size: 14px; cursor: pointer; }
.charge-services label:last-child { border-bottom: 0; }
.charge-services label:has(input:checked) { background: rgba(255, 255, 255, .03); color: var(--fg); }
.charge-services span { flex: 1; }
.charge-services b { font-weight: 510; font-variant-numeric: tabular-nums; }
.charge-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.charge-fields label { display: grid; gap: 6px; }
.charge-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--borde); color: var(--fg-3); }
.charge-total b { font-size: 32px; font-weight: 510; letter-spacing: -.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.modal-actions .button { min-height: 44px; }

/* ---------- celular (≤ 900 px): barra arriba, pestañas abajo, hojas desde abajo ---------- */
@media (max-width: 900px) {
  .app-sidebar { display: none; }
  .mobile-appbar { position: fixed; z-index: 40; inset: 0 0 auto 0; display: flex; align-items: center; gap: 12px; height: calc(56px + var(--zs-arriba)); padding: var(--zs-arriba) max(16px, var(--zs-der)) 0 max(16px, var(--zs-izq)); background: #08090A; border-bottom: 1px solid var(--borde); }
  .mobile-appbar > .app-wordmark { font-size: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #141516; border: 1px solid var(--borde-2); }
  .mobile-appbar > .app-wordmark::after { content: ""; width: 18px; height: 18px; background: var(--fg); -webkit-mask: url("../assets/marca/simbolo-blanco.svg") center / contain no-repeat; mask: url("../assets/marca/simbolo-blanco.svg") center / contain no-repeat; }
  .mobile-appbar > .app-wordmark > img { display: none; }
  .mobile-appbar > div { display: grid; line-height: 1.2; }
  .mobile-appbar small { color: var(--fg-3); font-size: 12px; }
  .mobile-appbar b { font-weight: 510; font-size: 15px; }
  .mobile-appbar button { margin-left: auto; border: 0; background: none; color: var(--fg-3); font-size: 14px; font-weight: 510; min-height: 44px; cursor: pointer; }
  .mobile-tabs { position: fixed; z-index: 40; inset: auto 0 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: calc(60px + var(--zs-abajo)); padding: 6px max(8px, var(--zs-der)) var(--zs-abajo) max(8px, var(--zs-izq)); background: rgba(8, 9, 10, .9); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-top: 1px solid var(--borde); }
  .mobile-tabs .nav-button { flex-direction: column; justify-content: center; gap: 3px; min-height: 48px; padding: 0; background: none; font-size: 11px; color: var(--fg-4); text-align: center; }
  .mobile-tabs .nav-button svg { width: 22px; height: 22px; stroke-width: 1.5; transition: transform .25s var(--ease); }
  .mobile-tabs .nav-button.is-active { color: var(--fg); background: none; }
  .mobile-tabs .nav-button:active svg { transform: scale(.88); }
  .app-content { margin-left: 0; padding: calc(56px + var(--zs-arriba) + 20px) max(16px, var(--zs-der)) calc(60px + var(--zs-abajo) + 28px) max(16px, var(--zs-izq)); }
  .toast { bottom: calc(76px + var(--zs-abajo)); }
  .panel-header { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .panel-header h1 { font-size: 28px; }
  .panel-actions { width: 100%; }
  .appointment-row { grid-template-columns: 56px 1fr; }
  .appointment-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .appointment-actions button { min-height: 36px; }
  .week-calendar { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r-l); }
  .week-day { flex: 0 0 72%; scroll-snap-align: start; min-height: 220px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--borde); }
  .metric b { font-size: 24px; }
  .data-layout, .data-layout--four { grid-template-columns: 1fr; }
  .barber-selector { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
  .barber-selector button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--borde-2); border-radius: 9999px; background: none; color: var(--fg-3); font-size: 14px; font-weight: 510; cursor: pointer; white-space: nowrap; }
  .barber-selector button.is-active { background: rgba(255, 255, 255, .08); color: var(--fg); }
  .barber-selector i { width: 8px; height: 8px; border-radius: 50%; background: var(--barbero); }
  .owner-agenda { grid-template-columns: 1fr; }
  .owner-agenda > section { display: none; }
  .owner-agenda > section.is-mobile-active { display: block; }
  .barber-setting { grid-template-columns: 1fr 1fr; }
  .barber-setting > div { grid-column: 1 / -1; }
  .more-options > div { grid-template-columns: 1fr; }
  .danger-zone { flex-direction: column; align-items: flex-start; }
  .billing-notice { align-items: flex-start; flex-direction: column; }
  .billing-notice .button { width: 100%; min-height: 44px; }
  .billing-card > .settings-body { grid-template-columns: 1fr; }
  .billing-card small { text-align: left; }
  .modal-shell { place-items: end stretch; padding: 0; }
  .modal { width: 100%; max-height: calc(92dvh - var(--zs-arriba)); padding: 12px 20px calc(20px + var(--zs-abajo)); border-radius: 20px 20px 0 0; border-bottom: 0; animation: hoja .5s var(--ease) both; }
  .modal::before { content: ""; justify-self: center; width: 36px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
  .modal-actions .button { flex: 1; }
  .charge-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .charge-actions #confirmCharge { grid-column: 1 / -1; }
  .install-banner { right: max(16px, var(--zs-der)); bottom: calc(152px + var(--zs-abajo)); grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; width: calc(100vw - max(32px, var(--zs-izq) + var(--zs-der))); padding: 14px; }
  .install-banner p { grid-column: 1 / -1; }
  .install-banner [data-despues] { justify-self: center; }
  .charge-fields { grid-template-columns: 1fr; }
}

/* ===================== RESERVA DEL CLIENTE (b/) ===================== */
.reserva-body { min-height: 100vh; min-height: 100dvh; background: radial-gradient(circle at 50% -18%, rgba(255, 255, 255, .055), transparent 34rem), var(--bg); }
.reserva-cab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: min(640px, 100% - 32px); margin: 0 auto; padding: calc(28px + var(--zs-arriba)) 0 16px; }
.reserva-cab__marca { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 9px; justify-self: start; min-height: 36px; color: var(--fg); font-size: 15px; font-weight: 650; letter-spacing: -.03em; text-decoration: none; }
.reserva-cab__marca img { width: 28px; height: 28px; padding: 5px; border: 1px solid var(--borde-2); border-radius: 8px; background: var(--panel-2); object-fit: contain; }
.reserva-cab__ava { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--borde-2); font-weight: 700; font-size: 15px; letter-spacing: -.02em; flex: none; }
.reserva-cab__txt { display: grid; line-height: 1.3; }
.reserva-cab__txt b { font-weight: 510; font-size: 16px; }
.reserva-cab__txt span { color: var(--fg-3); font-size: 13px; }
.reserva-cab__hoy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9999px; box-shadow: inset 0 0 0 1px var(--borde-2); color: var(--fg-2); font-size: 12px; white-space: nowrap; }
.reserva-cab__hoy i { width: 6px; height: 6px; border-radius: 50%; background: var(--acento); }
.booking-section { width: min(640px, 100% - 32px); margin: 0 auto; padding-bottom: calc(48px + var(--zs-abajo)); }
.booking-wizard { padding: 24px; border: 1px solid var(--borde-2); border-radius: 20px; background: var(--panel); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .025) inset; }
.wizard-progress { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.wizard-progress span { display: block; height: 100%; background: var(--fg-2); transform-origin: left; transform: scaleX(.2); transition: transform .5s var(--ease); }
.wizard-meta { display: flex; justify-content: space-between; align-items: center; min-height: 36px; margin: 8px 0; color: var(--fg-3); font-size: 13px; }
.booking-summary { display: grid; gap: 2px; margin-bottom: 16px; padding: 10px 12px; border-radius: var(--r); background: rgba(255, 255, 255, .03); border: 1px solid var(--borde); font-size: 13px; }
.booking-summary span { color: var(--fg-3); }
.booking-summary strong { font-weight: 510; }
.booking-summary small { color: var(--fg-3); }
#bookingPanel > * { animation: sube .45s var(--ease) both; }
.wizard-heading { margin-bottom: 16px; }
.wizard-heading h2 { margin: 0; font-size: 22px; font-weight: 510; letter-spacing: -.022em; }
.wizard-heading p { margin: 4px 0 0; color: var(--fg-3); font-size: 14px; }
.service-group { margin: 0 0 16px; padding: 0; border: 0; }
.service-group legend { display: grid; margin-bottom: 8px; }
.service-group legend b { font-size: 13px; font-weight: 510; color: var(--fg-2); }
.service-group legend span { color: var(--fg-3); font-size: 12px; }
.service-option { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 6px; border: 1px solid var(--borde); border-radius: var(--r); background: var(--bg-2); color: var(--fg-2); cursor: pointer; transition: border-color .16s, background-color .16s, transform .12s; }
.service-option:active { transform: scale(.99); }
.service-option:has(input:checked) { border-color: var(--acento-borde); background: var(--acento-suave); color: var(--fg); }
.service-option > span { flex: 1; display: grid; }
.service-option b { font-weight: 510; color: var(--fg); font-size: 15px; }
.service-option small { color: var(--fg-3); font-size: 12px; }
.service-option strong { font-weight: 510; font-variant-numeric: tabular-nums; color: var(--fg); }
.wizard-actions { position: sticky; bottom: calc(12px + var(--zs-abajo)); display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 10px 10px 10px 16px; border: 1px solid var(--borde-2); border-radius: 9999px; background: rgba(21, 22, 24, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--fg-2); font-size: 14px; }
.wizard-actions .button { min-height: 40px; }
.choice-grid { display: grid; gap: 8px; }
.choice-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 1px solid var(--borde); border-radius: var(--r); background: var(--bg-2); text-align: left; cursor: pointer; transition: border-color .16s, background-color .16s, transform .12s; }
.choice-card:hover { border-color: var(--borde-3); }
.choice-card:active { transform: scale(.99); }
.choice-card.is-selected { border-color: var(--acento-borde); background: var(--acento-suave); }
.choice-card > span { display: grid; }
.choice-card b { font-weight: 510; }
.choice-card small { color: var(--fg-3); font-size: 13px; }
.choice-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #141516; color: var(--fg-2); font-style: normal; font-weight: 600; font-size: 13px; box-shadow: inset 0 0 0 1px var(--borde-2); flex: none; }
.choice-avatar--barbea { background: var(--boton); color: var(--boton-texto); }
.date-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.date-more { margin-top: 12px; }
.date-chip { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border: 1px solid var(--borde); border-radius: var(--r); background: var(--bg-2); cursor: pointer; transition: border-color .16s, transform .12s; }
.date-chip:hover { border-color: var(--borde-3); }
.date-chip:active { transform: scale(.97); }
.date-chip span, .date-chip small { color: var(--fg-3); font-size: 12px; text-transform: capitalize; }
.date-chip strong { font-size: 20px; font-weight: 510; }
.date-chip.is-selected { border-color: var(--acento-borde); background: var(--acento-suave); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { min-height: 44px; border: 1px solid var(--borde); border-radius: var(--r); background: var(--bg-2); font-weight: 510; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .16s, background-color .16s, transform .12s; }
.slot:hover { border-color: var(--acento-borde); background: var(--acento-suave); }
.slot:active { transform: scale(.97); }
.booking-empty { display: grid; justify-items: center; gap: 4px; padding: 32px; border: 1px dashed var(--borde-2); border-radius: var(--r-l); text-align: center; color: var(--fg-3); }
.booking-empty b { color: var(--fg); font-weight: 510; }
.details-form { display: grid; gap: 14px; }
.details-form label { display: grid; gap: 6px; }
.details-form input { min-height: 44px; }
.payment-note { margin: 0; color: var(--fg-3); font-size: 13px; }
.details-form .button { min-height: 48px; font-size: 15px; }
.confirmation { display: grid; justify-items: center; gap: 8px; padding: 12px 0 20px; text-align: center; }
.celebration { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; }
.celebration span, .celebration i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--acento-borde); animation: onda 1.6s var(--ease) both; }
.celebration i { animation-delay: .2s; }
.celebration b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--boton); color: var(--boton-texto); animation: ventana .6s var(--ease) both; }
.celebration svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes onda { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.confirmation h2 { margin: 0; font-size: 24px; font-weight: 510; letter-spacing: -.022em; }
.confirmation p { margin: 0; color: var(--fg-3); }
.confirmation-detail { display: grid; color: var(--fg) !important; font-weight: 510; }
.confirmation-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.email-preview { margin-top: 12px; border: 1px solid var(--borde); border-radius: var(--r-l); overflow: hidden; }
.email-toolbar { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--borde); color: var(--fg-3); font-size: 12px; }
.email-paper { padding: 16px; font-size: 14px; color: var(--fg-2); }
.email-paper > p:first-child { margin: 0; color: var(--fg-3); font-size: 12px; }
.email-paper h3 { margin: 6px 0; font-size: 17px; font-weight: 510; color: var(--fg); }
.email-paper dl { margin: 12px 0; display: grid; }
.email-paper dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--borde); }
.email-paper dt { color: var(--fg-3); }
.email-paper dd { margin: 0; font-weight: 510; color: var(--fg); text-align: right; }
.email-paper a { color: var(--fg); }
.reserva-pie { width: min(640px, 100% - 32px); margin: 0 auto; padding: 0 0 calc(24px + var(--zs-abajo)); display: flex; justify-content: space-between; color: var(--fg-3); font-size: 13px; }
.reserva-pie a { text-decoration: none; }
.reserva-pie a:hover { color: var(--fg); }

/* página de la cita */
.appointment-page .appointment-header { display: flex; justify-content: space-between; align-items: center; width: min(560px, 100% - 32px); margin: 0 auto; padding: calc(20px + var(--zs-arriba)) 0 16px; }
.club-lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.club-lockup small { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--borde-2); font-size: 13px; font-weight: 700; }
.club-lockup strong { font-weight: 510; }
.club-lockup span { color: var(--fg-3); font-size: 13px; }
.appointment-shell { width: min(560px, 100% - 32px); margin: 0 auto; padding-bottom: 32px; }
.appointment-card { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--borde); border-radius: var(--r-xl); background: var(--panel); animation: sube .5s var(--ease) both; }
.appointment-card h1 { margin: 0; font-size: 26px; font-weight: 510; letter-spacing: -.022em; line-height: 1.2; }
.appointment-card h1 em { font-style: normal; color: var(--fg-3); }
.appointment-status-mark { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 3px 10px; border-radius: 9999px; background: var(--acento-suave); box-shadow: inset 0 0 0 1px var(--acento-borde); color: var(--fg-2); font-size: 13px; font-weight: 510; }
.appointment-status-mark i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.appointment-card.is-cancelled .appointment-status-mark { background: rgba(242, 163, 163, .08); box-shadow: inset 0 0 0 1px rgba(242, 163, 163, .3); color: var(--peligro); }
.appointment-data { display: grid; border-top: 1px solid var(--borde); }
.appointment-data > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--borde); }
.appointment-data span { color: var(--fg-3); }
.appointment-data b { font-weight: 510; text-align: right; }
.cancel-form { display: grid; gap: 10px; }
.cancel-form label { display: grid; gap: 6px; }
.cancel-form small, .cancel-copy { color: var(--fg-3); font-size: 13px; }
.late-cancel { padding: 12px; border: 1px solid var(--borde); border-radius: var(--r); color: var(--fg-3); font-size: 14px; }
.late-cancel b { color: var(--fg); }
.shop-footer { width: min(560px, 100% - 32px); margin: 0 auto; padding: 0 0 calc(24px + var(--zs-abajo)); display: flex; justify-content: space-between; color: var(--fg-3); font-size: 13px; }
.shop-footer a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* Safari en iPhone da a los campos de hora y fecha un ancho propio: que respeten la columna */
input[type=time], input[type=date] { display: block; min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; text-align: left; }
input[type=time]::-webkit-date-and-time-value { text-align: left; }
.localized-date, .localized-time { position: relative; display: grid; width: 100%; min-height: 44px; overflow: hidden; border: 1px solid var(--borde-2); border-radius: var(--r-s); background: rgba(255, 255, 255, .03); }
.localized-date > span, .localized-date > input, .localized-time > span, .localized-time > input { grid-area: 1 / 1; }
.localized-date > span, .localized-time > span { z-index: 1; display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--fg); font-variant-numeric: tabular-nums; pointer-events: none; }
.localized-date > input, .localized-time > input { z-index: 2; width: 100%; min-height: 44px; border: 0 !important; opacity: 0; cursor: pointer; }
.localized-date:focus-within, .localized-time:focus-within { border-color: var(--acento-borde); outline: 2px solid var(--fg-2); outline-offset: 2px; }

/* ===================== APP DEL EQUIPO · MAQUETA 2 INTEGRADA ===================== */
.app-body { --app-line: rgba(255, 255, 255, .09); --app-line-2: rgba(255, 255, 255, .15); --app-panel: #242424; --app-panel-2: #303030; --app-accent: #F7F8F8; --app-danger: #EB5757; --app-ease: cubic-bezier(.2, 0, 0, 1); overflow: hidden; }
.app-body button, .app-body a, .app-body summary { min-height: 44px; }
.app-body button { border: 0; }
.app-body .app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); height: 100dvh; overflow: hidden; background: var(--bg); }
.app-body .app-sidebar { position: static; inset: auto; width: auto; min-height: 0; padding: 18px 12px; gap: 4px; background: var(--bg-2); border-right: 1px solid var(--app-line); }
.app-body .sidebar-brand { min-height: 52px; padding: 0 10px; font-size: 18px; }
.app-body .sidebar-brand::before { width: 32px; height: 32px; border-radius: 9px; background: var(--fg); -webkit-mask: url("../assets/marca/simbolo-blanco.svg") center / 18px no-repeat; mask: url("../assets/marca/simbolo-blanco.svg") center / 18px no-repeat; }
.app-body .app-sidebar nav { gap: 4px; margin-top: 26px; }
.app-body .nav-button { min-height: 48px; padding: 0 14px; border-radius: 10px; gap: 12px; color: var(--fg-3); font-size: 14px; }
.app-body .nav-button svg { width: 22px; height: 22px; stroke-width: 1.75; }
.app-body .nav-button.is-active { background: rgba(255, 255, 255, .065); }
.app-body .nav-button.nav-charge { margin: 12px 0; background: transparent; color: var(--fg-3); font-weight: 510; box-shadow: none; }
.app-body .nav-button.nav-charge:hover { background: rgba(255, 255, 255, .04); color: var(--fg-2); }
.app-body .nav-button.nav-charge.is-active { background: rgba(255, 255, 255, .07); color: var(--fg); }
.app-body .charge-symbol { display: grid; place-items: center; }
.app-body .sidebar-user { padding: 12px 10px 0; }
.app-body .sidebar-user button { min-width: 44px; min-height: 44px; padding: 0; }
.app-body .app-content { height: 100dvh; min-height: 0; margin: 0; overflow: auto; padding: 26px clamp(24px, 3vw, 48px) 48px; }
.app-body .mobile-appbar { display: none !important; }
.app-body .app-page { max-width: 1280px; margin: 0 auto; animation: app-page-in 240ms var(--app-ease); }
@keyframes app-page-in { from { opacity: 0; transform: translateY(7px); } }
.app-body .app-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
.app-body .app-title h1 { margin: 0 0 8px; font-size: clamp(27px, 3vw, 40px); line-height: 1; font-weight: 590; letter-spacing: -.045em; }
.app-body .app-title p { margin: 0; color: var(--fg-3); font-size: 14px; }
.app-body .app-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.app-body .app-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--app-line); border-radius: 999px; background: var(--app-panel-2); color: var(--fg-2); font-weight: 560; cursor: pointer; }
.app-body .app-button:hover { border-color: var(--app-line-2); color: var(--fg); }
.app-body .app-button.primary, .app-body .button-primary { border-color: var(--boton); background: var(--boton); color: var(--boton-texto); }
.app-body .app-button.icon { width: 44px; padding: 0; font-size: 22px; }
.app-body .app-button.danger { color: var(--app-danger); }
.app-body .segmented { display: inline-flex; padding: 3px; border: 1px solid var(--app-line); border-radius: 11px; background: var(--app-panel); }
.app-body .segmented button { min-height: 44px; padding: 0 14px; border-radius: 8px; background: transparent; color: var(--fg-3); }
.app-body .segmented button.active { background: #1B1C1E; color: var(--fg); }
.app-body .date-stepper { display: flex; gap: 4px; }
.app-body .new-appointment { gap: 6px; }
.app-body .new-appointment b { font-weight: 600; }
.app-body .capture-actions { display: flex; gap: 8px; padding-right: 4px; border-right: 1px solid var(--app-line); }
.app-body .capture-form, .app-body .capture-draft { display: grid; gap: 14px; }
.app-body .capture-form label { display: grid; gap: 7px; }
.app-body .capture-form textarea { min-height: 128px; padding: 12px; resize: vertical; }
.app-body .capture-entry-actions { display: flex; justify-content: flex-end; gap: 8px; }
.app-body .quick-add-options { display: grid; gap: 8px; }
.app-body .quick-add-options > * { width: 100%; min-height: 50px; }
.app-body .capture-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-body .capture-summary > div { display: grid; gap: 6px; }
.app-body .capture-summary span { color: var(--fg-3); font-size: 12px; }
.app-body .capture-summary .localized-date > span, .app-body .capture-summary .localized-time > span { color: var(--fg); }
.app-body .capture-summary input::placeholder { color: #62666E; opacity: 1; }
.app-body .capture-availability { margin: 0; padding: 11px 12px; border: 1px solid var(--app-line); border-radius: 10px; color: var(--fg-2); font-size: 13px; }
.app-body .capture-availability.warning { display: flex; align-items: center; gap: 9px; border-color: rgba(242, 201, 76, .32); background: rgba(242, 201, 76, .07); color: #D8C078; }
.app-body .capture-availability.warning svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-body .capture-availability.ok { border-style: solid; color: var(--fg); }
.app-body .capture-alternatives { display: flex; flex-wrap: wrap; gap: 7px; }
.app-body .capture-confirmed .button, .app-body .capture-confirmed .app-button { min-height: 44px; }
.app-body .surface { border: 1px solid var(--app-line); border-radius: 14px; background: var(--app-panel); }
.app-body .surface-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--app-line); }
.app-body .surface-head h2, .app-body .surface h2 { margin: 0; font-size: 16px; }
.app-body .surface-head small { color: var(--fg-3); }

/* Agenda real */
.app-body .mobile-barbers { display: none; }
.app-body .agenda-mobile-nav { display: none; }
.app-body .calendar-shell { display: grid; grid-template-columns: 64px minmax(0, 1fr); height: min(var(--calendar-height), calc(100dvh - 164px)); min-height: 560px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--app-line); border-radius: 14px; background: var(--app-panel); scrollbar-gutter: stable; }
.app-body .time-axis { position: sticky; left: 0; z-index: 7; padding-top: 84px; border-right: 1px solid var(--app-line); background: #08090A; }
.app-body .time-axis span { display: block; height: 70px; padding-right: 10px; color: var(--fg-3); font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; transform: translateY(-7px); }
.app-body .day-grid { position: relative; display: grid; width: 100%; min-width: 660px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 69px, var(--app-line) 70px); }
.app-body .barber-column { position: relative; min-width: 0; padding-top: 84px; border-right: 1px solid var(--app-line); }
.app-body .barber-column:last-child { border-right: 0; }
.app-body .barber-head { position: sticky; top: 0; z-index: 4; display: grid; justify-items: center; align-content: center; gap: 2px; height: 84px; margin-top: -84px; padding: 7px 10px; border-bottom: 1px solid var(--app-line); background: rgba(15, 16, 17, .98); text-align: center; }
.app-body .barber-head b { font-size: 13px; line-height: 1.1; }
.app-body .barber-head small { color: var(--fg-3); font-size: 10px; }
.app-body .avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; outline: 1px solid rgba(255, 255, 255, .1); background: #1B1C1E; color: var(--fg-2); font-size: 14px; font-weight: 700; }
.app-body .calendar-slot { position: absolute; top: calc(84px + var(--slot-start) * 70px); left: 2px; right: 2px; z-index: 2; min-height: 52px; height: max(52px, calc(var(--slot-duration) * 70px - 4px)); overflow: hidden; padding: 5px 9px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 7px; background: #1E1F22; color: var(--fg); text-align: left; touch-action: pan-x pan-y; -webkit-touch-callout: none; transition: transform 150ms var(--app-ease), background-color 150ms var(--app-ease), border-color 150ms var(--app-ease), top 220ms var(--app-ease); }
.app-body .calendar-slot:hover { background: #202123; border-color: rgba(255, 255, 255, .18); }
.app-body .calendar-slot strong, .app-body .calendar-slot span, .app-body .week-slot strong, .app-body .week-slot span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app-body .calendar-slot strong { margin-top: 1px; font-size: 15px; line-height: 1.12; font-weight: 650; }
.app-body .calendar-slot .slot-time { display: flex; align-items: center; gap: 6px; color: var(--fg-2); font-size: 12px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-body .calendar-slot .slot-service { margin-top: 1px; color: var(--fg-3); font-size: 13px; line-height: 1.1; }
.app-body .calendar-slot .slot-service small { color: inherit; font-size: inherit; }
.app-body .slot-status { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #F2C94C; }
.app-body .slot-status.confirmed { background: #4CB782; }
.app-body .slot-status.started { background: #F2994A; }
.app-body .slot-status.charged { background: #D0D6E0; }
.app-body .slot-status.no-show { background: #EB5757; }
.app-body .slot-status.cancelled { background: #8A8F98; }
.app-body .calendar-slot.dragging { touch-action: none; z-index: 20; transform: scale(1.025) rotate(.2deg); border-color: rgba(255, 255, 255, .32); box-shadow: 0 22px 50px rgba(0, 0, 0, .6); }
.app-body .calendar-slot.status-started { border-color: #F7F8F8; background: #F7F8F8; color: #08090A; }
.app-body .calendar-slot.status-started .slot-time, .app-body .calendar-slot.status-started .slot-service { color: #44474C; }
.app-body .calendar-slot.status-no_show { border-style: dashed; }
.app-body .calendar-slot.status-charged, .app-body .calendar-slot.status-no_show { border-color: rgba(255, 255, 255, .12); background: #202224; color: #D0D6E0; opacity: .78; }
.app-body .calendar-slot.status-charged .slot-time, .app-body .calendar-slot.status-charged .slot-service, .app-body .calendar-slot.status-no_show .slot-time, .app-body .calendar-slot.status-no_show .slot-service { color: #8A8F98; }
.app-body .now-line { position: absolute; z-index: 3; top: calc(84px + var(--now) * 70px); right: 0; left: 0; height: 1px; background: rgba(208, 214, 224, .62); pointer-events: none; }
.app-body .now-line::before { content: ''; position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: #D0D6E0; }
.app-body .now-line span { position: absolute; right: 8px; top: -17px; color: #D0D6E0; font-size: 10px; font-weight: 650; }
.app-body .calendar-shell.is-today { border-color: rgba(255, 255, 255, .13); }
.app-body .now-line.is-before-hours span { top: 5px; }
.app-body .now-line.is-after-hours span { top: -18px; }
.app-body .calendar-hint { margin: 10px 0 0; color: var(--fg-3); font-size: 12px; }
.app-body .week-day-picker { display: none; }
.app-body .week-calendar-real { display: grid; grid-template-columns: 62px var(--week-columns, repeat(7, minmax(0, 1fr))); height: min(var(--week-height), calc(100dvh - 164px)); min-height: 560px; overflow: auto; border: 1px solid var(--app-line); border-radius: 14px; background: var(--app-panel); scrollbar-gutter: stable; }
.app-body .week-time, .app-body .week-column { position: relative; min-width: 0; padding-top: 54px; border-left: 1px solid var(--app-line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 71px, var(--app-line) 72px); }
.app-body .week-time { position: sticky; left: 0; z-index: 6; min-width: 62px; border-left: 0; background-color: #08090A; }
.app-body .week-time-head { position: absolute; inset: 0 0 auto; z-index: 2; height: 54px; border-bottom: 1px solid var(--app-line); background: #08090A; }
.app-body .week-head { position: absolute; inset: 0 0 auto; z-index: 4; width: 100%; height: 54px; padding: 7px; border-bottom: 1px solid var(--app-line); background: #0F1011; color: var(--fg-3); font-size: 11px; text-align: center; }
.app-body button.week-head { cursor: pointer; }
.app-body .week-head b { display: block; color: var(--fg); font-size: 15px; }
.app-body .week-column.is-today .week-head b { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.app-body .week-time span { display: block; height: 72px; color: var(--fg-3); font-size: 10px; text-align: center; transform: translateY(-6px); }
.app-body .week-slot { position: absolute; z-index: calc(2 + var(--week-stack)); top: calc(54px + var(--slot-start) * 72px); left: calc(3px + var(--week-left) * 1% + var(--week-stack) * 4px); width: calc(var(--week-width) * 1% - 7px); min-height: 0; height: max(32px, calc(var(--slot-duration) * 72px - 4px)); overflow: hidden; padding: 3px 6px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; background: #1E1F22; color: var(--fg-2); font-size: 12px; line-height: 1.15; text-align: left; box-shadow: 0 3px 9px rgba(0, 0, 0, calc(var(--week-stack) * .3)); }
.app-body .week-slot.status-started { border-color: #F7F8F8; background: #F7F8F8; color: #08090A; }
.app-body .week-slot strong { display: block; overflow: hidden; color: var(--fg); font-size: 12px; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; }
.app-body .week-slot .slot-time, .app-body .week-slot .slot-service { display: block; overflow: hidden; color: var(--fg-3); white-space: nowrap; text-overflow: ellipsis; }
.app-body .week-slot .slot-time { display: flex; align-items: center; gap: 3px; font-size: 11px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.app-body .week-slot .slot-status { width: 5px; height: 5px; }
.app-body .week-slot.is-compact { display: flex; align-items: center; gap: 5px; }
.app-body .week-slot.is-compact .slot-time { flex: none; font-size: 10px; }
.app-body .week-slot.is-compact strong { min-width: 0; font-size: 12px; }
.app-body .week-slot .slot-name-full { display: inline; }
.app-body .week-slot .slot-name-short { display: none; }
.app-body .week-slot.is-compact .slot-service { display: none; }
.app-body .week-slot.is-tight .slot-service { display: none; }
.app-body .week-slot.status-started strong { color: #08090A; }
.app-body .week-slot.status-started .slot-time, .app-body .week-slot.status-started .slot-service { color: #44474C; }
.app-body .week-summary .week-column { position: static; min-width: 0; min-height: 420px; padding: 0; border-left: 1px solid var(--app-line); background: none; }
.app-body .week-summary .week-column:first-child { border-left: 0; }
.app-body .week-summary .week-head { position: sticky; top: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; height: auto; min-height: 64px; padding: 9px 10px; text-align: left; }
.app-body .week-summary .week-head span { color: var(--fg-3); font-size: 11px; text-transform: capitalize; }
.app-body .week-summary .week-head b { grid-column: 2; grid-row: 1 / 3; font-size: 22px; }
.app-body .week-summary .week-head small { color: var(--fg-3); font-size: 10px; }
.app-body .week-day-list { display: grid; align-content: start; gap: 5px; padding: 6px; }
.app-body .week-summary .week-slot { position: relative; top: auto; left: auto; width: 100%; min-height: 58px; height: auto; padding: 7px 8px; border-color: rgba(255, 255, 255, .14); font-size: 11px; }
.app-body .week-summary .week-slot strong { margin: 2px 0; color: var(--fg); font-size: 13px; }
.app-body .week-summary .week-slot .slot-time { display: flex; align-items: center; gap: 5px; color: var(--fg-2); white-space: nowrap; }
.app-body .week-summary .week-slot .slot-service { color: var(--fg-3); }
.app-body .week-empty { padding: 18px 6px; color: var(--fg-3); font-size: 11px; text-align: center; }

/* Hojas y formularios */
.app-body .modal-shell { z-index: 250; }
.app-body .modal { width: min(440px, 100%); max-height: calc(100dvh - 32px); gap: 14px; padding: 24px; border-radius: 18px; background: #0F1011; animation-duration: 260ms; }
.app-body .modal > *, .app-body .modal-head > *, .app-body .modal-form > *, .app-body .walk-in-selectors > *, .app-body .walk-in-customer > *, .app-body .walk-in-alternatives > * { min-width: 0; }
.app-body .modal-shell:has([data-appointment-action]) { place-items: stretch end; padding: 0; }
.app-body .modal:has([data-appointment-action]) { width: min(460px, 100%); height: 100dvh; max-height: none; padding: 28px; border-radius: 0; border-block: 0; border-right: 0; }
.app-body .appointment-drawer .modal { display: flex; flex-direction: column; align-content: start; width: min(420px, 100%); }
.app-body .appointment-drawer .sheet-actions { flex: none; }
.app-body .appointment-drawer .charge-main { flex: none; min-height: 44px; max-height: 44px; margin-top: auto; }
.app-body .modal-head h2 { font-size: 24px; font-weight: 590; letter-spacing: -.035em; }
.app-body .sheet-close { width: 44px; height: 44px; border-radius: 50%; background: #141516; }
.app-body .appointment-person { display: flex; align-items: center; gap: 13px; padding-bottom: 14px; border-bottom: 1px solid var(--app-line); }
.app-body .appointment-person .avatar { width: 46px; height: 46px; }
.app-body .appointment-person div { display: grid; gap: 4px; }
.app-body .appointment-person small, .app-body .modal-copy { margin: 0; color: var(--fg-3); }
.app-body .facts { display: grid; margin: 0; }
.app-body .fact { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--app-line); font-size: 13px; }
.app-body .fact span { color: var(--fg-3); }
.app-body .sheet-actions { display: grid; gap: 6px; }
.app-body .sheet-actions button { min-height: 44px; border-radius: 11px; background: #141516; color: var(--fg-2); }
.app-body .sheet-actions .danger { color: var(--app-danger); }
.app-body .charge-main, .app-body .modal-primary { width: 100%; min-height: 54px; }
.app-body .modal-form { display: grid; gap: 14px; }
.app-body .modal-form input, .app-body .modal-form select, .app-body .capture-summary input, .app-body .capture-summary select { min-height: 44px; }
.app-body .modal:has(#newAppointment) { display: flex; flex-direction: column; width: min(620px, 100%); height: min(86dvh, 860px); max-height: min(86dvh, 860px); }
.app-body .modal:has(#newAppointment) > .modal-head { flex: none; }
.app-body #newAppointment { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: hidden; }
.app-body #newAppointment .modal-form-scroll { display: grid; gap: 14px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 4px 14px 0; }
.app-body .modal-form label { display: grid; gap: 6px; }
.app-body .modal-form label span { color: var(--fg-4); }
.app-body .modal-form .app-account-check { display: flex; margin-top: 0; }
.app-body .modal-form .app-account-check input[type=checkbox] { width: 18px; height: 18px; min-height: 0; padding: 0; aspect-ratio: 1; }
.app-body .modal-form .app-account-check span { color: var(--fg); }
.app-body .modal-form .field-label { display: flex; align-items: baseline; gap: 4px; color: var(--fg-3); }
.app-body .modal-form .field-label small { color: var(--fg-4); font-size: inherit; }
.app-body .modal-form fieldset { margin: 0; padding: 0; border: 0; }
.app-body .modal-form legend { margin-bottom: 7px; color: var(--fg-3); font-size: 13px; }
.app-body .two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-body .charge-services { display: grid; overflow: hidden auto; max-height: 280px; border: 1px solid var(--app-line); border-radius: 10px; }
.app-body .modal-form .charge-services.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; overflow: visible; gap: 6px; border: 0; }
.app-body .modal-form .charge-services.compact label { min-height: 44px; border: 1px solid var(--app-line); border-radius: 9px; }
.app-body .modal-form .modal-primary { position: sticky; z-index: 3; bottom: -1px; box-shadow: 0 -12px 24px #0F1011; }
.app-body .service-choice { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 12px; border-bottom: 1px solid var(--app-line); cursor: pointer; }
.app-body .service-choice input[type=checkbox] { align-self: flex-start; width: 18px; height: 18px; min-height: 18px; flex: none; }
.app-body .service-choice:last-child { border-bottom: 0; }
.app-body .service-choice > span { display: grid; flex: 1; }
.app-body .service-choice b { color: var(--fg); }
.app-body .service-choice small { color: var(--fg-3); }
.app-body .service-choice strong { color: var(--fg-2); }

/* Cobro */
.app-body .charge-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .7fr); gap: 20px; }
.app-body .service-list { display: grid; }
.app-body .charge-service { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 12px 18px; border-bottom: 1px solid var(--app-line); background: transparent; color: var(--fg-2); text-align: left; }
.app-body .charge-service:last-child { border-bottom: 0; }
.app-body .service-check { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border: 1px solid var(--app-line-2); border-radius: 6px; }
.app-body .charge-service.active .service-check { border: 1px solid var(--fg-2); background: var(--fg); color: var(--bg); }
.app-body .charge-service > span:nth-child(2) { display: grid; }
.app-body .charge-service small { color: var(--fg-3); }
.app-body .charge-service strong { margin-left: auto; }
.app-body .ticket { position: sticky; top: 0; align-self: start; padding: 20px; }
.app-body .ticket > h2 { margin-bottom: 18px; }
.app-body .ticket-line { display: flex; justify-content: space-between; padding: 9px 0; color: var(--fg-2); font-size: 13px; }
.app-body .ticket-empty { color: var(--fg-3); font-size: 13px; }
.app-body .tip-field { display: grid; grid-template-columns: 1fr 100px; align-items: center; gap: 12px; margin-top: 8px; }
.app-body .ticket-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; padding: 18px 0; border-top: 1px solid var(--app-line); }
.app-body .ticket-total strong { color: var(--fg); font-size: 32px; letter-spacing: -.045em; }
.app-body .field-label { display: block; margin: 2px 0 7px; color: var(--fg-3); font-size: 12px; }
.app-body .payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 18px; }
.app-body .payment-methods button { min-height: 48px; border: 1px solid var(--app-line); border-radius: 9px; background: #141516; color: var(--fg-3); }
.app-body .payment-methods button.active { border-color: rgba(255, 255, 255, .24); background: #1B1C1E; color: var(--fg); }
.app-body .barber-faces { display: flex; gap: 7px; margin-bottom: 20px; }
.app-body .barber-face { width: 44px; height: 44px; border: 1px solid var(--app-line); border-radius: 50%; background: #141516; color: var(--fg-2); }
.app-body .barber-face.active { box-shadow: 0 0 0 2px var(--app-accent); }
.app-body .confirm-charge { width: 100%; min-height: 54px; }
.app-body .charge-success { display: grid; justify-items: center; gap: 10px; padding: 12px 0 4px; text-align: center; }
.app-body .charge-success h2 { margin: 0; font-size: 22px; }
.app-body .charge-success > strong { font-size: 34px; letter-spacing: -.05em; }
.app-body .charge-success p { margin: 0 0 10px; color: var(--fg-3); }
.app-body .charge-success .button { width: 100%; min-height: 54px; }
.app-body .success-mark { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .24); background: #1B1C1E; color: var(--fg); animation: app-success 260ms var(--app-ease); }
.app-body .success-mark svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.app-body .success-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: app-check 300ms cubic-bezier(.65, 0, .35, 1) 70ms forwards; }
@keyframes app-success { from { opacity: 0; transform: scale(.5) rotate(-12deg); } 70% { transform: scale(1.08) rotate(2deg); } }
@keyframes app-check { to { stroke-dashoffset: 0; } }
.app-body .rebook-modal { width: min(520px, calc(100vw - 28px)); max-height: calc(100svh - 28px); overflow: auto; border-radius: 26px; }
.app-body .rebook-success { width: 100%; gap: 12px; }
.app-body .rebook-success > p { align-self: stretch; text-align: left; }
.app-body .rebook-success .success-mark.compact { width: 54px; height: 54px; font-size: 25px; }
.app-body .rebook-question { display: grid; gap: 3px; width: 100%; margin-top: 6px; padding: 16px; border: 1px solid var(--app-line); border-radius: 18px; background: #111214; text-align: left; }
.app-body .rebook-question span, .app-body .rebook-eyebrow { color: var(--fg-3); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.app-body .rebook-question b { font-size: 18px; letter-spacing: -.02em; }
.app-body .rebook-actions, .app-body .rebook-alternatives, .app-body .rebook-share { display: grid; gap: 8px; width: 100%; }
.app-body .rebook-actions.two, .app-body .rebook-share { grid-template-columns: 1fr 1fr; }
.app-body .rebook-pill { min-height: 54px; border-radius: 999px; }
.app-body .rebook-alternatives { grid-template-columns: repeat(2, 1fr); margin: 8px 0; }
.app-body .qr-shell { width: min(290px, 78vw); margin: 4px auto; padding: 14px; border-radius: 24px; background: #fff; box-shadow: 0 22px 50px rgba(0, 0, 0, .4); }
.app-body .modal-head .icon-button { flex: 0 0 44px; width: 44px; height: 44px; }
.app-body .walk-in-start, .app-body .walk-in-arrival { width: 100%; min-width: 0; }
.app-body .walk-in-start { display: grid; gap: 14px; }
.app-body .walk-in-start .walk-in-answer { text-align: left; }
.app-body .walk-in-qr { width: min(300px, 100%); }
.app-body .walk-in-selectors, .app-body .walk-in-customer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app-body .walk-in-answer { padding: 18px; border: 1px solid var(--borde); border-radius: 18px; background: var(--panel-2); }
.app-body .walk-in-answer span { color: var(--fg-4); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.app-body .walk-in-answer h3 { margin: 6px 0; font-size: clamp(20px, 3vw, 28px); letter-spacing: -.04em; }
.app-body .walk-in-answer p { margin: 0; color: var(--fg-3); }
.app-body .walk-in-answer.is-full { border-color: rgba(242, 163, 163, .24); }
.app-body .walk-in-alternatives { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.app-body .walk-in-alternatives .rebook-pill { padding-block: 10px; line-height: 1.25; white-space: normal; }

@media (max-width: 600px) {
  .app-body .walk-in-selectors, .app-body .walk-in-customer, .app-body .walk-in-alternatives { grid-template-columns: 1fr; }
}
.app-body .reservation-qr { display: block; width: 100%; height: auto; }
.app-body .rebook-own-link { display: grid; place-items: center; min-height: 44px; color: var(--fg-2); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }

/* Clientes */
.app-body .clients-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; }
.app-body .client-search { max-width: 360px; min-height: 48px; margin-bottom: 12px; }
.app-body .client-list { overflow: hidden; }
.app-body .client-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 70px; padding: 12px 18px; border-bottom: 1px solid var(--app-line); background: transparent; text-align: left; }
.app-body .client-row:last-child { border-bottom: 0; }
.app-body .client-row:hover { background: #141516; }
.app-body .client-row.active { box-shadow: inset 2px 0 var(--fg); background: #141516; }
.app-body .client-row > span:nth-child(2) { display: grid; }
.app-body .client-row small, .app-body .client-row > span:last-child { color: var(--fg-3); font-size: 12px; }
.app-body .client-card { align-self: start; padding: 22px; }
.app-body .profile { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.app-body .profile .avatar { width: 52px; height: 52px; }
.app-body .profile h2 { margin: 0 0 4px; font-size: 20px; }
.app-body .profile p { margin: 0; color: var(--fg-3); font-size: 12px; }
.app-body .mini-stats { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--app-line); border-radius: 10px; }
.app-body .mini-stats div { padding: 13px; }
.app-body .mini-stats div + div { border-left: 1px solid var(--app-line); }
.app-body .mini-stats small { display: block; margin-bottom: 5px; color: var(--fg-3); }
.app-body .client-notes h3, .app-body .activity h3 { margin: 0 0 10px; font-size: 13px; }
.app-body .activity { margin-top: 20px; }
.app-body .activity-item { position: relative; padding: 0 0 15px 20px; color: var(--fg-2); font-size: 12px; }
.app-body .activity-item::before { content: ''; position: absolute; top: 4px; left: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--fg-2); }
.app-body .activity-item small { display: block; color: var(--fg-3); }
.app-body .honest-empty { display: grid; gap: 4px; padding: 16px; border: 1px dashed var(--app-line); border-radius: 10px; color: var(--fg-3); font-size: 13px; text-align: center; }
.app-body .honest-empty b { color: var(--fg-2); }
.app-body .honest-empty.large { place-content: center; min-height: 280px; }

/* Caja */
.app-body .cash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; margin-bottom: 20px; border: 1px solid var(--app-line); border-radius: 14px; background: var(--app-panel); }
.app-body .cash-kpis article { padding: 20px; border-left: 1px solid var(--app-line); }
.app-body .cash-kpis article:first-child { border-left: 0; }
.app-body .cash-kpis small { color: var(--fg-3); }
.app-body .cash-kpis strong { display: block; margin: 9px 0 5px; font-size: clamp(24px, 3vw, 38px); font-weight: 560; letter-spacing: -.05em; }
.app-body .cash-kpis em { color: var(--fg-3); font-size: 11px; font-style: normal; }
.app-body .cash-kpis .cash-trend.positive { color: #4CB782; }
.app-body .cash-kpis .cash-trend.negative { color: #EB5757; }
.app-body .cash-kpis .cash-trend.neutral { color: var(--fg-3); }
.app-body .cash-charts { display: grid; grid-template-columns: 1.4fr .8fr; align-items: start; gap: 20px; }
.app-body .chart-panel { min-height: 0; padding: 20px; }
.app-body .ranking { display: grid; gap: 18px; margin-top: 28px; }
.app-body .ranking.is-compact { max-width: 680px; }
.app-body .ranking.is-compact .rank-line { grid-template-columns: minmax(100px, 150px) minmax(120px, 320px) auto; }
.app-body .rank-line { display: grid; grid-template-columns: minmax(72px, 1fr) 2fr auto; align-items: center; gap: 10px; font-size: 12px; }
.app-body .rank-line i { width: var(--rank); height: 7px; border-radius: 7px; background: linear-gradient(90deg, #8A8F98, #D0D6E0); transform-origin: left; animation: app-rank-grow 550ms var(--app-ease); }
@keyframes app-rank-grow { from { transform: scaleX(0); } }
.app-body .cash-close-title { margin-top: 38px !important; }
.app-body .cash-close { display: grid; margin: 18px 0 0; }
.app-body .cash-close div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--app-line); }
.app-body .cash-close dt { color: var(--fg-3); }
.app-body .cash-close dd { margin: 0; }
.app-body .recent-charges { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--app-line); }
.app-body .recent-charges h3 { margin: 0 0 8px; font-size: 13px; }
.app-body .recent-charges > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--app-line); }
.app-body .recent-charges span { display: grid; }
.app-body .recent-charges small, .app-body .recent-charges p { color: var(--fg-3); font-size: 11px; }
.app-body .recent-charges strong { margin-left: auto; }
.app-body .recent-charges .void-charge { min-height: 32px; padding: 0 10px; border: 1px solid var(--app-line); border-radius: 9px; background: transparent; color: var(--app-danger); font-size: 12px; }
.app-body .modal-actions .button.danger { background: var(--app-danger); border-color: var(--app-danger); color: #fff; }

/* Más */
.app-body .more-page { max-width: 900px; }
.app-body .setting-group { margin-bottom: 18px; overflow: hidden; }
.app-body .setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; padding: 12px 18px; }
.app-body .setting-row div { display: grid; }
.app-body .setting-row small, .app-body .sound-panel > p, .app-body .billing-card span, .app-body .billing-card small, .app-body .account-card small { color: var(--fg-3); }
.app-body .sound-switch { width: 52px; height: 44px; padding: 10px 3px; border-radius: 22px; background: #1B1C1E; }
.app-body .sound-switch::before { content: ''; display: block; width: 24px; height: 24px; border-radius: 50%; background: #8A8F98; transition: transform 220ms var(--app-ease); }
.app-body .sound-switch.on { background: #343434; }
.app-body .sound-switch.on::before { background: #fff; transform: translateX(22px); }
.app-body .sound-panel { padding: 18px 0 0; border-top: 1px solid var(--app-line); }
.app-body .sound-panel > p { margin: 6px 0 18px; font-size: 12px; }
.app-body .sound-set { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.app-body .sound-set + .sound-set { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--app-line); }
.app-body .radio-line { display: flex; align-items: center; gap: 9px; min-height: 44px; background: transparent; text-align: left; }
.app-body .radio-line > span:last-child { display: grid; }
.app-body .radio-line small { color: var(--fg-3); }
.app-body .radio-dot { width: 18px; height: 18px; padding: 3px; border: 1px solid var(--app-line-2); border-radius: 50%; }
.app-body .radio-dot::after { content: ''; display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--fg); opacity: 0; }
.app-body .radio-line.active .radio-dot::after { opacity: 1; }
.app-body .billing-card, .app-body .account-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 18px; }
.app-body .billing-card > div, .app-body .account-card > div:first-child { display: grid; }
.app-body .account-card > div:last-child, .app-body .danger-zone > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.app-body .settings-card { margin-bottom: 10px; border: 1px solid var(--app-line); border-radius: 14px; background: var(--app-panel); overflow: hidden; }
.app-body .settings-card > summary { background: var(--app-panel-2); }
.app-body .settings-card[open] > summary { border-bottom: 1px solid var(--app-line); background: #1B1C1E; }
.app-body .settings-card .settings-body { background: var(--app-panel); }
.app-body .sound-settings .setting-row { padding-inline: 0; }
.app-body .more-page.has-savebar { padding-bottom: 75px; }
.app-body .settings-savebar { position: fixed; z-index: 30; right: max(24px, calc((100vw - 248px - 900px) / 2)); bottom: 0; left: max(272px, calc(248px + (100vw - 248px - 900px) / 2)); height: 75px; margin: 0; padding: 10px 0; border-top: 1px solid var(--app-line); background: #08090A; box-shadow: 0 -16px 24px #08090A; }
.app-body .settings-savebar::before { content: ''; position: absolute; right: 0; bottom: 100%; left: 0; height: 56px; background: linear-gradient(to bottom, transparent, #08090A 78%); pointer-events: none; }
.app-body .save-settings { width: 100%; min-height: 54px; margin: 0; }
.app-body .blocks-panel { margin-bottom: 10px; padding: 0; }
.app-body .blocks-panel > header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.app-body .blocks-panel h2, .app-body .affected-list h3 { margin: 0; font-size: 17px; }
.app-body .blocks-panel p { margin: 4px 0 0; color: var(--fg-3); font-size: 12px; }
.app-body .block-form { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; padding: 14px; border: 1px solid var(--app-line); border-radius: 12px; background: #0F1011; }
.app-body .block-form label { display: grid; gap: 6px; color: var(--fg-3); font-size: 11px; }
.app-body .block-form input, .app-body .block-form select { width: 100%; min-height: 44px; border-color: var(--app-line-2); background: #141516; color: var(--fg); }
.app-body .block-form .localized-date, .app-body .block-form .localized-time { border-color: var(--app-line-2); background: #141516; }
.app-body .block-form .check-line { display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--fg-2); }
.app-body .block-form .check-line input { width: 17px; min-height: 17px; }
.app-body .block-form .block-note { grid-column: span 2; }
.app-body .block-form .block-weekly-hint { grid-column: span 2; align-self: center; color: var(--fg-2); font-size: 12px; }
.app-body .block-form > button { align-self: end; min-height: 44px; background: #f1f1ef; color: #111214; }
.app-body .block-list { display: grid; gap: 8px; margin-top: 12px; }
.app-body .block-row, .app-body .affected-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid var(--app-line); border-radius: 11px; background: #141516; }
.app-body .block-row > div:first-child, .app-body .affected-row > div:first-child { display: grid; gap: 3px; }
.app-body .block-row span, .app-body .block-row small, .app-body .affected-row span, .app-body .affected-row small { color: var(--fg-3); font-size: 12px; }
.app-body .block-row .review-stars, .app-body .review-summary .review-stars { color: #e8c766; font-size: 13px; letter-spacing: 1px; }
.app-body .review-summary { margin: 0; color: var(--fg-2); font-size: 13px; }
.app-body .review-row small { color: var(--fg-2); font-size: 13px; line-height: 1.45; }
.app-body .review-row.is-hidden { opacity: .62; }
.app-body .affected-list { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--app-line); }
.app-body .affected-row { margin-top: 8px; }
.app-body .affected-row > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.app-body .affected-row a { text-decoration: none; }
.app-body .affected-preview { display: grid; gap: 8px; margin: 14px 0; }
.app-body .affected-preview > div { display: grid; gap: 3px; padding: 10px; border: 1px solid var(--app-line); border-radius: 9px; }
.app-body .affected-preview span { color: var(--fg-3); font-size: 12px; }
.app-body [data-confirm-block] { border-color: #f1f1ef; background: #f1f1ef; color: #111214; }

/* E2a · cascarón gris neutro y pantalla Hoy del boceto 3 */
.app-body .app-content, .app-body .settings-savebar { background: var(--bg); }
.app-body .time-axis, .app-body .week-time, .app-body .week-time-head { background-color: var(--bg); }
.app-body .barber-head, .app-body .week-head { background: rgba(36, 36, 36, .98); }
.app-body .calendar-slot, .app-body .week-slot { background: #303030; }
.app-body .calendar-slot:hover { background: #383838; }
.app-body .segmented { border-radius: 999px; }
.app-body .segmented button { border-radius: 999px; }
.app-body .segmented button.active { background: #3A3A3A; }
.app-body .branch-picker { display: grid; grid-template-columns: auto minmax(130px, 180px); align-items: center; gap: 8px; min-height: 44px; padding-left: 14px; border: 1px solid var(--app-line); border-radius: 999px; background: var(--app-panel); }
.app-body .branch-picker span { color: var(--fg-3); font-size: 11px; }
.app-body .branch-picker select { min-height: 44px; border: 0; border-radius: 999px; background-color: transparent; font-size: 13px; }
.app-body .today-layout { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(420px, 1.35fr); gap: 24px; align-items: start; }
.app-body .today-lead, .app-body .today-agenda { min-width: 0; }
.app-body .today-date { display: flex; align-items: flex-end; gap: 14px; min-height: 106px; padding: 10px 2px 4px; }
.app-body .today-date > b { font-size: clamp(82px, 9vw, 118px); font-weight: 620; line-height: .8; letter-spacing: -.075em; }
.app-body .today-date > span { display: grid; padding-bottom: 4px; line-height: 1.2; }
.app-body .today-date > span strong { font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.app-body .today-date > span small { color: var(--fg-3); font-size: 13px; }
.app-body .today-goal { margin-top: 22px; padding: 0; border: 0; background: transparent; }
.app-body .today-goal > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.app-body .today-goal span { color: var(--fg-3); font-size: 12px; }
.app-body .today-goal strong { font-size: clamp(32px, 4vw, 48px); font-weight: 610; line-height: 1; letter-spacing: -.055em; }
.app-body .today-progress { height: 6px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: #1B1C1E; }
.app-body .today-progress i { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: #F7F8F8; transition: width 500ms var(--app-ease); }
.app-body .today-shortcuts { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; }
.app-body .today-shortcuts .app-button { background: transparent; }
.app-body .today-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 9px; }
.app-body .today-section-title h2 { margin: 0; font-size: 15px; font-weight: 610; }
.app-body .today-section-title > span { color: var(--fg-3); font-size: 12px; }
.app-body .today-walk-in-mobile { display: none; }
.app-body .today-now, .app-body .today-list { display: grid; gap: 8px; }
.app-body .today-now-card { display: grid; gap: 12px; width: 100%; min-height: 112px; padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: linear-gradient(180deg, #1C1C1C, #202020); color: var(--fg); }
.app-body .today-now-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-body .today-now-top time { color: var(--fg-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.app-body .today-live { padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 11px; }
.app-body .today-live::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--app-danger); vertical-align: 1px; }
.app-body .today-now-card > strong { font-size: 24px; line-height: 1.15; letter-spacing: -.03em; }
.app-body .today-now-card > p { margin: -9px 0 0; color: var(--fg-2); font-size: 14px; }
.app-body .today-now-card > .button { width: 100%; min-height: 48px; }
.app-body .today-appointment, .app-body .today-gap { width: 100%; min-height: 70px; color: var(--fg); text-align: left; cursor: pointer; }
.app-body .today-appointment > span, .app-body .today-gap > span { display: grid; min-width: 0; }
.app-body .today-appointment, .app-body .today-gap { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 16px; }
.app-body .today-appointment time, .app-body .today-gap time { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.app-body .today-appointment strong, .app-body .today-gap strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app-body .today-appointment small, .app-body .today-gap small { overflow: hidden; color: var(--fg-3); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.app-body .today-appointment, .app-body .today-gap { border: 0; border-bottom: 1px solid var(--app-line); border-radius: 0; background: transparent; }
.app-body .today-appointment.is-charged { color: var(--fg-3); }
.app-body .today-appointment.is-charged i { color: #4CB782; font-style: normal; }
.app-body .today-gap > span::after { content: ''; position: absolute; }
.app-body .today-empty { display: grid; gap: 4px; min-height: 90px; padding: 20px; border: 1px dashed var(--app-line-2); border-radius: 15px; align-content: center; color: var(--fg-3); }
.app-body .today-empty b { color: var(--fg-2); }

@media (min-width: 601px) and (max-width: 960px) {
  .app-body .app-shell { grid-template-columns: 90px minmax(0, 1fr); }
  .app-body .app-sidebar { display: flex; width: auto; padding-inline: 10px; }
  .app-body .sidebar-brand { justify-content: center; padding-inline: 0; font-size: 0; }
  .app-body .nav-button { justify-content: center; padding: 0; font-size: 0; }
  .app-body .nav-button.nav-charge { width: 48px; height: 48px; margin: 14px auto; border-radius: 50%; }
  .app-body .nav-button.nav-charge > span:last-child, .app-body .sidebar-user > span, .app-body .sidebar-user > b { display: none; }
  .app-body .sidebar-user { display: grid; justify-items: center; grid-template-columns: 1fr; }
  .app-body .sidebar-user button { grid-column: 1; grid-row: 1; }
  .app-body .mobile-tabs { display: none; }
  .app-body .app-content { margin: 0; padding: 28px 24px 48px; }
  .app-body .settings-savebar { right: 24px; left: 114px; }
  .app-body .charge-layout, .app-body .cash-charts { grid-template-columns: 1fr; }
  .app-body .ticket { position: static; }
  .app-body .clients-layout { grid-template-columns: 1fr; }
  .app-body .client-card { display: none; }
  .app-body .cash-kpis { grid-template-columns: 1fr 1fr; }
  .app-body .cash-kpis article:nth-child(3) { border-left: 0; }
  .app-body .cash-kpis article:nth-child(n+3) { border-top: 1px solid var(--app-line); }
}

@media (max-width: 600px) {
  .app-body .app-shell { display: block; }
  .app-body .app-sidebar { display: none; }
  .app-body .app-content { height: 100dvh; margin: 0; padding: calc(64px + var(--zs-arriba)) 16px calc(82px + var(--zs-abajo) + 32px); }
  .app-body .mobile-appbar { display: flex !important; }
  .app-body .mobile-appbar { height: calc(64px + var(--zs-arriba)); gap: 8px; padding-inline: max(12px, var(--zs-der)) max(12px, var(--zs-izq)); border-bottom: 0; }
  .app-body .mobile-appbar > .app-wordmark { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; }
  .app-body .mobile-appbar > #mobileGreeting { min-width: 0; flex: 1 1 auto; overflow: hidden; color: var(--fg-3); font-size: 13px; font-weight: 510; text-overflow: ellipsis; white-space: nowrap; }
  .app-body .mobile-appbar > #mobileGreeting { display: none; }
  .app-body .mobile-branch { flex: 0 1 88px; min-width: 68px; }
  .app-body .mobile-branch select { min-height: 44px; padding: 0 24px 0 10px; border-radius: 999px; background-color: transparent; font-size: 12px; }
  .app-body .mobile-appbar .mobile-mic { display: grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; margin-left: 0; border-radius: 50%; background: rgba(255,255,255,.06); }
  .app-body .mobile-mic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  .app-body .mobile-appbar .mobile-guide { flex: 0 0 auto; min-width: 52px; min-height: 44px; margin-left: 0; padding: 0 10px; border: 1px dashed var(--app-line-2); border-radius: 999px; font-size: 12px; }
  .app-body .mobile-tabs { position: fixed; z-index: 40; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(82px + var(--zs-abajo)); padding: 7px max(5px, var(--zs-der)) var(--zs-abajo) max(5px, var(--zs-izq)); border-top: 1px solid var(--app-line); background: #202020; }
  .app-body .mobile-tabs .nav-button { min-width: 0; min-height: 58px; padding: 0; flex-direction: column; justify-content: center; gap: 5px; background: transparent; color: var(--fg-3); font-size: 10px; text-align: center; }
  .app-body .mobile-tabs .nav-button svg { width: 21px; height: 21px; }
  .app-body .mobile-tabs .nav-button.is-active { color: var(--fg); }
  .app-body .mobile-tabs .nav-charge { margin: 0; box-shadow: none; color: var(--fg); font-weight: 600; }
  .app-body .mobile-tabs .charge-symbol { width: 52px; height: 52px; margin-top: -23px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 50%; background: #F7F8F8; color: #08090A; box-shadow: 0 8px 26px rgba(0, 0, 0, .35); }
  .app-body .mobile-tabs .nav-charge:not(.is-active) { color: var(--fg-3); font-weight: 510; }
  .app-body .mobile-tabs .nav-charge:not(.is-active) .charge-symbol { border-color: var(--app-line-2); background: var(--app-panel-2); color: var(--fg-2); box-shadow: none; }
  .app-body .mobile-tabs .charge-symbol svg { width: 24px; height: 24px; }
  .app-body .agenda-page .app-topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 8px; margin-bottom: 10px; }
  .app-body .app-title h1 { font-size: 28px; }
  .app-body .app-title p { font-size: 12px; white-space: nowrap; }
  .app-body .app-actions { display: contents; }
  .app-body .agenda-page .app-title { align-self: center; min-width: 0; }
  .app-body .agenda-page .app-title h1 { margin: 0; font-size: 24px; }
  .app-body .agenda-page .app-title p { display: none; }
  .app-body .agenda-page .branch-picker { display: none; }
  .app-body .agenda-page .capture-actions { display: none; }
  .app-body .date-stepper { display: none; }
  .app-body .date-stepper [data-date-today] { display: none; }
  .app-body .agenda-switch { grid-column: 2; grid-row: 1; justify-self: end; }
  .app-body .agenda-switch button { min-height: 44px; min-width: 44px; padding-inline: 11px; }
  .app-body .new-appointment { grid-column: 3; grid-row: 1; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .app-body .new-appointment b { display: none; }
  .app-body .new-appointment span { font-size: 22px; }
  .app-body .today-page .app-topbar { display: none; }
  .app-body .today-layout { grid-template-columns: 1fr; gap: 8px; }
  .app-body .today-walk-in-mobile { display: inline-flex; min-height: 44px; }
  .app-body .today-date > b { font-size: 108px; }
  .app-body .today-goal { padding: 0; }
  .app-body .today-lead .today-section-title { margin-top: 16px; }
  .app-body .today-agenda .today-section-title { margin-top: 8px; }
  .app-body .today-appointment, .app-body .today-gap { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; padding-inline: 12px; }
  .app-body .today-gap { grid-template-columns: 70px minmax(0, 1fr); }
  .app-body .today-appointment > b { font-size: 13px; }
  .app-body .agenda-mobile-nav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; align-items: center; margin-bottom: 8px; }
  .app-body .agenda-mobile-nav .app-button { min-height: 44px; }
  .app-body .agenda-mobile-date { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; padding-inline: 8px; font-size: 14px; }
  .app-body .agenda-mobile-date small { color: var(--fg-3); font-size: 11px; }
  .app-body .mobile-barbers { display: flex; gap: 8px; margin: 0 -16px 8px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  .app-body .mobile-barbers::-webkit-scrollbar { display: none; }
  .app-body .agenda-page:has(.mobile-barbers) .calendar-shell { height: calc(100dvh - 320px - var(--zs-arriba) - var(--zs-abajo)); min-height: 440px; }
  .app-body .agenda-page:not(:has(.mobile-barbers)) .calendar-shell { height: calc(100dvh - 268px - var(--zs-arriba) - var(--zs-abajo)); min-height: 480px; }
  .app-body .mobile-barbers button { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 44px; padding: 0 12px 0 5px; border: 1px solid var(--app-line); border-radius: 22px; background: #0F1011; color: var(--fg-3); }
  .app-body .mobile-barbers button.active { border-color: rgba(255, 255, 255, .24); background: #1B1C1E; color: var(--fg); }
  .app-body .mobile-barbers button > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #141516; color: var(--fg-2); font-size: 10px; }
  .app-body .calendar-shell { grid-template-columns: 52px minmax(0, 1fr); height: calc(100dvh - 216px - var(--zs-arriba) - var(--zs-abajo)); min-height: 540px; border-radius: 11px; }
  .app-body .day-grid { display: block; min-width: 0; }
  .app-body .barber-column { display: none; border: 0; }
  .app-body .barber-column.mobile-active { display: block; }
  .app-body .barber-head { padding: 0 10px; }
  .app-body .week-day-picker { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin: 0 0 8px; }
  .app-body .week-day-picker button { display: grid; place-items: center; gap: 1px; min-width: 0; min-height: 44px; padding: 4px 1px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--fg-3); }
  .app-body .week-day-picker button span { font-size: 11px; text-transform: uppercase; }
  .app-body .week-day-picker button b { font-size: 13px; }
  .app-body .week-day-picker button.active { border-color: var(--app-line-2); background: #1B1C1E; color: var(--fg); }
  .app-body .week-calendar-real { grid-template-columns: 52px minmax(0, 1fr); height: calc(100dvh - 268px - var(--zs-arriba) - var(--zs-abajo)); min-height: 488px; overflow: auto; }
  .app-body .week-column { display: none; }
  .app-body .week-column.is-selected { display: block; min-width: 0; padding-left: 4px; }
  .app-body .week-column.is-selected .week-slot { left: calc(7px + var(--week-left) * 1% + var(--week-stack) * 4px); width: calc(var(--week-width) * 1% - 11px); }
  .app-body .charge-layout, .app-body .cash-charts, .app-body .clients-layout { display: block; }
  .app-body .charge-layout > .surface:first-child, .app-body .cash-charts > .surface:first-child { margin-bottom: 14px; }
  .app-body .ticket { position: static; padding: 18px; padding-bottom: calc(82px + var(--zs-abajo)); }
  .app-body .confirm-charge { position: fixed; z-index: 39; right: 16px; bottom: calc(82px + var(--zs-abajo) + 10px); left: 16px; width: auto; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
  .app-body .client-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding-inline: 12px; }
  .app-body .client-meta { display: inline-flex !important; }
  .app-body .client-meta time { display: none; }
  .app-body .client-card { display: none; }
  .app-body .cash-kpis { grid-template-columns: 1fr 1fr; }
  .app-body .cash-kpis article { padding: 14px; }
  .app-body .cash-kpis article:nth-child(3) { border-left: 0; }
  .app-body .cash-kpis article:nth-child(n+3) { border-top: 1px solid var(--app-line); }
  .app-body .cash-kpis strong { font-size: 24px; }
  .app-body .chart-panel { min-height: 0; padding: 18px; }
  .app-body .ranking { gap: 14px; margin-top: 20px; }
  .app-body .cash-periods { grid-column: 1 / -1; justify-self: start; }
  .app-body .cash-page .app-topbar { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .app-body .cash-page .app-actions { width: 100%; }
  .app-body .cash-page { padding-bottom: calc(82px + var(--zs-abajo)); }
  .app-body .billing-card, .app-body .account-card { align-items: stretch; flex-direction: column; }
  .app-body .account-card > div:last-child { display: grid; }
  .app-body .sound-set { grid-template-columns: 1fr; }
  .app-body .sound-set .app-button { width: 100%; }
  .app-body .block-form { grid-template-columns: 1fr 1fr; }
  .app-body .block-form .block-note { grid-column: 1 / -1; }
  .app-body .block-row, .app-body .affected-row { align-items: stretch; flex-direction: column; }
  .app-body .affected-row > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .app-body .modal-shell { place-items: end stretch; padding: 0; }
  .app-body .modal { width: 100%; max-height: calc(100dvh - 24px); padding: 16px 18px calc(16px + var(--zs-abajo)); border-radius: 20px 20px 0 0; animation: hoja 260ms var(--app-ease) both; }
  .app-body .modal:has(.walk-in-start), .app-body .modal:has(.walk-in-arrival) { max-height: calc(100dvh - 12px); overflow-y: auto; padding-bottom: calc(32px + var(--zs-abajo)); overscroll-behavior: contain; }
  .app-body .modal-shell:has([data-appointment-action]) { place-items: end stretch; padding: 0; }
  .app-body .modal:has([data-appointment-action]) { width: 100%; height: auto; max-height: calc(100dvh - 24px); padding: 16px 18px calc(16px + var(--zs-abajo)); border: 1px solid var(--app-line-2); border-radius: 20px 20px 0 0; }
  .app-body .appointment-drawer .modal { width: 100%; }
  .app-body .modal::before { content: ''; justify-self: center; width: 36px; height: 4px; border-radius: 4px; background: #525252; }
  .app-body .two-fields { grid-template-columns: 1fr; }
  .app-body .modal-form .charge-services.compact { grid-template-columns: 1fr 1fr; }
  .app-body .capture-summary { grid-template-columns: 1fr; }
  .app-body .capture-summary input, .app-body .capture-summary select, .app-body .capture-summary .localized-date > span, .app-body .capture-summary .localized-time > span { font-size: 14px; }
  .app-body .capture-entry-actions { display: grid; }
  .app-body .calendar-hint { display: none; }
  .app-body .table-wrap:has(.settings-table) { overflow: visible; border: 0; background: transparent; }
  .app-body .settings-table, .app-body .settings-table tbody { display: grid; gap: 8px; width: 100%; }
  .app-body .settings-table thead { display: none; }
  .app-body .settings-table tr { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 12px; border: 1px solid var(--app-line); border-radius: 11px; background: #141516; }
  .app-body .settings-table td { display: grid; gap: 4px; min-width: 0; padding: 0; border: 0; white-space: normal; }
  .app-body .settings-table td:first-child { grid-row: 1 / 3; align-content: center; justify-items: center; }
  .app-body .settings-table td:nth-child(2) { grid-column: 2 / 4; }
  .app-body .settings-table td:nth-child(3)::before { content: 'Precio'; color: var(--fg-3); font-size: 11px; }
  .app-body .settings-table td:nth-child(4)::before { content: 'Minutos'; color: var(--fg-3); font-size: 11px; }
  .app-body .settings-table input[data-field=name], .app-body .settings-table input[type=number] { width: 100%; min-width: 0; }
  .app-body .toast { bottom: calc(96px + var(--zs-abajo)); }
  .app-body .asistente-flotante { right: 18px; bottom: calc(94px + var(--zs-abajo)); width: 44px; min-height: 44px; }
  .app-body:has(.calendar-shell.is-scrolled) .asistente-flotante { opacity: 0; pointer-events: none; transform: translateY(10px); }
  .app-body:has(.week-calendar-real.is-scrolled) .asistente-flotante { opacity: 0; pointer-events: none; transform: translateY(10px); }
  .app-body:has(.charge-page) .asistente-flotante, .app-body:has(.modal-shell) .asistente-flotante { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .app-body *, .app-body *::before, .app-body *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

.app-body .mobile-tabs, .app-body .app-sidebar, .app-body .calendar-slot, .app-body .modal-actions, .app-body button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.app-body input, .app-body textarea { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

/* Vuelta 6 · profundidad, controles y densidad final */
.login-screen, .pin-setup-screen {
  background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, .045), transparent 30rem), var(--bg);
}
.login-panel { position: relative; }
.login-panel label:focus-within { color: var(--fg); }
.login-footer { margin: 18px 0 0; color: var(--fg-4); font-size: 11px; text-align: center; }
.install-help summary { display: flex; align-items: center; gap: 7px; list-style: none; }
.install-help summary::-webkit-details-marker { display: none; }
.install-help summary > span { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--borde-2); border-radius: 6px; font-size: 13px; }
.pin-entry { position: relative; display: block; width: min(232px, 100%); height: 56px; margin-inline: auto; }
.pin-entry > input, #pinInput, .pin-setup-card .pin-entry > input { position: absolute; z-index: 2; inset: 0; width: 100%; min-height: 56px; padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; opacity: .01; }
.pin-boxes { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 52px); justify-content: space-between; gap: 8px; }
.pin-boxes i { position: relative; display: grid; place-items: center; width: 52px; height: 56px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 9px; background: #141516; }
.pin-boxes i.filled::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--fg-2); }
.pin-entry.focused .pin-boxes { border-radius: 11px; outline: 2px solid rgba(255, 255, 255, .78); outline-offset: 3px; }

.app-body .week-slot { left: calc(3px + var(--week-left) * 1%); width: calc(var(--week-width) * 1% - 6px); box-shadow: none; }
.app-body .week-slot.status-started, .app-body .week-slot:hover, .app-body .week-slot:focus-visible { z-index: 9; }
.app-body .week-slot .slot-service { font-size: 11px; }

.app-body .modal-submit { position: sticky; z-index: 3; bottom: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; flex: none; margin: 0 -2px; padding: 12px 2px 0; border-top: 1px solid var(--app-line); background: #0F1011; box-shadow: 0 -16px 24px #0F1011; }
.app-body .modal:has(#newAppointment) { overflow: hidden; }
.app-body .sheet-close:focus:not(:focus-visible) { outline: none; }
.app-body .modal-submit > span { color: var(--fg-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.app-body .modal-submit .modal-primary { position: static; width: auto; min-width: 180px; min-height: 48px; box-shadow: none; }

.app-body .charge-service { border-left: 2px solid transparent; }
.app-body .charge-service.active { border-left-color: var(--fg); background: #141516; }
.app-body .service-check { width: 20px; height: 20px; }
.app-body .money-input { position: relative; display: block; }
.app-body .money-input i { position: absolute; z-index: 1; left: 12px; top: 50%; color: var(--fg-3); font-style: normal; transform: translateY(-50%); }
.app-body .money-input input { padding-left: 25px; appearance: textfield; }
.app-body .money-input input::-webkit-inner-spin-button, .app-body .money-input input::-webkit-outer-spin-button { display: none; margin: 0; appearance: none; }
.app-body .tip-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 12px; }
.app-body .tip-quick button { min-height: 44px; border: 1px solid var(--app-line); border-radius: 8px; background: #141516; color: var(--fg-2); font-size: 12px; }
.app-body .payment-methods button { color: var(--fg-2); }
.app-body .payment-methods button.active { border-color: var(--fg); background: #F7F8F8; color: #08090A; }

.app-body .charge-guide { width: min(720px, 100%); margin-inline: auto; overflow: hidden; }
.app-body .charge-progress { height: 3px; background: var(--app-line); }
.app-body .charge-progress i { display: block; width: calc(var(--charge-progress) * 100%); height: 100%; background: var(--fg); transition: width 240ms var(--app-ease); }
.app-body .charge-guide-head { padding: 22px 22px 14px; }
.app-body .charge-guide-head > span { color: var(--fg-4); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.app-body .charge-guide-head h2 { margin: 5px 0 0; font-size: clamp(24px, 4vw, 36px); letter-spacing: -.045em; }
.app-body .charge-guide-head p { margin: 6px 0 0; color: var(--fg-3); }
.app-body .charge-guide-body { padding: 0 22px 22px; }
.app-body .charge-options { display: grid; gap: 8px; }
.app-body .charge-option { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; min-height: 64px; padding: 12px 14px; border: 1px solid var(--app-line); border-radius: 11px; background: #141516; color: var(--fg); text-align: left; }
.app-body .charge-option:hover, .app-body .charge-option:focus-visible { border-color: var(--app-line-2); background: #1B1C1E; }
.app-body .charge-option > span { display: grid; gap: 3px; }
.app-body .charge-option small { color: var(--fg-3); }
.app-body .charge-option.secondary { border-style: dashed; }
.app-body .tip-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-body .tip-options .charge-option { min-height: 74px; }
.app-body .tip-choice-group { display: grid; gap: 8px; }
.app-body .tip-choice-group + .tip-choice-group { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--app-line); }
.app-body .tip-choice-group > span { color: var(--fg-3); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.app-body .tip-direct-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-body .tip-choice-group--direct .charge-option { border-style: dashed; background: transparent; }
.app-body .tip-choice-group--direct .charge-option:hover, .app-body .tip-choice-group--direct .charge-option:focus-visible { border-style: solid; }
.app-body .direct-tip-field { display: grid; gap: 8px; max-width: 360px; }
.app-body .direct-tip-field input { min-height: 52px; font-size: 24px; font-variant-numeric: tabular-nums; }
.app-body .charge-guide-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 22px 22px; border-top: 1px solid var(--app-line); }
.app-body .charge-guide-footer .button { width: 100%; min-height: 48px; }
.app-body .charge-total { padding: 14px 0 24px; font-size: clamp(48px, 9vw, 76px); font-weight: 700; letter-spacing: -.065em; }
.app-body .charge-total { color: var(--fg); }
.app-body .charge-breakdown { border-top: 1px solid var(--app-line); }
.app-body .charge-breakdown > div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; color: var(--fg-2); }
.app-body .payment-methods.guided { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.app-body .payment-methods.guided button { display: grid; place-items: center; gap: 2px; min-height: 64px; }
.app-body .payment-methods.guided button small { color: var(--fg-4); font-size: 10px; }
.app-body .payment-methods.guided button:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 600px) {
  .app-body .charge-guide-head, .app-body .charge-guide-body { padding-inline: 16px; }
  .app-body .charge-guide-footer { padding-inline: 16px; }
  /* El botón Cobrar va fijo abajo (left/right 16px): el «width: 100%» del pie lo empujaba fuera de la pantalla. */
  .app-body .charge-guide-footer .confirm-charge { width: auto; }
  .app-body .tip-options, .app-body .tip-direct-options { grid-template-columns: 1fr; }
}

.app-body .client-meta { display: flex !important; align-items: center; gap: 8px; }
.app-body .client-meta time { color: var(--fg-3); font-size: 12px; }
.app-body .client-tag { display: inline-flex; align-items: center; gap: 5px; color: var(--fg-2); font-size: 11px; font-style: normal; }
.app-body .client-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #8A8F98; }
.app-body .client-tag.new::before { background: #4CB782; }
.app-body .client-tag.danger::before { background: #EB5757; }
.app-body .client-card { border-color: var(--app-line-2); background: #0F1011; box-shadow: 0 24px 60px -38px rgba(0, 0, 0, .9); }

.app-body .team-page { display: grid; gap: 18px; }
.app-body .team-invite, .app-body .team-list, .app-body .team-cashiers { padding: 22px; }
.app-body .team-invite { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(420px, 1.25fr); gap: 28px; align-items: start; }
.app-body .team-invite h2, .app-body .team-list h2, .app-body .team-cashiers h2 { margin: 3px 0 7px; font-size: 22px; letter-spacing: -.035em; }
.app-body .team-invite p, .app-body .team-cashiers p { margin: 0; color: var(--fg-3); line-height: 1.45; text-align: left; }
.app-body .team-invite form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(130px, .7fr) minmax(150px, .8fr); gap: 12px; align-items: end; }
.app-body .team-invite select, .app-body .team-cashiers select { min-height: 44px; }
.app-body .team-invite form .button, .app-body .team-invite form .form-error { grid-column: 1 / -1; }
.app-body .team-list { display: grid; gap: 4px; }
.app-body .team-person { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 76px; padding: 13px 0; border-top: 1px solid var(--app-line); }
.app-body .team-person:first-of-type { margin-top: 12px; }
.app-body .team-person > div:nth-child(2) { display: grid; gap: 3px; }
.app-body .team-person span, .app-body .team-person small { color: var(--fg-3); }
.app-body .team-person-actions { display: flex; gap: 8px; }
.app-body .team-cashiers { display: grid; grid-template-columns: minmax(240px, .8fr) repeat(2, minmax(180px, .6fr)); gap: 18px; align-items: end; }
.app-body .team-invite-result, .app-body .team-removal { display: grid; gap: 14px; }
.app-body .team-invite-result .qr-shell { width: min(300px, 100%); justify-self: center; }
.app-body .team-invite-result p, .app-body .team-removal p { margin: 0; color: var(--fg-2); line-height: 1.5; text-align: left; }
.app-body .team-removal label { margin-top: 6px; }

.app-body .cash-close-page { display: grid; gap: 18px; max-width: 1040px; }
.app-body .cash-close-filters { display: flex; flex-wrap: wrap; gap: 12px; }
.app-body .cash-close-filters label { display: grid; gap: 6px; min-width: 190px; }
.app-body .cash-close-filters input, .app-body .cash-close-filters select { min-height: 44px; }
.app-body .cash-close-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--app-line); border-radius: 14px; background: var(--app-panel); }
.app-body .cash-close-kpis article { display: grid; gap: 4px; padding: 20px; border-left: 1px solid var(--app-line); }
.app-body .cash-close-kpis article:first-child { border-left: 0; }
.app-body .cash-close-kpis small, .app-body .cash-close-kpis span, .app-body .cash-close-owner { color: var(--fg-3); }
.app-body .cash-close-kpis strong { font-size: 34px; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.app-body .cash-close-owner { margin: -6px 2px 0; }
.app-body .cash-close-owner.warning, .app-body .cash-close-pending { color: var(--peligro); }
.app-body .cash-close-pending { padding: 16px 18px; border: 1px solid rgba(242, 163, 163, .28); border-radius: 12px; background: rgba(242, 163, 163, .06); }
.app-body .cash-close-pending p { margin: 6px 0 0; color: var(--fg-2); }
.app-body .cash-close-status { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; }
.app-body .cash-close-status h2, .app-body .cash-close-history h2, .app-body .cash-close-form h2 { margin: 3px 0 5px; }
.app-body .cash-close-status p, .app-body .cash-close-form p { margin: 0; color: var(--fg-3); }
.app-body .cash-close-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr); gap: 18px; align-items: end; padding: 22px; }
.app-body .cash-close-form label { display: grid; gap: 7px; }
.app-body .cash-close-form input { min-height: 48px; }
.app-body .cash-close-difference { display: grid; gap: 4px; }
.app-body .cash-close-difference span { color: var(--fg-3); font-size: 12px; }
.app-body .cash-close-difference strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.app-body .cash-close-reason, .app-body .cash-close-form .form-error, .app-body .cash-close-form .button { grid-column: 1 / -1; }
.app-body .cash-close-history { padding: 20px; }
.app-body .cash-close-history > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; cursor: pointer; list-style: none; }
.app-body .cash-close-history > summary::-webkit-details-marker { display: none; }
.app-body .cash-close-history > summary span:first-child { display: grid; gap: 3px; }
.app-body .cash-close-history > summary span:last-child { color: var(--fg-3); font-size: 13px; }
.app-body .cash-close-history[open] > summary span:last-child { font-size: 0; }
.app-body .cash-close-history[open] > summary span:last-child::after { content: 'Ocultar'; font-size: 13px; }
.app-body .cash-close-history article { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--app-line); }
.app-body .cash-close-history article div { display: grid; gap: 2px; }
.app-body .cash-close-history span, .app-body .cash-close-history small { color: var(--fg-3); }

@media (max-width: 760px) {
  .app-body .team-invite, .app-body .team-cashiers { grid-template-columns: 1fr; }
  .app-body .team-invite form { grid-template-columns: 1fr; }
  .app-body .team-person { grid-template-columns: 44px minmax(0, 1fr); }
  .app-body .team-person-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .app-body .cash-close-page { gap: 12px; }
  .app-body .cash-close-page .app-topbar { margin-bottom: 2px; }
  .app-body .cash-close-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .app-body .cash-close-filters label { min-width: 0; }
  .app-body .cash-close-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-body .cash-close-kpis article { min-width: 0; padding: 13px 10px; border-left: 1px solid var(--app-line); }
  .app-body .cash-close-kpis article:first-child { border-left: 0; }
  .app-body .cash-close-kpis small, .app-body .cash-close-kpis span { font-size: 10px; line-height: 1.25; }
  .app-body .cash-close-kpis strong { margin-top: 3px; font-size: clamp(22px, 8vw, 30px); }
  .app-body .cash-close-owner { margin: 0 2px; }
  .app-body .cash-close-pending { padding: 13px 15px; }
  .app-body .cash-close-status { gap: 12px; padding: 16px; }
  .app-body .cash-close-form { grid-template-columns: 1fr; gap: 13px; padding: 16px; }
  .app-body .cash-close-form > div:first-child p:last-child { font-size: 13px; }
  .app-body .cash-close-history { padding: 14px 16px; }
  .app-body .cash-close-status { align-items: stretch; flex-direction: column; }
}

.app-body .rank-line { grid-template-columns: minmax(90px, 1fr) 3fr auto; }
.app-body .rank-line i { height: 4px; background: rgba(255, 255, 255, .85); }
.app-body .rank-line::before { content: ''; grid-column: 2; grid-row: 1; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.app-body .rank-line i { z-index: 1; grid-column: 2; grid-row: 1; }
.app-body .rank-line b { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.app-body .rank-line b small { color: var(--fg-3); font-size: 10px; font-weight: 400; }
.app-body .cash-kpis em { min-height: 17px; }

.app-body .more-numbers-page { max-width: 980px; }
.app-body .insight-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; margin-bottom: 18px; border: 1px solid var(--app-line); border-radius: 14px; background: var(--app-panel); }
.app-body .insight-kpis article { min-width: 0; padding: 18px 20px; border-left: 1px solid var(--app-line); }
.app-body .insight-kpis article:first-child { border-left: 0; }
.app-body .insight-kpis small, .app-body .insight-kpis span { display: block; color: var(--fg-3); font-size: 11px; }
.app-body .insight-kpis strong { display: block; margin: 9px 0 5px; font-size: clamp(30px, 4vw, 44px); font-weight: 600; line-height: .9; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.app-body .more-numbers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.app-body .more-numbers-grid .ranking { margin-top: 18px; }
.app-body .more-ticket { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: end; justify-self: start; width: min(100%, 520px); }
.app-body .more-ticket small, .app-body .more-ticket span { color: var(--fg-3); }
.app-body .more-ticket strong { grid-row: 2; margin-top: 7px; font-size: 38px; font-weight: 600; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.app-body .more-ticket span { grid-column: 2; grid-row: 2; padding-bottom: 3px; font-size: 12px; }
.app-body .more-page:has(.loyalty-card[open]) .settings-savebar { display: none; }
.app-body .more-page.has-savebar:has(.loyalty-card[open]) { padding-bottom: 24px; }
.app-body .settings-card > summary { scroll-margin-top: 8px; }
.app-body .loyalty-intro { display: grid; gap: 4px; padding-bottom: 2px; border-bottom: 1px solid var(--app-line); text-align: left; }
.app-body .loyalty-intro h2, .app-body .loyalty-intro p { margin: 0; }
.app-body .loyalty-intro h2 { font-size: 20px; letter-spacing: -.03em; }
.app-body .loyalty-intro p:last-child { padding-bottom: 14px; color: var(--fg-3); font-size: 13px; }
.app-body .loyalty-group { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--app-line); border-radius: 14px; background: rgba(255, 255, 255, .025); }
.app-body .loyalty-group-head { display: grid; gap: 3px; }
.app-body .loyalty-group h3, .app-body .loyalty-group p { margin: 0; }
.app-body .loyalty-group h3 { font-size: 15px; font-weight: 600; }
.app-body .loyalty-group p { color: var(--fg-3); font-size: 12px; }
.app-body .loyalty-gifts-head h3 { margin: 0; font-size: 15px; font-weight: 600; }

.app-body .more-section-label { margin: 24px 2px 8px; color: var(--fg-3); font-size: 11px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.app-body .mobile-appbar { background: #08090A; border-bottom: 1px solid var(--app-line); }

@media (min-width: 1200px) {
  .app-body .today-layout { min-height: calc(100dvh - 142px); grid-template-columns: minmax(340px, .72fr) minmax(600px, 1.35fr); align-items: center; gap: clamp(40px, 5vw, 84px); }
  .app-body .today-lead { width: 100%; max-width: 430px; justify-self: end; }
  .app-body .today-agenda { width: 100%; max-width: 760px; align-self: center; }
  .app-body .charge-page { display: grid; grid-template-columns: minmax(230px, .48fr) minmax(680px, 1.35fr); column-gap: clamp(44px, 6vw, 96px); align-items: start; }
  .app-body .charge-page .app-topbar { position: sticky; top: 8px; display: grid; align-content: start; }
  .app-body .charge-page .app-actions { justify-content: flex-start; }
  .app-body .charge-guide { width: 100%; margin: 0; }
  .app-body .cash-page { display: grid; grid-template-columns: 320px minmax(620px, 1fr); gap: 18px 26px; align-items: start; max-width: 1160px; }
  .app-body .cash-page .app-topbar { grid-column: 1 / -1; margin-bottom: 2px; }
  .app-body .cash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: start; margin: 0; }
  .app-body .cash-kpis article:nth-child(3) { border-left: 0; }
  .app-body .cash-kpis article:nth-child(n+3) { border-top: 1px solid var(--app-line); }
  .app-body .cash-charts { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 18px; }
  .app-body .more-numbers-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 220px; gap: 14px; }
  .app-body .more-numbers-page .insight-kpis { margin-bottom: 14px; }
  .app-body .more-numbers-page .insight-kpis article { padding: 16px; }
  .app-body .more-ticket { grid-column: auto; grid-template-columns: 1fr; justify-self: stretch; width: auto; min-height: 154px; align-content: center; }
  .app-body .more-ticket strong, .app-body .more-ticket span { grid-column: 1; grid-row: auto; }
  .app-body .more-ticket span { padding: 6px 0 0; }
  .app-body .more-page { max-width: 1040px; }
}

.reserva-intro { display: none; }
.wizard-actions { background: #0F1011; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 10px 26px rgba(0, 0, 0, .55); }

@media (min-width: 1100px) {
  .login-identity { margin-bottom: 32px; }
  .login-identity > .app-wordmark { min-height: 54px; padding-inline: 17px; font-size: 22px; }
  .login-panel { width: min(420px, 100%); padding: 32px; }
  .login-panel h1 { font-size: 26px; font-weight: 590; letter-spacing: -.035em; }
  .login-mode { margin-top: 6px; margin-bottom: 24px; }
  .login-panel form { gap: 17px; }
  .login-panel .button { min-height: 48px; }
  .reserva-body { background: radial-gradient(circle at 28% 34%, rgba(255, 255, 255, .055), transparent 28rem), radial-gradient(circle at 72% 8%, rgba(255, 255, 255, .025), transparent 24rem), var(--bg); }
  .reserva-cab, .reserva-pie, .reserva-body > main .booking-section { transform: translateX(220px); }
  .reserva-body > main { max-width: 100%; overflow-x: clip; }
  .reserva-intro { position: fixed; top: 50%; left: calc(50% - 520px); display: grid; gap: 8px; width: 300px; transform: translateY(-50%); }
  .reserva-intro > p { margin: 28px 0 0; color: var(--fg-3); font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
  .reserva-intro h1 { margin: 0; font-size: 38px; line-height: 1.06; letter-spacing: -.045em; }
  .reserva-intro ul { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; color: var(--fg-2); list-style: none; }
  .reserva-intro li { display: flex; align-items: center; gap: 9px; }
  .reserva-intro li::before { content: '✓'; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--borde-2); border-radius: 50%; color: var(--fg); font-size: 11px; }
}

@media (max-width: 600px) {
  .login-panel h1 { font-size: 24px; font-weight: 590; letter-spacing: -.035em; }
  .login-mode { margin-top: 6px; }
  .app-body .week-column.is-selected { padding-left: 8px; }
  .app-body .week-column.is-selected .week-slot { left: calc(8px + var(--week-left) * 1%); width: calc(var(--week-width) * 1% - 12px); }
  .app-body .week-slot .slot-name-full { display: none; }
  .app-body .week-slot .slot-name-short { display: inline; }
  .app-body .modal-submit { grid-template-columns: 1fr; }
  .app-body .modal-submit .modal-primary { width: 100%; }
  .app-body .modal:has(#newAppointment) { height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); }
  .app-body .rank-line, .app-body .ranking.is-compact .rank-line, .bar-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; }
  .app-body .rank-line > span, .bar-row > span { grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; }
  .app-body .rank-line::before, .app-body .rank-line i, .bar-row > i { grid-column: 1; grid-row: 2; min-width: 0; }
  .app-body .rank-line b, .bar-row > strong { grid-column: 2; grid-row: 2; white-space: nowrap; }
  .app-body .ranking.is-compact { max-width: none; }
  .app-body .insight-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-body .insight-kpis article { padding: 15px 14px; }
  .app-body .insight-kpis article:nth-child(3) { border-left: 0; }
  .app-body .insight-kpis article:nth-child(n+3) { border-top: 1px solid var(--app-line); }
  .app-body .insight-kpis strong { font-size: 32px; }
  .app-body .more-numbers-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .app-body .more-ticket { grid-column: 1; width: 100%; }
  .app-body .more-numbers-page .app-topbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .app-body .more-numbers-page .app-actions { display: flex; flex-wrap: wrap; width: 100%; }
  .app-body .more-page.has-savebar { padding-bottom: calc(157px + var(--zs-abajo)); }
  .app-body .sound-set { grid-template-columns: minmax(0, 1fr) auto; }
  .app-body .sound-set .app-button { width: auto; }
  .app-body .charge-page .app-topbar, .app-body .more-page .app-topbar { position: sticky; z-index: 15; top: 0; margin: 0; padding: 8px 0; background: #08090A; box-shadow: 0 -12px 0 #08090A, 0 1px 0 var(--app-line); }
  .app-body .more-page .app-topbar { min-height: 64px; max-height: 64px; align-items: center; }
  .app-body .loyalty-card[open] > summary { position: sticky; z-index: 14; top: 64px; background: var(--app-panel); box-shadow: 0 1px 0 var(--app-line); }
  .app-body .more-page .app-title h1 { margin-bottom: 3px; font-size: 25px; }
  .app-body .more-page .app-title p { line-height: 1.15; }
  .app-body .settings-savebar { right: 0; bottom: calc(82px + var(--zs-abajo)); left: 0; padding: 9px 14px; }
  .app-body .settings-savebar::before { content: none; }
  .app-body .confirm-charge { bottom: calc(82px + var(--zs-abajo)); }
  .app-body .now-line span { right: 12px; top: -23px; }
  .app-body .now-line.is-before-hours span { right: 12px; top: -20px; }
}
.app-body .toast { left: auto; right: 24px; transform: translateY(16px) scale(.98); }
.app-body .toast.is-visible { transform: none; }
@media (max-width: 760px) {
  .app-body .toast { right: 16px; bottom: calc(96px + var(--zs-abajo)); max-width: min(320px, calc(100vw - 32px)); }
}
.app-booting .login-screen { visibility: hidden; }

/* Bienvenida única después de crear la prueba de 14 días. */
.prueba14-abierta { overflow: hidden; }
.prueba14 {
  position: fixed;
  inset: 0;
  z-index: 750;
  overflow: hidden auto;
  background: linear-gradient(90deg, transparent 0 49.95%, rgba(255,255,255,.025) 50%, transparent 50.05%), var(--bg);
  color: var(--fg);
}
.prueba14__composicion {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(600px, 1.2fr);
  align-items: center;
  gap: clamp(32px, 6vw, 104px);
  min-height: 100dvh;
  padding: clamp(28px, 4vw, 68px);
}
.prueba14__marca { position: absolute; top: clamp(24px, 3vw, 48px); left: clamp(28px, 4vw, 68px); display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; }
.prueba14__marca img { width: 27px; height: 27px; }
.prueba14__espejo { position: relative; width: min(32vw, 450px); aspect-ratio: 1; margin-left: 2vw; border: 1px solid var(--borde-2); border-radius: 50%; box-shadow: inset 0 0 90px rgba(255,255,255,.025), 0 0 0 18px rgba(255,255,255,.018); }
.prueba14__espejo::after { content: ""; position: absolute; left: 50%; bottom: -13%; width: 1px; height: 25%; background: linear-gradient(var(--borde-2), transparent); transform: rotate(11deg); transform-origin: top; }
.prueba14__numero { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(9rem, 18vw, 18rem); font-weight: 760; line-height: .7; letter-spacing: -.105em; text-indent: -.08em; }
.prueba14__leyenda { position: absolute; right: -7%; bottom: 18%; width: 142px; color: var(--fg-2); font-size: 13px; line-height: 1.25; }
.prueba14__marca-dia { position: absolute; z-index: 2; top: 50%; left: 50%; width: 2px; height: 13px; border-radius: 2px; background: var(--fg); transform: translate(-50%, -50%) rotate(calc(var(--i) * 25.714deg)) translateY(calc(-1 * min(16vw, 216px))); transform-origin: center; opacity: .42; }
.prueba14__tarjeta { width: min(100%, 720px); justify-self: end; padding: clamp(28px, 3.3vw, 52px); border: 1px solid var(--borde); border-radius: 18px; background: var(--panel); box-shadow: 0 36px 90px -52px #000; }
.prueba14__estado { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--borde); color: var(--fg-3); font-size: 13px; }
.prueba14__estado strong { color: var(--fg); font-size: 15px; font-weight: 650; }
.prueba14 h1 { max-width: 620px; margin: 25px 0 14px; font-size: clamp(3.2rem, 5.8vw, 6.3rem); font-weight: 730; line-height: .88; letter-spacing: -.065em; }
.prueba14__entrada { max-width: 590px; margin: 0; color: var(--fg-2); font-size: clamp(15px, 1.2vw, 18px); }
.prueba14__avisos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin: 28px 0 26px; border-top: 1px solid var(--borde); }
.prueba14__aviso { min-width: 0; padding: 15px 0; border-bottom: 1px solid var(--borde); }
.prueba14__aviso > strong { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 650; }
.prueba14__aviso p { margin: 0; color: var(--fg-3); font-size: 12.5px; line-height: 1.42; }
.prueba14__aviso a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -14px; color: inherit; }
.prueba14__revisar { display: inline-block; margin-top: 7px; padding: 2px 6px; border: 1px solid var(--borde-2); border-radius: 5px; color: var(--fg-2); font-size: 10px; font-weight: 650; }
.prueba14__pie { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.prueba14__pie small { max-width: 340px; color: var(--fg-3); font-size: 11px; line-height: 1.35; }
.prueba14__pie .button { flex: none; min-height: 48px; }

@media (max-width: 900px) {
  .prueba14__composicion { display: block; min-height: 100dvh; padding: max(16px, var(--zs-arriba)) 16px max(16px, var(--zs-abajo)); }
  .prueba14__marca { position: static; margin: 0 4px 10px; }
  .prueba14__espejo { position: absolute; z-index: 1; top: 30px; right: 4px; width: 112px; margin: 0; opacity: .58; }
  .prueba14__numero { font-size: 5.7rem; }
  .prueba14__leyenda { display: none; }
  .prueba14__marca-dia { height: 7px; transform: translate(-50%, -50%) rotate(calc(var(--i) * 25.714deg)) translateY(-51px); }
  .prueba14__tarjeta { position: relative; z-index: 2; width: 100%; padding: 17px 18px 18px; border-radius: 16px; }
  .prueba14__estado { padding-bottom: 12px; }
  .prueba14 h1 { max-width: 280px; margin: 15px 0 8px; font-size: clamp(2.65rem, 12vw, 3.4rem); }
  .prueba14__entrada { max-width: 320px; font-size: 13px; line-height: 1.35; }
  .prueba14__avisos { grid-template-columns: 1fr 1fr; gap: 0 14px; margin: 14px 0; }
  .prueba14__aviso { padding: 8px 0; }
  .prueba14__aviso > strong { font-size: 11.5px; }
  .prueba14__aviso p { font-size: 10.5px; line-height: 1.3; }
  .prueba14__revisar { margin-top: 4px; font-size: 9px; }
  .prueba14__pie { align-items: stretch; flex-direction: column; gap: 10px; }
  .prueba14__pie small { max-width: none; font-size: 10px; }
  .prueba14__pie .button { width: 100%; }
}

@media (max-width: 370px) {
  .prueba14__avisos { grid-template-columns: 1fr; }
}

@media (max-height: 760px) and (min-width: 901px) {
  .prueba14__composicion { padding-block: 26px; }
  .prueba14__tarjeta { padding: 28px 34px; }
  .prueba14 h1 { margin-top: 18px; font-size: clamp(3rem, 5vw, 5rem); }
  .prueba14__avisos { margin-block: 18px; }
  .prueba14__aviso { padding-block: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .prueba14 *, .prueba14 *::before, .prueba14 *::after { animation: none !important; transition: none !important; }
}

/* A5 · corte de caja que cambió después del cierre (se anuló un cobro de ese día) */
.cash-close-changed { margin-top: 10px; padding: 10px 12px; border: 1px solid #8a6a1f; border-radius: 12px; background: rgba(214, 160, 40, .12); color: var(--fg); font-size: 14px; line-height: 1.4; }
.void-cash-warning { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(214, 160, 40, .12); }
/* Corrección lote 4 · citas de un barbero inactivo: siguen en la agenda, marcadas, hasta pasarlas a otro */
.barber-column.is-inactive { background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--fg-3) 8%, transparent) 10px 20px); }
.barber-column.is-inactive .barber-head small { color: var(--fg-3); }
.calendar-slot.is-inactive-barber, .week-slot.is-inactive-barber { outline: 1px dashed var(--fg-3); outline-offset: -2px; }
