/* =========================================================
   Finger ID · Cladera Biometrics — TEMA v4.3 «Aurora»
   Se carga al final (sitio, usuario y administrador).
   - Sin bordes en tarjetas, cajas, tablas ni campos: profundidad
     con sombras suaves y fondos tenues.
   - Cajas rectangulares; solo los botones con esquinas redondeadas.
   - Tipografía Inter + Plus Jakarta Sans, acentos índigo → cian.
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg2: #ffffff;
  --bg3: #f2f5fb;
  --soft: #f6f8fc;
  --line: #edf1f7;
  --tx: #0b1324;
  --tx2: #5b6b85;
  --pri: #4f46e5;
  --pri2: #4338ca;
  --cy: #06b6d4;
  --ok: #059669;
  --warn: #d97706;
  --err: #e11d48;
  --grad: linear-gradient(135deg, #4f46e5 0%, #2563eb 45%, #06b6d4 100%);
  --sh: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 18px -6px rgba(15, 23, 42, .10), 0 18px 40px -24px rgba(15, 23, 42, .18);
  --sh-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 18px 50px -18px rgba(30, 41, 99, .28);
  --ring: 0 0 0 3px rgba(79, 70, 229, .18);
}
html.a11y-contrast { --tx: #000; --tx2: #1f2937; --line: #e5e7eb; --pri: #3525c9; }

body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--tx); letter-spacing: -.003em; }
h1, h2, h3, .page-h, .page-title, .hero h1, .sec h2, .brand, .kpi b, .plan-price, .hero-stats b {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif; letter-spacing: -.025em;
}
::selection { background: rgba(79, 70, 229, .18); }

/* ---------- 1. FUERA BORDES: superficies ---------- */
.box, .form, .card, .kpi, .stat-box, .indexer, .table-wrap, .ses-card, .roster li, .log li, .feed-item, .filtros,
.login-box, .shot, .sample, .me-head-a, .a11y-panel, .a11y-inline, .tabs, .tabs-lg, .sol, .kc-s, .wday, .blk, .cal-d,
.feat, .timeline li, .cta-box, .faq details, .fieldset, .auth-card, .me-head, .course, .consent, .demo-cred, .mark-row,
.mark-done, .plan, .post-card, .banner-box, .tipo-opt, .steps-tabs button, .modes button, .seg, .nav-toggle, .a11y-btn,
.empty, .alert, .toast, .banner, .sedit-form, .kio, .bio-card, .quote, .note-box, .dl-box, .cap-box, .calc, .react-box,
.emo-stage, .stage, .modal-in, .live-class, .class-row, .cmp, .privacy, .post-cta, .emo-cta, .kc-pick, .week-total, .sol-msg {
  border: 0 !important;
}
.thumb.snap { border: 0 !important; box-shadow: 0 0 0 2px #fff, 0 4px 10px -2px rgba(15, 23, 42, .25); }
.site-top { border-bottom: 0 !important; }
.sec-alt { border: 0 !important; }
.site-foot { border-top: 0 !important; }
.demo-bar, .row-inline, .kc-slot { border: 0 !important; box-shadow: inset 0 1px 0 var(--line); }
.row-inline { box-shadow: inset 0 -1px 0 var(--line); }
.row-inline:last-child { box-shadow: none; }

/* superficies elevadas */
.box, .form, .card, .stat-box, .indexer, .table-wrap, .ses-card, .filtros, .login-box, .me-head-a, .feat, .timeline li,
.cta-box, .fieldset, .auth-card, .me-head, .plan, .post-card, .sol, .kio, .bio-card, .modal-in, .a11y-panel, .calc, .react-box {
  background: #fff; box-shadow: var(--sh);
}
.kpi { background: #fff; box-shadow: var(--sh); position: relative; overflow: hidden; padding: 14px 16px 12px; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--grad); opacity: .9; }
.kpi.ok::before { background: linear-gradient(90deg, #10b981, #34d399); }
.kpi.warn::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.kpi.err::before { background: linear-gradient(90deg, #e11d48, #fb7185); }
.kpi b { font-size: 26px; }
/* superficies tenues (dentro de otras) */
.roster li, .log li, .feed-item, .shot, .sample, .course, .consent, .demo-cred, .a11y-inline, .sedit-form, .faq details, .week-total, .sol-msg, .tipo-opt, .kc-s, .wday, .cal-d, .blk {
  background: var(--soft); box-shadow: none;
}
.feed-item { background: #fff; box-shadow: var(--sh); }
.blk { background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.cal-d.empty { background: none; }
.cal-d.prog { background: #eef2ff; }
.wday.on { background: #f0f3ff; }
.empty { background: var(--soft); color: var(--tx2); }
.form.danger { box-shadow: var(--sh), inset 3px 0 0 #fda4af; }

/* acentos de estado sin bordes: barra interior */
.card { box-shadow: var(--sh), inset 4px 0 0 var(--line); }
.card.known { box-shadow: var(--sh), inset 4px 0 0 var(--ok); }
.card.unknown { box-shadow: var(--sh), inset 4px 0 0 var(--warn); }
.sol { box-shadow: var(--sh), inset 4px 0 0 var(--warn); }
.sol.done { box-shadow: var(--sh), inset 4px 0 0 var(--ok); }
.roster li.live { box-shadow: inset 3px 0 0 var(--ok); background: #f0fdf7; }
.blk.bad { box-shadow: 0 0 0 2px var(--err); }
.alert { box-shadow: inset 4px 0 0 currentColor; padding: 12px 14px; }
.alert-ok { background: #ecfdf5; color: #065f46; } .alert-err { background: #fff1f2; color: #9f1239; } .alert-warn { background: #fffbeb; color: #92400e; }
.toast { box-shadow: var(--sh-lg); }
.toast.ok { box-shadow: var(--sh-lg), inset 4px 0 0 var(--ok); } .toast.warn { box-shadow: var(--sh-lg), inset 4px 0 0 var(--warn); }

/* selección (antes con borde de color): anillo interior */
.kc-s:has(input:checked), .tipo-opt.on { background: #eef2ff; box-shadow: inset 0 0 0 2px var(--pri); }
.modes button { background: #fff; box-shadow: var(--sh); transition: transform .15s, box-shadow .2s, background .2s; }
.modes button:hover { transform: translateY(-1px); }
.modes button.on { background: var(--grad); color: #fff; box-shadow: 0 12px 28px -10px rgba(79, 70, 229, .7); }
.modes button.on small { color: rgba(255, 255, 255, .85); }
.modes button[data-m="entrada"].on { background: linear-gradient(135deg, #10b981, #047857); box-shadow: 0 12px 28px -10px rgba(16, 185, 129, .7); }
.modes button[data-m="salida"].on { background: linear-gradient(135deg, #f97316, #c2410c); box-shadow: 0 12px 28px -10px rgba(249, 115, 22, .7); }

/* ---------- 2. TABLAS ---------- */
.tbl th { background: var(--soft); border-bottom: 0 !important; color: var(--tx2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 12px 10px; }
.tbl td { border-bottom: 0 !important; box-shadow: inset 0 -1px 0 var(--line); }
.tbl tr:last-child td { box-shadow: none; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover td { background: #fafbff; }
.matrix .sticky-col { background: #fff; }

/* ---------- 3. CAMPOS ---------- */
input, select, textarea {
  border: 0 !important; background: var(--bg3); box-shadow: inset 0 0 0 1px transparent; transition: background .2s, box-shadow .2s; color: var(--tx);
}
input:hover, select:hover, textarea:hover { background: #ebeff7; }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--pri), var(--ring) !important; }
input[type="checkbox"], input[type="radio"] { background: none; box-shadow: none !important; accent-color: var(--pri); }
input[type="range"] { background: none; box-shadow: none; accent-color: var(--pri); }
.blk input { background: transparent; } .blk input:focus { box-shadow: none !important; background: #f0f3ff; }
.field-err input, .field-err select { box-shadow: inset 0 0 0 1.5px var(--err), 0 0 0 3px rgba(225, 29, 72, .12) !important; }
input[readonly], input:disabled, select:disabled { background: #eef1f6; color: var(--tx2); }
label { color: var(--tx2); }

/* ---------- 4. BOTONES (únicos redondeados) ---------- */
.btn {
  border: 0 !important; background: #fff; color: var(--tx); font-weight: 650;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 4px 12px -4px rgba(15, 23, 42, .14);
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { background: #fff; color: var(--pri); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 10px 22px -8px rgba(30, 41, 99, .28); }
.btn:active { transform: translateY(0) scale(.99); }
.btn-primary, .btn-primary:hover { background: var(--grad); background-size: 140% 140%; color: #fff; }
.btn-primary { box-shadow: 0 8px 22px -8px rgba(79, 70, 229, .65); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 14px 30px -10px rgba(37, 99, 235, .7); color: #fff; }
.btn-del:hover { color: var(--err); }
.btn:disabled, .btn[disabled] { opacity: .55; transform: none; }
.nav-toggle, .a11y-btn { background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 4px 12px -4px rgba(15, 23, 42, .14); }
.tabs, .tabs-lg { background: var(--bg3); box-shadow: none; }
.tab.on, .tabs-lg .tab.on { background: #fff; color: var(--pri); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 4px 10px -4px rgba(15, 23, 42, .18); }
.seg { background: var(--bg3); padding: 3px; gap: 3px; }
.seg button { background: transparent; } .seg button.on { background: #fff; color: var(--pri); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.steps-tabs button { background: #fff; box-shadow: var(--sh); }
.steps-tabs button.on { background: var(--grad); color: #fff; }

/* ---------- 5. ETIQUETAS ---------- */
.badge { background: #eef1f7; color: #3b4a64; font-weight: 700; letter-spacing: .01em; }
.badge.ok { background: #d1fae5; color: #065f46; } .badge.warn { background: #fef3c7; color: #92400e; } .badge.err { background: #ffe4e6; color: #9f1239; }
.eyebrow, .brand-tag { background: linear-gradient(90deg, #eef2ff, #ecfeff); color: var(--pri); }
.panel-title { color: #44516b; letter-spacing: .08em; font-size: 12.5px; font-weight: 800; }
.page-h { font-size: 26px; font-weight: 800; }
.muted { color: var(--tx2); }
a { color: var(--pri); }

/* ---------- 6. ADMIN ---------- */
.topbar { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 0 !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 8px 24px -16px rgba(15, 23, 42, .25); }
body:has(> .topbar) { background: #f4f6fb; }
.topbar .nav a { font-weight: 600; transition: background .15s, color .15s; }
.topbar .nav a:hover { color: var(--tx); background: #f1f3f9; }
.topbar .nav a.on { color: var(--pri); background: #eef2ff; }
.brand-ico { filter: drop-shadow(0 4px 8px rgba(37, 99, 235, .35)); }
.stage { box-shadow: var(--sh-lg); }
.login-page { background: radial-gradient(900px 500px at 15% 0%, #e0e7ff 0, transparent 60%), radial-gradient(800px 500px at 100% 100%, #cffafe 0, transparent 55%), #f4f6fb; }
.login-box { box-shadow: var(--sh-lg); position: relative; }
.login-box::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.clock { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* kioscos (admin) */
.kio-list { display: grid; gap: 14px; align-content: start; }
.kio { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; padding: 18px; position: relative; }
.kio::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.kio.off { opacity: .65; } .kio.off::before { background: #cbd5e1; }
.kio.new { box-shadow: var(--sh-lg), 0 0 0 2px #a5b4fc; }
.kio-main { flex: 1 1 380px; min-width: 0; display: grid; gap: 12px; }
.kio-top { display: flex; gap: 12px; align-items: center; } .kio-top > div { flex: 1; min-width: 0; } .kio-top b { font-size: 16px; }
.kio-ico { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: linear-gradient(135deg, #eef2ff, #ecfeff); flex: none; }
.kio-code { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 18px; background: var(--soft); padding: 12px 14px; font-size: 13.5px; }
.kio-code span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--tx2); font-weight: 700; }
.kio-code b { font: 800 22px/1.1 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: .12em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kio-code code { background: none; padding: 0; word-break: break-all; }
.kio-acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; flex: 0 0 auto; }
.kio-acts .btn { width: 100%; }
.kio-edit summary { cursor: pointer; color: var(--pri); font-weight: 700; font-size: 13.5px; }
.kio-edit .form-plain { display: grid; gap: 10px; margin-top: 10px; background: var(--soft); padding: 14px; }
.seg-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 10px; }
.seg-pick label { margin: 0; cursor: pointer; }
.seg-pick input { position: absolute; opacity: 0; pointer-events: none; }
.seg-pick span { display: block; padding: 12px; background: var(--bg3); color: var(--tx); font-weight: 700; transition: background .2s, box-shadow .2s; }
.seg-pick span small { display: block; font-weight: 500; color: var(--tx2); font-size: 12px; }
.seg-pick input:checked + span { background: #eef2ff; box-shadow: inset 0 0 0 2px var(--pri); color: var(--pri2); }
.kio-help ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--tx2); }
@media (max-width: 620px) { .kio-code { grid-template-columns: 1fr; } .kio-acts { flex-direction: row; flex-wrap: wrap; } .kio-acts form { flex: 1 1 45%; } }

/* ---------- 7. SITIO PÚBLICO ---------- */
.site-top { background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 10px 30px -20px rgba(15, 23, 42, .3); }
.site-nav a.nl { font-weight: 600; position: relative; }
.site-nav a.nl.on { color: var(--pri); }
/* héroe con aurora animada */
.hero { position: relative; isolation: isolate; background: #fff; padding: 40px 0 56px; }
.hero::before, .hero::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; animation: aur 18s ease-in-out infinite alternate; }
.hero::before { width: 560px; height: 560px; right: -140px; top: -180px; background: radial-gradient(circle, #c7d2fe, transparent 65%); }
.hero::after { width: 520px; height: 520px; left: -200px; bottom: -260px; background: radial-gradient(circle, #a5f3fc, transparent 65%); animation-duration: 24s; }
@keyframes aur { to { transform: translate(60px, 40px) scale(1.12); } }
.hero-in { position: relative; }
.hero-in::before { content: ''; position: absolute; inset: -60px -40px; z-index: -1; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(79, 70, 229, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 70, 229, .06) 1px, transparent 1px); background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); }
.hero h1 { font-weight: 800; letter-spacing: -.04em; }
.grad, .sec h2 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats b { font-size: 30px; font-weight: 800; background: linear-gradient(180deg, var(--tx), #3b4a75); -webkit-background-clip: text; background-clip: text; color: transparent; }
.banner-box { box-shadow: 0 30px 80px -30px rgba(37, 99, 235, .45), 0 0 0 1px rgba(79, 70, 229, .05) !important; background: #fff; }
.sec { padding: 72px 0; }
.sec h2 { font-weight: 800; }
.sec-alt { background: linear-gradient(180deg, #f7f8fd 0%, #f2f6fc 100%); position: relative; }
.feat { transition: transform .25s, box-shadow .25s; position: relative; overflow: hidden; }
.feat::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.feat:hover::after { transform: scaleX(1); }
.feat-ico { background: linear-gradient(135deg, #eef2ff, #ecfeff); box-shadow: inset 0 0 0 1px rgba(79, 70, 229, .06); }
.timeline li::before { background: var(--grad) !important; box-shadow: 0 8px 18px -6px rgba(79, 70, 229, .6); }
.plan { transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.plan-price { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.post-card { transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.cta-box { background: radial-gradient(600px 240px at 100% 0%, #eef2ff 0, transparent 70%), #fff; }
.faq details { background: #fff; box-shadow: var(--sh); }
.faq details[open] { box-shadow: var(--sh), inset 3px 0 0 var(--pri); }
.mark-row { background: linear-gradient(90deg, #eef2ff, #f0fdff); }
.mark-done { background: #ecfdf5; }
.steps span { background: var(--bg3); }
.react { border: 0 !important; background: var(--bg3); box-shadow: none; }
.react.on { background: #eef2ff; box-shadow: inset 0 0 0 2px var(--pri); }
/* pie oscuro */
.site-foot { background: #0b1220; color: #94a3b8; margin-top: 0; padding: 36px 0; }
.site-foot a { color: #e2e8f0; }
.site-foot a:hover { color: #a5b4fc; }
.site-foot b, .site-foot strong { color: #fff; }

/* ---------- 8. ENTRADA SUAVE ---------- */
@media (prefers-reduced-motion: no-preference) {
  .box, .form, .kpi, .table-wrap, .feat, .plan, .post-card, .timeline li, .cta-box, .sol, .kio, .auth-card, .me-head, .me-head-a, .fieldset {
    animation: fr-rise .5s cubic-bezier(.2, .8, .2, 1) both;
  }
  .kpis > :nth-child(2), .grid-3 > :nth-child(2), .plans > :nth-child(2) { animation-delay: .05s; }
  .kpis > :nth-child(3), .grid-3 > :nth-child(3), .plans > :nth-child(3) { animation-delay: .1s; }
  .kpis > :nth-child(4), .grid-3 > :nth-child(4) { animation-delay: .15s; }
  .kpis > :nth-child(5) { animation-delay: .2s; }
}
@keyframes fr-rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { animation: none; } }

/* impresión: limpio */
@media print {
  body, body:has(> .topbar) { background: #fff !important; }
  .box, .form, .kpi, .table-wrap, .stat-box { box-shadow: none !important; animation: none !important; }
  .kpi::before { display: none; }
  .tbl td { box-shadow: inset 0 -1px 0 #ddd; }
}

/* ---------- 9. TELÉFONO CON CÓDIGO DE PAÍS ---------- */
.tel-field { display: block; margin-bottom: 12px; }
.tel-lbl { display: block; font-size: 13px; font-weight: 600; color: var(--tx2); margin-bottom: 5px; }
.tel-group { display: grid; grid-template-columns: minmax(118px, 42%) 1fr; gap: 6px; }
.tel-group select, .tel-group input { width: 100%; margin: 0; min-width: 0; }
.tel-group select { font-variant-numeric: tabular-nums; text-overflow: ellipsis; }
.tel { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tel-a { font-size: 12.5px; font-weight: 600; }
.flag { font-size: 18px; vertical-align: -2px; }
.tbl.paises .pref { font-variant-numeric: tabular-nums; color: var(--pri); }
.tbl.paises tr.off td { opacity: .5; }
.tbl.paises td.acts { white-space: nowrap; text-align: right; }
.tbl.paises td.acts > * { display: inline-block; vertical-align: top; margin-left: 4px; }
.pais-edit { position: relative; }
.pais-edit summary { list-style: none; cursor: pointer; } .pais-edit summary::-webkit-details-marker { display: none; }
.pais-edit[open] .form-plain { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 240px; display: grid; gap: 8px; background: #fff; padding: 14px; box-shadow: var(--sh-lg); }

/* ---------- 10. GEOLOCALIZACIÓN ---------- */
.geo-filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px; }
.geo-filtros label { margin: 0; min-width: 130px; flex: 1 1 130px; }
.geo-filtros .geo-q, .filtros .geo-q { flex: 2 1 220px; }
.geo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; }
.geo-map { position: relative; height: 560px; background: #e9eef6; box-shadow: var(--sh); overflow: hidden; }
.geo-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.geo-empty { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; text-align: center; padding: 30px; color: var(--tx2);
  background: radial-gradient(circle at 50% 40%, #fff 0, #eef2f9 70%); }
.geo-empty b { color: var(--tx); font-size: 17px; }
.geo-list { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow: auto; padding-right: 4px; }
.geo-it { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 10px 12px; border: 0; cursor: pointer; font: inherit; color: var(--tx);
  background: #fff; box-shadow: var(--sh), inset 3px 0 0 #10b981; border-radius: 0 !important; transition: transform .15s, box-shadow .2s, background .2s; }
.geo-it.salida { box-shadow: var(--sh), inset 3px 0 0 #f97316; }
.geo-it:hover { transform: translateX(2px); }
.geo-it.on { background: #eef2ff; box-shadow: var(--sh-lg), inset 3px 0 0 var(--pri); }
.geo-it img, .geo-ph { width: 46px; height: 46px; object-fit: cover; }
.geo-ph { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--pri); background: linear-gradient(135deg, #eef2ff, #ecfeff); }
.geo-tx { min-width: 0; } .geo-tx b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.geo-tx small { display: block; color: var(--tx2); font-size: 12px; line-height: 1.35; }
.geo-tx .geo-tel { color: var(--tx); font-weight: 600; }
.geo-iw { display: flex; gap: 10px; font: 13px/1.45 Inter, sans-serif; color: #0b1324; max-width: 300px; }
.geo-iw img { width: 64px; height: 64px; object-fit: cover; flex: none; }
.geo-mini { position: relative; height: 230px; background: #e9eef6; overflow: hidden; }
.geo-mini iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 960px) { .geo-layout { grid-template-columns: 1fr; } .geo-map { height: 420px; } .geo-list { max-height: none; } }
@media (max-width: 560px) { .geo-map { height: 340px; } .tel-group { grid-template-columns: 134px 1fr; } }

/* =========================================================
   v4.5 · Centros educativos, tablas profesionales, calendario
   ========================================================= */
.kpi-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
@media (min-width: 760px) { .kpi-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi-row .kpi { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-decoration: none; color: var(--tx); }
.kpi-row .kpi i { grid-row: 1 / 3; font-style: normal; font-size: 26px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--soft); }
.kpi-row .kpi b { font-size: 24px; line-height: 1.1; }
.kpi-row a.kpi:hover, .kpi-row .kpi.on { box-shadow: var(--sh-lg), inset 0 0 0 2px rgba(79, 70, 229, .35); }

.tbl-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 6px 0 10px; }
.tbl-tools .panel-title { margin: 0; display: flex; align-items: center; gap: 8px; }
.tbl-tools .inline-f { margin: 0; }
.tbl-tools select, .tbl-search { width: auto; min-width: 200px; margin: 0; }
.tbl-search { flex: 1 1 220px; max-width: 340px; padding-left: 34px !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b6b85' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px 50%; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-pro { min-width: 560px; }
.tbl-pro thead th { position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.tbl-pro tbody tr:nth-child(even) td { background: #fbfcfe; }
.tbl-pro tbody tr:hover td { background: #f3f5ff; }
.tbl-pro td { padding: 11px 10px; }
.tbl-pro .num, .tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl-pro td.acts { white-space: nowrap; text-align: right; }
.tbl-pro td.acts > * { display: inline-block; vertical-align: middle; margin-left: 4px; }
.tbl-pro tr.off td { opacity: .55; }
.tbl-pro a b { color: var(--tx); } .tbl-pro a:hover b { color: var(--pri); }
.nowrap { white-space: nowrap; }
.show-sm { display: none; }
@media (max-width: 560px) { .show-sm { display: block; } .tbl-pro { min-width: 0; } }

.tbl .pill, .muted .pill, .pill { background: var(--soft); color: var(--tx2); border: 0; padding: 2px 9px; font-size: 11.5px; font-weight: 700; display: inline-block; }
.pill-universidad { background: #eef2ff; color: #4338ca; }
.pill-instituto { background: #ecfeff; color: #0e7490; }
.pill-colegio { background: #ecfdf5; color: #047857; }

.mini-meter { display: inline-block; width: 70px; height: 7px; background: var(--bg3); vertical-align: middle; margin-right: 6px; overflow: hidden; }
.mini-meter i { display: block; height: 100%; background: var(--pri); }
.mini-meter i.ok { background: #10b981; } .mini-meter i.warn { background: #f59e0b; } .mini-meter i.err { background: #f43f5e; }

@media (min-width: 980px) { .two-col.wide-left { grid-template-columns: minmax(0, 1fr) 340px; } }

.tipo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.tchip input { position: absolute; opacity: 0; pointer-events: none; }
.tchip span { display: inline-block; padding: 8px 14px; background: var(--soft); font-weight: 700; font-size: 13.5px; cursor: pointer; border-radius: 999px; }
.tchip input:checked + span { background: var(--grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6); }
.tchip input:focus-visible + span { box-shadow: var(--ring); }

.cc-box select:disabled { opacity: .6; }
.cc-box optgroup { font-weight: 700; color: var(--tx2); }

/* calendario del usuario */
.box-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.box-head h2 { margin: 0; }
.cal-wrap { display: grid; gap: 18px; }
@media (min-width: 860px) { .cal-wrap { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; } }
.hor-card { background: var(--soft); padding: 10px 12px; margin-bottom: 8px; }
.next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.next-list li { display: flex; gap: 12px; align-items: center; background: #fff; box-shadow: var(--sh); padding: 8px 10px; }
.next-list .nd { width: 46px; text-align: center; font-size: 11px; color: var(--tx2); text-transform: uppercase; background: var(--soft); padding: 4px 0; }
.next-list .nd b { display: block; font-size: 18px; color: var(--pri); line-height: 1.1; }
.ucal .cal-d.has { background: #fafaff; }
.ucal .cal-s.ok { background: #d1fae5; color: #047857; }
.ucal .cal-s.warn { background: #fef3c7; color: #b45309; }
.ucal .cal-s.err { background: #ffe4e6; color: #be123c; }
.ucal .cal-ley { display: flex; flex-wrap: wrap; gap: 6px; }
.ucal .cal-ley .cal-s { display: inline-block; }
@media (max-width: 560px) { .ucal .cal-d { min-height: 44px; } .ucal .cal-s { font-size: 0; height: 6px; padding: 0; } .ucal .cal-ley .cal-s { font-size: 11px; height: auto; padding: 1px 6px; } }
@media print { .tbl-search, .tbl-tools select { display: none !important; } .tbl-pro tbody tr:nth-child(even) td { background: #f5f5f5 !important; } }
/* todas las tablas: cebra suave, encabezado fijo y números alineados */
.tbl thead th { position: sticky; top: 0; z-index: 1; }
.tbl tbody tr:nth-child(even):not(.sedit) td { background: #fbfcfe; }
.tbl tbody tr:hover td { background: #f3f5ff; }

/* v4.5 · fechas de la demo de empresas */
.demo-fs { border: 0; background: var(--soft); padding: 10px 12px 12px; margin: 6px 0 10px; }
.demo-fs .demo-tt { font-weight: 800; font-size: 13.5px; margin-bottom: 6px; }
.demo-fs .demo-quick { margin-top: 2px; }
.demo-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.emp-edit { align-items: flex-end; }
.emp-edit .demo-quick, .emp-edit .toolbar { flex: 1 1 100%; }
.emp-edit .chk { flex: 0 0 auto; }
tr.flash td { animation: frFlash 2.4s ease-out; }
@keyframes frFlash { from { background: #dcfce7; } to { background: transparent; } }
#tblEmp tr[id^="emp"], tr.sedit { scroll-margin-top: 110px; }
.emp-edit .toolbar .btn-primary { flex: 0 0 auto; }
.demo-fs .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .demo-fs input { min-width: 0; width: 100%; box-sizing: border-box; padding-right: 6px; }

/* =========================================================
   FINGER ID · componentes de la huella digital y del código QR
   ========================================================= */
/* ---------- tarjeta «pon tu huella» ---------- */
.fp-box { text-align: center; }
.fp-box label, .fp-box .consent, .fp-box .form-msg, .fp-box ul, .fp-box details { text-align: left; }
.fp-pad { position: relative; width: 132px; height: 132px; margin: 18px auto 10px; display: flex; align-items: center; justify-content: center;
  color: var(--pri); background: #eef2ff; border-radius: 50%; transition: color .25s, background .25s, transform .25s; }
.fp-svg { width: 74px; height: 74px; display: block; }
.fp-ring { position: absolute; inset: -8px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(79, 70, 229, .16); pointer-events: none; }
.fp-pad.is-wait { color: var(--pri2); }
.fp-pad.is-wait .fp-ring { box-shadow: none; border: 3px solid rgba(79, 70, 229, .16); border-top-color: var(--pri); animation: spin 1s linear infinite; }
.fp-pad.is-wait .fp-svg { animation: fpPulse 1.2s ease-in-out infinite; }
.fp-pad.is-ok { color: #fff; background: var(--ok); transform: scale(1.04); }
.fp-pad.is-ok .fp-ring { box-shadow: inset 0 0 0 3px rgba(5, 150, 105, .28); }
.fp-pad.is-err { color: #fff; background: var(--err); animation: fpShake .4s; }
.fp-pad.is-err .fp-ring { box-shadow: inset 0 0 0 3px rgba(225, 29, 72, .28); }
.fp-state { min-height: 22px; margin: 0 auto 12px; max-width: 420px; font-weight: 600; color: var(--tx2); font-size: 14.5px; }
@keyframes fpPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes fpShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
html.a11y-reduce .fp-pad, html.a11y-reduce .fp-pad * { animation: none !important; transition: none !important; }

/* ---------- página del teléfono al escanear el QR (m.php) ---------- */
.m-box { max-width: 480px; margin: 0 auto; }
.m-done { margin: 6px 0 14px; }
.m-big { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: clamp(26px, 8vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 6px; }
.m-big.ok { color: var(--ok); }
.m-big.warn { color: var(--warn); }
.m-big.err { color: var(--err); }
.cls-count { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: var(--pri); line-height: 1.1; margin: 6px 0; }

/* ---------- teléfonos registrados / QR pequeño ---------- */
.dev-list li { align-items: center; justify-content: space-between; gap: 10px; }
.qr-mini { width: 180px; max-width: 100%; margin: 10px auto; padding: 8px; background: #fff; box-shadow: var(--sh); }
.qr-mini svg, .qr-code svg { display: block; width: 100%; height: auto; }
.photo-opt { display: block; margin-top: 12px; }
.photo-prev { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; margin: 8px auto 0; display: block; box-shadow: var(--sh); }
.photo-prev[hidden] { display: none; }

/* ---------- pantalla con QR del panel admin ---------- */
.qr-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 44px); flex-wrap: wrap;
  padding: 26px 20px; background: radial-gradient(ellipse at 30% 15%, #16224d, #070b1a 72%); color: #fff; box-shadow: var(--sh-lg); overflow: hidden; }
.qr-steps { list-style: none; counter-reset: qs; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 16px; font-weight: 600; color: #b9c4dc; }
.qr-steps li { counter-increment: qs; display: flex; align-items: center; gap: 12px; }
.qr-steps li::before { content: counter(qs); flex: none; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 800; }
.qr-steps b { color: #fff; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-code { width: min(300px, 64vw); min-height: 120px; padding: 10px; background: #fff; }
.qr-bar { width: 100%; height: 5px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.qr-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--pri), var(--cy)); transition: width .25s linear; }
.qr-wrap small.muted { color: #9fb0d0; }
.rs-btns { display: flex; gap: 4px; flex: none; }
.rs-btns .btn { min-width: 34px; padding-left: 8px; padding-right: 8px; }

/* ---------- enlace de activación (admin › Registrar) ---------- */
.act-card { text-align: center; }
.act-card .qr-mini { width: 230px; }
.act-link { display: flex; gap: 6px; margin: 10px 0; }
.act-link input { flex: 1; min-width: 0; font-size: 12.5px; }
.tipo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.tipo-row label { display: flex; gap: 8px; align-items: center; margin: 0; padding: 10px 12px; background: var(--bg3); cursor: pointer; font-weight: 600; }
.tipo-row label:has(input:checked) { background: #eef2ff; box-shadow: inset 0 0 0 2px var(--pri); }
.tipo-row input { width: auto; margin: 0; }
