/* =====================================================================
   CRM Blu Studio · neomorfismo legible
   Relieve suave para superficies; texto y estados con contraste AA.
   ===================================================================== */
:root {
  --fondo: #E6E9EF;
  --texto: #1F2430;
  --texto-2: #4A5263;
  --linea: #CDD2DB;
  --acento: #2F5BD3;
  --acento-oscuro: #1D3FA3;
  --acento-suave: #DDE5F8;
  --sombra-osc: #C3C8D1;
  --sombra-clara: #FFFFFF;
  --elevado: 8px 8px 16px var(--sombra-osc), -8px -8px 16px var(--sombra-clara);
  --elevado-chico: 4px 4px 8px var(--sombra-osc), -4px -4px 8px var(--sombra-clara);
  --hundido: inset 4px 4px 8px var(--sombra-osc), inset -4px -4px 8px var(--sombra-clara);
  --hundido-chico: inset 3px 3px 6px var(--sombra-osc), inset -3px -3px 6px var(--sombra-clara);
  --radio: 22px;
  --radio-chico: 14px;
  --ok-bg: #DCF1E2; --ok-tx: #135A2E; --ok-dot: #1F8A4C;
  --aviso-bg: #FAF0C6; --aviso-tx: #5E4800; --aviso-dot: #B38900;
  --alerta-bg: #FDE6D2; --alerta-tx: #8A3B06; --alerta-dot: #D2620B;
  --peligro-bg: #FBE3E1; --peligro-tx: #8A1C12; --peligro-dot: #C0331F;
  --info-bg: #DDE5F8; --info-tx: #1D3FA3; --info-dot: #2F5BD3;
  --neutro-bg: #E0E4EA; --neutro-tx: #1F2430; --neutro-dot: #6B7280;
  font-size: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #2A2D34; --texto: #ECEFF4; --texto-2: #B8BFCC; --linea: #3D414B;
    --acento: #6E8FF0; --acento-oscuro: #A9BDF7; --acento-suave: #34406A;
    --sombra-osc: #1F2127; --sombra-clara: #353943;
    --ok-bg: #1E4630; --ok-tx: #BFEBCD; --aviso-bg: #4A3E10; --aviso-tx: #F5E3A0;
    --alerta-bg: #55311A; --alerta-tx: #FBD3B4; --peligro-bg: #5A2420; --peligro-tx: #F9C7C1;
    --info-bg: #34406A; --info-tx: #D2DCFA; --neutro-bg: #3A3E48; --neutro-tx: #ECEFF4;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--fondo); color: var(--texto);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: var(--acento-oscuro); font-weight: 600; }
a:hover { color: var(--acento); }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 4px; line-height: 1.2; }
h2 { font-size: 18px; font-weight: 800; margin: 0 0 14px; }
h3 { font-size: 15px; font-weight: 800; margin: 0 0 10px; }
p { margin: 0 0 12px; }
code { font-size: 13px; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--fondo); padding: 10px 16px; border-radius: 10px; box-shadow: var(--elevado); }
.icon { flex: none; }
.sub, .nota { color: var(--texto-2); font-size: 14px; }
.nota { margin-top: 14px; }
.vacio { color: var(--texto-2); padding: 18px 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Estructura ---------- */
.app { display: flex; gap: 28px; padding: 28px; align-items: flex-start; min-height: 100vh; }
.sidebar {
  position: sticky; top: 28px; flex: 0 0 248px; border-radius: 24px; padding: 22px 14px;
  box-shadow: var(--elevado); display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 56px);
}
.contenido { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 24px; outline: none; }
.marca { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; text-decoration: none; color: var(--texto); }
.marca-logo {
  width: 44px; height: 44px; border-radius: 14px; background: var(--acento); color: #fff; display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 18px; box-shadow: var(--elevado-chico); flex: none;
}
.marca-texto { display: flex; flex-direction: column; line-height: 1.25; }
.marca-texto strong { font-size: 16px; }
.marca-texto small { font-size: 12px; color: var(--texto-2); font-weight: 500; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nav a {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: var(--radio-chico);
  text-decoration: none; color: var(--texto); font-weight: 600; font-size: 14px;
}
.nav a:hover { box-shadow: var(--elevado-chico); }
.nav a[aria-current="page"] { color: var(--acento-oscuro); font-weight: 800; box-shadow: var(--hundido); }
.usuario-caja { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; box-shadow: var(--hundido); }
.usuario-datos { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.usuario-datos a { color: var(--texto); text-decoration: none; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usuario-datos small { font-size: 12px; color: var(--texto-2); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--neutro-bg); display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 13px; flex: none;
}
.avatar-grande { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; color: var(--acento-oscuro); background: var(--fondo); box-shadow: var(--hundido); }
.nav-movil { display: none; }
.banda-prueba {
  position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 16px; background: #C2410C; color: #fff; font-size: 13px; text-align: center;
}
.banda-prueba a { color: #fff; text-decoration: underline; }

/* ---------- Superficies ---------- */
.tarjeta { border-radius: 24px; padding: 24px; box-shadow: var(--elevado); min-width: 0; }
.tarjeta > h2:first-child { margin-top: 0; }
.hundido { border-radius: 16px; box-shadow: var(--hundido); padding: 14px 16px; }
.encabezado { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.encabezado .acciones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.migas { font-size: 13px; color: var(--texto-2); margin: 0 0 6px; }
.columnas { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.columnas > .principal { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.columnas > .lateral { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.columnas > .tarjeta { flex: 1 1 320px; }
.pila { display: flex; flex-direction: column; gap: 14px; }
.fila { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.entre { justify-content: space-between; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border: none; border-radius: var(--radio-chico); background: var(--fondo); color: var(--acento-oscuro); font: inherit;
  font-weight: 700; font-size: 14px; box-shadow: var(--elevado-chico); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { color: var(--acento); }
.btn:active { box-shadow: var(--hundido-chico); }
.btn-primario { background: var(--acento); color: #fff; }
.btn-primario:hover { color: #fff; filter: brightness(1.06); }
.btn-peligro { color: var(--peligro-tx); }
.btn-ok { background: #1F7A44; color: #fff; }
.btn-ok:hover { color: #fff; }
.btn-chico { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 12px; }
.btn-ancho { width: 100%; }
.btn-icono {
  width: 40px; height: 40px; border: none; border-radius: 12px; background: var(--fondo); color: var(--texto);
  box-shadow: var(--elevado-chico); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.btn-link { background: none; border: none; padding: 0; color: var(--acento-oscuro); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
form.en-linea { display: inline; }

/* ---------- Formularios ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
fieldset { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
legend { font-size: 16px; font-weight: 800; padding: 0; margin-bottom: 12px; }
.campo { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.campo > label, .etiqueta { font-size: 13px; font-weight: 700; }
.ayuda { font-size: 12.5px; color: var(--texto-2); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number],
input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 0 16px; border: none; border-radius: var(--radio-chico); background: var(--fondo);
  box-shadow: var(--hundido); font: inherit; font-size: 14px; color: var(--texto);
}
textarea { padding: 12px 16px; resize: vertical; min-height: 92px; }
select { cursor: pointer; }
input::placeholder, textarea::placeholder { color: #6B7280; }
input[aria-invalid="true"] { outline: 2px solid var(--peligro-dot); }
.input-codigo { font-size: 24px; letter-spacing: 0.3em; text-align: center; font-weight: 800; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.col-2 { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--acento); flex: none; }
.interruptor {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px;
  border-radius: 16px; box-shadow: var(--hundido-chico); cursor: pointer;
}
.interruptor .txt { display: flex; flex-direction: column; gap: 2px; }
.interruptor .txt strong { font-size: 14px; }
.interruptor .txt small { font-size: 12px; color: var(--texto-2); }
.interruptor input { appearance: none; -webkit-appearance: none; flex: none; width: 56px; height: 32px; border-radius: 999px; background: var(--fondo);
  box-shadow: inset 3px 3px 6px #BFC4CE, inset -3px -3px 6px var(--sombra-clara); outline: 1px solid #A9B0BD; position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.interruptor input::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #F4F6FA; box-shadow: 2px 2px 4px #8D95A3; transition: left .15s; }
.interruptor input:checked { background: var(--acento); outline-color: var(--acento); }
.interruptor input:checked::after { left: 28px; background: #fff; }
.opciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opcion span { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-height: 72px; border-radius: 16px; border: 2px solid transparent; box-shadow: var(--elevado-chico); }
.opcion span strong { font-size: 14px; }
.opcion span small { font-size: 12px; color: var(--texto-2); }
.opcion input:checked + span { border-color: var(--acento); box-shadow: var(--hundido); color: var(--acento-oscuro); }
.opcion input:focus-visible + span { outline: 3px solid var(--acento); outline-offset: 2px; }
.filas-dinamicas { display: flex; flex-direction: column; gap: 10px; }
.fila-dinamica { display: grid; gap: 10px; align-items: end; padding: 12px; border-radius: 16px; box-shadow: var(--elevado-chico); }
.fila-dinamica .campo > label { font-size: 12px; }

/* ---------- Estados ---------- */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.badge-ok { background: var(--ok-bg); color: var(--ok-tx); } .badge-ok .dot { background: var(--ok-dot); }
.badge-aviso { background: var(--aviso-bg); color: var(--aviso-tx); } .badge-aviso .dot { background: var(--aviso-dot); }
.badge-alerta { background: var(--alerta-bg); color: var(--alerta-tx); } .badge-alerta .dot { background: var(--alerta-dot); }
.badge-peligro { background: var(--peligro-bg); color: var(--peligro-tx); } .badge-peligro .dot { background: var(--peligro-dot); }
.badge-info { background: var(--info-bg); color: var(--info-tx); } .badge-info .dot { background: var(--info-dot); }
.badge-neutro { background: var(--neutro-bg); color: var(--neutro-tx); } .badge-neutro .dot { background: var(--neutro-dot); }
.flash { padding: 14px 18px; border-radius: 16px; font-weight: 600; font-size: 14px; }
.flash-ok { background: var(--ok-bg); color: var(--ok-tx); }
.flash-error { background: var(--peligro-bg); color: var(--peligro-tx); }
.flash-aviso { background: var(--aviso-bg); color: var(--aviso-tx); }
.progreso { height: 12px; border-radius: 999px; box-shadow: var(--hundido-chico); padding: 2px; }
.progreso > span { display: block; height: 100%; border-radius: 999px; background: var(--acento); min-width: 4px; }
.progreso.atraso > span { background: var(--peligro-dot); }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.kpi { border-radius: 22px; padding: 20px 22px; box-shadow: var(--elevado); display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--texto); }
.kpi:hover { color: var(--texto); }
.kpi .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 8px; }
.kpi .top span:first-child { font-size: 13px; font-weight: 700; color: var(--texto-2); }
.kpi .valor { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.kpi .det { font-size: 12px; color: var(--texto-2); }

/* ---------- Chips y pestañas ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 15px; border-radius: 14px; text-decoration: none; color: var(--texto); font-weight: 600; font-size: 13px; box-shadow: var(--elevado-chico); }
.chip[aria-current="true"] { color: var(--acento-oscuro); font-weight: 800; box-shadow: var(--hundido); }
.chip b { font-weight: 800; }
.pestanas { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: 20px; box-shadow: var(--hundido); }
.pestanas a { min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 14px; text-decoration: none; color: var(--texto); font-weight: 600; font-size: 14px; }
.pestanas a[aria-current="page"] { color: var(--acento-oscuro); font-weight: 800; box-shadow: var(--elevado-chico); }

/* ---------- Tablas (en celular se vuelven tarjetas) ---------- */
.tabla-caja { border-radius: 16px; box-shadow: var(--hundido); padding: 4px 14px; overflow-x: auto; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabla th { text-align: left; color: var(--texto-2); font-weight: 700; padding: 13px 10px; font-size: 13px; white-space: nowrap; }
.tabla td { padding: 13px 10px; border-top: 1px solid var(--linea); vertical-align: middle; }
.tabla .num { text-align: right; white-space: nowrap; font-weight: 700; }
.tabla .acciones-celda { text-align: right; white-space: nowrap; }
.tabla .acciones-celda .fila { justify-content: flex-end; flex-wrap: nowrap; gap: 8px; }
.tabla .titulo-celda { display: flex; flex-direction: column; gap: 2px; }
.tabla .titulo-celda a { color: var(--texto); text-decoration: none; font-weight: 700; }
.tabla .titulo-celda a:hover { color: var(--acento-oscuro); text-decoration: underline; }
.tabla .titulo-celda small { color: var(--texto-2); font-size: 12px; }
.tabla tr.prueba td:first-child { box-shadow: inset 4px 0 0 #C2410C; }
.etiqueta-prueba { display: inline-block; padding: 1px 7px; border-radius: 6px; background: #FDE6D2; color: #8A3B06; font-size: 11px; font-weight: 800; }

/* ---------- Listas ---------- */
.lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lista > li { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 14px; border-radius: 14px; box-shadow: var(--elevado-chico); }
.lista .num-etapa { width: 30px; height: 30px; border-radius: 10px; background: var(--acento-suave); color: var(--acento-oscuro); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.lista .num-etapa.hecha { background: var(--ok-bg); color: var(--ok-tx); }
.lista .crece { flex: 1; min-width: 0; }
.datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 18px; margin: 0; }
.datos dt { font-size: 12.5px; color: var(--texto-2); }
.datos dd { margin: 3px 0 0; font-weight: 700; word-break: break-word; }
.proyecto { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; }
.proyecto .fila-1, .proyecto .fila-2 { display: flex; justify-content: space-between; gap: 10px; }
.proyecto .fila-2 { font-size: 12.5px; color: var(--texto-2); }
.proyecto a { color: var(--texto); text-decoration: none; font-weight: 700; }

/* ---------- Pasos del alta ---------- */
.pasos { list-style: none; margin: 0; padding: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; border-radius: 20px; box-shadow: var(--hundido); }
.pasos li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; font-weight: 600; font-size: 14px; }
.pasos li span { width: 28px; height: 28px; border-radius: 9px; background: var(--neutro-bg); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.pasos li[aria-current="step"] { box-shadow: var(--elevado-chico); color: var(--acento-oscuro); font-weight: 800; }
.pasos li[aria-current="step"] span { background: var(--acento); color: #fff; }
.paso[hidden] { display: none; }
.js .paso-oculto { display: none; }
.pasos-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--linea); }

/* ---------- Acceso ---------- */
body.simple { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; }
.simple-caja { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 20px; }
.marca-centro { justify-content: center; padding-bottom: 6px; }
.qr-caja { display: flex; justify-content: center; padding: 18px; border-radius: 18px; box-shadow: var(--hundido); margin: 6px 0 12px; }
#qr { background: #fff; padding: 12px; border-radius: 10px; min-width: 200px; min-height: 200px; }
.clave { display: inline-block; padding: 4px 8px; border-radius: 8px; background: var(--neutro-bg); font-weight: 700; letter-spacing: 0.05em; }
.pasos-lista { padding-left: 20px; margin: 0 0 8px; }
.pasos-lista li { margin-bottom: 6px; }

/* ---------- Diálogo de confirmación ---------- */
dialog.confirmar { border: none; border-radius: 24px; padding: 26px; background: var(--fondo); color: var(--texto); box-shadow: 12px 12px 24px rgba(0,0,0,.25); max-width: 460px; width: calc(100% - 32px); }
dialog.confirmar::backdrop { background: rgba(31,36,48,.45); }

@media (min-width: 1100px) { .columnas > .lateral { max-width: 360px; } }

/* ---------- Celular ---------- */
@media (max-width: 860px) {
  .app { padding: 16px 16px 96px; gap: 16px; }
  .sidebar { display: none; }
  .nav-movil {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: 72px; background: var(--fondo); box-shadow: 0 -6px 14px var(--sombra-osc); padding: 0 6px env(safe-area-inset-bottom);
  }
  .nav-movil a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--texto-2); font-size: 11px; font-weight: 600; min-height: 56px; }
  .nav-movil a[aria-current="page"] { color: var(--acento-oscuro); font-weight: 800; }
  h1 { font-size: 22px; }
  .tarjeta { padding: 18px; border-radius: 20px; }
  .tabla-caja.responsiva { box-shadow: none; padding: 0; overflow: visible; }
  .responsiva table.tabla, .responsiva .tabla tbody, .responsiva .tabla tr, .responsiva .tabla td { display: block; width: 100%; }
  .responsiva .tabla thead { display: none; }
  .responsiva .tabla tr { border-radius: 18px; box-shadow: var(--elevado-chico); padding: 8px 14px; margin-bottom: 14px; }
  .responsiva .tabla td { border: none; padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .responsiva .tabla td::before { content: attr(data-label); color: var(--texto-2); font-weight: 600; font-size: 12.5px; text-align: left; }
  .responsiva .tabla td.titulo { display: block; text-align: left; padding-top: 8px; }
  .responsiva .tabla td.titulo::before { content: none; }
  .responsiva .tabla .acciones-celda { justify-content: flex-end; }
  .responsiva .tabla .acciones-celda::before { content: none; }
  .responsiva .tabla tr.prueba td:first-child { box-shadow: none; }
  .kpi .valor { font-size: 22px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding: 4px 4px 10px; margin: 0 -4px; scrollbar-width: thin; }
  .chip { flex: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .kpi { padding: 14px; border-radius: 18px; }
}
/* ---------- Cotizador ---------- */
.fila-hito { display: grid; gap: 10px; grid-template-columns: 1.2fr 90px 1.6fr; align-items: end; }
.fila-extra { display: grid; gap: 10px; grid-template-columns: 1.3fr 1.3fr 130px auto; align-items: end; }
@media (max-width: 640px) {
  .fila-hito { grid-template-columns: 1fr 80px; }
  .fila-hito > .campo:last-child { grid-column: 1 / -1; }
  .fila-extra { grid-template-columns: 1fr auto; }
  .fila-extra > .campo { grid-column: 1; }
  .fila-extra > .btn-icono { grid-column: 2; grid-row: 1; }
}

@media print {
  .sidebar, .nav-movil, .banda-prueba, .btn, .acciones { display: none !important; }
  .tarjeta, .kpi { box-shadow: none; border: 1px solid #ccc; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
