/* NEXORA Licencias - estilo base (modo oscuro azul petróleo, acción cian) */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('../fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('../fonts/manrope-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
    color-scheme: dark;
    --fondo: #061317;
    --fondo-2: #081a1f;
    --superficie: #0c2229;
    --superficie-2: #102b34;
    --superficie-3: #14343e;
    --borde: #1c3f4a;
    --borde-suave: #15343d;
    --texto: #e4eef0;
    --texto-2: #a6bcc2;
    --texto-3: #6f8c94;
    --accion: #3FC7D9;
    --accion-2: #6ad7e5;
    --accion-tenue: rgba(63, 199, 217, .12);
    --accion-texto: #04252b;
    --ok: #4cc79a;      --ok-tenue: rgba(76, 199, 154, .13);
    --aviso: #e2b04a;   --aviso-tenue: rgba(226, 176, 74, .13);
    --gracia: #ef8f4c;  --gracia-tenue: rgba(239, 143, 76, .14);
    --peligro: #ef6b6b; --peligro-tenue: rgba(239, 107, 107, .13);
    --neutro: #8b9da2;  --neutro-tenue: rgba(139, 157, 162, .13);
    --radio: 10px;
    --radio-s: 7px;
    --sombra: 0 18px 50px rgba(0, 0, 0, .45);
    --f-titulo: 'Manrope', 'Segoe UI', sans-serif;
    --f-texto: 'Inter', 'Segoe UI', sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
    background: var(--fondo);
    color: var(--texto);
    font: 400 14px/1.5 var(--f-texto);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accion); text-decoration: none; }
a:hover { color: var(--accion-2); }
h1, h2, h3, h4 { font-family: var(--f-titulo); margin: 0; letter-spacing: -.01em; }
.mono, .num { font-family: var(--f-mono); font-feature-settings: 'zero' 0; }
.num { font-variant-numeric: tabular-nums; }
.tenue { color: var(--texto-3); }
.sec { color: var(--texto-2); }
.oculto { display: none !important; }
::selection { background: var(--accion); color: var(--accion-texto); }
:focus-visible { outline: 2px solid var(--accion); outline-offset: 2px; }

svg.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg.ic.s { width: 15px; height: 15px; }
svg.ic.l { width: 22px; height: 22px; }

