/* =====================================================================
   Panel WiFi — sistema visual
   Azul marino (uniforme) + amarillo señal (solo para la acción principal).
   Las carpetas se ven como pestañas de archivador de color.
   ===================================================================== */
:root {
  --navy: #16234a;
  --navy-2: #213369;
  --navy-ink: #c5cde3;
  --navy-dim: #8693b8;
  --signal: #f2b705;
  --signal-2: #ffc928;
  --signal-ink: #1d1a0c;
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --ink: #1a2033;
  --ink-2: #3a4256;
  --muted: #687089;
  --line: #e2e6ee;
  --line-2: #d3d9e4;
  --ok: #1d8a5b;      --ok-soft: #e3f4eb;
  --bad: #c8382f;     --bad-soft: #fbe8e6;
  --warn: #9a6a00;    --warn-soft: #fbf0d3;
  --info: #2f5bd3;    --info-soft: #e7edfc;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow-pop: 0 18px 50px -12px rgba(22, 35, 74, .35);
  --font: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.012em; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 650; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--info) 45%, transparent); outline-offset: 2px; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8;
        stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- layout */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh;
       background: linear-gradient(to right, var(--navy) 252px, var(--bg) 252px); }
.side {
  background: var(--navy); color: var(--navy-ink);
  display: flex; flex-direction: column; padding: 18px 12px 14px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 22px; color: #fff; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--signal); color: var(--navy);
              display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 20px; height: 20px; stroke-width: 2.2; }
.brand-text { display: block; min-width: 0; }
.brand-text b { display: block; font-size: 15px; font-weight: 650; line-height: 1.25; color: #fff; }
.brand-text small { display: block; font-size: 12px; color: var(--navy-dim); }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px;
  color: var(--navy-ink); font-size: 14px; text-decoration: none; position: relative;
}
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.nav a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px;
                    border-radius: 0 3px 3px 0; background: var(--signal); }
.nav .count { margin-left: auto; font-size: 12px; color: var(--navy-dim); font-variant-numeric: tabular-nums; }
.nav a.on .count { color: var(--navy-ink); }
.nav-title { display: flex; align-items: center; justify-content: space-between;
             padding: 22px 10px 8px; font-size: 12.5px; color: var(--navy-dim); font-weight: 600; }
.nav-title button { background: none; border: 0; color: var(--navy-dim); cursor: pointer; padding: 3px; border-radius: 6px;
                    display: grid; place-items: center; }
