/* ==================================================================
   estilo.css — Sistema de diseño de Pixelia Móvil.
   Tomado del CRM de PixeliaCom (Norte): teal sobre papel, tinta azul
   noche, radios suaves, iconos SVG de trazo. Nada queda con el estilo
   por defecto del navegador.

   REGLAS DE LA CASA
   - Rejillas con minmax(0, 1fr), NUNCA 1fr pelado (no deja encoger).
   - Medidas con clamp(): los elementos encogen con la pantalla en vez
     de envolver y comerse el alto.
   - Tablas y pestañas se deslizan DENTRO de su caja (overflow-x:auto),
     nunca empujan la página de lado.
   - Blanco encima de teal: solo --px-teal-solid (AA). --px-teal vivo
     va en barras, iconos, bordes y gráficas.
   ================================================================== */

:root {
  --px-teal:       #12A99F;
  --px-teal-dark:  #068179;
  --px-teal-soft:  #E7F7F4;
  --px-mint:       #D8F0EA;
  --px-blue:       #1595E8;
  --px-ink:        #18304A;
  --px-noche:      #0A2F5D;
  --px-text-muted: #63707B;
  --px-surface:    #FFFFFF;
  --px-page:       #F8FBFA;
  --px-border:     #DCEAE7;
  --px-border-2:   #C7DED9;
  --px-warning:    #D89017;
  --px-danger:     #D95C5C;
  --px-success:    #18A56D;

  --px-teal-light: #37BDB4;
  --px-teal-solid: #0E8179;
  --px-teal-press: #0A6058;

  --px-warning-txt: #91600F;
  --px-danger-txt:  #AB4949;
  --px-teal-txt:    #0D756E;
  --px-success-txt: #0B6B4F;
  --px-blue-txt:    #0C5E96;
  --gris-cabecera:  #66717B;
  --gris-suave:     #8593A0;

  --px-shadow:      0 6px 20px rgba(24, 48, 74, .06);
  --px-shadow-alta: 0 10px 28px rgba(24, 48, 74, .09);
  --radio:          14px;
  --radio-sm:       10px;
  --lateral-w:      256px;
}

* { box-sizing: border-box; }
html { overflow-y: scroll; -webkit-text-size-adjust: 100%; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--px-texto);
  font-size: 15px;
  color: var(--px-ink);
  background: var(--px-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--px-teal-txt); }
h1, h2, h3, h4 { line-height: 1.2; }
[hidden] { display: none !important; }
.ico { display: inline-block; vertical-align: middle; flex-shrink: 0; }
::selection { background: rgba(18, 169, 159, .22); }

/* ---- Fondo de la aplicacion: neblina teal + grano de papel + marca de agua ---- */
body.app {
  background:
    radial-gradient(circle at 80% 0%,  rgba(18, 169, 159, .10), transparent 32%),
    radial-gradient(circle at 10% 85%, rgba(216, 240, 234, .60), transparent 35%),
    var(--px-page);
  background-attachment: fixed;
}
body.app::before,
body.app::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body.app::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='170' height='170' filter='url(%23g)' opacity='.55'/%3E%3C/svg%3E"); opacity: .025; }
body.app::after {
  content: "PIXELIA";
  font-weight: 800; font-size: clamp(120px, 19vw, 300px);
  letter-spacing: -.04em; line-height: 1;
  color: var(--px-teal); opacity: .035;
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding-top: 9vh; transform: translateX(13%);
  overflow: hidden; white-space: nowrap;
}
@media (prefers-contrast: more) { body.app::before, body.app::after { display: none; } }

/* ==================================================================
   CAMPOS DE FORMULARIO (incluye inputs sin atributo type)
   ================================================================== */