/* ---------- Estructura ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.lateral {
    background: var(--fondo-2);
    border-right: 1px solid var(--borde-suave);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    padding: 22px 14px 16px;
}
.marca { display: flex; align-items: center; gap: 11px; padding: 0 10px 26px; }
.marca-logo { width: 34px; height: 34px; border: 1.6px solid var(--accion); border-radius: 9px; display: grid; place-items: center; color: var(--accion); }
.marca-texto { font-family: var(--f-titulo); font-weight: 800; font-size: 16px; letter-spacing: .06em; line-height: 1.1; }
.marca-texto small { display: block; font-family: var(--f-texto); font-weight: 500; font-size: 11px; letter-spacing: .14em; color: var(--texto-3); text-transform: uppercase; margin-top: 3px; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: var(--radio-s);
    color: var(--texto-2); font-weight: 500;
    border: 1px solid transparent;
    transition: background .15s, color .15s;
}
.menu a:hover { background: var(--superficie); color: var(--texto); }
.menu a.activo { background: var(--accion-tenue); color: var(--accion); border-color: rgba(63, 199, 217, .22); }
.menu .titulo-menu { font: 600 10.5px/1 var(--f-texto); letter-spacing: .16em; text-transform: uppercase; color: var(--texto-3); padding: 18px 12px 8px; }
.lateral-pie { margin-top: auto; border-top: 1px solid var(--borde-suave); padding: 14px 6px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--superficie-3); display: grid; place-items: center; font: 700 13px var(--f-titulo); color: var(--accion); flex: none; }
.lateral-pie .quien { min-width: 0; flex: 1; }
.lateral-pie .quien b { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lateral-pie .quien span { font-size: 11.5px; color: var(--texto-3); }

.principal { min-width: 0; display: flex; flex-direction: column; }
.barra {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 22px 34px 18px;
    border-bottom: 1px solid var(--borde-suave);
    background: rgba(6, 19, 23, .85); backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 20;
}
.barra h1 { font-size: 21px; font-weight: 700; }
.barra .sub { color: var(--texto-3); font-size: 13px; margin-top: 2px; }
.barra .acciones { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.btn.menu-movil { display: none; }
.contenido { padding: 26px 34px 60px; max-width: 1360px; width: 100%; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 38px; padding: 0 16px; border-radius: var(--radio-s);
    font: 600 13.5px var(--f-texto); cursor: pointer; white-space: nowrap;
    border: 1px solid var(--borde); background: var(--superficie-2); color: var(--texto);
    transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:hover { background: var(--superficie-3); border-color: #2a5361; }
.btn.primario { background: var(--accion); border-color: var(--accion); color: var(--accion-texto); }
.btn.primario:hover { background: var(--accion-2); border-color: var(--accion-2); }
.btn.fantasma { background: transparent; border-color: transparent; color: var(--texto-2); }
.btn.fantasma:hover { background: var(--superficie-2); color: var(--texto); }
.btn.peligro { background: transparent; border-color: rgba(239, 107, 107, .45); color: var(--peligro); }
.btn.peligro:hover { background: var(--peligro-tenue); }
.btn.peligro.lleno { background: var(--peligro); color: #2a0606; border-color: var(--peligro); }
.btn.chico { height: 31px; padding: 0 11px; font-size: 12.5px; }
.btn.icono { width: 34px; padding: 0; height: 34px; }
.btn[disabled], .btn.cargando { opacity: .55; cursor: not-allowed; }
.btn.cargando::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: giro .7s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }

/* ---------- Tarjetas e indicadores ---------- */
.tarjeta { background: var(--superficie); border: 1px solid var(--borde-suave); border-radius: var(--radio); }
.tarjeta > .cab { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--borde-suave); }
.tarjeta > .cab h2 { font-size: 15px; font-weight: 700; }
.tarjeta > .cab .acciones { margin-left: auto; display: flex; gap: 6px; }
.tarjeta > .cuerpo { padding: 18px 20px; }
.rejilla { display: grid; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--superficie); border: 1px solid var(--borde-suave); border-radius: var(--radio); padding: 16px 18px; position: relative; overflow: hidden; cursor: default; }
.kpi::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c, var(--accion)); }
.kpi .et { font-size: 12px; font-weight: 500; color: var(--texto-2); display: flex; align-items: center; gap: 7px; }
.kpi .val { font: 500 26px/1.15 var(--f-mono); margin-top: 8px; color: var(--texto); }
.kpi .val.chico { font-size: 19px; }
.kpi .pie { font-size: 12px; color: var(--texto-3); margin-top: 4px; }
a.kpi:hover { border-color: var(--borde); background: var(--superficie-2); cursor: pointer; }

