/* ==========================================================================
   Colima Fitness · Panel del equipo — sistema visual v2 (vidrio sobre concreto)
   Diseño: My Genie Film Services · 2026

   Retícula de 8 px. Radios: 28 (paneles) · 20 (tarjetas internas) · 14 (campos) · 999 (píldoras y círculos).
   Simbología (la forma del contenedor del icono dice de qué se trata):
     círculo  → personas      cuadrado → dinero
     píldora  → tiempo/ritmo  anillo   → metas
   ========================================================================== */

:root{
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Outfit', 'Inter', sans-serif;

  --bg: #e6e3de;
  --ink: #121212;
  --ink-2: #4a4741;
  --ink-3: #85817a;
  --line: rgba(18,18,18,.08);
  --line-2: rgba(18,18,18,.14);

  --glass: rgba(255,255,255,.56);
  --glass-2: rgba(255,255,255,.74);
  --glass-edge: rgba(255,255,255,.75);
  --glass-blur: 26px;
  --field: rgba(255,255,255,.7);

  --night: #0f0f11;
  --night-2: #1b1b1f;
  --on-night: #f4f2ee;
  --on-night-2: rgba(244,242,238,.62);

  --accent: #c4682f;          /* cobre Colima Fitness */
  --ok: #2f8a4a;
  --warn: #b7791f;
  --bad: #b23a2a;

  /* Series de las gráficas (validadas para daltonismo, en este orden fijo) */
  --s1: #c4682f; --s2: #6b4fd8; --s3: #1f9bb4; --s4: #d1457a; --s5: #d69a00; --s6: #2f8a4a;

  --r-xl: 28px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 30px -12px rgba(30,24,18,.22), 0 2px 6px -2px rgba(30,24,18,.08);
  --shadow-up: 0 1px 0 rgba(255,255,255,.7) inset, 0 24px 50px -18px rgba(30,24,18,.32), 0 4px 12px -4px rgba(30,24,18,.12);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --ease: cubic-bezier(.22,.8,.24,1);
  --rail: 72px;
  color-scheme: light;
}
:root[data-tema="noche"]{
  --bg: #0c0c0e;
  --ink: #f2f0ec;
  --ink-2: #c9c5bd;
  --ink-3: #8d897f;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.16);
  --glass: rgba(28,28,32,.52);
  --glass-2: rgba(36,36,40,.78);
  --glass-edge: rgba(255,255,255,.1);
  --field: rgba(255,255,255,.06);
  --night: #f2f0ec; --night-2: #e2ded7; --on-night: #111; --on-night-2: rgba(17,17,17,.6);
  --s1: #e07a3c; --s2: #8f7bf0; --s3: #2bb3cf; --s4: #e0618f; --s5: #e0a92a; --s6: #46a862;
  --shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 12px 30px -12px rgba(0,0,0,.6);
  --shadow-up: 0 1px 0 rgba(255,255,255,.08) inset, 0 26px 50px -18px rgba(0,0,0,.8);
  color-scheme: dark;
}

