/* Estilos de Turnito.
   El color de cada negocio llega en --accent (y --on-accent, el color del texto encima),
   y el fondo claro u oscuro en <html data-theme="light|dark">.
   Ideas del diseño:
   - Los grises se tiñen un poquito con el color del negocio, así cada página se siente propia.
   - Los botones son "teclas": tienen un borde abajo y se hunden al tocarlos.
   - La cita es un turno de papel (ticket) con su corte punteado.
   - Las rayas del poste de barbería marcan progreso y esperas. */
:root {
  --accent: #C2410C;
  --on-accent: #fff;
  --font-d: 'Bricolage Grotesque', 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-b: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bg: #0F1012;
  --bg-deep: #08090A;
  --surface: #1A1B1F;
  --surface-2: #25272C;
  --line: #33363C;
  --line-strong: #4A4E56;
  --text: #F5F4F2;
  --muted: #A8ABB3;
  --accent-text: #F0A27E;
  --accent-soft: #2B211D;
  --accent-deep: #7D2A08;
  --ok-bg: #143524;
  --ok-text: #A9E5C0;
  --bad-bg: #47201A;
  --bad-text: #FFC2B3;
  --warn-bg: #43310F;
  --warn-text: #FBDFA0;
  --paper: #FBFAF6;
  --ink: #1B1A18;
  --ink-muted: #6B6861;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .55);
  --radius: 18px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.22, 1, .36, 1);
  /* colores de las citas según cómo van (agenda del dueño y "Mi silla") */
  --st-pend: #3B82F6;  /* pendiente */
  --st-late: #F59E0B;  /* ya pasó la hora y nadie la cerró */
  --st-ok: #16A34A;    /* realizada */
  --st-bad: #DC2626;   /* no vino */
  --st-off: #8A8F98;   /* cancelada */
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #F4F4F6;
  --bg-deep: #E9E9EC;
  --surface: #FFFFFF;
  --surface-2: #ECECEF;
  --line: #DFDFE4;
  --line-strong: #BFC0C7;
  --text: #17181B;
  --muted: #5C5F69;
  --accent-text: #A8380A;
  --accent-soft: #FBEDE6;
  --accent-deep: #8A2E08;
  --ok-bg: #E2F4E9;
  --ok-text: #14532D;
  --bad-bg: #FBE1D9;
  --bad-text: #9A2B12;
  --warn-bg: #FCEFD2;
  --warn-text: #7A4803;
  --shadow: 0 1px 2px rgba(20, 20, 30, .06), 0 12px 28px -14px rgba(20, 20, 30, .22);
  color-scheme: light;
}
/* Con navegadores al día, los grises y los tonos del color salen del color del negocio. */
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --bg: color-mix(in srgb, var(--accent) 5%, #0E0F11);
    --bg-deep: color-mix(in srgb, var(--accent) 4%, #070809);
    --surface: color-mix(in srgb, var(--accent) 6%, #1A1B1F);
    --surface-2: color-mix(in srgb, var(--accent) 9%, #25272C);
    --line: color-mix(in srgb, var(--accent) 9%, #33363C);
    --line-strong: color-mix(in srgb, var(--accent) 12%, #4A4E56);
    --accent-text: color-mix(in srgb, var(--accent) 58%, #fff);
    --accent-soft: color-mix(in srgb, var(--accent) 16%, var(--surface));
    --accent-deep: color-mix(in srgb, var(--accent) 62%, #000);
    --paper: color-mix(in srgb, var(--accent) 4%, #FBFAF6);
  }
  :root[data-theme='light'] {
    --bg: color-mix(in srgb, var(--accent) 5%, #F5F5F7);
    --bg-deep: color-mix(in srgb, var(--accent) 8%, #E8E8EC);
    --surface: #FFFFFF;
    --surface-2: color-mix(in srgb, var(--accent) 7%, #EDEDF0);
    --line: color-mix(in srgb, var(--accent) 8%, #DFDFE4);
    --line-strong: color-mix(in srgb, var(--accent) 10%, #BFC0C7);
    --accent-text: color-mix(in srgb, var(--accent) 86%, #000);
    --accent-soft: color-mix(in srgb, var(--accent) 10%, #fff);
    --accent-deep: color-mix(in srgb, var(--accent) 70%, #000);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--font-b); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent-text); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a, label { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }

/* Rayas del poste de barbería: se mueven mientras algo carga. */
@keyframes poste { to { background-position: 22.63px 0; } }
.loading { color: var(--muted); text-align: center; padding: 28px 24px; font-weight: 600; }
.loading::after { content: ''; display: block; width: 84px; height: 8px; margin: 12px auto 0; border-radius: 99px; background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, var(--accent-soft) 8px 16px); background-size: 22.63px 100%; animation: poste .7s linear infinite; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.cap { text-transform: capitalize; margin: 0; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row.gap { gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.center-text { text-align: center; }

/* ---- la onda al tocar (la pone main.js con data-tap y la posición del dedo) ---- */
[data-tap] { position: relative; overflow: hidden; }
[data-tap]::after { content: ''; position: absolute; left: var(--tx, 50%); top: var(--ty, 50%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: currentColor; opacity: 0; pointer-events: none; animation: onda .5s var(--out); }
@keyframes onda { from { transform: scale(0); opacity: .22; } to { transform: scale(26); opacity: 0; } }

/* ---- estructura ---- */
.screen { max-width: 500px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: 8px; background: var(--bg); }
.screen.center { justify-content: center; }
.hero { position: relative; padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 16px; background: var(--surface); border-radius: 0 0 28px 28px; box-shadow: var(--shadow); isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(120% 90% at 0% 0%, var(--accent-soft), transparent 62%); pointer-events: none; }
.hero.compact { padding-bottom: 16px; }
.body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand > div { min-width: 0; }
.brand-name { font-family: var(--font-d); font-size: 21px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.logo { display: inline-flex; align-items: center; justify-content: center; border-radius: 30%; background: var(--accent); color: var(--on-accent); font-family: var(--font-d); font-weight: 800; letter-spacing: -.02em; flex: none; object-fit: cover; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--accent-soft); }
.logo.big { width: 72px; height: 72px; font-size: 34px; margin: 0 auto; }
img.logo { background: #fff; }
.title { font-family: var(--font-d); font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
.title.xl { font-size: 34px; }
.subtitle { margin-top: 10px; font-family: var(--font-d); font-size: 19px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
.label { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--muted); }
.powered { text-align: center; color: var(--muted); font-size: 12.5px; margin: 18px 0 10px; }
.powered strong { font-family: var(--font-d); font-weight: 800; color: var(--text); }

/* pasos de la reserva: 1 Servicio · 2 Día y hora · 3 Tus datos */
.steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--muted); transition: color .3s; }
.steps li + li::before { content: ''; width: 14px; height: 3px; border-radius: 3px; background: var(--line); flex: none; transition: background .4s; }
.steps li.on { flex: 1; color: var(--text); }
.steps li.on::after { content: ''; flex: 1; min-width: 10px; height: 8px; border-radius: 99px; background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, var(--accent-soft) 8px 16px); background-size: 22.63px 100%; animation: poste 1.4s linear infinite; }
.steps li.done + li::before, .steps li.on::before { background: var(--accent); }
.step-n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); font-family: var(--font-d); font-size: 13.5px; font-weight: 800; transition: background .3s, color .3s, transform .4s var(--spring); }
.steps li.on .step-n { background: var(--accent); color: var(--on-accent); transform: scale(1.12); }
.steps li.done .step-n { background: var(--accent-soft); color: var(--accent-text); }
.steps li:not(.on) .step-l { display: none; }
@media (min-width: 400px) { .steps li.done .step-l { display: inline; } }

/* cada paso entra deslizándose: hacia adelante desde la derecha, hacia atrás desde la izquierda */
.paso { animation: paso-entra .38s var(--out) both; }
.paso.atras { animation-name: paso-vuelve; }
@keyframes paso-entra { from { opacity: 0; transform: translateX(28px); } }
@keyframes paso-vuelve { from { opacity: 0; transform: translateX(-28px); } }
@keyframes sube { from { opacity: 0; transform: translateY(10px); } }
@keyframes salta { 0% { transform: scale(.9); } 55% { transform: scale(1.07); } 100% { transform: scale(1); } }

/* ---- botones: teclas que se hunden ---- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 16px; border: 0; font-weight: 700; text-decoration: none; background: var(--surface-2); color: var(--text); box-shadow: 0 3px 0 var(--line); user-select: none; -webkit-user-select: none; transition: transform .1s var(--out), box-shadow .1s var(--out), background .2s, filter .2s; }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 var(--line); }
.btn.wide { width: 100%; }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--accent-deep); font-size: 17px; }
.btn.primary:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--accent-deep); }
.btn.primary:disabled { opacity: 1; background: var(--surface-2); color: var(--muted); box-shadow: 0 4px 0 var(--line); }
.btn.light { background: #fff; color: #17181B; box-shadow: 0 3px 0 #C9C9CF; }
.btn.ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line), 0 3px 0 var(--line); }
.btn.ghost:active:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--line), 0 0 0 var(--line); }
.btn.danger { background: var(--bad-bg); color: var(--bad-text); box-shadow: 0 3px 0 color-mix(in srgb, var(--bad-text) 35%, var(--bad-bg)); }
.btn.wa { background: var(--ok-bg); color: var(--ok-text); box-shadow: 0 3px 0 color-mix(in srgb, var(--ok-text) 30%, var(--ok-bg)); }
.btn.danger:active:not(:disabled), .btn.wa:active:not(:disabled), .btn.light:active:not(:disabled) { box-shadow: 0 0 0 transparent; }
.btn.split { justify-content: space-between; }
.btn.grow { flex: 1 1 0; flex-direction: row; text-align: center; }
.small-btn { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 13px; }
.btn.primary.small-btn { font-size: 14px; }
@media (hover: hover) { .btn:hover:not(:disabled) { filter: brightness(1.06); } }
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 14px; border: 0; background: var(--surface-2); color: var(--text); display: inline-flex; align-items: center; justify-content: center; transition: transform .15s var(--spring), background .2s; }
.icon-btn:active { transform: scale(.88); }
.link { font-weight: 700; padding: 8px; }
button.link { border: 0; background: none; padding: 0; min-height: 44px; color: var(--accent-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
button.link:disabled { opacity: .5; cursor: default; text-decoration: none; }
.link-btn { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--accent-text); font-weight: 700; font-size: 13.5px; cursor: pointer; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar, .days::-webkit-scrollbar, .people::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); white-space: nowrap; font-weight: 700; font-size: 14px; transition: transform .2s var(--spring), background .2s, color .2s, border-color .2s; }
.chip:active { transform: scale(.94); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---- servicios y personas ---- */
.list { display: flex; flex-direction: column; gap: 10px; }
.option { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 68px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; transition: transform .2s var(--spring), border-color .2s, background .25s, box-shadow .25s; }
.option:active { transform: scale(.975); }
.option.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1.5px var(--accent); }
.option > strong:last-child { font-family: var(--font-d); font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.option .grow strong { font-size: 16.5px; line-height: 1.25; }
/* casilla hecha a mano: se llena con el color y la palomita salta */
.option input, .hour-day input { -webkit-appearance: none; appearance: none; margin: 0; width: 26px; height: 26px; flex: none; border-radius: 9px; border: 2px solid var(--line-strong); background: var(--bg); display: inline-grid; place-content: center; cursor: pointer; transition: background .2s, border-color .2s, transform .3s var(--spring); }
.option input::after, .hour-day input::after { content: ''; width: 12px; height: 6px; border-left: 2.5px solid var(--on-accent); border-bottom: 2.5px solid var(--on-accent); transform: translateY(-1.5px) rotate(-45deg) scale(0); transition: transform .3s var(--spring); }
.option input:checked, .hour-day input:checked { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.option input:checked::after, .hour-day input:checked::after { transform: translateY(-1.5px) rotate(-45deg) scale(1); }
.people { display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 4px; margin: 0 -4px; scrollbar-width: none; }
.person { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 64px; border: 0; background: none; font-weight: 700; font-size: 13px; padding: 0; color: var(--muted); transition: color .2s; }
.person.on { color: var(--text); }
.avatar { position: relative; width: 60px; height: 60px; border-radius: 50%; background: var(--surface-2); color: var(--text); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 800; font-size: 17px; flex: none; transition: transform .3s var(--spring), box-shadow .2s, background .2s, color .2s; }
.person:active .avatar { transform: scale(.92); }
.person.on .avatar { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--accent); transform: scale(1.04); }
.person.on .avatar::after { content: ''; position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 0 0 2.5px var(--bg); animation: salta .35s var(--spring); }
.sheet .avatar { width: 48px; height: 48px; font-size: 15px; }

/* ---- días y horas ---- */
.days { display: grid; grid-auto-flow: column; grid-auto-columns: 62px; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin: 0 -2px; scrollbar-width: none; scroll-snap-type: x proximity; }
.day { height: 76px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; scroll-snap-align: start; transition: transform .25s var(--spring), background .2s, color .2s, border-color .2s, box-shadow .2s; }
.day .small { font-weight: 700; color: var(--muted); transition: color .2s; }
.day strong { font-family: var(--font-d); font-size: 22px; line-height: 1.1; font-weight: 800; }
.day:active:not(:disabled) { transform: scale(.93); }
.day.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 4px 0 var(--accent-deep); transform: translateY(-3px); }
.day.on .small { color: inherit; opacity: .85; }
.day:disabled { opacity: .38; background: transparent; border-style: dashed; }
.slot-group { display: flex; flex-direction: column; gap: 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.slot { height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-variant-numeric: tabular-nums; animation: sube .3s var(--out) both; animation-delay: calc(min(var(--i, 0), 14) * 22ms); transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.slot:active { transform: scale(.94); }
.slot.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 3px 0 var(--accent-deep); animation: salta .32s var(--spring); }
.slot.current { outline: 2px dashed var(--st-pend); outline-offset: -5px; }

/* ---- barra inferior: flota sobre la página ---- */
.bar { position: sticky; bottom: 0; z-index: 4; margin-top: auto; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: 0 -1px 0 var(--line), 0 -14px 32px -18px rgba(0, 0, 0, .5); }
.bar.inline { position: static; margin: 6px 0 0; padding: 16px; border-radius: 22px; box-shadow: inset 0 0 0 1.5px var(--line); }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; animation: sube .3s var(--out); }
.summary > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.summary > strong { font-family: var(--font-d); font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- formularios ---- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.field input, .field textarea, .field select { min-height: 54px; border-radius: 15px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 16px; font-weight: 600; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { padding: 14px 16px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; font-weight: 500; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.phone { display: flex; border: 1.5px solid var(--line); border-radius: 15px; overflow: hidden; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.phone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.phone > span { display: flex; align-items: center; padding: 0 14px; background: var(--surface-2); font-weight: 700; color: var(--muted); }
.phone input, .phone input:focus { border: 0; border-radius: 0; flex: 1; min-width: 0; box-shadow: none; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--surface); font-size: 14px; color: var(--muted); border: 0; text-align: left; margin: 0 20px; }
.note svg { flex: none; margin-top: 1px; color: var(--accent-text); }
.body .note, .sheet .note, .screen.owner .note { margin: 0; }
.note.ok { background: var(--ok-bg); color: var(--ok-text); font-weight: 600; }
.note.ok svg { color: inherit; }
.note.button { margin: 10px 20px 0; cursor: pointer; }
.alert { margin: 12px 20px 0; padding: 13px 16px; border-radius: 15px; background: var(--surface-2); font-size: 14.5px; animation: sube .3s var(--out); }
.body .alert, .sheet .alert, .admin .alert { margin: 0; }
.alert.error { background: var(--bad-bg); color: var(--bad-text); font-weight: 600; animation: tiembla .4s; }
.alert.warn { background: var(--warn-bg); color: var(--warn-text); font-weight: 600; }
.alert.ok { background: var(--ok-bg); color: var(--ok-text); font-weight: 600; }
@keyframes tiembla { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* ---- tarjetas y estados ---- */
.card { margin: 0 20px; background: var(--surface); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.screen.center .card { margin: 0; text-align: left; }
.card-title { font-family: var(--font-d); font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; font-size: 14.5px; }
.grid2 dt { color: var(--muted); font-size: 13px; }
.grid2 dd { margin: 2px 0 0; font-weight: 700; }
.grid2.fields { gap: 12px; }
.total { padding-top: 12px; border-top: 1.5px dashed var(--line); }
.total strong { font-family: var(--font-d); font-size: 20px; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok-text); }
.badge.bad { background: var(--bad-bg); color: var(--bad-text); }
.badge.warn { background: var(--warn-bg); color: var(--warn-text); }
.big-check { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; margin: 24px auto 0; }
.big-check.bad { background: var(--bad-bg); color: var(--bad-text); }
.actions { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.empty { padding: 30px 24px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-strong); border-radius: 20px; font-weight: 600; }

/* ---- el turno: la cita como ticket de papel ---- */
.turno-wrap { position: relative; margin: 0 20px; }
.turno { --corte: 96px; position: relative; background: var(--paper); color: var(--ink); border-radius: 22px; box-shadow: 0 2px 0 rgba(0, 0, 0, .12), 0 22px 40px -18px rgba(0, 0, 0, .55); }
.turno-franja { height: 12px; border-radius: 22px 22px 0 0; background: repeating-linear-gradient(-45deg, var(--accent) 0 9px, color-mix(in srgb, var(--accent) 22%, var(--paper)) 9px 18px); }
.turno.off .turno-franja { background: repeating-linear-gradient(-45deg, #9A9CA3 0 9px, #DCDCE0 9px 18px); }
.turno-main { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.turno-negocio { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 14px; color: var(--ink-muted); }
.turno-hora { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-d); font-weight: 800; letter-spacing: -.04em; line-height: .95; font-size: clamp(52px, 17vw, 68px); font-variant-numeric: tabular-nums; }
.turno-hora small { font-size: 18px; letter-spacing: 0; font-weight: 700; color: var(--ink-muted); }
.turno.off .turno-hora { text-decoration: line-through; text-decoration-thickness: 4px; color: var(--ink-muted); }
.turno-dia { font-family: var(--font-d); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.turno-dia::first-letter { text-transform: uppercase; }
.turno .grid2 dt { color: var(--ink-muted); }
.turno .badge { background: rgba(0, 0, 0, .07); color: var(--ink); }
.turno .badge.ok { background: #DDF1E4; color: #14532D; }
.turno .badge.bad { background: #FADFD6; color: #9A2B12; }
.turno .badge.ok::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #16A34A; }
/* el corte punteado con sus dos muescas */
.turno-corte { position: relative; height: 0; border-top: 2px dashed rgba(0, 0, 0, .2); margin: 0 18px; }
.turno-corte::before, .turno-corte::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.turno-corte::before { left: -29px; }
.turno-corte::after { right: -29px; }
.turno-pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 18px; font-weight: 600; font-size: 14.5px; color: var(--ink-muted); }
.turno-pie strong { font-family: var(--font-d); font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
/* al confirmar, el turno "se imprime": sale de una ranura */
.ranura { position: relative; z-index: 2; height: 16px; margin: 0 8px; border-radius: 99px; background: var(--bg-deep); box-shadow: inset 0 3px 5px rgba(0, 0, 0, .5), 0 1px 0 var(--line); }
.imprime { overflow: hidden; margin-top: -8px; padding: 0 0 44px; margin-bottom: -44px; }
.imprime .turno { animation: imprime 1.15s cubic-bezier(.3, .9, .35, 1) .25s both; border-radius: 4px 4px 22px 22px; }
.imprime .turno-franja { border-radius: 4px 4px 0 0; }
@keyframes imprime { 0% { transform: translateY(-102%); } 30% { transform: translateY(-68%); } 38% { transform: translateY(-68%); } 66% { transform: translateY(-30%); } 74% { transform: translateY(-30%); } 100% { transform: none; } }
/* la palomita se dibuja y salen papelitos del color del negocio */
.fiesta { position: relative; width: 88px; height: 88px; margin: 26px auto 0; }
.fiesta .big-check { position: relative; z-index: 1; width: 88px; height: 88px; margin: 0; animation: salta .55s var(--spring) both; box-shadow: 0 5px 0 var(--accent-deep); }
.fiesta .big-check path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: dibuja .45s var(--out) .3s forwards; }
@keyframes dibuja { to { stroke-dashoffset: 0; } }
.fiesta i { position: absolute; left: 50%; top: 50%; width: 9px; height: 14px; margin: -7px 0 0 -4px; border-radius: 3px; background: var(--c, var(--accent)); opacity: 0; animation: papelito 1.1s cubic-bezier(.15, .8, .3, 1) calc(.2s + var(--d, 0s)) both; }
.fiesta i:nth-child(3n) { width: 10px; height: 10px; border-radius: 50%; }
.fiesta i:nth-child(4n) { width: 16px; height: 6px; }
@keyframes papelito { 0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); } }

/* ---- entrada con PIN ---- */
.dots { display: flex; justify-content: center; gap: 16px; padding: 4px 0; }
.dots span { width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--line-strong); transition: transform .3s var(--spring), background .15s, box-shadow .15s; }
.dots span.on { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); transform: scale(1.25); }
.dots.mal { animation: tiembla .4s; }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; max-width: 340px; width: 100%; margin: 0 auto; }
.key { position: relative; height: 62px; border-radius: 18px; border: 0; background: var(--surface-2); box-shadow: 0 4px 0 var(--line); font-family: var(--font-d); font-size: 26px; font-weight: 700; transition: transform .08s var(--out), box-shadow .08s var(--out), background .15s; }
.key:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--line); background: var(--accent-soft); }
.entrar { justify-content: center; }
.entrar .body { gap: 16px; }
.entrar form.col { display: flex; flex-direction: column; gap: 12px; }
.choose-biz { display: flex; flex-direction: column; gap: 10px; }
.brand-mark { display: block; flex: none; border-radius: 25%; box-shadow: 0 10px 28px -8px rgba(34, 211, 238, .45); }
.brand-mark.big { margin: 0 auto; animation: salta .6s var(--spring) both; }

/* ---- agenda del equipo ---- */
.day-nav { display: flex; align-items: center; gap: 8px; }
.today { flex: 1; min-height: 48px; border-radius: 16px; border: 0; background: var(--surface-2); transition: transform .15s var(--out); }
.today strong { font-family: var(--font-d); font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.today:active { transform: scale(.97); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats > div { background: var(--bg); border-radius: 16px; padding: 10px 12px 12px; display: flex; flex-direction: column; min-width: 0; }
.stats strong { font-family: var(--font-d); font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.appt { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 20px; min-height: 72px; border-radius: 18px; background: var(--surface); border: 0; box-shadow: inset 0 0 0 1.5px var(--line); width: 100%; text-align: left; overflow: hidden; animation: sube .35s var(--out) both; transition: transform .2s var(--spring), box-shadow .2s; }
button.appt:active { transform: scale(.98); }
.appt.st-pend, .legend-item.st-pend, .silla-timeline li.st-pend, .silla-list.all li.st-pend { --st: var(--st-pend); }
.appt.st-late, .legend-item.st-late, .silla-timeline li.st-late, .silla-list.all li.st-late { --st: var(--st-late); }
.appt.st-ok, .legend-item.st-ok, .silla-timeline li.st-ok, .silla-list.all li.st-ok { --st: var(--st-ok); }
.appt.st-bad, .legend-item.st-bad, .silla-timeline li.st-bad, .silla-list.all li.st-bad { --st: var(--st-bad); }
.appt.st-off, .legend-item.st-off, .silla-timeline li.st-off, .silla-list.all li.st-off { --st: var(--st-off); }
.appt[class*='st-'] { background: color-mix(in srgb, var(--st) 11%, var(--surface)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--st) 30%, var(--line)); }
.appt[class*='st-']::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--st); }
.appt.next { box-shadow: inset 0 0 0 2px var(--st), 0 10px 24px -14px var(--st); }
.appt.cancelled { opacity: .7; }
.appt.st-off .grow strong, .silla-timeline li.st-off strong, .silla-list.all li.st-off strong { text-decoration: line-through; }
.appt-time { width: 74px; flex: none; text-align: left; font-family: var(--font-d); font-weight: 800; font-size: 15px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.appt .grow strong { font-size: 16px; }
.appt.blocked { cursor: default; background: repeating-linear-gradient(-45deg, var(--surface) 0 10px, var(--surface-2) 10px 20px); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.appt.blocked .appt-time { font-size: 13px; }
.badge[class*='st-'] { color: var(--text); background: color-mix(in srgb, var(--st) 22%, transparent); }
.badge[class*='st-']::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--st); }
.badge.st-pend { --st: var(--st-pend); }
.badge.st-late { --st: var(--st-late); }
.badge.st-ok { --st: var(--st-ok); }
.badge.st-bad { --st: var(--st-bad); }
.badge.st-off { --st: var(--st-off); }
div.legend { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin: 0 0 2px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--surface); font-weight: 600; }
.legend-item i { width: 10px; height: 10px; border-radius: 4px; background: var(--st); display: inline-block; }
.legend-item strong { color: var(--text); font-variant-numeric: tabular-nums; }
.att-yes, .att-no { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 4px; }
.att-yes { background: color-mix(in srgb, var(--st-ok) 26%, transparent); color: inherit; }
.att-no { background: color-mix(in srgb, var(--st-bad) 26%, transparent); color: inherit; }
.affected { margin: 8px 0 0; padding-left: 18px; font-weight: 500; }

/* ---- hojas (ventanas desde abajo) ---- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; z-index: 10; animation: aparece .22s ease-out; }
@keyframes aparece { from { opacity: 0; } }
@keyframes hoja-sube { from { transform: translateY(60%); opacity: .4; } }
.sheet { position: relative; width: 100%; max-width: 500px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-radius: 28px 28px 0 0; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .6); animation: hoja-sube .42s var(--out); }
.sheet::before { content: ''; position: absolute; top: 9px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 99px; background: var(--line-strong); }
.sheet > * { flex-shrink: 0; }
@media (min-width: 720px) {
  .sheet-bg { align-items: center; padding: 24px; }
  .sheet { border-radius: 28px; max-height: 88vh; animation-name: hoja-crece; }
  .sheet::before { display: none; }
}
@keyframes hoja-crece { from { transform: scale(.94) translateY(12px); opacity: 0; } }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface-2); }
.seg button { min-height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; transition: background .2s, color .2s, transform .2s var(--spring), box-shadow .2s; }
.seg button:active { transform: scale(.95); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 -2.5px 0 var(--accent); }

/* ---- panel del dueño ---- */
.tabs { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px 12px; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.tabs.n2 { grid-template-columns: repeat(2, 1fr); }
.tabs.n5, .tabs.n6, .tabs.n7 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); overflow-x: auto; scrollbar-width: none; }
.tabs.n5::-webkit-scrollbar, .tabs.n6::-webkit-scrollbar, .tabs.n7::-webkit-scrollbar { display: none; }
.tabs button { min-height: 44px; white-space: nowrap; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-weight: 700; font-size: 14.5px; transition: background .25s, color .25s, transform .2s var(--spring); }
.tabs button:active { transform: scale(.94); }
.tabs button.on { background: var(--text); color: var(--bg); }
.screen.team .hero { margin: 4px 10px 0; border-radius: 26px; }
.screen.owner .body { gap: 12px; }
.screen.owner > .body { animation: sube .3s var(--out); }
.svc-row, .person-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 18px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); color: var(--text); transition: transform .2s var(--spring); }
button.svc-row:active { transform: scale(.98); }
.svc-row .grow, .person-row .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.svc-row.off, .person-row.off { opacity: .55; }
.svc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.svc-side strong { font-family: var(--font-d); font-size: 17px; font-variant-numeric: tabular-nums; }
.person-row { flex-wrap: wrap; }
.person-row .grow { flex: 1 1 160px; }
.person-row .avatar { flex: none; width: 48px; height: 48px; font-size: 15px; }
.person-actions { display: flex; gap: 8px; flex: 1 1 100%; }
.person-actions .btn { flex: 1; }
.hours { display: flex; flex-direction: column; gap: 8px; }
.hour-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 8px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); transition: opacity .2s; }
.hour-row.closed { opacity: .65; }
.hour-day { display: flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 700; font-size: 15px; cursor: pointer; }
.hour-times { display: flex; align-items: center; gap: 6px; flex: 1 1 210px; justify-content: flex-end; min-width: 0; }
.hour-times input { flex: 1 1 0; min-width: 0; max-width: 120px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); padding: 0 6px; font-size: 15px; }
.time-select { flex: 1 1 0; min-width: 0; max-width: 130px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); padding: 0 8px; font-size: 15px; font-weight: 600; }
.wide-times { justify-content: flex-start; }
.wide-times .time-select { max-width: none; }
/* interruptor */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; cursor: pointer; }
.switch-row .switch { display: none; }
.switch-row input { -webkit-appearance: none; appearance: none; position: relative; flex: none; margin: 0; width: 52px; height: 30px; border-radius: 99px; background: var(--line-strong); cursor: pointer; transition: background .25s; }
.switch-row input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .3s var(--spring); }
.switch-row input:checked { background: var(--accent); }
.switch-row input:checked::after { transform: translateX(22px); }
.rule { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.rule .seg button { min-height: 44px; font-size: 13px; padding: 0 2px; }
.link-box { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.link-box code { font-family: var(--font-d); font-size: 18px; font-weight: 800; overflow-wrap: anywhere; color: var(--accent-text); }
.silla-switch { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; font-size: 14px; white-space: nowrap; cursor: pointer; transition: transform .2s var(--spring); }
.silla-switch:active { transform: scale(.93); }

/* ---- bloquear horario, logo, QR, avisos, WhatsApp ---- */
.archived { background: var(--surface); border-radius: 20px; padding: 14px 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.archived summary { cursor: pointer; font-weight: 700; }
.archived[open] summary { margin-bottom: 12px; }
.archived .biz { margin-top: 10px; background: var(--bg); }
.biz.off { opacity: .85; }
.logo-picker { display: flex; flex-direction: column; gap: 10px; }
.logo-preview { width: 84px; height: 84px; border-radius: 26px; object-fit: cover; flex: none; border: 1.5px solid var(--line); background: #fff; }
.logo-preview.empty { display: inline-flex; align-items: center; justify-content: center; color: #fff; font: 800 30px var(--font-d); border: 0; }
.logo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
img.preview-logo { object-fit: cover; background: #fff; }
.push-banner { display: flex; align-items: center; gap: 12px; width: auto; margin: 12px 20px 0; padding: 13px 16px; border-radius: 16px; border: 0; background: var(--surface); color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; text-align: left; }
.silla-body .push-banner { margin: 0; }
.push-banner.action { cursor: pointer; color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); transition: transform .2s var(--spring); }
.push-banner.action:active { transform: scale(.98); }
.push-banner svg { flex: none; color: var(--accent-text); }
.push-banner.action svg { animation: campana 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes campana { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(14deg); } 84% { transform: rotate(-12deg); } 92% { transform: rotate(7deg); } }
.qr-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.qr-box { flex: none; padding: 10px; border-radius: 16px; background: #fff; line-height: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.qr-svg { display: block; }
.qr-side { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qr-card.compact { padding: 10px; gap: 12px; }
.wa-panel { display: grid; gap: 12px; }
.wa-qr { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.wa-qr ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; flex: 1; min-width: 200px; }
.wa-code { display: grid; gap: 8px; justify-items: start; }
.wa-code-txt { font-family: var(--font-d); font-weight: 800; font-size: 2rem; letter-spacing: .12em; padding: 8px 16px; border-radius: 14px; background: #fff; color: #111; border: 2px dashed currentColor; }

/* ---- reserva: "¿Ya tienes una cita?", código de WhatsApp y lista de citas ---- */
.mine-link { align-self: flex-start; font-size: 14px; }
.code-box { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-box span { height: 62px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-size: 30px; font-weight: 800; transition: box-shadow .15s, transform .25s var(--spring), background .2s; }
.code-box span.lleno { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); animation: salta .25s var(--spring); }
.code-box:focus-within span.ahora { box-shadow: inset 0 0 0 2.5px var(--accent), 0 0 0 4px var(--accent-soft); }
.code-box:focus-within span.ahora::after { content: ''; width: 2px; height: 28px; background: var(--accent); animation: parpadea 1s steps(2) infinite; }
@keyframes parpadea { 50% { opacity: 0; } }
.field .code-input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 0; text-align: left; box-shadow: none; opacity: .01; }
.field .code-input:focus { box-shadow: none; }
.appt-list { display: flex; flex-direction: column; gap: 10px; }
.appt-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 16px 16px 22px; border-radius: 18px; background: var(--paper); color: var(--ink); text-decoration: none; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s var(--spring); }
.appt-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: repeating-linear-gradient(-45deg, var(--accent) 0 6px, color-mix(in srgb, var(--accent) 22%, var(--paper)) 6px 12px); }
.appt-row:active { transform: scale(.98); }
.appt-row .grow { display: flex; flex-direction: column; gap: 3px; flex: 1 1 200px; min-width: 0; }
.appt-row .grow strong { font-family: var(--font-d); font-size: 17px; }
.appt-row .grow strong::first-letter { text-transform: uppercase; }
.appt-row .muted { color: var(--ink-muted); }
.appt-row .badge { background: rgba(0, 0, 0, .07); color: var(--ink); }
.appt-row .badge.ok { background: #DDF1E4; color: #14532D; }

/* "¿Vienes?" (Sí voy / No puedo) y lista de espera */
.card.attend { gap: 12px; margin-top: 16px; box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); animation: sube .4s var(--out) .2s both; }
.card.attend > strong { font-family: var(--font-d); font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.card.attend.yes { box-shadow: inset 0 0 0 2px var(--st-ok); background: var(--ok-bg); color: var(--ok-text); }
.card.attend.yes .muted { color: inherit; opacity: .85; }
.card.attend.yes > strong { animation: salta .45s var(--spring); }
.card.waitlist { gap: 10px; margin-top: 12px; }

/* ---------- dinero del equipo (Mi dinero y Resumen) ---------- */
.panel { background: var(--surface); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: inset 0 0 0 1.5px var(--line); }
.money .panel, .money .seg { margin: 0; }
.label-up { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.earned { background: var(--accent); color: var(--on-accent); box-shadow: 0 5px 0 var(--accent-deep); }
.earned .muted, .earned .label-up { color: inherit; opacity: .88; }
.earned .link-btn { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.earned .goal-track { background: color-mix(in srgb, var(--on-accent) 22%, transparent); }
.earned .goal-track span { background: var(--on-accent); }
.earned .up { color: inherit; }
.earned-total { font-family: var(--font-d); font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.goal { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.goal-track { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.goal-track span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .8s var(--out); }
.goal-track span.done { background: var(--ok-text); }
.goal-input { width: 110px; min-height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); padding: 0 10px; font-size: 16px; }
.quick-label { align-self: center; }
.up { color: var(--ok-text); font-weight: 700; }
.down { color: var(--bad-text); font-weight: 700; }
.txt-bad { color: var(--bad-text); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border-radius: 18px; padding: 13px 15px; display: flex; flex-direction: column; gap: 2px; min-width: 0; box-shadow: inset 0 0 0 1.5px var(--line); }
.kpi strong { font-family: var(--font-d); font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.money-lines, .team-money { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.money-lines li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1.5px dashed var(--line); }
.money-lines li:first-child { border-top: 0; }
.money-lines .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.money-time { width: 74px; flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.money-amt { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.team-money li { padding: 14px 0; border-top: 1.5px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.team-money li:first-child { border-top: 0; padding-top: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin: 0; font-size: 13px; }
.grid3 dt { color: var(--muted); }
.grid3 dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* =========================================================
   App del barbero ("Mi silla"): siempre oscura, grande y con barra abajo
   ========================================================= */
.silla {
  --bg: #0C0D0F; --bg-deep: #060607; --surface: #18191D; --surface-2: #232529; --line: #303338; --line-strong: #474A52;
  --text: #F5F4F2; --muted: #A0A4AD; --accent-text: #F0A27E; --accent-soft: #2B211D;
  --ok-bg: #143524; --ok-text: #A9E5C0; --bad-bg: #47201A; --bad-text: #FFC2B3; --warn-bg: #43310F; --warn-text: #FBDFA0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .55);
  --s-bg: var(--bg); --s-card: var(--surface); --s-card2: var(--surface-2); --s-line: var(--line); --s-text: var(--text); --s-muted: var(--muted);
  color-scheme: dark;
  max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
@supports (color: color-mix(in srgb, red, blue)) {
  .silla { --bg: color-mix(in srgb, var(--accent) 5%, #0B0C0E); --surface: color-mix(in srgb, var(--accent) 6%, #18191D); --surface-2: color-mix(in srgb, var(--accent) 9%, #232529); --line: color-mix(in srgb, var(--accent) 9%, #303338);
    --accent-text: color-mix(in srgb, var(--accent) 58%, #fff); --accent-soft: color-mix(in srgb, var(--accent) 17%, var(--surface)); }
}
html:has(.silla), body:has(.silla) { background: #0B0C0E; }
.silla-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 8px; }
.silla-avatar { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); font: 800 16px var(--font-d); flex: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--accent-soft); }
.silla-hello { font: 800 18px/1.2 var(--font-d); letter-spacing: -.015em; }
.silla-biz { margin-top: 3px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.silla-biz .logo { border-radius: 5px; box-shadow: none; }
.silla-pill { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 13.5px; white-space: nowrap; cursor: pointer; transition: transform .2s var(--spring); }
.silla-pill:active, .silla-icon:active { transform: scale(.92); }
.silla-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; transition: transform .2s var(--spring); }
.silla-body { display: flex; flex-direction: column; gap: 14px; padding: 8px 16px 16px; animation: sube .3s var(--out); }
.silla-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 9; width: max-content; max-width: min(92vw, 480px); transform: translateX(-50%); padding: 13px 18px; border-radius: 18px; background: var(--ok-text); color: #0C2417; font-weight: 700; font-size: 14.5px; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7); animation: aviso .45s var(--spring); cursor: pointer; }
@keyframes aviso { from { opacity: 0; transform: translate(-50%, 24px) scale(.9); } }
.silla .loading { padding: 30px 0; }

/* lo que lleva hoy */
.silla-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; border-radius: 28px; color: var(--on-accent); background: var(--accent); box-shadow: 0 6px 0 var(--accent-deep); overflow: hidden; isolation: isolate; }
.silla-hero::before { content: ''; position: absolute; z-index: -1; right: -40px; top: -20px; bottom: -20px; width: 190px; background: repeating-linear-gradient(-45deg, transparent 0 14px, color-mix(in srgb, var(--on-accent) 9%, transparent) 14px 28px); transform: skewX(-8deg); }
.silla-hero.alt { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.silla-hero.alt::before { display: none; }
.silla-hero-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.silla-k { font-size: 14px; font-weight: 700; opacity: .9; }
.silla-big { font-family: var(--font-d); font-size: clamp(40px, 12vw, 54px); line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.silla-sub { font-size: 13.5px; opacity: .92; }
.silla-goal { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 4px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--on-accent) 18%, transparent); color: inherit; font-weight: 700; font-size: 13px; text-align: left; cursor: pointer; transition: transform .2s var(--spring); }
.silla-goal:active { transform: scale(.95); }
.silla-goal-form { display: flex; gap: 6px; margin-top: 4px; }
.silla-goal-form input { width: 110px; height: 44px; border-radius: 12px; border: 0; padding: 0 10px; font-size: 16px; background: #fff; color: #111; }
.silla-goal-form button { height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: #17181B; color: #fff; font-weight: 700; }
.ring { flex: none; }
.ring circle { transition: stroke-dasharray 1.1s var(--out) .15s; }
.ring-txt { fill: currentColor; font: 800 24px var(--font-d); letter-spacing: -.02em; }

/* próximo cliente */
.silla-next { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.silla-next.now { box-shadow: inset 0 0 0 2px var(--accent); }
.silla-next .silla-k { display: flex; align-items: center; gap: 8px; color: var(--muted); opacity: 1; }
.silla-next.now .silla-k { color: var(--accent-text); }
.silla-next.now .silla-k::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: late 1.6s ease-out infinite; }
@keyframes late { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.silla-next-main { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.silla-time { font: 800 19px var(--font-d); letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.silla-time.small { width: 70px; flex: none; font-size: 14px; color: var(--muted); font-weight: 700; white-space: normal; line-height: 1.15; }
.silla-name { display: block; font-family: var(--font-d); font-size: 21px; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
.silla-svc { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.silla-note { display: block; font-size: 13px; color: var(--warn-text); margin-top: 4px; }
.silla-price { font-family: var(--font-d); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.silla-next-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.silla-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 52px; padding: 0 16px; border-radius: 16px; border: 0; background: var(--surface-2); color: var(--text); box-shadow: 0 3px 0 var(--line); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .1s var(--out), box-shadow .1s var(--out); }
.silla-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--line); }
.silla-btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--accent-deep); font-size: 16px; }
.silla-btn.primary:active { transform: translateY(4px); box-shadow: 0 0 0 var(--accent-deep); }
.silla-btn.wa { background: var(--ok-bg); color: var(--ok-text); box-shadow: 0 3px 0 color-mix(in srgb, var(--ok-text) 30%, var(--ok-bg)); }
.silla-btn.small { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 13px; }
.silla-next.empty { text-align: center; align-items: center; gap: 8px; padding: 26px 18px; border: 0; }

/* botones rápidos */
.silla-actions { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.silla-actions button { grid-column: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 10px 6px; border-radius: 20px; border: 0; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line), 0 3px 0 var(--line); font-weight: 700; font-size: 13.5px; line-height: 1.2; text-align: center; cursor: pointer; transition: transform .1s var(--out), box-shadow .1s var(--out); }
.silla-actions button > span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); transition: transform .3s var(--spring); }
.silla-actions button:active { transform: translateY(3px); box-shadow: inset 0 0 0 1.5px var(--line), 0 0 0 var(--line); }
.silla-actions button:active > span { transform: scale(1.15) rotate(-8deg); }
.silla-actions button:nth-child(4), .silla-actions button:nth-child(5) { grid-column: span 3; flex-direction: row; min-height: 62px; gap: 10px; }
.silla-actions button:nth-child(4) > span, .silla-actions button:nth-child(5) > span { width: 34px; height: 34px; border-radius: 12px; }

/* tarjetas y listas */
.silla-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.silla-card h2, .silla-h2 { font: 800 18px var(--font-d); letter-spacing: -.015em; }
.silla-chip { padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.silla-muted { color: var(--muted); font-size: 13.5px; }
.silla-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.silla-list:not(.all) li + li { border-top: 1.5px dashed var(--line); }
.silla-list button, .silla-line { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.silla-line { cursor: default; }
.silla-list .grow, .silla-timeline .grow { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.silla-list .grow span:not(.att-yes):not(.att-no), .silla-timeline .grow span:not(.att-yes):not(.att-no) { font-size: 13px; color: var(--muted); }
.silla-amt { font-family: var(--font-d); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ok-text); }
.silla-x { width: 44px; height: 44px; margin-right: -8px; border-radius: 12px; border: 0; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.silla-block { padding: 13px 16px; border-radius: 16px; background: repeating-linear-gradient(-45deg, var(--surface) 0 10px, var(--surface-2) 10px 20px); box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.silla-list.all { gap: 6px; }
.silla-list.all li button { position: relative; padding: 12px 12px 12px 18px; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--st, transparent) 13%, transparent); transition: transform .2s var(--spring); }
.silla-list.all li button::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--st); }
.silla-list.all li button:active, .silla-timeline button:active { transform: scale(.98); }

/* agenda del barbero */
.silla-days { display: grid; grid-auto-flow: column; grid-auto-columns: 60px; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; margin: 0 -2px; }
.silla-days::-webkit-scrollbar { display: none; }
.silla-days button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 74px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: transform .25s var(--spring), background .2s, border-color .2s, box-shadow .2s; }
.silla-days button span { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: capitalize; }
.silla-days button strong { font-family: var(--font-d); font-size: 21px; line-height: 1.1; font-weight: 800; }
.silla-days button:active { transform: scale(.93); }
.silla-days button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--accent-deep); transform: translateY(-3px); }
.silla-days button.on span { color: inherit; opacity: .88; }
.silla-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.silla-timeline li { animation: sube .35s var(--out) both; }
.silla-timeline button { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px 14px 14px 20px; border-radius: 18px; border: 0; overflow: hidden; background: color-mix(in srgb, var(--st, transparent) 14%, var(--surface)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--st, transparent) 30%, var(--line)); color: inherit; text-align: left; font: inherit; cursor: pointer; transition: transform .2s var(--spring); }
.silla-timeline button::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--st); }
.silla-timeline li.cancelled button { opacity: .65; }

/* ganancias */
.silla-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.silla-stats div { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); min-width: 0; }
.silla-stats span { font-size: 12.5px; color: var(--muted); }
.silla-stats strong { font-family: var(--font-d); font-size: 18px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.silla .chart-card .kpis { display: none; } /* los números ya están arriba */
.silla .chart-card .panel { background: none; box-shadow: none; padding: 0; }
.silla .chart .tick { fill: #9AA1AE; }
.silla .chart svg line { stroke: #2A2F3A; }
.silla .tip { background: #F4F5F7; color: #111; }
.silla .tip span { color: #444; }

/* barra de abajo: una isla que flota */
.silla-nav { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: calc(100% - 24px); max-width: 420px; z-index: 8; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 6px; border-radius: 26px; background: color-mix(in srgb, var(--surface-2) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1.5px var(--line), 0 16px 36px -10px rgba(0, 0, 0, .8); }
.silla-nav button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 52px; border: 0; border-radius: 20px; background: none; color: var(--muted); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: background .25s, color .25s; }
.silla-nav button span { display: inline-flex; transition: transform .35s var(--spring); }
.silla-nav button:active span { transform: scale(.8); }
.silla-nav button.on { color: var(--on-accent); background: var(--accent); }
.silla-nav button.on span { transform: scale(1.12) rotate(-6deg); }

/* anotar cobro */
.silla-sheet .silla-amount { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s; }
.silla-sheet .silla-amount:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.silla-sheet .silla-amount span { font: 800 22px var(--font-d); color: var(--muted); }
.silla-sheet .silla-amount input { width: 60%; border: 0; background: none; color: var(--text); font: 800 46px var(--font-d); letter-spacing: -.03em; text-align: center; outline: none; }
.silla-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.silla-quick button { min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .2s var(--spring), background .2s, border-color .2s; }
.silla-quick button:active { transform: scale(.93); }
.silla-quick button.on { border-color: var(--accent); background: var(--accent-soft); animation: salta .3s var(--spring); }

/* =========================================================
   Panel maestro (/maestro): la marca de Turnito, azul noche y cian.
   Se activa con <html class="tech">.
   ========================================================= */
:root.tech {
  --on-accent: #04131C !important;
  --bg: #080C15; --bg-deep: #04070D; --surface: #0F1624; --surface-2: #172134; --line: #212E45; --line-strong: #34445F;
  --text: #EAF0F9; --muted: #8E9DB5; --accent-text: #7FE3F5; --accent-soft: #10283A; --accent-deep: #0E7C8E;
  --ok-bg: #0E2E22; --ok-text: #7EE2A8; --bad-bg: #3A1B1F; --bad-text: #FFA3A3; --warn-bg: #3A2D0F; --warn-text: #FCD27A;
  color-scheme: dark;
}
.tech body { background: radial-gradient(1100px 520px at 88% -12%, rgba(34, 211, 238, .09), transparent 60%), var(--bg); background-attachment: fixed; }
.tech .screen { background: transparent; }
.mono { font-variant-numeric: tabular-nums; }
.mono-kicker { font-size: 12.5px; font-weight: 700; color: var(--accent-text); }
.admin { max-width: 1180px; margin: 0 auto; padding: 28px 16px 48px; display: flex; flex-direction: column; gap: 18px; }
.admin > .title { margin-top: 6px; }
.admin-top { position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "marca botones" "pestanas pestanas"; align-items: center; gap: 10px 12px; margin: -28px -16px 4px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1.5px solid var(--line); }
.admin-top > .row:first-child { grid-area: marca; }
.admin-top > .row:first-child p { display: none; }
.admin-top > .row:last-child { grid-area: botones; }
.admin-tabs { grid-area: pestanas; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button { flex: 1; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-weight: 700; font-size: 14.5px; white-space: nowrap; cursor: pointer; transition: background .25s, color .25s, transform .2s var(--spring); }
.admin-tabs button:hover { color: var(--text); }
.admin-tabs button:active { transform: scale(.95); }
.admin-tabs button.on { background: var(--accent); color: var(--on-accent); }
@media (min-width: 860px) {
  .admin-top { grid-template-columns: auto 1fr auto; grid-template-areas: "marca pestanas botones"; }
  .admin-tabs { justify-self: center; }
  .admin-tabs button { flex: none; }
  .admin-top > .row:first-child p { display: block; }
}
.live-pill { display: none; align-items: center; gap: 7px; margin-left: 6px; padding: 5px 11px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-text); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
@media (min-width: 560px) { .live-pill { display: inline-flex; } }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.tech-login { min-height: 100vh; }

.table-box { overflow-x: auto; background: var(--surface); border-radius: 20px; box-shadow: inset 0 0 0 1.5px var(--line); }
table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; padding: 14px 16px; border-bottom: 1.5px solid var(--line); }
td { padding: 14px 16px; border-bottom: 1px solid var(--surface-2); vertical-align: top; }
.actions-cell { display: flex; flex-wrap: wrap; gap: 6px; }
.msgs { display: flex; flex-direction: column; gap: 10px; }
.msg { background: var(--surface); border-radius: 18px; padding: 14px 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.msg p { margin: 8px 0; font-size: 14px; overflow-wrap: anywhere; }

/* negocios en tarjetas (se ve bien en teléfono y en PC) */
.biz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.biz { background: var(--surface); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .25s var(--out), box-shadow .25s; }
.biz .logo { box-shadow: none; }
.biz .grid2 { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); padding: 12px 14px; border-radius: 16px; background: var(--bg); }
@media (hover: hover) { .biz-list .biz:hover, .card-d:hover, button.tile:not(:disabled):hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--accent-deep), 0 18px 34px -20px rgba(0, 0, 0, .7); } }

/* crear / duplicar / editar */
.biz-form { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .biz-form { grid-template-columns: minmax(0, 1fr) 340px; } .biz-form-side { position: sticky; top: 16px; } }
.biz-form-main, .biz-form-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.field-msg { margin: -4px 0 0; font-size: 13px; font-weight: 600; }
.field-msg.bad { color: var(--bad-text); }
.field-msg.ok { color: var(--ok-text); }
.field.grow { flex: 1 1 220px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; outline: 1.5px solid var(--line); cursor: pointer; position: relative; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: var(--surface-2); transition: transform .25s var(--spring); }
.swatch:active { transform: scale(.88); }
.swatch.on { border-color: var(--surface); outline: 3px solid var(--text); transform: scale(1.1); }
.swatch.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.plan-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plan-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 8px; border-radius: 16px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--bg); text-align: center; font-size: 14px; cursor: pointer; transition: transform .2s var(--spring), box-shadow .2s, background .2s; }
.plan-card:active { transform: scale(.96); }
.plan-card.on { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.total-box { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--bg); font-size: 14px; }
.total-box .total { font-size: 16px; padding-top: 8px; }
.person-edit { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--bg); }
.tpl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.tpl { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.tpl strong { font-family: var(--font-d); font-size: 17px; }
.tpl .btn { margin-top: auto; }
.created .users { margin: 0; padding-left: 18px; }
.msg-preview { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: 14px; border-radius: 14px; background: var(--bg); font: inherit; font-size: 14px; }
.tpl-meta { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--bg); }
.tpl-meta code { font-weight: 700; overflow-wrap: anywhere; }
.tpl-meta ul { margin: 6px 0 0; padding-left: 18px; }
/* vista previa del negocio */
.preview { --p: #C2410C; border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: inset 0 0 0 1.5px var(--line), 0 20px 40px -24px rgba(0, 0, 0, .8); transition: background .3s, color .3s; }
.preview.dark { background: #131417; color: #F4F4F5; }
.preview.light { background: #FFFFFF; color: #18181B; }
.preview-head { display: flex; align-items: center; gap: 10px; }
.preview-head div { display: flex; flex-direction: column; font-family: var(--font-d); font-weight: 800; }
.preview-head span:not(.preview-logo) { font: 500 12px var(--font-b); opacity: .65; }
.preview-logo { width: 42px; height: 42px; border-radius: 30%; background: var(--p); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-d); font-weight: 800; transition: background .3s; }
.preview-q { font-family: var(--font-d); font-weight: 800; font-size: 17px; }
.preview-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.preview-chips span { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1.5px solid rgba(128, 128, 128, .35); }
.preview-chips span.on { background: var(--p); border-color: var(--p); color: #fff; transition: background .3s; }
.preview-row { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 14px; border: 1.5px solid rgba(128, 128, 128, .35); font-size: 14px; font-weight: 600; }
.preview-btn { background: var(--p); color: #fff; text-align: center; padding: 13px; border-radius: 14px; font-weight: 700; box-shadow: 0 4px 0 color-mix(in srgb, var(--p) 62%, #000); margin-bottom: 4px; transition: background .3s; }

/* resumen */
.dash { display: flex; flex-direction: column; gap: 18px; }
.dash-sub { margin-top: 10px; }
.hero-card { position: relative; display: grid; gap: 18px; padding: 24px; border-radius: 26px; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.hero-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: repeating-linear-gradient(-45deg, var(--accent) 0 9px, var(--accent-soft) 9px 18px); }
@media (min-width: 860px) { .hero-card { grid-template-columns: 1.2fr 2fr; align-items: center; padding-left: 34px; } }
.hero-main { display: flex; flex-direction: column; gap: 6px; padding-left: 8px; }
.hero-label { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.hero-value { font-family: var(--font-d); font-size: clamp(42px, 7vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hero-sub { font-size: 14px; color: var(--muted); }
.hero-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hero-side > div { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 18px; background: var(--bg); min-width: 0; }
.hero-side .hero-label { font-size: 12.5px; line-height: 1.25; }
.hero-side strong { font-family: var(--font-d); font-size: 21px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 559px) {
  .hero-side { grid-template-columns: 1fr; gap: 6px; }
  .hero-side > div { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l v" "s v"; align-items: center; column-gap: 10px; padding: 10px 14px; }
  .hero-side .hero-label { grid-area: l; font-size: 13px; }
  .hero-side strong { grid-area: v; font-size: 20px; }
  .hero-side .muted { grid-area: s; }
}
.delta { font-weight: 700; color: var(--muted); }
.delta.up { color: var(--ok-text); }
.delta.down { color: var(--bad-text); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 20px; background: var(--surface); border: 0; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--text); text-align: left; font: inherit; transition: transform .25s var(--out), box-shadow .25s; }
button.tile:not(:disabled) { cursor: pointer; }
button.tile:not(:disabled):active { transform: scale(.97); }
button.tile:disabled { opacity: 1; }
.tile-top { display: flex; align-items: center; gap: 8px; }
.tile-icon { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); font-size: 14px; }
.tile-label { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.tile-value { font-family: var(--font-d); font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile-hint { font-size: 12.5px; color: var(--muted); }
.tile.good .tile-icon { background: var(--ok-bg); color: var(--ok-text); }
.tile.warn .tile-icon { background: var(--warn-bg); color: var(--warn-text); }
.tile.bad .tile-icon { background: var(--bad-bg); color: var(--bad-text); }
.tile.bad .tile-value { color: var(--bad-text); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tiles.three .tile { padding: 12px; }
.tiles.three .tile-value { font-size: clamp(16px, 4.6vw, 28px); white-space: nowrap; }
.tiles.three .tile-label { font-size: 12px; }
@media (max-width: 380px) { .tiles.three { grid-template-columns: 1fr; } }

/* tarjetas con gráficas y listas */
.dash-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .dash-grid { grid-template-columns: 1fr 1fr; } .card-d.wide { grid-column: 1 / -1; } }
.card-d { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .25s var(--out), box-shadow .25s; }
.card-d > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.card-d h2 { font: 800 18px var(--font-d); letter-spacing: -.015em; }
.chart { position: relative; margin: 0; min-width: 0; }
.chart svg { display: block; overflow: visible; }
.chart svg path { transform-box: fill-box; transform-origin: 50% 100%; animation: crece .7s var(--out) both; }
@keyframes crece { from { transform: scaleY(0); } }
.chart .tick { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.tip { position: absolute; top: 0; transform: translateX(-50%); pointer-events: none; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 12.5px; white-space: nowrap; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); animation: sube .15s var(--out); }
.tip strong { font-family: var(--font-d); font-size: 15px; }
.tip span { opacity: .75; }
.as-table { margin-top: 6px; font-size: 13px; }
.as-table summary { color: var(--muted); cursor: pointer; font-size: 12.5px; }
.as-table table { width: 100%; min-width: 0; border-collapse: collapse; margin-top: 6px; }
.as-table td { padding: 5px 4px; border-bottom: 1px solid var(--line); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.statebar { display: flex; flex-direction: column; gap: 14px; }
.statebar-track { display: flex; gap: 3px; height: 20px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.statebar-track .seg-part { min-width: 6px; transition: opacity .12s; animation: ancho .7s var(--out) both; transform-origin: 0 50%; }
@keyframes ancho { from { transform: scaleX(0); } }
.statebar-track:hover .seg-part:not(.on) { opacity: .55; }
.statebar-empty { margin: auto; font-size: 12px; color: var(--muted); }
ul.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.legend li { display: grid; grid-template-columns: 10px 18px 1fr auto auto; align-items: center; gap: 8px; font-size: 14px; }
ul.legend li strong { font-variant-numeric: tabular-nums; }
ul.legend li .muted { min-width: 34px; text-align: right; }
ul.legend li.on { font-weight: 700; }
.card-d ul.legend li:not(:has(.legend-icon)) { grid-template-columns: 10px 1fr auto auto; }
.swatch-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.legend-icon { text-align: center; font-size: 13px; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hbars li { display: grid; grid-template-columns: 1fr; gap: 4px; }
.hbar-label { font-weight: 700; font-size: 14px; }
.hbar-track { display: flex; align-items: center; gap: 8px; }
.hbar { height: 14px; border-radius: 0 6px 6px 0; animation: ancho .7s var(--out) both; transform-origin: 0 50%; }
.hbar-val { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.biz-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.biz-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; border-top: 1.5px dashed var(--line); }
.biz-rows li:first-child { border-top: 0; padding-top: 0; }
.biz-rows .grow { display: flex; flex-direction: column; gap: 2px; flex: 1 1 140px; min-width: 0; }
.biz-rows .amount { font-family: var(--font-d); font-variant-numeric: tabular-nums; }
.biz-rows .logo { box-shadow: none; }
.row-actions { display: flex; gap: 8px; margin-left: auto; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: var(--bg); }
.mini-stats strong { font-family: var(--font-d); font-size: 24px; font-weight: 800; }
.mini-stats span { font-size: 12.5px; color: var(--muted); }

/* tabla de pagos */
.table-scroll { overflow-x: auto; margin: 0 -4px; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.pay-table th { text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); padding: 8px; border-bottom: 1.5px solid var(--line); }
.pay-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.pay-table tbody tr { transition: background .15s; }
@media (hover: hover) { .pay-table tbody tr:hover { background: var(--surface-2); } }
.pay-table tfoot td { border-bottom: 0; font-weight: 700; }
.pay-table th.num { text-align: right; }
.method { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 559px) {
  .tiles.three .tile-icon { display: none; }
  .tiles.three .tile-label { white-space: normal; }
  /* la tabla de pagos se vuelve una lista en el teléfono */
  .table-scroll { overflow: visible; margin: 0; }
  .pay-table { min-width: 0; }
  .pay-table thead { display: none; }
  .pay-table, .pay-table tbody, .pay-table tfoot { display: block; }
  .pay-table tr { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .pay-table td { border: 0; padding: 0; }
  .pay-table tbody td:nth-child(2) { grid-column: 1; grid-row: 1; }
  .pay-table tbody td:nth-child(4) { grid-column: 2; grid-row: 1; }
  .pay-table tbody td:nth-child(1) { grid-column: 1; grid-row: 2; font-size: 12.5px; color: var(--muted); }
  .pay-table tbody td:nth-child(3) { grid-column: 1; grid-row: 3; font-size: 13px; }
  .pay-table tbody td:nth-child(5) { grid-column: 2; grid-row: 2 / 4; font-size: 12px; color: var(--muted); text-align: right; align-self: start; }
  .pay-table tbody td:nth-child(5)::before { content: 'pagado hasta '; display: block; }
  .pay-table tfoot tr { border-bottom: 0; }
  .pay-table tfoot td:first-child { grid-column: 1; }
  .pay-table tfoot td:empty { display: none; }
}

/* ---- en pantallas grandes la página del cliente y la del equipo van en una columna con marco ---- */
@media (min-width: 720px) {
  html:not(.tech) body:has(.screen) { background: var(--bg-deep); }
  .screen { margin: 28px auto; min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px); border-radius: 34px; box-shadow: 0 0 0 1.5px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .6); overflow: clip; }
  .tech .screen { box-shadow: none; }
  .hero { border-radius: 34px 34px 28px 28px; }
  .silla { margin: 28px auto; min-height: calc(100vh - 56px); border-radius: 34px; box-shadow: 0 0 0 1.5px var(--line); }
  html:has(.silla), body:has(.silla) { background: #050506; }
}

/* ---- quien pidió menos movimiento: sin deslizamientos ni saltos ---- */
@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; }
  .loading::after, .steps li.on::after { animation: none !important; }
  [data-tap]::after, .fiesta i { display: none; }
}
.addr { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.addr svg { flex: none; }
.card.attend > strong svg { vertical-align: -3px; }
.silla-note svg, .silla-block svg { flex: none; vertical-align: -2px; }
.cita-turno { margin-top: 18px; animation: sube .45s var(--out) both; }
.cita-turno .turno { animation: salta .5s var(--spring); }
.turno .grid2 > div:first-child { grid-column: 1 / -1; }
.screen.team .hero { padding: 16px; gap: 14px; }
.screen.team .brand-name { font-size: 19px; }
.screen.team .brand { gap: 10px; }
.bar .row .btn { padding: 0 12px; font-size: 15px; white-space: nowrap; }
.bar .row .btn.primary { flex-grow: 1.2; font-size: 16px; }
.appt-time { white-space: nowrap; width: 84px; font-size: 14.5px; }
.appt.blocked .appt-time { white-space: normal; }
.hour-times .time-select { font-size: 14px; padding: 0 2px 0 8px; min-width: 100px; }
.btn svg, .silla-btn svg { flex: none; }
.appt-time, .silla-time.small, .silla-timeline .silla-time { display: flex; flex-direction: column; width: 58px; flex: none; white-space: nowrap; font-size: 17px; line-height: 1.1; }
.appt-time small, .silla-time small { font-family: var(--font-b); font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.silla-time.small { color: var(--text); }
.appt.blocked .appt-time { width: 62px; font-size: 13px; white-space: normal; }
.silla-top { flex-wrap: wrap; }
.silla-top > .row:first-child { flex: 1 1 200px; min-width: 0; }
.silla-top > .row:last-child { margin-left: auto; }

/* ---------- "Mi mes": lo que hizo cada uno en el mes ---------- */
@media (max-width: 400px) {
  .silla-nav button { flex-direction: column; gap: 2px; min-height: 54px; font-size: 12px; }
}
.mes { display: flex; flex-direction: column; gap: 14px; transition: opacity .25s; }
.mes.is-busy { opacity: .55; pointer-events: none; }
.mes-who { margin: 0 -2px; }
.mes-who .chip { display: inline-flex; align-items: center; gap: 6px; }
.mes-nav { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 6px; touch-action: pan-y; }
.mes-arrow { width: 48px; height: 48px; border-radius: 16px; border: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text); cursor: pointer; transition: transform .2s var(--spring), opacity .2s; }
.mes-arrow:active { transform: scale(.88); }
.mes-arrow:disabled { opacity: .3; cursor: default; }
.mes-title { display: flex; flex-direction: column; align-items: center; text-align: center; animation: mes-entra .45s var(--out); }
.mes-title strong { font: 800 22px/1.15 var(--font-d); letter-spacing: -.02em; }
.mes-title span { font-size: 13px; color: var(--muted); }
@keyframes mes-entra { from { opacity: 0; transform: translateX(calc(var(--dir, 0) * 36px)); } }

.mes-hero { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 16px; border-radius: 28px; color: var(--on-accent); background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--on-accent) 16%, var(--accent)) 0%, var(--accent) 55%, var(--accent-deep) 130%); box-shadow: 0 6px 0 var(--accent-deep), 0 22px 40px -22px var(--accent); overflow: hidden; isolation: isolate; animation: salta .5s var(--spring); touch-action: pan-y; }
.mes-hero::before { content: ''; position: absolute; z-index: -1; right: -50px; top: -30px; width: 200px; height: 140px; background: repeating-linear-gradient(-45deg, transparent 0 14px, color-mix(in srgb, var(--on-accent) 10%, transparent) 14px 28px); transform: skewX(-8deg); mask-image: linear-gradient(to bottom left, #000 30%, transparent 75%); -webkit-mask-image: linear-gradient(to bottom left, #000 30%, transparent 75%); }
.mes-k { font-size: 14px; font-weight: 700; opacity: .92; }
.mes-big { font-family: var(--font-d); font-size: clamp(40px, 12vw, 58px); line-height: 1; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.mes-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; background: color-mix(in srgb, var(--on-accent) 18%, transparent); }
.mes-pill.down { background: color-mix(in srgb, #000 22%, transparent); }
.mes-progress { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--on-accent) 22%, transparent); overflow: hidden; margin-top: 6px; }
.mes-progress span { display: block; height: 100%; border-radius: inherit; background: var(--on-accent); transform-origin: left; animation: mes-llena 1s .15s var(--out) both; }
@keyframes mes-llena { from { transform: scaleX(0); } }
.mes-sub { font-size: 13.5px; opacity: .92; }
.mes-sub strong { font-weight: 800; }
.mes-hist { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; height: 76px; margin-top: 8px; padding-top: 10px; border-top: 1.5px dashed color-mix(in srgb, var(--on-accent) 28%, transparent); }
.mes-hist-bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 4px; border: 0; padding: 0; background: none; color: inherit; cursor: pointer; }
.mes-track { position: relative; flex: 1; width: 100%; min-height: 0; }
.mes-hist-fill, .mes-wfill, .mes-hbar i { position: absolute; left: 0; right: 0; bottom: 0; }
.mes-hist-fill { height: var(--h); min-height: 4px; border-radius: 7px 7px 3px 3px; background: color-mix(in srgb, var(--on-accent) 32%, transparent); transform-origin: bottom; animation: mes-crece .7s calc(var(--i) * 60ms + .1s) var(--spring) both; transition: background .2s; }
.mes-hist-bar.on .mes-hist-fill { background: var(--on-accent); }
.mes-hist-bar:not(.on):hover .mes-hist-fill { background: color-mix(in srgb, var(--on-accent) 55%, transparent); }
.mes-hist-lbl { font-size: 11.5px; font-weight: 700; text-align: center; opacity: .85; text-transform: capitalize; }
.mes-hist-bar.on .mes-hist-lbl { opacity: 1; font-weight: 900; }
@keyframes mes-crece { from { transform: scaleY(0); } }

.mes-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .mes-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mes-tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); animation: sube .45s calc(var(--i) * 55ms) var(--out) both; }
.mes-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; min-height: 38px; }
.mes-tile-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.mes-tile-ico.ring-wrap { background: none; width: 38px; height: 38px; }
.mes-tile strong { font: 800 25px/1.1 var(--font-d); letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mes-tile-lbl { font-size: 13px; font-weight: 700; color: var(--muted); }
.mes-tile-note { font-size: 12px; color: var(--muted); }
.mes-ring { color: var(--accent-text); }
.mes-ring-arc { animation: mes-anillo 1s .2s var(--out) both; }
@keyframes mes-anillo { from { stroke-dasharray: 0 var(--c); } }
.mes-delta { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.mes-delta.up { background: var(--ok-bg); color: var(--ok-text); }
.mes-delta.down { background: var(--bad-bg); color: var(--bad-text); }
.mes-delta.flat { background: var(--surface-2); color: var(--muted); }

.mes-badges { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; margin: 0 -2px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mes-badges::-webkit-scrollbar { display: none; }
.mes-badge { flex: none; width: 150px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 20px; background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 35%, var(--line)); animation: mes-medalla .6s calc(var(--i) * 90ms + .2s) var(--spring) both; }
.mes-badge strong { font: 800 16px/1.2 var(--font-d); }
.mes-badge span:last-child { font-size: 12.5px; color: var(--muted); }
.mes-badge-ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 3px 0 var(--accent-deep); }
.mes-badge.b-record .mes-badge-ico { background: #F5B300; color: #2A1D00; box-shadow: 0 3px 0 #A67900; }
@keyframes mes-medalla { 0% { opacity: 0; transform: scale(.6) rotate(-8deg); } 100% { opacity: 1; transform: none; } }

.mes-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); animation: sube .45s .1s var(--out) both; }
.mes-h { font: 800 18px/1.2 var(--font-d); letter-spacing: -.015em; }
.mes-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); }
.mes-hint strong { color: var(--text); }
.mes-hint svg { color: var(--accent-text); }
.mes-seg { min-width: 180px; }
.mes-seg button { min-height: 36px; font-size: 13px; }

.mes-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.mes-cal-wd { text-align: center; font-size: 11.5px; font-weight: 800; color: var(--muted); padding-bottom: 2px; }
.mes-day { position: relative; aspect-ratio: 1; min-height: 38px; border: 0; border-radius: 11px; font: 700 13.5px var(--font-b); font-variant-numeric: tabular-nums; color: var(--text); background: color-mix(in srgb, var(--accent) var(--p), var(--surface-2)); cursor: pointer; transition: transform .2s var(--spring), box-shadow .2s, background .35s; animation: mes-pop .4s calc(var(--i) * 12ms) var(--out) both; }
.mes-day.strong { color: var(--on-accent); }
.mes-day:active { transform: scale(.88); }
.mes-day.future { background: transparent; color: var(--muted); opacity: .45; cursor: default; outline: 1.5px dashed var(--line); outline-offset: -1.5px; }
.mes-day.today { box-shadow: inset 0 0 0 2px var(--text); }
.mes-day.on { transform: scale(1.1); z-index: 1; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.mes-day.best::after { content: ''; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: #F5B300; box-shadow: 0 0 0 2px color-mix(in srgb, #000 25%, transparent); }
@keyframes mes-pop { from { opacity: 0; transform: scale(.6); } }
.mes-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 11.5px; color: var(--muted); }
.mes-legend i { width: 14px; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--accent) var(--p), var(--surface-2)); }
.mes-daybox { padding: 14px; border-radius: 18px; background: var(--surface-2); animation: salta .35s var(--spring); }
.mes-daybox strong { font: 800 16px var(--font-d); }
.mes-daybox dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; }
.mes-daybox dt { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.mes-daybox dd { margin: 0; font: 800 15px var(--font-d); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .mes-daybox dl { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; } }

.mes-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 150px; }
.mes-wbar { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; border: 0; padding: 0; background: none; color: var(--muted); cursor: pointer; }
.mes-wfill { height: var(--h); border-radius: 10px 10px 4px 4px; background: color-mix(in srgb, var(--accent) 35%, var(--surface-2)); transform-origin: bottom; animation: mes-crece .7s calc(var(--i) * 60ms) var(--spring) both; transition: background .25s, height .45s var(--out); }
.mes-wbar.on .mes-wfill { background: var(--accent); box-shadow: 0 4px 14px -4px var(--accent); }
.mes-wbar.on { color: var(--text); }
.mes-wlbl { font-size: 12px; font-weight: 800; text-align: center; }
.mes-hours { display: flex; align-items: flex-end; gap: 3px; height: 70px; margin-top: 8px; }
.mes-hbar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.mes-hbar i { height: var(--h); border-radius: 5px 5px 2px 2px; background: color-mix(in srgb, var(--accent) 30%, var(--surface-2)); transform-origin: bottom; animation: mes-crece .6s calc(var(--i) * 35ms + .2s) var(--out) both; }
.mes-hbar.on i { background: var(--accent); }
.mes-hbar small { font-size: 10px; color: var(--muted); font-weight: 700; }

.mes-team { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mes-team li { animation: sube .4s calc(var(--i) * 70ms) var(--out) both; }
.mes-team button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 6px; border: 0; border-radius: 16px; background: none; color: inherit; text-align: left; cursor: pointer; transition: background .2s, transform .2s var(--spring); }
.mes-team button:hover { background: var(--surface-2); }
.mes-team button:active { transform: scale(.98); }
.mes-team button > svg { color: var(--muted); flex: none; }
.mes-rank { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 900 13px var(--font-d); background: var(--surface-2); color: var(--muted); }
.mes-rank.r1 { background: #F5B300; color: #2A1D00; }
.mes-rank.r2 { background: #C9CED6; color: #1E2228; }
.mes-rank.r3 { background: #D08A55; color: #2B1405; }
.mes-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); font: 800 14px var(--font-d); }
.mes-team-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.mes-team-mid strong { font-size: 15px; }
.mes-team-bar { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.mes-team-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--accent); transform-origin: left; animation: mes-llena .9s .2s var(--out) both; }
.mes-team-sub { font-size: 12.5px; color: var(--muted); }

.mes-svc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mes-svc li { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--surface-2); overflow: hidden; isolation: isolate; animation: sube .4s calc(var(--i) * 70ms) var(--out) both; }
.mes-svc-bar { position: absolute; inset: 0 auto 0 0; z-index: -1; width: var(--w); background: color-mix(in srgb, var(--accent) 26%, transparent); border-radius: inherit; transform-origin: left; animation: mes-llena .9s calc(var(--i) * 70ms + .15s) var(--out) both; }
.mes-svc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mes-svc-txt strong { font-size: 14.5px; }
.mes-svc-txt span { font-size: 12.5px; color: var(--muted); }
.mes-svc-pct { font: 800 16px var(--font-d); font-variant-numeric: tabular-nums; }

.mes-cli { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mes-cli li { display: flex; align-items: center; gap: 12px; animation: sube .4s calc(var(--i) * 70ms) var(--out) both; }
.mes-cli .grow { display: flex; flex-direction: column; min-width: 0; }
.mes-cli strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mes-cli-sub { font-size: 12.5px; color: var(--muted); }
.mes-dots { display: inline-flex; align-items: center; gap: 4px; }
.mes-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.mes-dots b { font-size: 12px; color: var(--muted); }

.mes-skel { display: flex; flex-direction: column; gap: 12px; }
.mes-skel i { display: block; height: 70px; border-radius: 22px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: mes-brillo 1.2s linear infinite; }
.mes-skel i:nth-child(2) { height: 210px; }
.mes-skel i:nth-child(3) { height: 160px; }
@keyframes mes-brillo { to { background-position: -200% 0; } }

/* ---------- Clientes: ficha, lista, promociones, tarjeta de sellos ---------- */
.sheet.tall { min-height: 70vh; min-height: 70dvh; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.pill[class*='st-'] { color: var(--text); background: color-mix(in srgb, var(--st) 22%, transparent); }
.pill.st-pend { --st: var(--st-pend); } .pill.st-ok { --st: var(--st-ok); } .pill.st-bad { --st: var(--st-bad); } .pill.st-off { --st: var(--st-off); }
.pill.ok { background: var(--ok-bg); color: var(--ok-text); } .pill.bad { background: var(--bad-bg); color: var(--bad-text); } .pill.warn { background: var(--warn-bg); color: var(--warn-text); }
.ficha { display: flex; flex-direction: column; gap: 14px; animation: sube .35s var(--out); }
.ficha-top { display: flex; align-items: center; gap: 12px; }
.ficha-av { flex: none; width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); font: 800 18px var(--font-d); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--accent-soft); }
.ficha-av.sm { width: 42px; height: 42px; font-size: 14px; box-shadow: none; background: var(--accent-soft); color: var(--accent-text); }
.ficha-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ficha-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); text-align: center; animation: salta .45s var(--spring) both; }
.ficha-stats div:nth-child(2) { animation-delay: .05s; } .ficha-stats div:nth-child(3) { animation-delay: .1s; } .ficha-stats div:nth-child(4) { animation-delay: .15s; }
.ficha-stats strong { font: 800 16px/1.1 var(--font-d); font-variant-numeric: tabular-nums; }
.ficha-stats span { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.ficha-stats .bad strong { color: var(--bad-text); }
.ficha-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.ficha-facts li { display: flex; align-items: center; gap: 8px; }
.ficha-facts svg { flex: none; color: var(--accent-text); }
.ficha-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: linear-gradient(150deg, var(--accent-soft), var(--surface) 75%); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 30%, var(--line)); }
.ficha .row.gap select { min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); padding: 0 10px; font: 600 15px var(--font-b); }
.ficha-hist { list-style: none; margin: 0; padding: 0 0 0 6px; display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.ficha-hist li { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 0 10px 14px; animation: sube .35s calc(var(--i) * 40ms) var(--out) both; }
.ficha-hist li > .grow { display: flex; flex-direction: column; min-width: 0; }
.ficha-hist strong { font-size: 14px; }
.ficha-dot { position: absolute; left: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--st, var(--muted)); box-shadow: 0 0 0 3px var(--bg); }
.ficha-dot.st-ok { --st: var(--st-ok); } .ficha-dot.st-bad { --st: var(--st-bad); } .ficha-dot.st-off { --st: var(--st-off); } .ficha-dot.st-pend { --st: var(--st-pend); }
.ficha-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; font-variant-numeric: tabular-nums; }

.stamps { display: flex; flex-direction: column; gap: 10px; }
.stamps-grid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.stamp { aspect-ratio: 1; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 800 13px var(--font-d); color: var(--muted); border: 2px dashed var(--line-strong); background: var(--surface); animation: mes-pop .4s calc(var(--i) * 45ms) var(--out) both; }
.stamp.on { border: 0; background: var(--accent); color: var(--on-accent); box-shadow: 0 3px 0 var(--accent-deep); transform: rotate(-8deg); animation: sello .5s calc(var(--i) * 60ms) var(--spring) both; }
.stamp.prize:not(.on) { border-color: color-mix(in srgb, #F5B300 70%, var(--line)); font-size: 16px; }
.stamps.ready .stamp.prize { background: #F5B300; color: #2A1D00; box-shadow: 0 3px 0 #A67900, 0 0 0 4px color-mix(in srgb, #F5B300 30%, transparent); animation: sello .5s var(--spring) both, brilla 1.8s 1s ease-in-out infinite; }
.stamps.compact .stamps-grid { gap: 5px; }
.stamps.compact .stamp { font-size: 11px; border-width: 1.5px; }
.stamps-txt { font-size: 14px; }
@keyframes sello { 0% { transform: scale(1.8) rotate(10deg); opacity: 0; } 60% { transform: scale(.92) rotate(-10deg); opacity: 1; } 100% { transform: rotate(-8deg); } }
@keyframes brilla { 50% { box-shadow: 0 3px 0 #A67900, 0 0 0 9px color-mix(in srgb, #F5B300 18%, transparent); } }

.search { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 600 16px var(--font-b); outline: none; }
.chip-n { display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; align-items: center; justify-content: center; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.chip.on .chip-n { background: color-mix(in srgb, var(--bg) 22%, transparent); color: inherit; }
.cli-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cli-list li { animation: sube .35s calc(var(--i) * 30ms) var(--out) both; }
.cli-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); color: inherit; text-align: left; cursor: pointer; transition: transform .2s var(--spring), background .2s; }
.cli-list button:active { transform: scale(.98); }
.cli-list button > svg { color: var(--muted); flex: none; }
.cli-list .grow { display: flex; flex-direction: column; min-width: 0; }
.cli-list strong { font-size: 15px; }
.cli-tag { font-size: 13px; }
.wa-preview { align-self: flex-end; max-width: 88%; padding: 10px 12px 8px; border-radius: 16px 16px 4px 16px; background: #1F5C45; color: #E9FFF4; font-size: 14px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); white-space: pre-wrap; animation: salta .3s var(--spring); }
:root[data-theme='light'] .wa-preview { background: #D9FDD3; color: #111B21; }
.wa-preview p { margin: 0; }
.wa-preview .wa-foot { margin-top: 6px; font-size: 12px; opacity: .75; }
.camp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.camp-list li { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.camp-list p { margin: 0; }
.camp-bar { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.camp-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .6s var(--out); }

/* ---------- Cierre de caja ---------- */
.cierre-exp { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 18px; background: var(--surface-2); }
.cierre-exp strong { font: 800 32px/1.1 var(--font-d); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cierre-people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cierre-people li { display: inline-flex; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--surface-2); font-size: 13px; }
.cierre-diff { padding: 12px 16px; border-radius: 14px; font: 800 18px var(--font-d); text-align: center; animation: salta .3s var(--spring); }
.cierre-diff.ok { background: var(--ok-bg); color: var(--ok-text); }
.cierre-diff.warn { background: var(--warn-bg); color: var(--warn-text); }
.cierre-diff.bad { background: var(--bad-bg); color: var(--bad-text); animation: tiembla .4s; }
.cierre-hist summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); }
.cierre-hist ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.cierre-hist li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.silla-body .panel.cierre { background: var(--surface); }

/* ---------- Fila sin cita ---------- */
.fila-panel { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 45%, var(--line)); animation: sube .35s var(--out); }
.screen.team .fila-panel { margin: 12px 12px 0; }
.fila-h { display: inline-flex; align-items: center; gap: 8px; font: 800 16px var(--font-d); }
.fila-live { width: 9px; height: 9px; border-radius: 50%; background: var(--st-ok); box-shadow: 0 0 0 0 var(--st-ok); animation: fila-pulso 1.6s infinite; }
@keyframes fila-pulso { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--st-ok) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.fila-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fila-list li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 16px; background: var(--surface-2); animation: sube .3s var(--out); }
.fila-list li.called { box-shadow: inset 0 0 0 2px var(--accent); }
.fila-list .grow { display: flex; flex-direction: column; min-width: 0; }
.fila-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); font: 800 13px var(--font-d); }
.fila .body { gap: 16px; }
.fila-now { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fila-now div { display: flex; flex-direction: column; align-items: center; padding: 18px 10px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.fila-now strong { font: 800 40px/1 var(--font-d); letter-spacing: -.03em; color: var(--accent-text); }
.fila-now span { font-size: 13px; color: var(--muted); font-weight: 700; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.fila-turn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 20px; border-radius: 30px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); text-align: center; animation: salta .5s var(--spring); }
.fila-turn.called { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 0 var(--accent-deep), 0 30px 60px -20px var(--accent); }
.fila-turn-k { font-size: 15px; font-weight: 700; color: var(--muted); }
.fila-turn-big { font: 800 clamp(56px, 18vw, 84px)/1 var(--font-d); letter-spacing: -.05em; }
.fila-turn.called .fila-turn-big { animation: late-txt 1s ease-in-out infinite alternate; }
@keyframes late-txt { to { transform: scale(1.06); } }
.fila-dots { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.fila-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--line-strong); animation: mes-pop .35s calc(var(--i) * 60ms) var(--out) both; }
.fila-dots b { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }

/* ---------- Cobrar: premio y propina por transferencia ---------- */
.premio-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: color-mix(in srgb, #F5B300 16%, var(--surface)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #F5B300 50%, transparent); cursor: pointer; }
.premio-row input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin-top: 2px; }
.premio-row > span { display: flex; flex-direction: column; gap: 2px; }
.tip-claim { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; border-radius: 18px; background: var(--ok-bg); color: var(--ok-text); animation: salta .4s var(--spring); }
.tip-claim .grow { display: flex; flex-direction: column; min-width: 180px; }
.tip-claim-ico { font-size: 26px; }
.card.tip-card, .card.loyal-card, .card.bday-card { gap: 10px; margin-top: 16px; animation: sube .4s var(--out) .15s both; }
.card.tip-card > strong, .card.loyal-card > strong, .card.bday-card > strong { font: 800 18px/1.2 var(--font-d); letter-spacing: -.01em; }
.tip-info { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.tip-info pre { flex: 1; margin: 0; white-space: pre-wrap; font: 700 14px var(--font-b); }
.card.bday-card select { min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); padding: 0 10px; font: 600 15px var(--font-b); }

/* ---------- Meta del mes ---------- */
.mes-goal { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); animation: sube .45s var(--out); }
.mes-goal.done { background: linear-gradient(140deg, color-mix(in srgb, #F5B300 22%, var(--surface)), var(--surface) 70%); box-shadow: inset 0 0 0 2px color-mix(in srgb, #F5B300 55%, transparent); }
.mes-goal-pct { font: 800 20px var(--font-d); color: var(--accent-text); }
.mes-goal-track { height: 14px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.mes-goal-track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, color-mix(in srgb, var(--accent) 80%, #fff) 12px 24px); background-size: 34px 100%; transform-origin: left; animation: mes-llena 1.1s .2s var(--out) both, poste 1.2s linear infinite; }
.mes-goal.done .mes-goal-track i { background: #F5B300; }

/* ---------- Registro (prueba gratis) ---------- */
.reg-steps { display: flex; gap: 6px; list-style: none; margin: 10px 0 0; padding: 0; }
.reg-steps li { flex: 1; padding-top: 8px; border-top: 4px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--muted); transition: border-color .3s, color .3s; }
.reg-steps li.on { border-color: var(--accent); color: var(--text); }
.reg-steps li.ok { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.reg-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.reg-color { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); transition: transform .2s var(--spring), box-shadow .2s; }
.reg-color.on { transform: scale(1.12); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.reg-card { margin: 0; text-align: left; }
.reg-card code { font-size: 15px; font-weight: 700; color: var(--accent-text); word-break: break-all; }
.alert.trial { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--text); font-weight: 600; }

/* ---------- Panel maestro: uso ---------- */
.uso { display: flex; flex-direction: column; gap: 14px; }
.uso-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.uso-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.uso-tile strong { font: 800 28px/1 var(--font-d); }
.uso-tile span { font-size: 12.5px; color: var(--muted); }
.uso-tile.bad strong { color: var(--bad-text); }
.uso-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.uso-list li { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.uso-list li.risk { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bad-text) 45%, var(--line)); }
.uso-num { display: flex; flex-direction: column; align-items: flex-end; }
.uso-num strong { font: 800 24px/1 var(--font-d); }
.uso-num span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.uso-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.uso-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
@media (max-width: 420px) { .uso-tiles { grid-template-columns: 1fr; } .ficha-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tabs.n8 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); overflow-x: auto; scrollbar-width: none; }
.tabs.n8::-webkit-scrollbar { display: none; }
.fila .fiesta { width: 100%; height: auto; margin: 0; }
.fila .fiesta .fila-turn { position: relative; z-index: 1; }

/* ---------- Plan de Turnito y comprobantes ---------- */
.plan-box { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.plan-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface-2); }
.plan-head div { display: flex; flex-direction: column; }
.plan-head strong { font: 800 22px/1.1 var(--font-d); }
.plan-price { align-items: flex-end; }
.plan-price strong { font-size: 26px; color: var(--accent-text); }
.plan-state { margin: 0; font-weight: 700; font-size: 14px; }
.plan-state.ok { color: var(--ok-text); } .plan-state.bad { color: var(--bad-text); } .plan-state.warn { color: var(--warn-text); } .plan-state.trial { color: var(--accent-text); }
.plan-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.proof-pick { position: relative; display: flex; align-items: center; justify-content: center; min-height: 120px; border-radius: 18px; border: 2px dashed var(--line-strong); background: var(--surface-2); cursor: pointer; overflow: hidden; text-align: center; transition: border-color .2s; }
.proof-pick:hover { border-color: var(--accent); }
.proof-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.proof-pick > span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px; color: var(--accent-text); }
.proof-pick.has { border-style: solid; }
.proof-pick img { max-height: 260px; max-width: 100%; display: block; }
.proof-done { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.proof-done li { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.blocked-plan { width: 100%; text-align: left; }
.proofs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.proof-list { display: flex; flex-direction: column; gap: 12px; }
.proof { display: flex; gap: 14px; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--warn-text); flex-wrap: wrap; }
.proof-img { flex: none; width: 110px; height: 150px; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #fff; cursor: zoom-in; }
.proof-img img { width: 100%; height: 100%; object-fit: cover; }
.proof-info { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.proof-amt { font: 800 26px var(--font-d); }
.proof-big { max-width: 94vw; max-height: 90vh; margin: auto; border-radius: 12px; }
.tab-dot { display: inline-flex; min-width: 20px; height: 20px; padding: 0 5px; align-items: center; justify-content: center; border-radius: 99px; background: var(--warn-text); color: #1A1200; font-size: 11.5px; font-weight: 900; margin-left: 4px; }
.master-alerts { margin-top: 18px; }
.alert-list { display: flex; flex-direction: column; gap: 4px; }
a.silla-icon { text-decoration: none; }

/* ---------- Página de ventas ---------- */
.lp { min-height: 100vh; background: radial-gradient(90% 60% at 80% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--bg); color: var(--text); padding: 0 16px 40px; overflow-x: hidden; }
.lp > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.lp-nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px var(--font-d); color: var(--text); text-decoration: none; }
.lp-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; padding: 30px 0 40px; }
.lp-hero-txt { display: flex; flex-direction: column; gap: 18px; animation: sube .6s var(--out); }
.lp-kicker { align-self: flex-start; padding: 6px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 800; }
.lp h1 { margin: 0; font: 800 clamp(38px, 6.4vw, 64px)/1.02 var(--font-d); letter-spacing: -.04em; }
.lp h1 span { color: var(--accent-text); }
.lp-hero p { margin: 0; font-size: 17.5px; line-height: 1.55; color: var(--muted); max-width: 560px; }
.lp-phone { position: relative; justify-self: center; width: min(320px, 86vw); padding: 18px 16px 22px; border-radius: 40px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); box-shadow: inset 0 0 0 2px var(--line), 0 40px 80px -30px color-mix(in srgb, var(--accent) 55%, #000); display: flex; flex-direction: column; gap: 14px; animation: salta .8s var(--spring); }
.lp-phone-top { display: flex; justify-content: center; }
.lp-phone-top span { width: 90px; height: 22px; border-radius: 99px; background: var(--bg-deep); }
.lp-notifs { display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.lp-notif { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; border-radius: 16px; background: color-mix(in srgb, var(--text) 8%, var(--surface)); box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .7); animation: lp-entra .55s calc(var(--i) * 90ms) var(--spring) both; }
.lp-notif strong { font-size: 14px; }
.lp-notif span { font-size: 12.5px; color: var(--muted); }
@keyframes lp-entra { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.lp-ticket { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: var(--paper); color: var(--ink); }
.lp-ticket strong { font: 800 36px/1 var(--font-d); letter-spacing: -.04em; }
.lp-ticket strong small { font-size: 14px; letter-spacing: 0; }
.lp-ticket i { display: block; margin: 8px 0; border-top: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.lp-ticket .row strong { font-size: 18px; letter-spacing: 0; }
.lp-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 8px 0 30px; }
.lp-strip div { display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.lp-strip strong { font: 800 28px var(--font-d); color: var(--accent-text); }
.lp-strip span { font-size: 13.5px; color: var(--muted); }
.lp-sec { display: flex; flex-direction: column; gap: 18px; padding: 30px 0; }
.lp h2 { margin: 0; font: 800 clamp(28px, 4.4vw, 40px)/1.1 var(--font-d); letter-spacing: -.03em; }
.lp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lp-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .3s var(--spring), box-shadow .3s; animation: sube .5s calc(var(--i) * 50ms) var(--out) both; }
.lp-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--accent), 0 18px 30px -18px var(--accent); }
.lp-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.lp-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: paso; }
.lp-steps li { counter-increment: paso; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.lp-steps li::before { content: counter(paso); display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 800 18px var(--font-d); margin-bottom: 6px; }
.lp-steps span { font-size: 14px; color: var(--muted); }
.lp-cycle { align-self: center; width: 260px; }
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.lp-plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.lp-plan.best { box-shadow: inset 0 0 0 2px var(--accent), 0 30px 60px -30px var(--accent); transform: translateY(-6px); }
.lp-best { position: absolute; top: -12px; left: 22px; padding: 4px 12px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 900; }
.lp-plan-name { font: 800 20px var(--font-d); }
.lp-plan-price { font: 800 38px/1 var(--font-d); letter-spacing: -.03em; animation: salta .35s var(--spring); }
.lp-plan-price small { font-size: 15px; color: var(--muted); letter-spacing: 0; }
.lp-plan ul { margin: 6px 0; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.lp-faq { display: flex; flex-direction: column; gap: 8px; }
.lp-faq details { padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.lp-faq summary { cursor: pointer; font-weight: 800; }
.lp-faq p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
.lp-cta { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 20px; padding: 40px 20px; border-radius: 32px; background: linear-gradient(140deg, var(--accent-soft), var(--surface)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 40%, var(--line)); text-align: center; }
.row.center { justify-content: center; }
.lp-foot { text-align: center; padding: 28px 0 0; }
@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-plans, .lp-steps { grid-template-columns: 1fr; }
  .lp-plan.best { transform: none; }
}
@media (max-width: 420px) { .lp-grid { grid-template-columns: 1fr; } .lp-strip { grid-template-columns: 1fr; } }
.prices { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.price-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: var(--surface-2); }
.price-card > strong { font: 800 18px var(--font-d); }
@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { min-width: 0; }
.price-card .phone, .price-card input { min-width: 0; max-width: 100%; box-sizing: border-box; }
.price-card .phone input { flex: 1; width: 100%; }

/* ---------- Acompañantes en la misma cita ---------- */
.guests { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.guest { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 40%, var(--line)); animation: salta .35s var(--spring); }
.guest-n { display: inline-flex; align-items: center; gap: 8px; font: 800 15px var(--font-d); }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; background: var(--accent); color: var(--on-accent); }
.guest .chips .chip { font-size: 13px; }

/* ---------- Manual y guía de bienvenida ---------- */
.man { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 760px; margin: 0 auto; }
.man-top { display: flex; flex-direction: column; gap: 12px; }
.man-book { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 15px; background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--accent-deep); }
.man-title { display: block; font: 800 20px/1.1 var(--font-d); }
.man-roles { align-self: flex-start; min-width: 240px; }
.man-chapters { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.man-chapters li { animation: sube .4s calc(var(--i) * 45ms) var(--out) both; }
.man-chapters button, .man-results button, .tour-steps button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); color: inherit; text-align: left; cursor: pointer; transition: transform .2s var(--spring), box-shadow .2s; }
.man-chapters button:hover, .man-results button:hover, .tour-steps button:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.man-chapters button:active, .tour-steps button:active { transform: scale(.98); }
.man-chapters .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.man-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-text); }
.man-count { flex: none; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); font-size: 12.5px; font-weight: 800; color: var(--muted); }
.man-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.man-results button { flex-direction: column; align-items: flex-start; gap: 2px; }
.man-ch { display: flex; flex-direction: column; gap: 14px; }
.man-ch-title { margin: 0; font: 800 22px/1.15 var(--font-d); letter-spacing: -.02em; }
.man-bar { display: flex; gap: 5px; }
.man-bar i { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-2); transition: background .3s; }
.man-bar i.on { background: var(--accent); }
.man-step { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 22px; align-items: start; animation: salta .4s var(--spring); touch-action: pan-y; }
.man-phone { justify-self: center; width: min(260px, 72vw); padding: 8px; border-radius: 30px; background: linear-gradient(160deg, var(--surface-2), var(--bg-deep)); box-shadow: inset 0 0 0 2px var(--line), 0 24px 50px -24px rgba(0, 0, 0, .8); }
.man-phone img { display: block; width: 100%; height: auto; max-height: 470px; object-fit: cover; object-position: top; border-radius: 22px; background: var(--surface); }
.man-txt { display: flex; flex-direction: column; gap: 10px; }
.man-num { align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 800; }
.man-txt h3 { margin: 0; font: 800 21px/1.2 var(--font-d); letter-spacing: -.015em; }
.man-txt p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.man-tips { list-style: none; margin: 4px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.man-tips li { display: flex; gap: 8px; align-items: flex-start; }
.man-tips svg { flex: none; margin-top: 3px; color: var(--accent-text); }
.man-nav .grow { flex: 1; }
.man-sheet { position: fixed; inset: 0; z-index: 60; overflow-y: auto; padding: 18px 16px 40px; background: var(--bg); animation: sube .35s var(--out); }
.man-page { padding: 20px 16px 40px; }
.man-links { margin-bottom: 4px; }
@media (max-width: 640px) { .man-step { grid-template-columns: 1fr; } }

.tour-bg { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: color-mix(in srgb, #000 62%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: aparece .3s; }
@keyframes aparece { from { opacity: 0; } }
.tour { position: relative; width: 100%; max-width: 480px; max-height: 96vh; max-height: 96dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 22px 18px 20px; border-radius: 30px 30px 0 0; background: var(--bg); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .7); animation: sube .4s var(--spring); touch-action: pan-y; }
@media (min-width: 560px) { .tour-bg { align-items: center; } .tour { border-radius: 30px; } }
.tour .man-phone { width: min(230px, 58vw); }
.tour .man-phone img { max-height: 40vh; max-height: 40dvh; }
.tour-skip { position: absolute; top: 14px; right: 18px; z-index: 2; }
.tour-txt { display: flex; flex-direction: column; gap: 8px; text-align: center; align-items: center; }
.tour-txt.welcome { padding: 30px 0 10px; }
.tour-txt h2 { margin: 0; font: 800 24px/1.15 var(--font-d); letter-spacing: -.02em; }
.tour-txt p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.tour-txt p strong { color: var(--text); }
.tour-hero { display: inline-flex; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 30px; background: var(--accent-soft); color: var(--accent-text); animation: salta .6s var(--spring); }
.tour-steps { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; text-align: left; }
.tour-steps button { animation: sube .4s calc(var(--i) * 80ms + .15s) var(--out) both; }
.tour-dots { display: flex; justify-content: center; gap: 6px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-strong); transition: width .3s var(--spring), background .3s; }
.tour-dots i.on { width: 24px; background: var(--accent); }
.tour-nav .grow { flex: 1; }
@media (max-width: 420px) { .hide-xs { display: none; } }
.tour .man-phone, .tour > .link-btn { align-self: center; }
.screen.man-page { max-width: 900px; }

/* ---- funciones por plan: candado, lista del plan, casillas del panel maestro ---- */
.locked { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px; border-radius: var(--radius); border: 1px dashed var(--line-strong); background: var(--surface); }
.locked.compact { padding: 12px 14px; gap: 10px; }
.locked .grow { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 160px; }
.locked-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.locked.compact .locked-ico { width: 34px; height: 34px; border-radius: 11px; }
.plan-incl { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.plan-incl ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.plan-incl li.yes { color: var(--text); }
.plan-incl li.no { color: var(--muted); }
.plan-next { padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.feat-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.feat { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.feat input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.lp-plan li.plus { list-style: none; margin-left: -18px; font-weight: 700; }
.reg-plans { display: flex; flex-direction: column; gap: 8px; }
.reg-plan { display: flex; flex-direction: column; gap: 4px; align-items: stretch; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; }
button.reg-plan { cursor: pointer; }
.reg-plan.on { border-color: var(--accent); background: var(--accent-soft); }
.reg-plan .pill, .reg-plan .btn { align-self: flex-start; margin-top: 4px; }
.plan-choose { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.reg-plan-pick { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; width: 100%; }
.reg-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.reg-radio.on { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 10px var(--accent); }
.plan-detail { display: flex; flex-direction: column; gap: 6px; }
.plan-feats { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.plan-feats li.no { color: var(--muted); opacity: 0.7; }
.reg-plan .link-btn { align-self: flex-start; }

/* ---- video del día para el estado ---- */
.video-tab { display: flex; flex-direction: column; gap: 14px; }
.video-stage { position: relative; align-self: center; width: min(100%, 320px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #0d0d10; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.video-stage canvas, .video-stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-rec { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,.72); color: #fff; font-size: 14px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.video-rec .bar { flex-basis: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.video-rec .bar i { display: block; height: 100%; background: var(--accent); transition: width .2s linear; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: recblink 1s infinite; }
@keyframes recblink { 50% { opacity: .25; } }
.video-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000)); color: #fff; text-decoration: none; }
.video-banner .grow { display: flex; flex-direction: column; flex: 1; }
.video-banner-ico { font-size: 26px; }
.tabs.n9 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); overflow-x: auto; scrollbar-width: none; }
.tabs.n9::-webkit-scrollbar { display: none; }
.switch-txt { display: flex; flex-direction: column; gap: 2px; }
.auto-up { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.auto-up .switch-row { padding: 0; border: 0; background: none; box-shadow: none; }
.rec-dot.inline { display: inline-block; vertical-align: middle; margin-right: 4px; }

/* ---- alarma: cita sin marcar ---- */
.alarm-bar { position: fixed; z-index: 60; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top)); max-width: 560px; margin: 0 auto; padding: 12px 14px; border-radius: 18px; background: #b91c1c; color: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 8px; animation: alarmIn .35s var(--spring, ease-out), alarmPulse 1.6s ease-in-out .4s 3; }
.alarm-head { display: flex; align-items: center; gap: 8px; }
.alarm-ico { font-size: 22px; animation: alarmRing .6s ease-in-out 4; }
.alarm-x { border: 0; background: rgba(255,255,255,.18); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 999px; }
.alarm-list { display: flex; flex-direction: column; gap: 6px; }
.alarm-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: 14px; }
.alarm-go { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; white-space: nowrap; }
@keyframes alarmIn { from { transform: translateY(-120%); } to { transform: none; } }
@keyframes alarmPulse { 50% { box-shadow: 0 0 0 6px rgba(239,68,68,.45), 0 14px 40px rgba(0,0,0,.4); } }
@keyframes alarmRing { 25% { transform: rotate(-18deg); } 75% { transform: rotate(18deg); } }
@media (prefers-reduced-motion: reduce) { .alarm-bar, .alarm-ico { animation: none; } }
.alarm-txt { flex: 1; min-width: 0; }

/* ---- panel maestro: contenido para redes ---- */
.content-tab { display: flex; flex-direction: column; gap: 14px; }
.content-days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.content-days::-webkit-scrollbar { display: none; }
.content-day { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 58px; padding: 8px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.content-day.on { border-color: var(--accent); background: var(--accent-soft); }
.content-day.done { opacity: .75; }
.content-ok { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok, #16a34a); color: #fff; font-size: 12px; display: grid; place-items: center; }
.content-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .content-grid { grid-template-columns: 320px 1fr; align-items: start; } }
.content-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.content-box { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.content-caption { margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 14px; line-height: 1.5; }
.feed-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.feed-thumbs img { width: 96px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.content-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* ---- panel maestro: cambiar plan ---- */
.plan-card .badge { align-self: center; margin-top: 4px; }
.plan-diff { display: flex; flex-direction: column; gap: 10px; }
.plan-diff ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.plan-diff li.yes { color: var(--ok, #16a34a); }
.plan-diff li.no { color: var(--bad, #dc2626); }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.ready-box { display: flex; flex-direction: column; gap: 8px; align-items: stretch; padding: 12px; border-radius: 16px; border: 1px dashed var(--line-strong); }