.nav-title button:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav .lock { width: 14px; height: 14px; color: #f3a69f; }
.side .grow { flex: 1; min-height: 20px; }
.side-foot { border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }

/* Pestaña de carpeta: el elemento de identidad del panel */
.tab {
  --c: var(--muted);
  width: 18px; height: 14px; position: relative; flex: none; display: inline-block;
  background: var(--c); border-radius: 2px 3px 3px 3px; margin-top: 3px;
}
.tab::before { content: ""; position: absolute; left: 0; top: -3px; width: 8px; height: 4px;
               background: var(--c); border-radius: 2px 2px 0 0; }
.tab.vacia { background: transparent; box-shadow: inset 0 0 0 1.6px var(--c); }
.tab.vacia::before { background: var(--c); }

.main { padding: 30px 36px 80px; min-width: 0; max-width: 1280px; width: 100%; }
.topbar { display: none; }

/* ---------------------------------------------------------------- encabezados */
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .t { flex: 1; min-width: 240px; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.crumb:hover { color: var(--ink); text-decoration: none; }

/* Encabezado de carpeta con la pestaña grande */
.folder-head {
  --c: var(--info);
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--c); border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
  padding: 20px 22px; margin: 26px 0 22px;
}
.folder-head::before {
  content: attr(data-tab); position: absolute; left: -1px; top: -30px; height: 27px;
  padding: 4px 16px 0; background: var(--c); color: #fff; font-size: 13px; font-weight: 600;
  border-radius: 9px 9px 0 0; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.folder-head .row1 { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.folder-head h1 { flex: 1; min-width: 200px; }
.rules { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rule { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2);
        background: var(--surface-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 99px; }
.rule svg.i { width: 15px; height: 15px; color: var(--muted); }
.rule.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.rule.bad svg.i { color: var(--bad); }

/* ---------------------------------------------------------------- tarjetas y cifras */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 20px 22px; }
.card + .card, .card + form, form + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.card-head h2 { flex: 1; }
.card-head p { color: var(--muted); font-size: 13.5px; }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface);
           border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 18px; }
.figure { padding: 14px 20px; border-left: 1px solid var(--line); }
.figure:first-child { border-left: 0; }
.figure b { display: block; font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.figure span { font-size: 13px; color: var(--muted); }
.figure.live b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
                        background: var(--ok); margin-left: 8px; vertical-align: 5px;
                        box-shadow: 0 0 0 4px var(--ok-soft); }

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 14px; border-radius: var(--r-sm) ; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--surface-2); border-color: #c3cad8; text-decoration: none; }
.btn svg.i { width: 17px; height: 17px; }
.btn.primary { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.btn.primary:hover { background: var(--signal-2); border-color: var(--signal-2); }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.dark:hover { background: var(--navy-2); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); border-color: #f0c4bf; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(26,32,51,.06); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; font-weight: 550; }
.btn.icon { width: 38px; padding: 0; }
.btn.sm.icon { width: 32px; }
.btn.block { width: 100%; }

/* ---------------------------------------------------------------- formularios */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.hint { font-size: 12.5px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=number],
select, textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font: inherit; font-size: 14.5px; color: var(--ink); background: var(--surface);
}
textarea { height: auto; min-height: 120px; padding: 10px 12px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
input:hover, select:hover, textarea:hover { border-color: #bfc7d6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
input::placeholder { color: #9aa1b3; }
.with-btn { display: flex; gap: 6px; }
.with-btn input { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset > * + * { margin-top: 14px; }
.fieldset + .fieldset { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 22px; }
/* La leyenda flotante evita que el navegador la dibuje encima del borde */
.fieldset > legend { float: left; width: 100%; font-size: 14px; font-weight: 650; padding: 0; margin-bottom: 14px; color: var(--ink); }
.fieldset > legend + * { clear: both; margin-top: 0; }
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; }
.switch input[type=checkbox] { appearance: none; width: 38px; height: 22px; border-radius: 99px; background: var(--line-2);
                position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; }
.switch input[type=checkbox]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
                       border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input[type=checkbox]:checked { background: var(--bad); }
.switch input[type=checkbox]:checked::after { transform: translateX(16px); }
.switch b { display: block; font-weight: 600; }
.switch span { display: block; color: var(--muted); font-size: 13px; }

.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.colors label { cursor: pointer; }
.colors input { position: absolute; opacity: 0; }
.colors .dot { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--c);
               box-shadow: inset 0 0 0 2px rgba(255,255,255,.0); }
.colors input:checked + .dot { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.colors input:focus-visible + .dot { outline: 3px solid var(--info-soft); }

.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.seg a { padding: 5px 11px; border-radius: 4px; font-size: 13.5px; color: var(--ink-2); font-weight: 550; text-decoration: none; }
.seg a:hover { background: var(--surface-2); }
.seg a.on { background: var(--navy); color: #fff; }

/* ---------------------------------------------------------------- tablas */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search svg.i { position: absolute; left: 11px; top: 11px; color: var(--muted); width: 17px; height: 17px; }
.search input { padding-left: 36px; }
.table-wrap { overflow-x: auto; position: relative; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 14px;
     background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfd; }
tr.sel td { background: #fff9e3 !important; }
td.check, th.check { width: 42px; padding-right: 0; }
td.right, th.right { text-align: right; }
.user-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--c, #dfe4ee); color: #fff; flex: none;
          display: grid; place-items: center; font-size: 13px; font-weight: 650; text-transform: uppercase; }
.avatar.none { background: #dfe4ee; color: var(--ink-2); }
.user-cell a { color: var(--ink); font-weight: 600; }
.user-cell .sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--navy); cursor: pointer; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg.i { width: 34px; height: 34px; color: #b7bfcf; margin-bottom: 10px; stroke-width: 1.5; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.chip .tab { width: 14px; height: 11px; margin-top: 2px; }
.chip .tab::before { width: 6px; height: 3px; top: -2px; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.activo, .status.Access-Accept { color: var(--ok); }
.status.bloqueado, .status.Access-Reject { color: var(--bad); }
.status.vencido { color: var(--warn); }
.status.pausado { color: var(--bad); }
.meter { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.meter .bar { width: 46px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.meter.full .bar i { background: var(--warn); }
.meter.full { color: var(--warn); font-weight: 650; }

/* Barra de acciones sobre la selección */
.bulk {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); z-index: 30;
  background: var(--navy); color: #fff; border-radius: 12px; padding: 8px 8px 8px 18px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-pop);
  transition: transform .2s cubic-bezier(.2,.8,.2,1); max-width: calc(100vw - 32px); white-space: nowrap;
}
.bulk.show { transform: translate(-50%, 0); }
.bulk b { font-weight: 600; font-size: 14px; margin-right: 6px; white-space: nowrap; }
.bulk .btn { background: rgba(255,255,255,.08); border-color: transparent; color: #fff; }
.bulk .btn:hover { background: rgba(255,255,255,.16); }
.bulk .btn.danger { color: #ffb4ad; }
.bulk select { width: auto; height: 32px; font-size: 13px; background: rgba(255,255,255,.08); color: #fff;
               border-color: transparent; padding: 0 8px; }
.bulk select option { color: var(--ink); }

/* ---------------------------------------------------------------- avisos */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r);
         margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.flash svg.i { margin-top: 1px; }
.flash.ok { background: var(--ok-soft); color: #145c3d; border-color: #c4e7d4; }
.flash.error { background: var(--bad-soft); color: #8f241d; border-color: #f2c9c4; }
.note { display: flex; gap: 12px; background: var(--info-soft); border-radius: var(--r); padding: 14px 16px; font-size: 14px; color: #23408f; }
.note.warn { background: var(--warn-soft); color: #6b4a00; }

/* ---------------------------------------------------------------- paneles laterales (dialog) */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgba(14, 22, 48, .45); }
dialog.drawer {
  margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(480px, 100vw);
  display: flex; flex-direction: column; box-shadow: var(--shadow-pop);
}
dialog.drawer:not([open]) { display: none; }
dialog.drawer[open] { animation: entra .22s cubic-bezier(.2,.8,.2,1); }
@keyframes entra { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.drawer-head .t { flex: 1; }
.drawer-head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px; }
.drawer-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--surface-2); }
dialog.modal { border-radius: var(--r-lg); width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-pop); }
dialog.modal[open] { animation: aparece .2s ease-out; }
@keyframes aparece { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* Ficha de credenciales (también se imprime) */
.ticket { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 18px 20px; background: var(--surface); position: relative; }
.ticket .net { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ticket .net svg.i { width: 16px; height: 16px; }
.ticket dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: baseline; }
.ticket dt { font-size: 13px; color: var(--muted); }
.ticket dd { margin: 0; font-size: 18px; font-weight: 650; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .02em; word-break: break-all; }
.ticket .who { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.ticket .copy { position: absolute; top: 12px; right: 12px; }
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tickets .ticket dd { font-size: 16px; }
.success-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin-bottom: 12px; }
.success-mark svg.i { width: 24px; height: 24px; stroke-width: 2.4; }

/* ---------------------------------------------------------------- login */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.login-art { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding: 44px 48px;
             display: flex; flex-direction: column; justify-content: space-between; }
.login-art .waves { position: absolute; right: -70px; top: 50%; transform: translateY(-58%); width: 560px; height: 560px; color: rgba(255,255,255,.07); }
.login-art .waves .hot { color: var(--signal); }
.login-art h2 { font-size: 34px; font-weight: 600; line-height: 1.15; max-width: 14ch; letter-spacing: -.02em; position: relative; }
.login-art p { color: var(--navy-ink); max-width: 38ch; margin-top: 14px; font-size: 15.5px; position: relative; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-form form { width: 100%; max-width: 360px; }
.login-form h1 { font-size: 26px; }
.login-form .lead { color: var(--muted); margin: 8px 0 28px; }
.pw { position: relative; }
.pw input { height: 46px; padding-right: 46px; font-size: 15px; }
.pw button { position: absolute; right: 4px; top: 4px; }
.login-form .btn.primary { height: 46px; font-size: 15px; margin-top: 18px; }
.login-foot { margin-top: 26px; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- varios */
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.kv { display: grid; grid-template-columns: minmax(140px, auto) 1fr; gap: 10px 18px; align-items: center; }
.kv dt { color: var(--muted); font-size: 13.5px; }
.kv dd { margin: 0; font-weight: 600; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
kbd { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; font-size: 12.5px; font-family: inherit; }

@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
  .side { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: var(--shadow-pop); }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
  .topbar .btn { background: transparent; border-color: transparent; color: #fff; }
  .topbar b { font-weight: 600; }
  .main { padding: 20px 16px 90px; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .figure:nth-child(3) { border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line); }
  .two-col, .grid2 { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 28px 24px; min-height: 200px; }
  .login-art h2 { font-size: 24px; }
  .login-art .waves { width: 300px; height: 300px; right: -90px; top: auto; bottom: -110px; transform: none; }
  .bulk { left: 12px; right: 12px; transform: translateY(160%); max-width: none; padding: 10px; flex-wrap: wrap; white-space: normal; }
  .bulk.show { transform: none; }
  .bulk b { width: 100%; }
  .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; inset: 0; padding: 10mm; }
  .print-area .copy, .no-print { display: none !important; }
  .tickets { grid-template-columns: repeat(2, 1fr); }
  .ticket { break-inside: avoid; }
}

/* ---------------------------------------------------------------- pie de página */
.pie { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line-2); color: var(--muted);
       font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: space-between; }
.login-form { position: relative; padding-bottom: 90px; }
.pie-login { position: absolute; left: 24px; right: 24px; bottom: 22px; margin: 0; justify-content: center; text-align: center; }

/* ---------------------------------------------------------------- v2.0 · acceso de administradores */
.sep { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--muted); font-size: 14px; }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-ms { justify-content: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.btn-ms:hover { background: var(--surface-2); }
body.acceso { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: var(--bg); }
.acceso-tarjeta { width: 100%; max-width: 500px; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-pop); }
.acceso-tarjeta.ancha { max-width: 760px; }
.acceso-cab { background: var(--navy); color: #fff; padding: 24px 28px; display: flex; gap: 14px; align-items: center; }
.acceso-cab.verde { background: #14532d; }
.acceso-cab small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--signal-2); font-weight: 700; }
.acceso-cab h1 { margin: 2px 0 0; font-size: 21px; line-height: 1.25; color: #fff; }
.acceso-cuerpo { padding: 24px 28px 28px; }
.acceso-cuerpo .lead { margin: 0 0 18px; color: var(--ink-2); }
.codigo { height: 60px; font-size: 30px !important; letter-spacing: .45em; text-align: center; font-weight: 700; font-family: ui-monospace, Menlo, Consolas, monospace; }
.acceso-enlaces { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.acceso-enlaces form { margin: 0; }
.enlace { background: none; border: 0; padding: 0; color: var(--info); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.enlace.gris { color: var(--muted); }
.acceso-pasos { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.acceso-qr { border: 1px solid var(--line); border-radius: 14px; padding: 6px; background: #fff; }
.acceso-qr svg { width: 100%; height: auto; display: block; }
.acceso-clave { margin-top: 10px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 10px; padding: 8px; word-break: break-all; }
.acceso-clave small { display: block; font-family: var(--font); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.acceso-codigos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.acceso-codigos div { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 19px; font-weight: 700; letter-spacing: .08em; text-align: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.acceso-check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; font-size: 14px; color: var(--ink-2); cursor: pointer; flex-wrap: wrap; }
.acceso-check input { width: 18px; height: 18px; margin-top: 2px; }
@media (max-width: 640px) { body.acceso { padding: 12px; justify-content: flex-start; } .acceso-pasos { grid-template-columns: 1fr; } .acceso-qr { max-width: 240px; margin: 0 auto; } }
@media print { body.acceso { background: #fff; } .acceso-tarjeta { box-shadow: none; } .acceso-enlaces, form .btn, .acceso-check { display: none !important; } }
.acceso-ayuda { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.acceso-ayuda summary { cursor: pointer; font-weight: 600; color: var(--info); }
.acceso-ayuda ul { margin: 8px 0 0; padding-left: 18px; }
.acceso-ayuda li { margin: 4px 0; }
.acceso-ayuda code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