*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: 14px; line-height: 1.45;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4, p{ margin: 0; }
a{ color: inherit; }
button, input, select, textarea{ font: inherit; color: inherit; }
[hidden]{ display: none !important; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
::selection{ background: rgba(196,104,47,.25); }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Fondo: foto + degradados con desenfoque gaussiano ---------- */
.cf-fondo{ position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cf-fondo .foto{
  position: absolute; inset: -2%; background: url('assets/fondo-corredor.jpg') center 30% / cover no-repeat;
  filter: grayscale(1) contrast(1.05); opacity: .2; mix-blend-mode: multiply;
}
:root[data-tema="noche"] .cf-fondo .foto{ opacity: .28; mix-blend-mode: screen; filter: grayscale(1) brightness(.6); }
.cf-fondo .mancha{ position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.cf-fondo .m1{ width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: radial-gradient(circle, #e08a4f, transparent 66%); animation: flota1 26s var(--ease) infinite alternate; }
.cf-fondo .m2{ width: 46vw; height: 46vw; right: -12vw; top: 8vh; background: radial-gradient(circle, #7a5cff, transparent 66%); animation: flota2 32s var(--ease) infinite alternate; opacity: .4; }
.cf-fondo .m3{ width: 54vw; height: 54vw; left: 20vw; bottom: -30vw; background: radial-gradient(circle, #e0457f, transparent 64%); animation: flota3 30s var(--ease) infinite alternate; opacity: .38; }
.cf-fondo .m4{ width: 34vw; height: 34vw; right: 10vw; bottom: -6vw; background: radial-gradient(circle, #2fb2d0, transparent 66%); animation: flota1 36s var(--ease) infinite alternate-reverse; opacity: .35; }
:root[data-tema="noche"] .cf-fondo .mancha{ opacity: .32; }
.cf-fondo .grano{ position: absolute; inset: 0; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes flota1{ to{ transform: translate(8vw, 6vh) scale(1.08); } }
@keyframes flota2{ to{ transform: translate(-10vw, 10vh) scale(.92); } }
@keyframes flota3{ to{ transform: translate(-6vw, -8vh) scale(1.1); } }

/* ---------- Vidrio ---------- */
.vidrio{
  position: relative; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--r-xl);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%); backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  box-shadow: var(--shadow);
}
/* Brillo que sigue al puntero (panel.js pone --mx/--my) */
.brillo::after{
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.38), transparent 42%);
}
.brillo:hover::after{ opacity: 1; }
:root[data-tema="noche"] .brillo::after{ background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.08), transparent 42%); }

/* ---------- Botones: suben al pasar, se hunden al presionar ---------- */
.btn{
  --b-bg: var(--night); --b-fg: var(--on-night);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; background: var(--b-bg); color: var(--b-fg);
  font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 6px 16px -8px rgba(0,0,0,.45);
  transition: transform .35s var(--spring), box-shadow .3s var(--ease), background .2s, opacity .2s;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 14px 26px -10px rgba(0,0,0,.5); }
.btn:active{ transform: translateY(1px) scale(.97); transition-duration: .08s; box-shadow: inset 0 3px 8px rgba(0,0,0,.35); }
.btn[disabled]{ opacity: .5; pointer-events: none; }
.btn svg{ width: 16px; height: 16px; flex: none; }
.btn-ghost{ --b-bg: var(--glass-2); --b-fg: var(--ink); border-color: var(--glass-edge); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn-ghost:hover{ box-shadow: var(--shadow-up); }
.btn-ghost:active{ box-shadow: inset 0 3px 8px rgba(0,0,0,.12); }
.btn-sm{ height: 36px; padding: 0 14px; font-size: 12.5px; }
.btn-acento{ --b-bg: var(--accent); --b-fg: #fff; }
.sc-btn-peligro{ --b-bg: var(--bad) !important; --b-fg: #fff !important; }

.circ{
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  border: 1px solid var(--glass-edge); background: var(--glass-2); color: var(--ink); cursor: pointer;
  transition: transform .35s var(--spring), background .2s, box-shadow .3s; box-shadow: var(--shadow);
}
.circ:hover{ transform: translateY(-2px) scale(1.05); box-shadow: var(--shadow-up); }
.circ:active{ transform: scale(.92); transition-duration: .08s; }
.circ svg{ width: 17px; height: 17px; }

/* ---------- Acceso ---------- */
.gate{ position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.gate-card{ width: min(420px, 100%); padding: 40px 32px 28px; text-align: center; }
.gate-logo{ width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 20px; background: url('assets/logo-concreto.jpg') center/cover; box-shadow: var(--shadow-up); }
.gate-card h1{ font-family: var(--display); font-weight: 300; font-size: 30px; letter-spacing: -.01em; }
.gate-card > p{ color: var(--ink-2); font-size: 13.5px; margin-top: 8px; }
#loginForm, #gateForm{ display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
#loginForm input, #gateForm input{ height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--field); outline: none; }
#loginForm input:focus, #gateForm input:focus{ border-color: var(--accent); }
#loginForm .btn, #gateForm .btn{ height: 48px; margin-top: 4px; }
.gate-error{ color: var(--bad); font-size: 13px; min-height: 18px; margin-top: 12px; }
.gate-note{ font-size: 12px; color: var(--ink-3); margin-top: 14px; }
.gate-note a{ color: var(--ink-2); }
.gate-clave{ margin-top: 14px; font-size: 13px; text-align: left; }
.gate-clave summary{ cursor: pointer; color: var(--ink-2); text-align: center; }
.gate-firma{ position: fixed; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); z-index: 51; }

/* ---------- Estructura ---------- */
.admin-app{ position: relative; z-index: 1; min-height: 100vh; padding-left: calc(var(--rail) + 32px); }
.admin-main{ max-width: 1480px; margin: 0 auto; padding: 24px 32px 64px 8px; min-width: 0; }

/* Riel negro (como el panel negro de la referencia) */
.riel{
  position: fixed; z-index: 30; left: 16px; top: 16px; bottom: 16px; width: var(--rail);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0;
  background: #0f0f11; border-radius: 36px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.08) inset;
}
:root[data-tema="noche"] .riel{ background: rgba(20,20,24,.85); border: 1px solid rgba(255,255,255,.08); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.riel-logo{ width: 48px; height: 48px; border-radius: 50%; display: block; flex: none; background: #3a1d0e url('assets/logo-oxido.jpg?v=2') center/cover; margin-bottom: 8px; box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 8px 18px -6px rgba(196,104,47,.55); transition: transform .5s var(--spring), box-shadow .3s; }
.riel-logo:hover{ transform: rotate(-24deg) scale(1.08); box-shadow: 0 0 0 2px rgba(229,164,122,.6), 0 10px 24px -6px rgba(196,104,47,.7); }
.riel-logo i{ width: 28px; height: 28px; background: #111; -webkit-mask: url('assets/logo-mark.png') center/contain no-repeat; mask: url('assets/logo-mark.png') center/contain no-repeat; }
.riel nav{ display: flex; flex-direction: column; gap: 8px; align-items: center; }
.riel-sep{ width: 28px; height: 1px; background: rgba(255,255,255,.12); margin: 6px 0; flex: none; }
.riel-esp{ flex: 1; }
.riel-btn{
  position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent; color: rgba(255,255,255,.62);
  display: grid; place-items: center; cursor: pointer; text-decoration: none; flex: none;
  transition: transform .35s var(--spring), background .25s, color .25s;
}
.riel-btn svg{ width: 20px; height: 20px; }
.riel-btn:hover{ background: rgba(255,255,255,.1); color: #fff; transform: scale(1.06); }
.riel-btn:active{ transform: scale(.9); transition-duration: .08s; }
.riel-btn.is-active{ background: #fff; color: #111; box-shadow: 0 8px 20px -6px rgba(255,255,255,.35); }
.riel-btn .badge{ position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.riel-avatar{ width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #e08a4f, #7a5cff); color: #fff; font-weight: 700; font-family: var(--display); font-size: 16px; border: 2px solid rgba(255,255,255,.18); }
/* Etiqueta flotante (tooltip) a la derecha del riel */
[data-tip]{ position: relative; }
.riel [data-tip]::before{
  content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%; transform: translate(-6px, -50%); opacity: 0; pointer-events: none;
  background: #0f0f11; color: #fff; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  transition: opacity .2s, transform .3s var(--spring); box-shadow: 0 10px 20px -8px rgba(0,0,0,.5); z-index: 5;
}
.riel [data-tip]:hover::before{ opacity: 1; transform: translate(0, -50%); }

/* ---------- Barra superior ---------- */
.admin-topbar{ display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0 24px; }
.saludo .fecha{ font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.saludo h1{ font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.02em; line-height: 1.1; margin-top: 4px; }
.saludo h1 b{ font-weight: 500; }
.saludo p{ color: var(--ink-2); font-size: 13.5px; margin-top: 6px; }
.sc-top-actions{ display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-box{ display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px; min-width: 300px; }
.search-box svg{ width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.search-box input{ border: 0; outline: 0; background: transparent; width: 100%; font-size: 13.5px; }

/* ---------- Vistas ---------- */
.vista{ animation: entra .5s var(--ease) both; }
@keyframes entra{ from{ opacity: 0; transform: translateY(12px); } }

/* ---------- Tablero (paneles que se arrastran) ---------- */
.tab-barra{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tab-barra .chips{ display: flex; gap: 8px; flex-wrap: wrap; }
.tab-nota{ font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.tab-nota svg{ width: 15px; height: 15px; }
.tablero{ display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 184px; grid-auto-flow: row dense; gap: 16px; }
.w{
  grid-column: span var(--w, 4); grid-row: span var(--h, 2); min-width: 0;
  display: flex; flex-direction: column; padding: 20px 22px; overflow: hidden;
  transition: transform .45s var(--spring), box-shadow .35s var(--ease), opacity .3s;
}
.w:hover{ transform: translateY(-3px); box-shadow: var(--shadow-up); }
.w.oscuro{ background: #0f0f11; color: #f4f2ee; border-color: rgba(255,255,255,.08); --ink: #f4f2ee; --ink-2: rgba(244,242,238,.72); --ink-3: rgba(244,242,238,.5); --line: rgba(255,255,255,.1); --line-2: rgba(255,255,255,.18); --glass-2: rgba(255,255,255,.08); --glass-edge: rgba(255,255,255,.12); }
:root[data-tema="noche"] .w.oscuro{ background: rgba(255,255,255,.92); color: #111; --ink: #111; --ink-2: rgba(17,17,17,.7); --ink-3: rgba(17,17,17,.5); --line: rgba(0,0,0,.08); --line-2: rgba(0,0,0,.14); --glass-2: rgba(0,0,0,.05); --glass-edge: rgba(0,0,0,.08); }
.w.foto{ color: #fff; border-color: rgba(255,255,255,.2); background: #111 url('assets/fondo-corredor.jpg') center 28% / cover; --ink: #fff; --ink-2: rgba(255,255,255,.78); --ink-3: rgba(255,255,255,.58); --glass-2: rgba(255,255,255,.14); --glass-edge: rgba(255,255,255,.22); --line: rgba(255,255,255,.14); }
.w.foto::before{ content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,10,12,.88) 0%, rgba(10,10,12,.55) 48%, rgba(10,10,12,.15) 100%); border-radius: inherit; }
.w.foto > *{ position: relative; }
.w-cab{ display: flex; align-items: center; gap: 12px; cursor: grab; touch-action: none; user-select: none; min-height: 40px; }
.w-cab:active{ cursor: grabbing; }
.w-tit{ min-width: 0; flex: 1; }
.w-tit h3{ font-size: 14px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-tit p{ font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-acc{ display: flex; gap: 4px; opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .35s var(--spring); }
.w:hover .w-acc, .w:focus-within .w-acc{ opacity: 1; transform: none; }
@media (hover: none){ .w-acc{ opacity: 1; transform: none; } }
.w-acc button{ width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--glass-edge); background: var(--glass-2); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--spring), color .2s; }
.w-acc button:hover{ transform: scale(1.1); color: var(--ink); }
.w-acc button:active{ transform: scale(.88); }
.w-acc svg{ width: 14px; height: 14px; }
.w-cuerpo{ flex: 1; min-height: 0; position: relative; margin-top: 12px; display: flex; flex-direction: column; }
.w-pie{ font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
/* Arrastre */
.w.arrastrando{ opacity: .25; }
.w-fantasma{ position: fixed; z-index: 100; pointer-events: none; transform: rotate(1.5deg) scale(1.03); box-shadow: 0 40px 80px -20px rgba(0,0,0,.45) !important; transition: none !important; }
.w-hueco{ grid-column: span var(--w, 4); grid-row: span var(--h, 2); border-radius: var(--r-xl); border: 2px dashed var(--line-2); background: rgba(255,255,255,.18); }
@keyframes aparece{ from{ opacity: 0; transform: scale(.94); } }
.w.nuevo{ animation: aparece .5s var(--spring) both; }

/* Simbología: la forma del contenedor del icono */
.sim{ width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--glass-edge); color: var(--ink); }
.sim svg{ width: 18px; height: 18px; }
.sim.persona{ border-radius: 50%; }
.sim.dinero{ border-radius: 12px; }
.sim.tiempo{ border-radius: 999px; width: 56px; }
.sim.meta{ border-radius: 50%; background: transparent; border: 2px solid currentColor; box-shadow: 0 0 0 4px var(--glass-2) inset; }

/* Cifras */
.cifra{ font-family: var(--display); font-weight: 200; font-size: 56px; line-height: .95; letter-spacing: -.03em; }
.cifra small{ font-size: .38em; font-weight: 400; letter-spacing: 0; color: var(--ink-3); margin-left: 4px; }
.cifra-m{ font-family: var(--display); font-weight: 300; font-size: 32px; line-height: 1; letter-spacing: -.02em; }
.etq{ font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.delta{ display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--glass-2); }
.delta.sube{ color: var(--ok); } .delta.baja{ color: var(--bad); } .delta.igual{ color: var(--ink-3); }
.delta svg{ width: 12px; height: 12px; }
.w.oscuro .delta.sube{ color: #6fd08a; } .w.oscuro .delta.baja{ color: #ff8a73; }
.fila-k{ display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; }
.fila-k > div{ min-width: 0; }

/* Gráficas */
.graf{ position: relative; flex: 1; min-height: 0; }
.graf svg{ display: block; width: 100%; height: 100%; overflow: visible; }
.graf .eje{ font-size: 10.5px; fill: var(--ink-3); font-family: var(--font); }
.graf .rej{ stroke: var(--line); stroke-width: 1; }
.graf .base{ stroke: var(--line-2); stroke-width: 1; }
.graf .linea{ fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.graf .dibuja{ stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: traza 1.4s var(--ease) .1s forwards; }
@keyframes traza{ to{ stroke-dashoffset: 0; } }
.graf .barra{ transform-box: fill-box; transform-origin: bottom; animation: crece .8s var(--spring) both; transition: opacity .2s; }
.graf .barra-h{ transform-box: fill-box; transform-origin: left; animation: creceh .8s var(--spring) both; }
@keyframes crece{ from{ transform: scaleY(0); } }
@keyframes creceh{ from{ transform: scaleX(0); } }
.graf .apaga .barra:not(:hover){ opacity: .45; }
.graf .hit{ fill: transparent; cursor: crosshair; }
.graf .cruz{ stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.graf .punto{ stroke: var(--bg); stroke-width: 2; }
.anillo-fondo{ fill: none; stroke: var(--line); }
.anillo{ fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); }
.leyenda{ display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-2); margin-top: 10px; }
.leyenda span{ display: inline-flex; align-items: center; gap: 6px; }
.leyenda i{ width: 10px; height: 10px; border-radius: 3px; flex: none; }
.lista-v{ display: flex; flex-direction: column; gap: 8px; overflow: auto; min-height: 0; flex: 1; }
.lista-v .it{ display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; }
.lista-v .it i{ width: 10px; height: 10px; border-radius: 3px; }
.lista-v .it b{ font-weight: 600; font-variant-numeric: tabular-nums; }
.lista-v .it em{ font-style: normal; color: var(--ink-3); font-size: 11.5px; margin-left: 6px; }
.tip{
  position: fixed; z-index: 200; pointer-events: none; padding: 10px 12px; border-radius: 14px; font-size: 12px; min-width: 120px;
  background: rgba(15,15,17,.92); color: #fff; box-shadow: 0 16px 30px -10px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .2s var(--spring);
}
.tip.on{ opacity: 1; transform: none; }
.tip b{ display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.tip .r{ display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.tip .r i{ display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.tip .r span:last-child{ font-weight: 700; font-variant-numeric: tabular-nums; }
.vacio-w{ flex: 1; display: grid; place-items: center; text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 8px; }
.vacio-w b{ display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; font-weight: 600; }

/* Mapa de calor (ritmo por hora) */
.calor{ display: grid; grid-template-columns: 28px repeat(var(--cols), minmax(0,1fr)); gap: 3px; font-size: 10px; color: var(--ink-3); flex: 1; align-content: center; }
.calor .c{ aspect-ratio: 1.4; border-radius: 4px; background: var(--s1); transition: transform .25s var(--spring); }
.calor .c:hover{ transform: scale(1.35); position: relative; z-index: 2; }
.calor .c0{ background: var(--line); }
.calor .lbl{ display: flex; align-items: center; }
.calor .h{ text-align: center; }

/* Actividad */
.actividad{ display: flex; flex-direction: column; gap: 2px; overflow: auto; min-height: 0; flex: 1; margin: 0 -8px; padding-right: 6px; scrollbar-width: thin; }
.actividad .a{ display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; cursor: pointer; transition: background .2s, transform .3s var(--spring); border: 0; background: transparent; text-align: left; width: 100%; }
.actividad .a:hover{ background: var(--glass-2); transform: translateX(3px); }
.actividad .a b{ display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actividad .a small{ display: block; color: var(--ink-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actividad .a .m{ font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; }
.ava{ width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; flex: none; font-family: var(--display); }

/* Pendientes (acciones) */
.pend{ display: grid; gap: 8px; overflow: auto; flex: 1; min-height: 0; }
.pend button{ display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--glass-edge); background: var(--glass-2); cursor: pointer; text-align: left; transition: transform .35s var(--spring), box-shadow .3s; }
.pend button:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.pend button:active{ transform: scale(.98); }
.pend .n{ font-family: var(--display); font-size: 24px; font-weight: 300; min-width: 36px; text-align: center; }
.pend .t{ font-size: 12.5px; font-weight: 600; }
.pend .t small{ display: block; font-weight: 400; color: var(--ink-3); font-size: 11.5px; }
.pend svg{ width: 14px; height: 14px; color: var(--ink-3); }

/* Bandeja de paneles ocultos */
.bandeja{ display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 16px; }
.bandeja button{ display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--field); cursor: pointer; text-align: left; transition: transform .35s var(--spring), border-color .2s; }
.bandeja button:hover{ transform: translateY(-2px); border-color: var(--accent); }
.bandeja button b{ display: block; font-size: 13px; }
.bandeja button small{ color: var(--ink-3); font-size: 11.5px; }

@media (max-width: 1240px){
  .tablero{ grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .w{ grid-column: span min(var(--w, 4), 6); }
  .w[style*="--w:3"], .w[style*="--w:4"]{ grid-column: span 3; }
}
@media (max-width: 760px){
  .tablero{ grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .w, .w[style*="--w:3"], .w[style*="--w:4"]{ grid-column: 1 / -1; grid-row: auto; min-height: calc(184px * var(--h, 2)); }
  .w[style*="--h:1"]{ min-height: 184px; }
  .cifra{ font-size: 46px; }
}

/* ---------- Socios ---------- */
.sc-preventa{
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  background: #0f0f11; color: #f4f2ee; border-radius: var(--r-xl); padding: 20px 28px; margin-bottom: 16px; box-shadow: var(--shadow-up);
}
:root[data-tema="noche"] .sc-preventa{ background: rgba(255,255,255,.92); color: #111; }
.sc-preventa .k{ font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #e5a47a; font-weight: 600; }
.sc-preventa .v{ font-family: var(--display); font-size: 34px; font-weight: 300; line-height: 1.05; letter-spacing: -.02em; }
.sc-preventa .v small{ font-size: 15px; opacity: .55; font-weight: 400; letter-spacing: 0; }
.sc-bar{ height: 10px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
:root[data-tema="noche"] .sc-bar{ background: rgba(0,0,0,.1); }
.sc-bar i{ display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #c4682f, #e0457f, #7a5cff); transition: width .8s var(--ease); }
.sc-preventa .end{ font-size: 12.5px; opacity: .7; text-align: right; }
@media (max-width: 680px){ .sc-preventa{ grid-template-columns: 1fr; gap: 12px; } .sc-preventa .end{ text-align: left; } }

.sc-funnel{ display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 980px){ .sc-funnel{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 560px){ .sc-funnel{ grid-template-columns: repeat(2,1fr); } }
.sc-funnel button{
  position: relative; text-align: left; cursor: pointer; padding: 16px 18px; border-radius: var(--r-lg);
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  transition: transform .35s var(--spring), box-shadow .3s, border-color .2s;
}
.sc-funnel button:hover{ transform: translateY(-3px); box-shadow: var(--shadow-up); }
.sc-funnel button:active{ transform: scale(.97); transition-duration: .08s; }
.sc-funnel button.is-active{ border-color: var(--accent); box-shadow: 0 0 0 3px rgba(196,104,47,.18), var(--shadow); }
.sc-funnel button[disabled]{ cursor: default; opacity: .6; border-style: dashed; transform: none; }
.sc-funnel .step{ font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sc-funnel .num{ font-family: var(--display); font-size: 36px; font-weight: 200; margin-top: 4px; line-height: 1; letter-spacing: -.02em; }
.sc-funnel .lbl{ font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.sc-funnel .pct{ font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.sc-funnel .mini{ height: 4px; border-radius: 999px; background: var(--line); margin-top: 12px; overflow: hidden; }
.sc-funnel .mini i{ display: block; height: 100%; background: var(--ink); border-radius: 999px; }

.sc-alerts{ display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sc-alerts:empty{ display: none; }
.sc-alert{
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid rgba(178,58,42,.2); background: rgba(178,58,42,.1); color: var(--bad); transition: transform .35s var(--spring);
}
.sc-alert:hover{ transform: translateY(-2px); } .sc-alert:active{ transform: scale(.96); }
.sc-alert.warm{ background: rgba(196,104,47,.12); color: #9a4f20; border-color: rgba(196,104,47,.25); }
:root[data-tema="noche"] .sc-alert.warm{ color: #f0a477; }
.sc-alert b{ font-family: var(--display); font-size: 16px; font-weight: 500; }

.toolbar{ display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.status-filters{ display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.status-filters button{
  height: 34px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink-2);
  border: 1px solid var(--glass-edge); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .3s var(--spring), background .2s, color .2s;
}
.status-filters button:hover{ transform: translateY(-1px); color: var(--ink); }
.status-filters button:active{ transform: scale(.95); }
.status-filters button.is-active{ background: var(--night); color: var(--on-night); border-color: var(--night); }
.sc-select{ height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--glass-2); font-size: 12.5px; cursor: pointer; }

.table-wrap{ overflow-x: auto; padding: 8px; }
.cand-table{ width: 100%; border-collapse: separate; border-spacing: 0; }
.sc-table{ min-width: 900px; }
.cand-table th{ text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 14px 16px 10px; }
.cand-table td{ padding: 14px 16px; border-top: 1px solid var(--line); font-size: 13px; vertical-align: top; }
.cand-table tbody tr{ cursor: pointer; transition: background .2s; }
.cand-table tbody tr:hover{ background: rgba(255,255,255,.45); }
:root[data-tema="noche"] .cand-table tbody tr:hover{ background: rgba(255,255,255,.04); }
.cand-table tbody tr:hover td:first-child{ border-radius: 16px 0 0 16px; }
.cand-table tbody tr:hover td:last-child{ border-radius: 0 16px 16px 0; }
.sc-persona{ display: flex; gap: 12px; align-items: flex-start; }
.cand-name{ font-weight: 600; font-size: 13.5px; }
.sc-sub{ font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.sc-tag{ display: inline-flex; align-items: center; height: 20px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 0 8px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); color: var(--ink-2); margin-left: 6px; vertical-align: 1px; }
.sc-tag.mostrador{ background: rgba(31,155,180,.14); color: #146f82; border-color: transparent; }
:root[data-tema="noche"] .sc-tag.mostrador{ color: #6fd3e8; }
.sc-tag.vip{ background: #0f0f11; color: #fff; border-color: transparent; }
.pill{ display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.pill::before{ content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.pagado{ background: rgba(47,138,74,.14); color: var(--ok); }
.pill.apartado{ background: rgba(196,104,47,.15); color: #9a4f20; }
.pill.vencido, .pill.intento{ background: rgba(178,58,42,.12); color: var(--bad); }
.pill.ninguno{ background: var(--line); color: var(--ink-3); }
:root[data-tema="noche"] .pill.pagado{ color: #6fd08a; } :root[data-tema="noche"] .pill.apartado{ color: #f0a477; } :root[data-tema="noche"] .pill.vencido, :root[data-tema="noche"] .pill.intento{ color: #ff8a73; }
.sc-dot{ display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--line-2); vertical-align: 1px; }
.sc-dot.on{ background: var(--ok); box-shadow: 0 0 0 3px rgba(47,138,74,.18); }
.sc-perfil{ min-width: 110px; font-weight: 600; }
.sc-perfil .track{ height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 6px; }
.sc-perfil .track i{ display: block; height: 100%; border-radius: 999px; background: var(--s2); }
.sc-perfil.full .track i{ background: var(--ok); }
.sc-next{ font-weight: 600; font-size: 13px; }
.sc-next.listo{ color: var(--ok); }
.sc-contactado{ font-size: 11.5px; color: var(--ok); font-weight: 600; margin-top: 4px; }
td:has(> .sc-edit){ white-space: nowrap; }
.sc-wa{
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  color: #1f8a46; background: rgba(47,138,74,.12); border: 0; text-decoration: none; cursor: pointer; margin-left: 2px;
  transition: transform .35s var(--spring), background .2s, color .2s;
}
.sc-wa:hover{ transform: translateY(-2px) scale(1.08); background: rgba(47,138,74,.22); }
.sc-wa:active{ transform: scale(.88); transition-duration: .08s; }
.sc-wa[aria-disabled="true"]{ opacity: .3; pointer-events: none; }
.sc-edit{ color: var(--ink-2); background: var(--glass-2); border: 1px solid var(--line); }
.sc-edit:hover{ background: var(--night); color: var(--on-night); }
.sc-bote:hover{ background: var(--bad); color: #fff; }
.empty-state{ padding: 56px 20px; text-align: center; color: var(--ink-3); }
.sc-foot{ font-size: 12px; color: var(--ink-3); margin-top: 12px; padding: 0 8px; }

/* ---------- Ficha lateral ---------- */
.drawer-overlay{ position: fixed; inset: 0; z-index: 60; background: rgba(10,10,12,.28); opacity: 0; pointer-events: none; transition: opacity .3s; overflow: hidden; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer-overlay.is-open{ opacity: 1; pointer-events: auto; }
.drawer{
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(500px, calc(100vw - 24px)); overflow-y: auto; padding: 32px 28px;
  background: var(--glass-2); border: 1px solid var(--glass-edge); border-radius: var(--r-xl); box-shadow: var(--shadow-up);
  -webkit-backdrop-filter: blur(34px) saturate(170%); backdrop-filter: blur(34px) saturate(170%);
  transform: translateX(110%); transition: transform .5s var(--spring);
}
:root:not([data-tema="noche"]) .drawer{ background: rgba(250,249,247,.86); }
.drawer-overlay.is-open .drawer{ transform: none; }
.modal-close{ width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass-2); display: grid; place-items: center; cursor: pointer; transition: transform .35s var(--spring); color: var(--ink); }
.modal-close:hover{ transform: rotate(90deg); }
.modal-close:active{ transform: rotate(90deg) scale(.88); }
.d-folio{ font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--ink-3); }
.d-name{ font-family: var(--display); font-size: 30px; font-weight: 300; letter-spacing: -.02em; margin-top: 6px; line-height: 1.1; padding-right: 44px; }
.d-job{ color: var(--accent); font-weight: 600; font-size: 13.5px; margin-top: 6px; }
.d-status{ display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.sc-d-edit{ margin-left: 0; }
.sc-d-edit svg{ width: 14px; height: 14px; }
.d-section{ margin-top: 24px; padding: 18px; border-radius: var(--r-lg); background: var(--field); border: 1px solid var(--line); }
.d-section h4{ font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 10px; }
.d-info-row{ display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.d-info-row:last-child{ border-bottom: 0; }
.d-info-row span:first-child{ color: var(--ink-3); }
.d-info-row span:last-child{ text-align: right; word-break: break-word; }
.sc-steps{ display: flex; flex-direction: column; margin: 0; padding: 0; }
.sc-steps li{ list-style: none; display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 8px 0; font-size: 13.5px; position: relative; }
.sc-steps li:not(:last-child)::after{ content: ""; position: absolute; left: 11px; top: 32px; bottom: -8px; width: 2px; background: var(--line); }
.sc-steps .ic{ width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink-3); font-size: 11px; font-weight: 700; position: relative; z-index: 1; }
.sc-steps .ok .ic{ background: var(--ok); color: #fff; }
.sc-steps .now .ic{ background: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(196,104,47,.2); }
.sc-steps .muted{ color: var(--ink-3); }
.sc-steps small{ display: block; color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.sc-pay{ background: var(--glass-2); border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line); font-size: 13px; }
.sc-pay:last-child{ margin-bottom: 0; }
.sc-pay .top{ display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.sc-pay .btn{ margin-top: 10px; width: 100%; }
.sc-msg{ width: 100%; min-height: 110px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--field); padding: 12px 14px; font-size: 13.5px; resize: vertical; outline: none; }
.sc-msg:focus{ border-color: var(--accent); }
.sc-d-actions{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sc-d-actions .btn{ width: 100%; }
.sc-check{ display: flex; gap: 10px; align-items: center; font-size: 13px; margin-top: 10px; color: var(--ink-2); cursor: pointer; }
.sc-check input{ width: 18px; height: 18px; accent-color: var(--accent); }
.sc-cred img{ max-width: 100%; max-height: 360px; border-radius: 16px; display: block; margin: 8px 0; }

/* ---------- Ventanas (modales) ---------- */
.modal-overlay{ position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(10,10,12,.32); opacity: 0; pointer-events: none; transition: opacity .25s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-overlay.is-open{ opacity: 1; pointer-events: auto; }
.modal-card{
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px 28px 28px;
  background: rgba(250,249,247,.9); border: 1px solid var(--glass-edge); border-radius: var(--r-xl); box-shadow: var(--shadow-up);
  -webkit-backdrop-filter: blur(34px) saturate(170%); backdrop-filter: blur(34px) saturate(170%);
  transform: translateY(16px) scale(.97); transition: transform .45s var(--spring);
}
:root[data-tema="noche"] .modal-card{ background: rgba(28,28,32,.9); }
.modal-overlay.is-open .modal-card{ transform: none; }
.modal-card > .modal-close{ position: absolute; top: 20px; right: 20px; }
.modal-card h3{ font-family: var(--display); font-weight: 300; font-size: 28px; letter-spacing: -.02em; padding-right: 48px; }
.sc-modal-sub{ font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.sc-form{ display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.sc-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px){ .sc-row{ grid-template-columns: 1fr; } }
.sc-field{ display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.sc-field > span, .sc-field legend{ font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.sc-field input, .sc-field select{ width: 100%; height: 46px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--field); font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.sc-field input:focus, .sc-field select:focus{ border-color: var(--accent); box-shadow: 0 0 0 4px rgba(196,104,47,.14); }
.sc-field.has-error input, .sc-field.has-error select{ border-color: var(--bad); }
.sc-field.has-error legend{ color: var(--bad); }
.sc-seg{ display: flex; gap: 6px; flex-wrap: wrap; }
.sc-seg label{ flex: 1 1 auto; }
.sc-seg input{ position: absolute; opacity: 0; pointer-events: none; }
.sc-seg span{ display: block; text-align: center; padding: 11px 12px; border-radius: 999px; cursor: pointer; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-2); background: var(--field); color: var(--ink-2); transition: transform .3s var(--spring), background .2s, color .2s; }
.sc-seg span:hover{ transform: translateY(-1px); }
.sc-seg span:active{ transform: scale(.95); }
.sc-seg input:checked + span{ background: var(--night); color: var(--on-night); border-color: var(--night); }
.sc-seg input:focus-visible + span{ outline: 2px solid var(--accent); outline-offset: 2px; }
.sc-seg-col{ flex-direction: column; }
.sc-seg-col span{ text-align: left; padding-left: 18px; }
.sc-form-error{ color: var(--bad); font-size: 13px; min-height: 18px; margin: 0; }
.sc-form .btn{ width: 100%; height: 48px; }
.sc-extras{ display: grid; gap: 10px; }
.sc-gerencia{ border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 14px; display: grid; gap: 8px; }
.sc-total{ margin: 0; font-family: var(--display); font-weight: 400; font-size: 20px; }
.sc-bajas{ display: grid; gap: 10px; max-height: 60vh; overflow: auto; margin-top: 16px; }
.sc-bajas .btn{ margin-top: 10px; }
.sc-form [hidden], .sc-extras [hidden]{ display: none !important; }
body.con-cuenta .sc-field:has(> input[name="atendio"]), body.con-cuenta .sc-field:has(> input[name="quien"]){ display: none; }
body.modal-open{ overflow: hidden; }

/* ---------- Aviso breve ---------- */
.sc-toast{
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; z-index: 400;
  background: #0f0f11; color: #fff; padding: 14px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.5); transition: opacity .25s, transform .45s var(--spring); max-width: calc(100vw - 32px);
}
.sc-toast.is-on{ opacity: 1; transform: translate(-50%, 0); }

/* ---------- Bienvenida y recorrido ---------- */
.bv{ position: fixed; inset: 0; z-index: 300; background: #0a0a0b; color: #fff; overflow: hidden; }
.bv-escena{ position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 1s var(--ease); }
.bv-escena.on{ opacity: 1; pointer-events: auto; }
.bv-foto{ position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.12); transition: transform 9s linear; }
.bv-escena.on .bv-foto{ transform: scale(1); }
.bv-velo{ position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.6) 50%, rgba(10,10,11,.2) 100%); }
.bv-velo.centro{ background: radial-gradient(circle at 50% 50%, rgba(10,10,11,.35), rgba(10,10,11,.92) 70%); }
.bv-manchas .mancha{ position: absolute; border-radius: 50%; filter: blur(100px); opacity: .5; }
.bv-txt{ position: absolute; left: clamp(24px, 8vw, 120px); right: 24px; top: 50%; transform: translateY(-50%); max-width: 720px; max-height: calc(100vh - 120px); }
.bv-txt.centro{ left: 50%; transform: translate(-50%, -50%); text-align: center; max-width: 720px; width: calc(100% - 48px); right: auto; }
.bv-txt > *{ opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.bv-escena.on .bv-txt > *{ opacity: 1; transform: none; }
.bv-escena.on .bv-txt > *:nth-child(2){ transition-delay: .25s; } .bv-escena.on .bv-txt > *:nth-child(3){ transition-delay: .5s; }
.bv-escena.on .bv-txt > *:nth-child(4){ transition-delay: .75s; } .bv-escena.on .bv-txt > *:nth-child(5){ transition-delay: 1s; }
.bv-ceja{ font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #e5a47a; }
.bv-h{ font-family: var(--display); font-weight: 200; font-size: clamp(44px, 7vw, 96px); line-height: .98; letter-spacing: -.035em; margin-top: 16px; }
.bv-h b{ font-weight: 500; }
.bv-p{ font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; color: rgba(255,255,255,.78); margin-top: 24px; }
.bv-firma{ display: flex; align-items: center; gap: 12px; margin-top: 32px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.bv-txt.centro .bv-firma{ justify-content: center; }
.bv-firma img{ height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.bv-novedades{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 28px; text-align: left; }
@media (max-width: 640px){ .bv-novedades{ grid-template-columns: 1fr; } }
.bv-novedades div{ padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-size: 13px; color: rgba(255,255,255,.75); }
.bv-novedades b{ display: block; color: #fff; font-size: 14px; margin-bottom: 4px; font-weight: 600; }
.bv-sim{ display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.bv-sim div{ display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12.5px; color: rgba(255,255,255,.75); width: 110px; }
.bv-sim i{ width: 56px; height: 56px; border: 2px solid #fff; display: block; }
.bv-sim .s1{ border-radius: 50%; background: rgba(255,255,255,.12); } .bv-sim .s2{ border-radius: 14px; background: rgba(255,255,255,.12); }
.bv-sim .s3{ border-radius: 999px; width: 80px; background: rgba(255,255,255,.12); } .bv-sim .s4{ border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,255,255,.18) inset; }
.bv-sim b{ color: #fff; font-weight: 600; }
.bv-nav{ position: absolute; left: 0; right: 0; bottom: 32px; display: flex; justify-content: center; align-items: center; gap: 16px; z-index: 3; }
.bv-puntos{ display: flex; gap: 8px; }
.bv-puntos i{ width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.3); transition: width .5s var(--spring), background .3s; }
.bv-puntos i.on{ width: 28px; background: #fff; }
.bv .btn{ --b-bg: #fff; --b-fg: #111; }
.bv .btn-ghost{ --b-bg: rgba(255,255,255,.1); --b-fg: #fff; border-color: rgba(255,255,255,.2); }
.bv-saltar{ position: absolute; top: 24px; right: 24px; z-index: 3; }
.bv-logo-gira{ width: 120px; height: 120px; margin: 0 auto 8px; background: #fff; -webkit-mask: url('assets/logo-mark.png') center/contain no-repeat; mask: url('assets/logo-mark.png') center/contain no-repeat; animation: gira 18s linear infinite; }
@keyframes gira{ to{ transform: rotate(360deg); } }

.guia-luz{ position: fixed; z-index: 310; border-radius: 24px; box-shadow: 0 0 0 9999px rgba(10,10,12,.62), 0 0 0 2px rgba(255,255,255,.9); pointer-events: none; transition: all .55s var(--spring); }
.guia-caja{
  position: fixed; z-index: 311; width: min(360px, calc(100vw - 32px)); padding: 20px 22px; border-radius: 24px; color: var(--ink);
  background: rgba(250,249,247,.94); border: 1px solid var(--glass-edge); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); transition: top .55s var(--spring), left .55s var(--spring);
}
:root[data-tema="noche"] .guia-caja{ background: rgba(28,28,32,.94); }
.guia-caja .etq{ color: var(--accent); }
.guia-caja h4{ font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: -.01em; margin-top: 6px; }
.guia-caja p{ font-size: 13.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.55; }
.guia-caja .acc{ display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 8px; }
.guia-caja .acc .btn{ height: 38px; }
.guia-barra{ height: 3px; border-radius: 999px; background: var(--line); margin-top: 14px; overflow: hidden; }
.guia-barra i{ display: block; height: 100%; background: var(--accent); transition: width .5s var(--ease); }

/* ---------- Teléfono: el riel se vuelve un dock abajo ---------- */
@media (max-width: 860px){
  .admin-app{ padding-left: 0; padding-bottom: 100px; }
  .admin-main{ padding: 16px 16px 32px; }
  .riel{ top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; height: 68px; flex-direction: row; padding: 0 10px; border-radius: 34px; overflow-x: auto; justify-content: flex-start; gap: 4px; scrollbar-width: none; }
  .riel::-webkit-scrollbar{ display: none; }
  .riel nav{ flex-direction: row; gap: 4px; }
  .riel-logo, .riel-esp, .riel-avatar{ display: none; }
  .riel-sep{ width: 1px; height: 28px; margin: 0 4px; }
  .riel [data-tip]::before{ display: none; }
  .search-box{ min-width: 0; flex: 1; }
  .sc-top-actions{ width: 100%; }
  .admin-topbar{ align-items: stretch; }
}

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

/* ---------- Alertas de patrones ---------- */
.tab-alertas{ display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab-alerta{ display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 16px 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: left;
  border: 1px solid var(--glass-edge); background: var(--glass-2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow); transition: transform .35s var(--spring); animation: aparece .6s var(--spring) both; }
.tab-alerta:hover{ transform: translateY(-2px); } .tab-alerta:active{ transform: scale(.97); }
.tab-alerta.mal{ color: var(--bad); } .tab-alerta.bien{ color: var(--ok); }
:root[data-tema="noche"] .tab-alerta.mal{ color: #ff8a73; } :root[data-tema="noche"] .tab-alerta.bien{ color: #6fd08a; }
.pulso-pt{ width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; position: relative; }
.pulso-pt::after{ content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid currentColor; animation: late 1.8s var(--ease) infinite; }
@keyframes late{ from{ transform: scale(.5); opacity: .9; } to{ transform: scale(1.6); opacity: 0; } }
.w-alerta{ display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; margin-top: 4px; animation: aparece .6s var(--spring) .6s both; }
.w-alerta svg{ width: 11px; height: 11px; }
.w-alerta.mal{ background: rgba(178,58,42,.14); color: var(--bad); } .w-alerta.bien{ background: rgba(47,138,74,.14); color: var(--ok); }
.w.oscuro .w-alerta.bien, .w.foto .w-alerta.bien{ color: #6fd08a; background: rgba(111,208,138,.16); }
.w.oscuro .w-alerta.mal, .w.foto .w-alerta.mal{ color: #ff8a73; background: rgba(255,138,115,.16); }
.w.alerta-mal{ box-shadow: 0 0 0 1.5px rgba(178,58,42,.35), var(--shadow); }
.w.alerta-bien{ box-shadow: 0 0 0 1.5px rgba(47,138,74,.3), var(--shadow); }
.w-tit h3 + p + .w-alerta{ display: inline-flex; }
/* Al redibujar por cambio de tamaño no se repite la animación de entrada */
.quieto .barra, .quieto .barra-h, .quieto .dibuja, .quieto [style*="creceh"]{ animation: none !important; stroke-dashoffset: 0; }
@media (max-height: 820px) and (min-width: 861px){
  .riel{ gap: 4px; padding: 10px 0; }
  .riel nav{ gap: 4px; }
  .riel-btn{ width: 42px; height: 42px; }
  .riel-logo{ width: 42px; height: 42px; margin-bottom: 4px; }
  .riel-avatar{ width: 38px; height: 38px; font-size: 14px; }
}
@media (max-height: 660px) and (min-width: 861px){ .riel-logo, .riel-sep{ display: none; } .riel-btn{ width: 38px; height: 38px; } .riel-btn svg{ width: 18px; height: 18px; } }
@media (max-width: 860px){
  .sc-top-actions{ flex-direction: column; align-items: stretch; }
  .search-box{ min-height: 44px; }
  .tab-nota{ display: none; }
  .tab-alerta{ border-radius: 20px; }
}
@media (max-width: 860px){
  .status-filters{ flex-wrap: nowrap; overflow-x: auto; flex-basis: 100%; scrollbar-width: none; padding-bottom: 2px; }
  .status-filters::-webkit-scrollbar{ display: none; }
  .status-filters button{ flex: none; }
  .toolbar .sc-select{ flex: 1; }
}

/* ---------- Pie legal (My Genie) ---------- */
.pie-legal{ margin-top: 48px; padding: 28px 0 8px; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 16px 40px; color: var(--ink-2); }
.pl-marca{ display: flex; flex-direction: column; gap: 12px; }
.pl-marca img{ width: 144px; height: auto; opacity: .88; }
:root[data-tema="noche"] .pl-marca img{ filter: invert(1); }
.pl-marca b{ display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.pl-marca span{ display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; letter-spacing: .02em; }
.pl-texto{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: 11.5px; line-height: 1.65; text-align: justify; hyphens: auto; }
.pl-texto b{ color: var(--ink); font-weight: 600; }
.pl-base{ grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .04em; color: var(--ink-3); }
.pl-base nav{ display: flex; gap: 20px; flex-wrap: wrap; }
.pl-base a{ color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.pl-base a:hover{ color: var(--ink); border-color: currentColor; }
@media (max-width: 980px){ .pie-legal{ grid-template-columns: 1fr; } .pl-texto{ grid-template-columns: 1fr; } }

/* ---------- Exportar ---------- */
.exp-opciones{ display: grid; gap: 10px; margin-top: 20px; }
.exp-op{ display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; text-align: left; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--field); cursor: pointer; transition: transform .35s var(--spring), border-color .2s, box-shadow .3s; }
.exp-op:hover{ transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.exp-op:active{ transform: scale(.98); transition-duration: .08s; }
.exp-op b{ display: block; font-size: 15px; } .exp-op small{ display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 2px; line-height: 1.45; }
.exp-ico{ width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: .06em; color: #fff; }
.exp-ico.pdf{ background: linear-gradient(135deg, #c4682f, #8a3a1a); }
.exp-ico.xls{ background: linear-gradient(135deg, #2f8a4a, #1d5c30); }
.exp-ico.corte{ background: linear-gradient(135deg, #2b2b30, #0f0f11); font-size: 22px; font-family: var(--display); font-weight: 300; }
.exp-corte{ display: grid; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--glass-2); border: 1px solid var(--line); animation: aparece .4s var(--spring) both; }
.exp-corte .status-filters{ flex: none; }
.corte-resumen{ margin: 0; font-family: var(--display); font-size: 18px; font-weight: 300; }
.corte-resumen small{ display: block; font-family: var(--font); font-size: 12px; color: var(--ink-3); margin-top: 2px; }
#expCorte[aria-expanded="true"]{ border-color: var(--accent); }

/* ---------- Encuestas ---------- */
.enc-kiosco{ display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; width: 100%; }
.enc-kiosco b{ display: block; font-size: 15px; } .enc-kiosco span{ display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.enc-acc{ display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .enc-acc input{ width: 240px; cursor: text; }
.enc-kpis{ display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.enc-kpis .vidrio{ padding: 18px 20px; border-radius: var(--r-lg); }
.enc-kpis .vidrio.oscuro{ background: #0f0f11; color: #f4f2ee; --ink-3: rgba(244,242,238,.55); }
:root[data-tema="noche"] .enc-kpis .vidrio.oscuro{ background: rgba(255,255,255,.92); color: #111; --ink-3: rgba(0,0,0,.5); }
.enc-grid{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.enc-grid .vidrio{ padding: 20px 22px; min-width: 0; }
.enc-grid h3{ font-size: 14px; font-weight: 600; } .enc-grid h3 + p{ font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.estrellas{ color: var(--accent); letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.enc-tags{ display: flex; flex-wrap: wrap; gap: 4px; } .enc-tags span{ font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--glass-2); border: 1px solid var(--line); white-space: nowrap; }
@media (max-width: 1100px){ .enc-kpis{ grid-template-columns: repeat(3, 1fr); } .enc-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px){ .enc-kpis{ grid-template-columns: 1fr 1fr; } .enc-grid{ grid-template-columns: 1fr; } .enc-acc input{ width: 100%; } }

/* ---------- Ceremonia de cobro (moneda 3D: de óxido a oro) ---------- */
.cer{ position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; align-content: center; gap: 28px; padding: 24px;
  background: radial-gradient(ellipse at 50% 40%, rgba(40,26,14,.55), rgba(8,8,10,.82) 70%);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  opacity: 0; transition: opacity .45s var(--ease); color: #f4f2ee; }
.cer.on{ opacity: 1; } .cer.sale{ opacity: 0; transition-duration: .55s; }
.cer-escena{ position: relative; width: 280px; height: 280px; display: grid; place-items: center; perspective: 900px; transform: translateY(16px) scale(.9); transition: transform .9s var(--spring); }
.cer.on .cer-escena{ transform: none; }
/* Halo de vidrio líquido detrás de la moneda */
.cer-halo{ position: absolute; inset: -30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.22), rgba(255,255,255,.04) 45%, transparent 62%), conic-gradient(from 0deg, rgba(224,138,79,.28), rgba(143,123,240,.22), rgba(209,69,122,.2), rgba(224,138,79,.28));
  filter: blur(18px); animation: cerGira 9s linear infinite; }
.cer.oro .cer-halo{ background: radial-gradient(circle at 50% 50%, rgba(255,231,168,.55), rgba(224,170,79,.2) 45%, transparent 65%); filter: blur(26px); animation: cerLatido 2.2s var(--ease) infinite; }
@keyframes cerGira{ to{ transform: rotate(360deg); } }
@keyframes cerLatido{ 50%{ transform: scale(1.08); opacity: .8; } }
/* Anillo de progreso */
.cer-anillo{ position: absolute; inset: 10px; animation: cerGira 1.6s linear infinite; }
.cer-anillo svg{ width: 100%; height: 100%; overflow: visible; }
.cer-pista{ fill: none; stroke: rgba(255,255,255,.08); stroke-width: 2; }
.cer-arco{ fill: none; stroke: url(#cerG); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 160 654; filter: drop-shadow(0 0 6px rgba(224,138,79,.7)); transition: stroke-dasharray 1s var(--ease), opacity .6s; }
.cer.frena .cer-anillo{ animation-duration: 3.2s; }
.cer.oro .cer-arco{ stroke-dasharray: 654 0; opacity: 0; }
.cer.falla .cer-arco{ stroke: #ff8a73; filter: drop-shadow(0 0 6px rgba(255,138,115,.8)); }
/* Moneda: cara + canto en capas para que tenga grosor real al girar */
.cer-moneda{ position: relative; width: 192px; height: 192px; transform-style: preserve-3d; animation: cerMoneda 2.4s cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes cerMoneda{ 0%{ transform: rotateX(12deg) rotateY(0); } 100%{ transform: rotateX(12deg) rotateY(360deg); } }
.cer.frena .cer-moneda{ animation: cerFrena 1.1s cubic-bezier(.18,.9,.25,1.12) forwards; }
@keyframes cerFrena{ from{ transform: rotateX(12deg) rotateY(-200deg); } 70%{ transform: rotateX(-4deg) rotateY(8deg) scale(1.06); } to{ transform: rotateX(0) rotateY(0) scale(1.04); } }
.cer.falla .cer-moneda{ animation: cerTiembla .5s var(--ease); }
@keyframes cerTiembla{ 20%{ transform: rotateY(-18deg); } 40%{ transform: rotateY(14deg); } 60%{ transform: rotateY(-8deg); } 80%{ transform: rotateY(4deg); } }
.cer-canto{ position: absolute; inset: 0; border-radius: 50%; transform: translateZ(var(--z)); background: radial-gradient(circle, #5a2a10 60%, #2b1407); }
.cer.oro .cer-canto{ background: radial-gradient(circle, #8a6418 60%, #4a3308); transition: background .8s .3s; }
.cer-cara{ position: absolute; inset: 0; border-radius: 50%; overflow: hidden; transform: translateZ(1px);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.18) inset, 0 30px 60px -18px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.4); }
.cer-cara i{ position: absolute; inset: 0; display: block; }
.cer-oxido{ background: url('assets/logo-oxido.jpg?v=2') center/cover; }
/* El oro entra desde el centro como si se limpiara el óxido */
.cer-oro{ background: url('assets/logo-oro.jpg?v=1') center/cover;
  -webkit-mask: radial-gradient(circle, #000 48%, transparent 50.5%) center / 0% 0% no-repeat; mask: radial-gradient(circle, #000 48%, transparent 50.5%) center / 0% 0% no-repeat; }
.cer.oro .cer-oro{ animation: cerLimpia 1.1s cubic-bezier(.6,.02,.2,1) forwards; }
@keyframes cerLimpia{ to{ -webkit-mask-size: 320% 320%; mask-size: 320% 320%; } }
.cer-brillo{ background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.0) 40%, rgba(255,250,225,.75) 50%, rgba(255,255,255,0) 60%, transparent 70%) -160% 0 / 250% 100% no-repeat; mix-blend-mode: overlay; }
.cer.oro .cer-brillo{ animation: cerBrillo 1.4s .7s var(--ease) forwards; }
@keyframes cerBrillo{ to{ background-position: 160% 0; } }
/* Destello al terminar */
.cer.oro .cer-cara{ animation: cerDestello 1.2s .55s var(--ease) both; }
@keyframes cerDestello{ 30%{ box-shadow: 0 0 0 1.5px rgba(255,240,200,.6) inset, 0 0 80px 10px rgba(255,214,120,.55), 0 30px 60px -18px rgba(0,0,0,.7); } 100%{ box-shadow: 0 0 0 1.5px rgba(255,240,200,.35) inset, 0 0 40px 0 rgba(255,214,120,.3), 0 30px 60px -18px rgba(0,0,0,.7); } }
/* Esquirlas de óxido y chispas */
.cer-esquirlas{ position: absolute; inset: 0; pointer-events: none; }
.cer-esquirlas i{ position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2); opacity: 0;
  animation: cerEsquirla var(--t) cubic-bezier(.15,.7,.3,1) var(--d) forwards; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.cer-esquirlas i.chispa{ background: #ffe7a8; border-radius: 50%; box-shadow: 0 0 8px 2px rgba(255,214,120,.8); }
@keyframes cerEsquirla{ 0%{ opacity: 1; transform: translate(0, 0) rotate(0) scale(1); } 100%{ opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.4); } }
/* Texto */
.cer-txt{ text-align: center; transition: opacity .22s, transform .3s var(--ease); max-width: 90vw; }
.cer-txt.cambia{ opacity: 0; transform: translateY(6px); }
.cer-ceja{ font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #e5a47a; }
.cer.oro .cer-ceja{ color: #ffd98a; }
.cer-tit{ font-family: var(--display); font-weight: 300; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; margin-top: 8px; display: inline-flex; align-items: center; gap: 12px; }
.cer-puntos b{ font-weight: 300; animation: cerPunto 1.2s infinite; opacity: .2; } .cer-puntos b:nth-child(2){ animation-delay: .2s; } .cer-puntos b:nth-child(3){ animation-delay: .4s; }
@keyframes cerPunto{ 40%{ opacity: 1; } }
.cer-sub{ font-size: 14px; color: rgba(244,242,238,.7); margin-top: 6px; min-height: 20px; }
.cer-check{ width: 30px; height: 30px; flex: none; fill: none; stroke: #ffd98a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: traza .6s .15s var(--ease) forwards; }
@media (prefers-reduced-motion: reduce){ .cer-moneda, .cer-anillo, .cer-halo{ animation: none !important; } .cer.oro .cer-oro{ -webkit-mask: none; mask: none; } }
/* Logo 3D (WebGL): ocupa la escena y oculta la moneda plana de respaldo */
.cer-3d{ position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); z-index: 2; }
.cer.con-3d .cer-moneda{ display: none; }
.cer.con-3d .cer-escena{ width: 320px; height: 320px; }
.cer.con-3d .cer-anillo{ inset: 4px; }
.cer.con-3d .cer-esquirlas{ display: none; }

.sc-pareja{ display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.sc-pareja::before{ content: ""; width: 14px; height: 8px; flex: none; background: radial-gradient(circle at 4px 4px, currentColor 3px, transparent 3.5px), radial-gradient(circle at 10px 4px, currentColor 3px, transparent 3.5px); opacity: .7; }
.sc-pareja b{ color: var(--ink-2); font-weight: 600; } .sc-pareja.sola{ color: #9a4f20; }
:root[data-tema="noche"] .sc-pareja.sola{ color: #f0a477; }
/* Perfil VIP: etiqueta dorada y pase en la ficha */
.sc-tag.vip{ background: linear-gradient(135deg, #f6dc8f, #c9962d 55%, #8a6114); color: #241703; border-color: transparent; box-shadow: 0 0 0 1px rgba(201,150,45,.35), 0 2px 8px -2px rgba(201,150,45,.6); }
.sc-pase-vip{ position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border-radius: 18px; color: #f7ecd0;
  background: radial-gradient(120% 140% at 0% 0%, #3a2d12, #0e0c09 60%); box-shadow: inset 0 0 0 1px rgba(232,196,110,.35), 0 14px 30px -18px rgba(0,0,0,.7); }
.sc-pase-vip::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,230,160,.18) 48%, transparent 60%); transform: translateX(-60%); animation: sc-brillo 4.5s ease-in-out infinite; }
@keyframes sc-brillo{ 60%,100%{ transform: translateX(60%); } }
.sc-pase-k{ font-size: 10.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; background: linear-gradient(90deg, #f6dc8f, #c9962d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-pase-vip b{ font: 400 22px Outfit, sans-serif; color: #fff; }
.sc-pase-vip span{ font-size: 12px; color: #cdbf9c; }
.sc-pase-vip em{ font-size: 12px; color: #e8c46e; font-style: normal; }
@media (prefers-reduced-motion: reduce){ .sc-pase-vip::after{ animation: none; } }
/* Aviso de novedades en el botón del tutorial */
#tutorialBtn.tiene-nuevo{ position: relative; }
#tutorialBtn.tiene-nuevo::after{ content: ""; position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: #e0457f; box-shadow: 0 0 0 2px var(--night, #111), 0 0 10px #e0457f; animation: tn-late 1.6s ease-in-out infinite; }
@keyframes tn-late{ 50%{ transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce){ #tutorialBtn.tiene-nuevo::after{ animation: none; } }
/* Anualidad en pareja en el mostrador */
.sc-pareja-pago{ display: flex; flex-direction: column; gap: 12px; padding: 14px; margin-top: 4px; border-radius: 16px; background: var(--field); border: 1px solid var(--line); }
.sc-pareja-pago[hidden]{ display: none; }

/* ---------- ADVERTENCIA (rojo): avisos obligatorios al equipo ---------- */
.av-rojo{ position: relative; overflow: hidden; margin-bottom: 18px; border-radius: 20px; background: #fff4f2; border: 1.5px solid #e5402f; box-shadow: 0 18px 40px -26px rgba(200,40,25,.55); color: #2b1411; }
:root[data-tema="noche"] .av-rojo{ background: #2a1210; color: #fbe9e6; }
.av-cinta{ height: 10px; background: repeating-linear-gradient(135deg, #d62f22 0 14px, #fff 14px 28px); }
.av-cuerpo{ display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px 6px; }
.av-senal{ flex: none; width: 54px; height: 54px; filter: drop-shadow(0 6px 10px rgba(200,40,25,.35)); }
.av-pantalla .av-senal{ animation: av-late 2.4s ease-in-out infinite; }
@keyframes av-late{ 50%{ transform: scale(1.06); } }
.av-k{ margin: 0; font: 700 11px Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #d62f22; }
.av-txt h3{ margin: 3px 0 4px; font: 500 21px/1.2 Outfit, sans-serif; color: #b3231a; }
:root[data-tema="noche"] .av-txt h3{ color: #ff8a7d; }
.av-txt p{ margin: 0; font-size: 13px; line-height: 1.55; }
.av-pasos{ list-style: none; margin: 0; padding: 10px 20px 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.av-pasos li{ display: flex; gap: 10px; font-size: 12.5px; line-height: 1.45; }
.av-pasos li > span{ flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #d62f22; color: #fff; font: 700 12px Inter, sans-serif; }
.av-pasos b{ display: block; font-size: 13px; }
.av-pantalla{ position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 20px; background: rgba(40,8,6,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: av-entra .5s ease; }
@keyframes av-entra{ from{ opacity: 0; } }
.av-marco{ width: min(640px, 100%); max-height: 92vh; overflow: auto; border-radius: 26px; background: #fff; color: #2b1411; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); animation: av-sube .6s cubic-bezier(.22,.8,.2,1); }
@keyframes av-sube{ from{ transform: translateY(18px) scale(.98); opacity: 0; } }
.av-centro{ display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 30px 24px; text-align: center; }
.av-centro .av-senal{ width: 76px; height: 76px; }
.av-centro h2{ margin: 0; font: 400 32px/1.15 Outfit, sans-serif; letter-spacing: -.01em; }
.av-centro h2 b{ color: #d62f22; font-weight: 600; }
.av-p{ margin: 0; font-size: 14.5px; line-height: 1.55; max-width: 500px; }
.av-medida{ display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 16px; background: #fff1ee; border: 1px solid #f3c2bb; font-size: 13px; line-height: 1.5; }
.av-medida svg{ flex: none; width: 24px; height: 24px; color: #d62f22; margin-top: 1px; }
.av-centro .av-pasos{ padding: 4px 0; text-align: left; width: 100%; }
.av-ok{ margin-top: 6px; background: #d62f22 !important; color: #fff !important; border-color: transparent !important; }
.av-firma{ margin: 0; font-size: 11.5px; color: #8b6b66; }
@media (max-width: 760px){ .av-pasos{ grid-template-columns: 1fr; } .av-centro h2{ font-size: 26px; } .av-cuerpo{ padding: 14px 14px 4px; } .av-senal{ width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce){ .av-senal, .av-pantalla, .av-marco{ animation: none; } }