label { display: block; margin: 14px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--px-ink); }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]),
select, textarea {
  width: 100%; min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #CFE2DE; border-radius: 12px;
  font-size: 15px; font-family: inherit; color: var(--px-ink);
  background: #FBFDFC;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
textarea { resize: vertical; min-height: 88px; line-height: 1.45; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover, select:hover, textarea:hover { border-color: rgba(18, 169, 159, .55); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--px-teal);
  box-shadow: 0 0 0 4px rgba(18, 169, 159, .12); background: #fff;
}
input::placeholder, textarea::placeholder { color: #8A979F; }
input:disabled, select:disabled, textarea:disabled { background: #F1F5F4; color: var(--px-text-muted); cursor: not-allowed; }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a93a2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: .55;
  filter: invert(36%) sepia(60%) saturate(560%) hue-rotate(130deg);
}
input[type="checkbox"], input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; margin: 0;
  border: 1.5px solid var(--px-border-2); background: #fff;
  cursor: pointer; flex-shrink: 0; position: relative; vertical-align: middle;
}
input[type="checkbox"] { border-radius: 5px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked, input[type="radio"]:checked { background: var(--px-teal-solid); border-color: var(--px-teal-solid); }
input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1.5px;
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
input[type="radio"]:checked::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(9, 107, 97, .22); }
input[type="color"] {
  appearance: none; -webkit-appearance: none;
  width: 44px; height: 44px; padding: 3px; border: 1px solid #CFE2DE; border-radius: 12px;
  background: #FBFDFC; cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 8px; }
input[type="file"] { max-width: 100%; font-size: 14px; color: var(--px-text-muted); }
input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px;
  border: 1px solid var(--px-border-2); border-radius: var(--radio-sm);
  background: var(--px-teal-soft); color: var(--px-ink);
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.check { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-weight: 500; cursor: pointer; }

/* Campo con prefijo/sufijo ($, %, cuotas) */
.campo-afijo { position: relative; display: flex; align-items: center; }
.campo-afijo > span {
  position: absolute; left: 13px; color: var(--px-text-muted); font-size: 14.5px; font-weight: 600; pointer-events: none;
}
.campo-afijo > input { padding-left: 28px !important; }
.campo-afijo.sufijo > span { left: auto; right: 13px; }
.campo-afijo.sufijo > input { padding-left: 14px !important; padding-right: 40px !important; }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--px-border-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--px-border-2); border-radius: 999px; border: 2px solid var(--px-page); }
*::-webkit-scrollbar-thumb:hover { background: var(--gris-suave); }
*::-webkit-scrollbar-track { background: transparent; }