/* ---------- Estados ---------- */
.chip {
    display: inline-flex; align-items: center; gap: 6px; height: 23px; padding: 0 9px;
    border-radius: 999px; font: 500 11px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
    background: var(--neutro-tenue); color: var(--neutro);
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.al_dia { background: var(--ok-tenue); color: var(--ok); }
.chip.por_vencer { background: var(--aviso-tenue); color: var(--aviso); }
.chip.en_gracia { background: var(--gracia-tenue); color: var(--gracia); }
.chip.consulta, .chip.suspendido { background: var(--peligro-tenue); color: var(--peligro); }
.chip.baja { background: var(--neutro-tenue); color: var(--neutro); }
.chip.info { background: var(--accion-tenue); color: var(--accion); }
.chip.sin-punto::before { display: none; }

/* ---------- Tablas ---------- */
.tabla-caja { overflow-x: auto; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabla th {
    text-align: left; font: 600 11px var(--f-texto); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3);
    padding: 11px 14px; border-bottom: 1px solid var(--borde-suave); white-space: nowrap; background: var(--fondo-2);
}
.tabla td { padding: 12px 14px; border-bottom: 1px solid var(--borde-suave); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr { transition: background .12s; }
.tabla tbody tr.clic { cursor: pointer; }
.tabla tbody tr:hover { background: rgba(20, 52, 62, .45); }
.tabla .der { text-align: right; }
.tabla .acc { text-align: right; white-space: nowrap; }
.tabla tr.anulado td { opacity: .5; }
.tabla tr.anulado td.recibo { text-decoration: line-through; }
.celda-nombre b { display: block; font-weight: 600; }
.celda-nombre span { font-size: 12px; color: var(--texto-3); }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 16px; }
.fila { display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo > label, .campo > .et { font-size: 12.5px; font-weight: 500; color: var(--texto-2); display: flex; align-items: center; gap: 6px; }
.campo .ayuda { font-size: 12px; color: var(--texto-3); }
.campo .ayuda-icono { color: var(--texto-3); cursor: help; display: inline-flex; }
input.ctrl, select.ctrl, textarea.ctrl {
    width: 100%; height: 40px; padding: 0 12px;
    background: var(--fondo-2); color: var(--texto);
    border: 1px solid var(--borde); border-radius: var(--radio-s);
    font: 400 14px var(--f-texto);
    transition: border-color .15s, box-shadow .15s;
    appearance: none; -webkit-appearance: none;
}
textarea.ctrl { height: auto; min-height: 92px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
input.ctrl.mono, .ctrl[type=date], .ctrl[type=number] { font-family: var(--f-mono); font-size: 13.5px; }
.ctrl::placeholder { color: var(--texto-3); }
.ctrl:hover { border-color: #2a5361; }
.ctrl:focus { outline: none; border-color: var(--accion); box-shadow: 0 0 0 3px var(--accion-tenue); }
.ctrl[readonly] { background: var(--superficie); color: var(--texto-2); }
.ctrl.error { border-color: var(--peligro); box-shadow: 0 0 0 3px var(--peligro-tenue); }
select.ctrl {
    padding-right: 36px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%233FC7D9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center;
}
select.ctrl option { background: var(--superficie); color: var(--texto); }
.ctrl[type=date] { padding-right: 10px; }
.ctrl[type=date]::-webkit-calendar-picker-indicator {
    cursor: pointer; opacity: 1; width: 18px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%233FC7D9' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ctrl[type=number]::-webkit-inner-spin-button { opacity: .4; }
.prefijo { position: relative; }
.prefijo > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font: 500 13px var(--f-mono); color: var(--texto-3); pointer-events: none; }
.prefijo > .ctrl { padding-left: 40px; }

/* Casilla propia */
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; color: var(--texto-2); font-size: 13.5px; }
.check input { appearance: none; -webkit-appearance: none; margin: 1px 0 0; width: 18px; height: 18px; flex: none; border: 1.5px solid var(--borde); border-radius: 5px; background: var(--fondo-2); cursor: pointer; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.check input::after { content: ''; width: 9px; height: 5px; border-left: 2px solid var(--accion-texto); border-bottom: 2px solid var(--accion-texto); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--accion); border-color: var(--accion); }
.check input:checked::after { opacity: 1; }
.check:hover input { border-color: var(--accion); }
.check b { color: var(--texto); font-weight: 500; display: block; }

/* Interruptor */
.interruptor { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.interruptor input { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--superficie-3); border: 1px solid var(--borde); position: relative; cursor: pointer; transition: background .2s; margin: 0; flex: none; }
.interruptor input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--texto-2); transition: transform .2s, background .2s; }
.interruptor input:checked { background: var(--accion); border-color: var(--accion); }
.interruptor input:checked::after { transform: translateX(18px); background: var(--accion-texto); }

/* Segmentado (opciones excluyentes) */
.segmentos { display: inline-flex; background: var(--fondo-2); border: 1px solid var(--borde); border-radius: var(--radio-s); padding: 3px; gap: 3px; flex-wrap: wrap; }
.segmentos label { cursor: pointer; }
.segmentos input { display: none; }
.segmentos span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 5px; font-size: 13px; font-weight: 500; color: var(--texto-2); transition: background .15s, color .15s; }
.segmentos input:checked + span { background: var(--accion-tenue); color: var(--accion); }
.segmentos label:hover span { color: var(--texto); }

/* ---------- Ventanas propias ---------- */
.velo { position: fixed; inset: 0; background: rgba(2, 9, 11, .72); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: aparece .15s ease-out; }
.ventana { background: var(--superficie); border: 1px solid var(--borde); border-radius: 14px; box-shadow: var(--sombra); width: 100%; max-width: var(--ancho, 560px); max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: sube .18s ease-out; }
.ventana .v-cab { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; }
.ventana .v-cab h3 { font-size: 17px; font-weight: 700; }
.ventana .v-cab .v-sub { font-size: 13px; color: var(--texto-3); margin-top: 3px; }
.ventana .v-cerrar { margin-left: auto; }
.ventana .v-cuerpo { padding: 6px 22px 18px; overflow-y: auto; }
.ventana .v-pie { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--borde-suave); background: rgba(8, 26, 31, .5); border-radius: 0 0 14px 14px; flex-wrap: wrap; }
.ventana .v-icono { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accion-tenue); color: var(--accion); }
.ventana .v-icono.peligro { background: var(--peligro-tenue); color: var(--peligro); }
@keyframes aparece { from { opacity: 0; } }
@keyframes sube { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Avisos flotantes ---------- */
.avisos-flotantes { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(440px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 11px; padding: 13px 16px; background: var(--superficie-2); border: 1px solid var(--borde); border-left: 3px solid var(--ok); border-radius: var(--radio-s); box-shadow: var(--sombra); font-size: 13.5px; animation: sube .2s ease-out; }
.toast .ic { color: var(--ok); margin-top: 1px; }
.toast.error { border-left-color: var(--peligro); } .toast.error .ic { color: var(--peligro); }
.toast.aviso { border-left-color: var(--aviso); } .toast.aviso .ic { color: var(--aviso); }
.toast .cerrar-toast { margin-left: auto; color: var(--texto-3); cursor: pointer; background: none; border: 0; padding: 0; }

/* ---------- Mensajes en página ---------- */
.nota { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radio-s); background: var(--accion-tenue); border: 1px solid rgba(63, 199, 217, .25); font-size: 13.5px; color: var(--texto); }
.nota .ic { color: var(--accion); margin-top: 1px; }
.nota.aviso { background: var(--aviso-tenue); border-color: rgba(226, 176, 74, .3); } .nota.aviso .ic { color: var(--aviso); }
.nota.peligro { background: var(--peligro-tenue); border-color: rgba(239, 107, 107, .3); } .nota.peligro .ic { color: var(--peligro); }
.nota.ok { background: var(--ok-tenue); border-color: rgba(76, 199, 154, .3); } .nota.ok .ic { color: var(--ok); }
.nota p { margin: 0; }
.nota b { font-weight: 600; }
.vacio { text-align: center; padding: 42px 20px; color: var(--texto-3); }
.vacio .ic { width: 34px; height: 34px; color: var(--texto-3); margin-bottom: 10px; stroke-width: 1.3; }
.vacio b { display: block; color: var(--texto-2); font-weight: 600; margin-bottom: 4px; font-size: 14.5px; }

/* ---------- Pestañas ---------- */
.pestanas { display: flex; gap: 4px; border-bottom: 1px solid var(--borde-suave); margin-bottom: 20px; overflow-x: auto; }
.pestanas button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--texto-2); font: 600 13.5px var(--f-texto); padding: 11px 14px; cursor: pointer; white-space: nowrap; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 8px; }
.pestanas button:hover { color: var(--texto); }
.pestanas button.activa { color: var(--accion); border-bottom-color: var(--accion); }