/* ==================================================================
   BOTONES
   ================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: clamp(5px, .55vw, 8px);
  min-height: 40px;
  padding: clamp(8px, .75vw, 9px) clamp(11px, 1.1vw, 15px);
  border: 1px solid transparent; border-radius: 12px;
  font-size: clamp(13px, 1.05vw, 14px); font-weight: 600; font-family: inherit; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  flex-shrink: 0; max-width: 100%;
  transition: background .12s, border-color .12s, transform .1s, box-shadow .12s;
}
.btn:focus-visible, .btn-icono:focus-visible, .chip-filtro:focus-visible, .tab:focus-visible, .seg button:focus-visible {
  outline: none; box-shadow: 0 0 0 4px rgba(18, 169, 159, .25);
}
.btn:disabled, .btn.cargando { opacity: .6; cursor: not-allowed; transform: none !important; }
.btn svg { flex-shrink: 0; }
.btn-primario {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #11837C 0%, #0E8179 45%, #0A6058 100%);
  color: #fff; border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 -1px 0 rgba(0, 75, 70, .14), 0 6px 14px rgba(7, 140, 132, .20);
}
.btn-primario::before {
  content: ""; position: absolute; inset: 1px; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.13), transparent 45%); pointer-events: none;
}
.btn-primario:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 9px 20px rgba(7, 140, 132, .25); }
.btn-primario:active { transform: translateY(0); box-shadow: inset 0 2px 5px rgba(0, 70, 66, .20), 0 3px 8px rgba(7, 140, 132, .16); }
.btn-secundario { background: #fff; color: var(--px-ink); border-color: var(--px-border-2); }
.btn-secundario:hover { background: var(--px-teal-soft); border-color: rgba(18, 169, 159, .45); }
.btn-suave { background: var(--px-teal-soft); color: var(--px-teal-txt); border-color: transparent; }
.btn-suave:hover { background: var(--px-mint); }
.btn-verde { background: #148759; color: #fff; }
.btn-verde:hover { background: #0C6A38; }
.btn-wsp { background: #188741; color: #fff; }
.btn-wsp:hover { background: #126832; }
.btn-peligro { background: #fff; color: var(--px-danger-txt); border-color: #E7B9B6; }
.btn-peligro:hover { background: #FDECEB; }
.btn-peligro-solido { background: #B5413F; color: #fff; }
.btn-peligro-solido:hover { background: #963432; }
.btn-mini { min-height: 32px; padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn-grande { min-height: 50px; padding: 13px 20px; font-size: 15.5px; border-radius: 14px; }
.btn-bloque { width: 100%; }
.btn-icono {
  padding: 7px; border-radius: var(--radio-sm);
  background: transparent; border: 1px solid transparent; color: var(--px-text-muted);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; min-height: 34px; text-decoration: none;
}
.btn-icono:hover { background: var(--px-teal-soft); color: var(--px-ink); }
.btn-icono.peligro:hover { background: #FDECEB; color: var(--px-danger-txt); }
.enlace { background: none; border: 0; padding: 0; color: var(--px-teal-txt); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Control segmentado (Contado | Crédito, Ingreso | Egreso) */
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--px-teal-soft); border: 1px solid var(--px-border); border-radius: 13px; max-width: 100%; }
.seg button {
  flex: 1 1 0; min-width: 0; border: 0; background: transparent; cursor: pointer;
  padding: 8px clamp(10px, 1.2vw, 16px); border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--px-text-muted);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
}
.seg button:hover { color: var(--px-ink); }
.seg button.activo { background: #fff; color: var(--px-ink); box-shadow: 0 2px 8px rgba(24, 48, 74, .10); }
.seg.bloque { display: flex; width: 100%; }
/* A 375 "Transferencia" con su icono no cabia en un tercio: el boton toma el
   ancho que necesita y el resto se reparte. */
@media (max-width: 420px) {
  .seg.bloque { gap: 2px; }
  .seg.bloque button { flex: 1 1 auto; padding-left: 7px; padding-right: 7px; gap: 5px; font-size: 13.5px; }
}

/* ==================================================================
   SHELL: lateral + topbar + contenido
   ================================================================== */
.toggle-menu { position: absolute; width: 0; height: 0; margin: 0; opacity: 0; pointer-events: none; }
.lateral {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--lateral-w);
  background: #F3FAF8; border-right: 1px solid var(--px-border);
  display: flex; flex-direction: column; z-index: 40;
}
.lateral-marca { padding: 20px 18px 14px; display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--px-ink); }
.marca-simbolo { width: 34px; height: 34px; flex-shrink: 0; display: block; }
.marca-txt { display: flex; flex-direction: column; min-width: 0; }
.marca { font-weight: 800; letter-spacing: -.02em; font-size: 18.5px; line-height: 1.1; color: var(--px-ink); }
.marca span { color: var(--px-teal-dark); }
.marca-negocio { font-size: 12px; color: var(--px-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lateral-nav { flex: 1; padding: 2px 12px 12px; overflow-y: auto; }
.nav-grupo-tit {
  margin: 14px 12px 5px; font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--gris-cabecera);
}
.nav-grupo-tit:first-child { margin-top: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; margin-bottom: 2px; border-radius: 11px;
  color: var(--px-ink); text-decoration: none; font-size: 14.5px; font-weight: 500;
}
.nav-item > span:first-of-type { flex: 1; min-width: 0; }
.nav-item .ico { color: var(--px-text-muted); }
.nav-item:hover { background: var(--px-teal-soft); }
.nav-item:hover .ico { color: var(--px-teal-dark); }
.nav-item.es-activo { background: var(--px-teal-solid); color: #fff; font-weight: 600; box-shadow: 0 6px 14px rgba(7, 140, 132, .18); }
.nav-item.es-activo .ico { color: #fff; }
.nav-aviso {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
  background: #FDECEC; color: #A93F3F; font-size: 11.5px; font-weight: 700;
  display: inline-grid; place-items: center;
}
.nav-item.es-activo .nav-aviso { background: rgba(255,255,255,.22); color: #fff; }
.lateral-pie { padding: 12px; border-top: 1px solid var(--px-border); }
.usuario-mini { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--px-teal-solid); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.usuario-datos { display: flex; flex-direction: column; min-width: 0; }
.usuario-datos strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rol-badge { align-self: flex-start; margin-top: 2px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 7px; border-radius: 999px; }
.rol-admin { background: var(--px-teal-soft); color: #06655F; }
.rol-vendedor { background: #EAF4FD; color: var(--px-blue-txt); }
.nav-salir { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--px-text-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-salir:hover { background: var(--px-teal-soft); color: var(--px-ink); }
.lateral-firma { display: flex; align-items: center; gap: 8px; padding: 10px 12px 2px; font-size: 11px; color: var(--gris-suave); }
.lateral-firma img { height: 22px; width: auto; }
/* Pantallas bajas (laptops de 768 px, celulares): el menu se compacta para que
   todas las opciones quepan sin deslizar, y la firma se oculta. */
@media (max-height: 820px) {
  .lateral-marca { padding: 14px 18px 8px; }
  .nav-grupo-tit { margin: 9px 12px 3px; }
  .nav-item { padding: 7px 12px; margin-bottom: 1px; }
  .lateral-pie { padding: 8px 12px; }
  .usuario-mini { padding: 2px 6px 6px; }
  .nav-salir { padding: 7px 12px; }
  .lateral-firma { display: none; }
}
@media (max-height: 680px) {
  .nav-grupo-tit { margin: 6px 12px 2px; font-size: 10.5px; }
  .nav-item { padding: 6px 12px; font-size: 14px; }
  .usuario-mini { display: none; }
}

.principal { margin-left: var(--lateral-w); min-height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 1; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 20px max(30px, calc((100% - 1400px) / 2 + 30px)) 14px;
  background: rgba(248, 251, 250, .84);
  backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%);
}
.topbar-tit { flex: 1; min-width: 0; }
.topbar-tit h1 { margin: 0; font-size: clamp(21px, 2vw, 26px); font-weight: 800; letter-spacing: -.02em; }
.topbar-tit p { margin: 2px 0 0; font-size: 14px; color: var(--px-text-muted); }
.topbar-accion { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.btn-menu { display: none; color: var(--px-ink); }
.contenido { flex: 1; padding: 6px 30px 48px; width: 100%; max-width: 1400px; margin: 0 auto; }
.velo { display: none; }

@media (max-width: 960px) {
  .lateral { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0, 18, 46, .25); }
  .toggle-menu:checked ~ .lateral { transform: translateX(0); }
  .toggle-menu:checked ~ .velo { display: block; position: fixed; inset: 0; background: rgba(0, 18, 46, .35); z-index: 35; }
  .principal { margin-left: 0; }
  .btn-menu { display: inline-flex; margin-left: -6px; }
  .topbar { flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  .topbar-accion { width: 100%; justify-content: flex-start; }
  .contenido { padding: 14px 16px 32px; }
}
@media (max-width: 480px) {
  .topbar-accion > .btn { flex: 1 1 0; }
}

/* ==================================================================
   COMPONENTES
   ================================================================== */

/* --- Tarjetas KPI fluidas --- */
.grid-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: clamp(8px, .9vw, 16px);
  margin-bottom: clamp(14px, 1.6vw, 22px);
}
.grid-kpi:has(.kpi:nth-child(4)):not(:has(.kpi:nth-child(5))) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Mismo selector que la regla de 4 columnas: con uno mas corto perdia por especificidad. */
@media (max-width: 640px) {
  .grid-kpi:has(.kpi:nth-child(4)):not(:has(.kpi:nth-child(5))),
  .grid-kpi:has(.kpi:nth-child(3)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .chip { width: 30px; height: 30px; border-radius: 9px; }
  .kpi .chip svg { width: 16px; }
}
.kpi {
  background: var(--px-surface); border: 1px solid var(--px-border);
  border-radius: clamp(12px, 1vw, 16px);
  padding: clamp(11px, 1.15vw, 20px) clamp(12px, 1.25vw, 20px);
  display: flex; align-items: center; gap: clamp(9px, .85vw, 14px);
  box-shadow: var(--px-shadow); min-width: 0;
  transition: box-shadow .15s, transform .15s;
  text-decoration: none; color: inherit;
}
.kpi > * { min-width: 0; }
a.kpi:hover, .kpi.clic:hover { box-shadow: var(--px-shadow-alta); transform: translateY(-1px); }
.chip {
  width: clamp(32px, 2.6vw, 44px); height: clamp(32px, 2.6vw, 44px);
  border-radius: clamp(9px, .8vw, 12px);
  display: grid; place-items: center; flex-shrink: 0;
}
.chip svg { width: clamp(16px, 1.35vw, 22px); height: auto; }
.chip.azul  { background: var(--px-teal-soft); color: #06655F; }
.chip.verde { background: #E4F6EE; color: #0B7A4F; }
.chip.noche { background: #EAF4FD; color: var(--px-blue-txt); }
.chip.ambar { background: #FFF4DF; color: #9A6410; }
.chip.rojo  { background: #FDECEC; color: #A93F3F; }
/* La columna de texto es su propio contenedor: la cifra se mide contra SU
   ancho (cqi) y encoge con ella, en vez de cortarse con "…" en anchos medios.
   13.5cqi deja caber "$128,385.68" entero con Public Sans 800. */
.kpi > div:not(.chip) { flex: 1 1 0; container-type: inline-size; }
.kpi .num { font-size: clamp(13px, 13.5cqi, 26px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .lab { font-size: clamp(11px, .82vw, 13px); color: var(--px-text-muted); margin-top: 3px; line-height: 1.25; }
.kpi .det { font-size: 12px; color: var(--px-text-muted); margin-top: 2px; }

/* --- Paneles --- */
.panel {
  background: var(--px-surface); border: 1px solid var(--px-border);
  border-radius: 18px; box-shadow: var(--px-shadow); margin-bottom: 20px; min-width: 0;
}
.panel-cab {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(8px, .8vw, 12px); flex-wrap: wrap;
  padding: clamp(13px, 1.3vw, 17px) clamp(14px, 1.6vw, 22px) clamp(11px, 1vw, 14px);
  border-bottom: 1px solid var(--px-border);
}
.panel-cab h2 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; min-width: 0; }
.panel-cab h2 .ico { color: var(--px-teal-dark); }
.panel-cab .pista { width: 100%; margin-top: -4px; }
.panel-cuerpo { padding: clamp(14px, 1.5vw, 22px) clamp(14px, 1.6vw, 22px); }
.panel-cuerpo.sin-pad { padding: 0; }
.panel-pie { padding: 12px clamp(14px, 1.6vw, 22px); border-top: 1px solid var(--px-border); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

.layout-2col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.layout-2col.igual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-2col.estirar { align-items: stretch; }
.layout-2col.estirar > .panel { display: flex; flex-direction: column; }
.layout-2col.estirar > .panel > .panel-cuerpo { flex: 1; }
.col-apilada { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.col-apilada > .panel { margin-bottom: 0; }
@media (max-width: 1100px) { .layout-2col, .layout-2col.igual { grid-template-columns: minmax(0, 1fr); } }

/* --- Tablas --- */
.tabla-wrap { width: 100%; overflow-x: auto; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th, .tabla td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--px-border); vertical-align: middle; }
.tabla th {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--gris-cabecera); font-weight: 700; background: var(--px-teal-soft); white-space: nowrap;
}
.tabla thead th:first-child { border-top-left-radius: 0; }
.tabla tbody tr { transition: background .1s; }
.tabla tbody tr:hover { background: #F7FAF8; }
.tabla tbody tr.clic { cursor: pointer; }
.tabla tbody tr:last-child td { border-bottom: 0; }
.tabla td.acciones { text-align: right; white-space: nowrap; }
.tabla th.num, .tabla td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabla th.centro, .tabla td.centro { text-align: center; }
.tabla .secundario { font-size: 12.5px; }
.tabla tfoot td { font-weight: 700; background: #FBFDFC; border-top: 1px solid var(--px-border); }
.tabla.compacta th, .tabla.compacta td { padding: 8px 12px; }
.celda-prod { display: flex; align-items: center; gap: 11px; min-width: 0; }
.celda-prod > div { min-width: 0; }
.celda-prod strong { display: block; font-weight: 600; }
@media (max-width: 760px) {
  .tabla-wrap > .tabla { min-width: 620px; }
  .tabla-wrap {
    background:
      linear-gradient(to right, var(--px-surface) 30%, rgba(255,255,255,0)) left / 28px 100% no-repeat,
      linear-gradient(to left,  var(--px-surface) 30%, rgba(255,255,255,0)) right / 28px 100% no-repeat,
      radial-gradient(farthest-side at 0 50%, rgba(24,48,74,.10), transparent) left / 12px 100% no-repeat,
      radial-gradient(farthest-side at 100% 50%, rgba(24,48,74,.10), transparent) right / 12px 100% no-repeat;
    background-attachment: local, local, scroll, scroll;
  }
}
.fila-vacia td { text-align: center; color: var(--px-text-muted); padding: 30px 16px !important; }

/* Lista de tarjetas en movil en vez de tabla (opcional: .tabla.apilable) */
@media (max-width: 640px) {
  .tabla.apilable { min-width: 0 !important; }
  .tabla.apilable thead { display: none; }
  .tabla.apilable, .tabla.apilable tbody, .tabla.apilable tr, .tabla.apilable td { display: block; width: 100%; }
  .tabla.apilable tr { padding: 12px 14px; border-bottom: 1px solid var(--px-border); }
  .tabla.apilable td { border: 0; padding: 3px 0; text-align: left !important; }
  .tabla.apilable td[data-et]::before { content: attr(data-et) " "; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--gris-cabecera); font-weight: 700; margin-right: 6px; }
  .tabla.apilable td.acciones { padding-top: 8px; }
}

.secundario { color: var(--px-text-muted); }
.mono { font-family: var(--px-mono); font-size: .93em; }
.num-tab { font-variant-numeric: tabular-nums; }
.positivo { color: var(--px-success-txt); }
.negativo { color: var(--px-danger-txt); }
.fuerte { font-weight: 700; }

/* --- Badges --- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; line-height: 1.35;
  padding: 3px 9px; border-radius: 999px; border: 1px solid transparent;
  white-space: nowrap; text-decoration: none;
}
.badge .punto { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-azul  { background: rgba(9, 107, 97, .1);  color: var(--px-teal-txt); }
.badge-verde { background: rgba(15, 128, 67, .12); color: var(--px-success-txt); }
.badge-gris  { background: var(--px-teal-soft); color: var(--px-text-muted); border-color: var(--px-border); }
.badge-ambar { background: rgba(183, 110, 0, .12); color: var(--px-warning-txt); }
.badge-rojo  { background: rgba(179, 38, 30, .1);  color: var(--px-danger-txt); }
.badge-noche { background: #EAF4FD; color: var(--px-blue-txt); }

/* --- Estado vacio / cargando --- */
.vacio { text-align: center; padding: 46px 20px; color: var(--px-text-muted); }
.vacio > .ico { color: var(--px-border-2); margin-bottom: 10px; }
.vacio h3 { margin: 0 0 4px; font-size: 16px; color: var(--px-ink); }
.vacio p { margin: 0 0 16px; font-size: 14px; }
.cargando-caja { display: grid; place-items: center; padding: 40px 20px; color: var(--px-text-muted); gap: 10px; font-size: 14px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--px-teal-soft); border-top-color: var(--px-teal); animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.esqueleto { background: linear-gradient(90deg, #EEF5F3 25%, #F8FBFA 50%, #EEF5F3 75%); background-size: 200% 100%; animation: brillo 1.2s infinite; border-radius: 8px; min-height: 14px; }
@keyframes brillo { to { background-position: -200% 0; } }

/* --- Pestañas --- */
.tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--px-border); margin-bottom: 18px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: clamp(8px, .85vw, 10px) clamp(10px, 1.25vw, 16px);
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  font: inherit; font-size: clamp(13px, 1.05vw, 14px); font-weight: 600;
  color: var(--px-text-muted); cursor: pointer; white-space: nowrap; flex-shrink: 0; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
}
.tab:hover { color: var(--px-ink); }
.tab.activo { color: var(--px-teal-txt); border-bottom-color: var(--px-teal-solid); }
.tab .badge { padding: 1px 7px; font-size: 11px; }

/* --- Barra de herramientas / filtros --- */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--px-surface); border: 1px solid var(--px-border);
  border-radius: 16px; padding: 10px 12px; margin-bottom: 14px; box-shadow: var(--px-shadow);
}
.toolbar select, .toolbar input[type="date"] { width: auto; min-width: 150px; max-width: 240px; min-height: 40px; padding-top: 7px; padding-bottom: 7px; }
.toolbar .sep { flex: 1; }
.toolbar .total-filtro { font-size: 13px; color: var(--px-text-muted); white-space: nowrap; }
.buscador { position: relative; flex: 1 1 240px; min-width: 0; max-width: 420px; }
.buscador .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--gris-suave); pointer-events: none; }
.buscador input { padding-left: 40px !important; min-height: 40px !important; }
@media (max-width: 640px) {
  .toolbar select, .toolbar input[type="date"] { flex: 1 1 140px; max-width: none; min-width: 0; }
  .buscador { flex-basis: 100%; max-width: none; }
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.deslizar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.deslizar::-webkit-scrollbar { display: none; }
.chip-filtro {
  padding: 7px 13px; border: 1px solid var(--px-border-2); border-radius: 999px;
  background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--px-text-muted);
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; flex-shrink: 0;
}
.chip-filtro:hover { background: var(--px-teal-soft); color: var(--px-ink); }
.chip-filtro.activo { background: var(--px-ink); color: #fff; border-color: var(--px-ink); }
.chip-filtro .cuenta { font-size: 11.5px; opacity: .75; }

/* --- Formularios --- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .col-full { grid-column: 1 / -1; }
.campo { display: flex; flex-direction: column; min-width: 0; }
.campo > label { margin: 0 0 6px; }
.campo .ayuda { font-size: 12.5px; color: var(--px-text-muted); margin-top: 5px; }
.campo .error-campo { font-size: 12.5px; color: var(--px-danger-txt); margin-top: 5px; }
.req::after { content: " *"; color: var(--px-danger-txt); }
.form-acciones { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.form-seccion { margin: 22px 0 10px; padding-top: 16px; border-top: 1px dashed var(--px-border); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-cabecera); display: flex; align-items: center; gap: 8px; }
.form-seccion:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 640px) {
  .form-grid, .form-grid.tres { grid-template-columns: minmax(0, 1fr); }
  .form-acciones > .btn { flex: 1 1 100%; }
}
.pista { font-weight: 400; font-size: 12.5px; color: var(--px-text-muted); }

/* --- Avisos --- */
.alerta-error, .aviso, .aviso-ok, .aviso-ambar {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 10px 14px; border-radius: 12px; font-size: 14px; margin: 0 0 14px; border: 1px solid;
}
.alerta-error { background: #FDECEB; color: var(--px-danger-txt); border-color: #F3C9C6; }
.aviso { background: #EAF4FD; color: var(--px-blue-txt); border-color: #C9E2F7; }
.aviso-ok { background: #E4F1EC; color: var(--px-success-txt); border-color: #BFE0D6; }
.aviso-ambar { background: #FFF6E5; color: var(--px-warning-txt); border-color: #F5DDAE; }
.alerta-error .ico, .aviso .ico, .aviso-ok .ico, .aviso-ambar .ico { margin-top: 2px; }

/* --- Lista de datos (dt/dd) --- */
.datos { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; }
.datos dt { color: var(--px-text-muted); }
.datos dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

/* --- Barra de progreso --- */
.progreso { display: block; height: 8px; background: var(--px-teal-soft); border-radius: 999px; overflow: hidden; min-width: 60px; }
.progreso > span { display: block; height: 100%; background: var(--px-teal); border-radius: 999px; }
.progreso.verde > span { background: var(--px-success); }
.progreso.ambar > span { background: var(--px-warning); }
.progreso.rojo > span { background: var(--px-danger); }

/* --- Miniatura de producto (silueta de telefono con su color) --- */
.mini-prod {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--fondo, var(--px-teal-soft)); color: var(--tinta, var(--px-teal-dark));
  border: 1px solid rgba(24, 48, 74, .06);
}
.mini-prod svg { width: 60%; height: 60%; }
.mini-prod.grande { width: 64px; height: 64px; border-radius: 16px; }
.mini-prod.xl { width: 96px; height: 96px; border-radius: 22px; }
.muestra-color { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(24,48,74,.18); display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* --- Migas de categoria --- */
.migas { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 12.5px; color: var(--px-text-muted); }
.migas .ico { color: var(--px-border-2); }

/* --- Tarjeta de ficha / caracteristicas --- */
.ficha-tec { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.ficha-tec > div { background: #FBFDFC; border: 1px solid var(--px-border); border-radius: 12px; padding: 9px 12px; min-width: 0; }
.ficha-tec .k { font-size: 11.5px; color: var(--px-text-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.ficha-tec .v { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.ficha-tec .o { font-size: 11px; color: var(--gris-suave); }

/* --- Modal propio --- */
.modal-fondo {
  position: fixed; inset: 0; background: rgba(0, 18, 46, .5);
  display: flex; align-items: flex-start; justify-content: center;
  z-index: 60; padding: clamp(12px, 5vh, 48px) 14px; overflow-y: auto;
  opacity: 0; transition: opacity .15s ease;
}
.modal-fondo.abierto { opacity: 1; }
.modal {
  background: #fff; border-radius: 18px; width: 100%; max-width: 560px;
  box-shadow: 0 24px 70px rgba(0, 12, 36, .35); margin: auto 0;
  transform: translateY(8px) scale(.99); transition: transform .18s ease;
  display: flex; flex-direction: column;
  /* Cabecera (con la X) y pie (con el boton principal) siempre a la vista: lo
     que se desliza es el cuerpo. Antes el modal largo empujaba "Guardar" bajo
     el pliegue y al bajar a buscarlo se perdia la X. */
  max-height: calc(100vh - 2 * clamp(12px, 5vh, 48px));
  max-height: calc(100dvh - 2 * clamp(12px, 5vh, 48px));
}
.modal-cab, .modal-pie { flex-shrink: 0; }
.modal-fondo.abierto .modal { transform: none; }
.modal.lg { max-width: 760px; }
.modal.xl { max-width: 1040px; }
.modal.sm { max-width: 430px; }
.modal-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--px-border); }
.modal-cab h3 { margin: 0; font-size: 16.5px; display: flex; align-items: center; gap: 9px; min-width: 0; }
.modal-cab h3 .ico { color: var(--px-teal-dark); }
.modal-cuerpo { padding: 20px; min-width: 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.modal-pie {
  display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px; border-top: 1px solid var(--px-border);
  background: var(--px-page); border-radius: 0 0 18px 18px;
}
.modal-cerrar { background: none; border: 0; cursor: pointer; color: var(--px-text-muted); padding: 6px; display: inline-flex; border-radius: 10px; }
.modal-cerrar:hover { color: var(--px-danger-txt); background: #FDECEB; }
.dialogo-txt { margin: 0; line-height: 1.55; font-size: 14.5px; }
.dialogo-peligro .modal-cab h3, .dialogo-peligro .modal-cab h3 .ico { color: var(--px-danger-txt); }
body.modal-abierto { overflow: hidden; }
@media (max-width: 640px) {
  .modal-fondo { padding: 0; align-items: flex-end; }
  .modal { border-radius: 20px 20px 0 0; margin: 0; max-height: 94vh; max-height: 94dvh; transform: translateY(24px); }
  .modal-pie { border-radius: 0; flex-direction: column-reverse; }
  .modal-pie .btn { width: 100%; }
}

/* --- Toasts --- */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100% - 36px)); }
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--px-ink); color: #fff; padding: 12px 14px; border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 18, 46, .28); font-size: 14px; line-height: 1.4;
  animation: entrarToast .2s ease;
}
.toast .ico { margin-top: 1px; color: var(--px-teal-light); }
.toast.error { background: #7E2A28; }
.toast.error .ico { color: #FFC9C6; }
.toast.aviso .ico { color: #FFD27A; }
@keyframes entrarToast { from { transform: translateY(10px); opacity: 0; } }
/* En movil los avisos van ARRIBA: abajo tapaban el boton principal de las
   hojas inferiores ("Listo", "Registrar cobro") justo cuando aparecian. */
@media (max-width: 640px) {
  .toasts { left: 14px; right: 14px; top: calc(10px + env(safe-area-inset-top, 0px)); bottom: auto; max-width: none; }
  @keyframes entrarToast { from { transform: translateY(-10px); opacity: 0; } }
}

/* --- Graficas (SVG hechas a mano, ver App.grafico en app.js) --- */
.grafico { width: 100%; position: relative; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.grafico .eje { font-size: 11px; fill: var(--px-text-muted); font-family: var(--px-texto); }
.grafico .rejilla { stroke: var(--px-border); stroke-width: 1; }
.grafico-tip {
  position: absolute; pointer-events: none; background: var(--px-ink); color: #fff;
  font-size: 12.5px; padding: 7px 10px; border-radius: 10px; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px)); box-shadow: 0 8px 20px rgba(0,18,46,.25); z-index: 5;
}
.leyenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--px-text-muted); }
.leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.leyenda i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* --- Titular editorial (Instrument Serif, solo grande) --- */
.titular { font-family: var(--px-titular); font-weight: 400; letter-spacing: -.01em; line-height: 1.05; }

/* --- Utilidades --- */
.fila { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fila.entre { justify-content: space-between; }
.fila.fin { justify-content: flex-end; }
.pila { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.txt-der { text-align: right; } .txt-centro { text-align: center; }
.nowrap { white-space: nowrap; }
.truncar { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* .solo-movil se oculta FUERA del movil: dentro no lleva regla y conserva su
   display propio (un .btn-icono sigue siendo inline-flex; display:revert lo rompia). */
@media (min-width: 641px) { .solo-movil { display: none !important; } }
@media (max-width: 640px) {
  .oculto-movil { display: none !important; }
  .topbar-accion:not(:has(> :not(.oculto-movil))) { display: none; }
}
.separador { border: 0; border-top: 1px solid var(--px-border); margin: 16px 0; }

/* ==================================================================
   LOGIN
   ================================================================== */
body.pagina-login { background: var(--px-page); }
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login-marca {
  position: relative; overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  color: #fff;
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(18, 169, 159, .55), transparent 60%),
    radial-gradient(700px 520px at 110% 110%, rgba(21, 149, 232, .35), transparent 60%),
    #0A2F5D;
}
.login-marca::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='170' height='170' filter='url(%23g)' opacity='.55'/%3E%3C/svg%3E");
}
.login-logo { width: clamp(170px, 18vw, 230px); height: auto; position: relative; z-index: 1; }
.login-mensaje { position: relative; z-index: 1; max-width: 560px; }
.login-eyebrow { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9FE3DC; }
.login-mensaje h1 { margin: 0 0 26px; font-family: var(--px-titular); font-weight: 400; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.01em; }
.login-mensaje h1 em { font-style: normal; color: #6FD8CF; }
.login-puntos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.login-puntos li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: rgba(255,255,255,.86); }
.login-puntos .ico { color: #6FD8CF; margin-top: 2px; }
.login-pie { position: relative; z-index: 1; margin: 0; font-family: var(--px-titular); font-size: 22px; color: rgba(255,255,255,.7); }
.login-form-lado { display: grid; place-items: center; padding: clamp(20px, 4vw, 48px); }
.tarjeta-login {
  width: 100%; max-width: 400px; background: #fff;
  border: 1px solid var(--px-border); border-radius: 22px;
  padding: clamp(24px, 3vw, 36px); box-shadow: 0 20px 50px rgba(24, 48, 74, .10);
}
.login-simbolo { display: block; width: 48px; height: 48px; margin-bottom: 14px; }
.tarjeta-login h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.tarjeta-login h2 span { color: var(--px-teal-dark); }
.subtitulo { margin: 4px 0 20px; color: var(--px-text-muted); font-size: 14px; }
.tarjeta-login .btn { margin-top: 22px; }
.login-demo { display: flex; gap: 9px; align-items: flex-start; margin-top: 18px; padding: 11px 13px; border-radius: 12px; background: var(--px-teal-soft); color: var(--px-teal-txt); font-size: 13px; line-height: 1.45; }
.login-demo .ico { margin-top: 1px; }
@media (max-width: 900px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-marca { gap: 20px; padding-bottom: 36px; }
  .login-puntos, .login-pie { display: none; }
  .login-mensaje h1 { margin-bottom: 0; font-size: clamp(30px, 8vw, 44px); }
  .login-form-lado { align-items: start; margin-top: -24px; position: relative; z-index: 2; }
}

/* ==================================================================
   IMPRESION (comprobantes)
   ================================================================== */
@media print {
  body.app::before, body.app::after, .lateral, .topbar, .velo, .toasts, .no-imprimir { display: none !important; }
  .principal { margin: 0 !important; }
  .contenido { padding: 0 !important; max-width: none !important; }
  body { background: #fff !important; }
  .panel { box-shadow: none !important; }
}

/* Movimiento reducido: sin transiciones ni animaciones */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