/* ---------- Ficha ---------- */
.ficha-cab { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 22px; }
.ficha-cab .grande { font: 500 30px/1 var(--f-mono); }
.datos-lista { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 9px 18px; font-size: 13.5px; margin: 0; }
.datos-lista dt { color: var(--texto-3); }
.datos-lista dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.dos-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.linea-tiempo { list-style: none; margin: 0; padding: 0; }
.linea-tiempo li { display: grid; grid-template-columns: 136px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--borde-suave); font-size: 13px; }
.linea-tiempo li:last-child { border-bottom: 0; }
.linea-tiempo .cuando { font: 400 12px var(--f-mono); color: var(--texto-3); }
.linea-tiempo b { font-weight: 600; }
.secreto { display: flex; gap: 8px; align-items: center; background: var(--fondo); border: 1px dashed var(--accion); border-radius: var(--radio-s); padding: 12px 14px; font: 500 13px var(--f-mono); word-break: break-all; color: var(--accion); }
.barra-filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.barra-filtros .campo { min-width: 150px; }
.buscador { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.buscador .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--texto-3); }
.buscador .ctrl { padding-left: 38px; }
.resumen-pago { background: var(--fondo-2); border: 1px solid var(--borde-suave); border-radius: var(--radio-s); padding: 12px 14px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; }
.resumen-pago div span { display: block; color: var(--texto-3); font-size: 11.5px; margin-bottom: 2px; }
.resumen-pago div b { font: 500 14px var(--f-mono); }
.separador { border: 0; border-top: 1px solid var(--borde-suave); margin: 4px 0; }
.etiqueta-seccion { font: 600 11px var(--f-texto); letter-spacing: .14em; text-transform: uppercase; color: var(--texto-3); margin: 6px 0 -4px; }
.carga { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--texto-3); padding: 50px; }
.carga::before { content: ''; width: 18px; height: 18px; border: 2px solid var(--accion); border-right-color: transparent; border-radius: 50%; animation: giro .7s linear infinite; }
.menu-acciones { position: relative; }
.menu-acciones .desplegable { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--superficie-2); border: 1px solid var(--borde); border-radius: var(--radio-s); box-shadow: var(--sombra); padding: 6px; z-index: 30; }
.menu-acciones .desplegable button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; background: none; border: 0; border-radius: 5px; color: var(--texto); font: 500 13.5px var(--f-texto); cursor: pointer; text-align: left; }
.menu-acciones .desplegable button:hover { background: var(--superficie-3); }
.menu-acciones .desplegable button.peligro { color: var(--peligro); }

/* ---------- Acceso (login) ---------- */
.acceso { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.acceso-arte {
    background:
        radial-gradient(circle at 20% 15%, rgba(63, 199, 217, .14), transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(63, 199, 217, .08), transparent 40%),
        linear-gradient(160deg, #0a2129, #051115);
    border-right: 1px solid var(--borde-suave);
    padding: 54px 60px; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.acceso-arte::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(63, 199, 217, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(63, 199, 217, .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); pointer-events: none; }
.acceso-arte h2 { font-size: 38px; font-weight: 800; line-height: 1.12; margin-top: auto; max-width: 460px; letter-spacing: -.02em; }
.acceso-arte h2 em { font-style: normal; color: var(--accion); }
.acceso-arte p { color: var(--texto-2); max-width: 430px; margin: 16px 0 auto; font-size: 15px; }
.acceso-estados { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; position: relative; z-index: 1; }
.acceso-form { display: grid; place-items: center; padding: 40px 24px; }
.acceso-caja { width: 100%; max-width: 380px; }
.acceso-caja h1 { font-size: 24px; font-weight: 800; }
.acceso-caja .sub { color: var(--texto-3); margin: 6px 0 28px; }
.acceso-caja .btn.primario { width: 100%; height: 44px; }

/* ---------- Adaptación a pantallas pequeñas ---------- */
@media (max-width: 1080px) { .dos-col { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
    .app { grid-template-columns: 1fr; }
    .lateral { position: fixed; z-index: 90; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; }
    .app.menu-abierto .lateral { transform: none; box-shadow: var(--sombra); }
    .btn.menu-movil { display: inline-flex; }
    .barra { padding: 14px 16px; position: static; }
    .contenido { padding: 18px 16px 50px; }
    .fila { grid-template-columns: 1fr; }
    .acceso { grid-template-columns: 1fr; }
    .acceso-arte { display: none; }
    .linea-tiempo li { grid-template-columns: 1fr; gap: 2px; }
    .tabla .ocultar-movil { display: none; }
}
@media print {
    .lateral, .barra .acciones, .avisos-flotantes { display: none; }
    .app { display: block; }
}
