/* NOC-TI-WORD Móvil — mismos colores que el programa del PC (azul noche, celeste, verde y naranja del logo) */
:root {
  --fondo: #07111F;
  --fondo-2: #0A1628;
  --tarjeta: #0E1D33;
  --tarjeta-2: #12253F;
  --borde: #1B3556;
  --texto: #EEF6FF;
  --texto-2: #8BA3C1;
  --texto-3: #5D7593;
  --azul: #1A8FD0;
  --celeste: #5FC3EC;
  --verde: #22C55E;
  --verde-2: #10B981;
  --rojo: #EF4444;
  --ambar: #F59E0B;
  --naranja: #F59A2A;
  --radio: 16px;
  --barra-alto: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(120% 60% at 50% -10%, #0C2A4A 0%, var(--fondo) 60%) fixed, var(--fondo);
  color: var(--texto); font: 15px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--celeste); }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ── arranque e ingreso ─────────────────────────────────────── */
.arranque { min-height: 100vh; display: grid; place-items: center; }
.ingreso { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 22px; max-width: 440px; margin: 0 auto; }
.ingreso .marca { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 26px; text-align: center; }
.ingreso h1 { margin: 0; font-size: 24px; letter-spacing: .3px; }
.ingreso h1 b { color: var(--naranja); }
.ingreso p { margin: 0; color: var(--texto-2); }
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.campo label { font-size: 13px; color: var(--texto-2); }
.campo input, .campo select, .campo textarea {
  width: 100%; background: #081424; border: 1px solid var(--borde); border-radius: 12px; padding: 13px 14px;
  outline: none; transition: border-color .15s;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--azul); }
.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: center; margin: 6px 0 14px; color: var(--texto-2); font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--verde); }
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px;
  padding: 14px 18px; font-weight: 700; background: var(--azul); color: #fff; width: 100%; transition: transform .1s, opacity .15s;
  text-decoration: none;
}
.boton:active { transform: scale(.98); }
.boton[disabled] { opacity: .55; }
.boton.verde { background: var(--verde-2); }
.boton.rojo { background: var(--rojo); }
.boton.naranja { background: var(--naranja); color: #1b1203; }
.boton.claro { background: transparent; border: 1px solid var(--borde); color: var(--texto); font-weight: 600; }
.error { color: #FCA5A5; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .35); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }

/* ── estructura ─────────────────────────────────────────────── */
.cabecera {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(7, 17, 31, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}
.cabecera img { width: 34px; height: 34px; border-radius: 10px; }
.cabecera .titulo { flex: 1; min-width: 0; }
.cabecera .titulo b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cabecera .titulo small { color: var(--texto-2); font-size: 12px; }
.icono-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--borde); background: var(--tarjeta); display: grid; place-items: center; font-size: 18px; }
.contenido { padding: 14px 14px calc(var(--barra-alto) + 26px + env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; }
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--barra-alto) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(10, 22, 40, .97); border-top: 1px solid var(--borde);
}
.barra a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--texto-2); text-decoration: none; font-size: 11px; position: relative; }
.barra a span { font-size: 21px; line-height: 1; filter: grayscale(.4); }
.barra a.activa { color: var(--verde); }
.barra a.activa span { filter: none; transform: translateY(-1px); }
.barra .globo { position: absolute; top: 7px; left: 54%; min-width: 18px; height: 18px; border-radius: 9px; background: var(--naranja); color: #1b1203; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }

/* ── avisos del PC ──────────────────────────────────────────── */
.aviso-pc { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; margin-bottom: 12px; font-size: 13.5px; }
.aviso-pc.mal { background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .4); color: #FCD34D; }
.aviso-pc.bien { background: rgba(34, 197, 94, .07); border: 1px solid rgba(34, 197, 94, .25); color: #86EFAC; }

/* ── tarjetas ───────────────────────────────────────────────── */
.seccion { margin: 18px 2px 8px; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--naranja); text-transform: uppercase; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 13px 14px; text-decoration: none; color: inherit; display: block; }
.kpi b { display: block; font-size: 24px; line-height: 1.15; }
.kpi small { color: var(--texto-2); font-size: 12.5px; }
.kpi.verde b { color: var(--verde); } .kpi.rojo b { color: var(--rojo); } .kpi.ambar b { color: var(--ambar); } .kpi.celeste b { color: var(--celeste); }
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px; }
.alerta { display: flex; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--tarjeta); border: 1px solid var(--borde); margin-bottom: 8px; }
.alerta.critico { border-color: rgba(239, 68, 68, .45); }
.alerta.advertencia { border-color: rgba(245, 158, 11, .4); }
.alerta b { display: block; font-size: 14px; }
.alerta small { color: var(--texto-2); }
.barras { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding-top: 6px; }
.barras div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.barras i { width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--verde), #15803D); min-height: 3px; }
.barras small { font-size: 10.5px; color: var(--texto-2); }

/* ── lista de clientes ──────────────────────────────────────── */
.buscador { position: sticky; top: 61px; z-index: 4; background: var(--fondo); padding: 2px 0 8px; }
.buscador input { width: 100%; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 12px; padding: 12px 14px; outline: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--borde); background: var(--tarjeta); color: var(--texto-2); border-radius: 999px; padding: 7px 12px; font-size: 13px; }
.chip.activo { background: rgba(34, 197, 94, .14); color: var(--verde); border-color: rgba(34, 197, 94, .5); }
.cliente { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 14px; margin-bottom: 8px; text-decoration: none; color: inherit; }
.punto { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--texto-3); }
.punto.on { background: var(--verde); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: latido 2s infinite; }
.punto.off { background: var(--rojo); }
@keyframes latido { 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.cliente .medio { flex: 1; min-width: 0; }
.cliente .medio b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; }
.cliente .medio small { color: var(--texto-2); font-size: 12.5px; }
.etiqueta { flex: none; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 8px; }
.etiqueta.deuda { background: rgba(239, 68, 68, .14); color: #FCA5A5; }
.etiqueta.cortado { background: rgba(245, 158, 11, .14); color: #FCD34D; }
.etiqueta.aldia { background: rgba(34, 197, 94, .12); color: #86EFAC; }
.vacio { text-align: center; color: var(--texto-2); padding: 34px 10px; }
.mas { text-align: center; color: var(--texto-2); font-size: 13px; padding: 8px; }
.flotante { position: fixed; right: 16px; bottom: calc(var(--barra-alto) + 16px + env(safe-area-inset-bottom)); z-index: 6; width: 58px; height: 58px; border-radius: 18px; border: 0; background: var(--verde-2); color: #fff; font-size: 28px; box-shadow: 0 10px 30px -8px rgba(16, 185, 129, .7); }

/* ── ficha del cliente ──────────────────────────────────────── */
.ficha-cab { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.ficha-cab h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.ficha-cab small { color: var(--texto-2); }
.datos { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--borde); border-radius: 14px; overflow: hidden; border: 1px solid var(--borde); }
.datos div { background: var(--tarjeta); padding: 10px 12px; min-width: 0; }
.datos div.ancho { grid-column: 1 / -1; }
.datos small { display: block; color: var(--texto-2); font-size: 11.5px; }
.datos span { display: block; overflow-wrap: anywhere; }
.acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.acciones .boton { padding: 13px 10px; font-size: 14.5px; }
.acciones .ancho { grid-column: 1 / -1; }
.deuda-grande { display: flex; justify-content: space-between; align-items: center; padding: 14px; border-radius: 14px; margin: 12px 0; }
.deuda-grande.debe { background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .35); }
.deuda-grande.aldia { background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .3); }
.deuda-grande b { font-size: 22px; }
.linea { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--borde); font-size: 14px; }
.linea:last-child { border-bottom: 0; }
.linea small { color: var(--texto-2); display: block; }

/* ── órdenes ────────────────────────────────────────────────── */
.orden { display: flex; gap: 10px; padding: 12px; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 14px; margin-bottom: 8px; }
.orden .ic { font-size: 20px; }
.orden b { display: block; font-size: 14px; }
.orden small { color: var(--texto-2); display: block; }
.orden.error { border-color: rgba(239, 68, 68, .4); }
.orden.hecha { border-color: rgba(34, 197, 94, .3); }
.girando { display: inline-block; animation: girar 1.2s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ── hoja inferior (formularios) ────────────────────────────── */
.hoja { position: fixed; inset: 0; z-index: 20; }
.hoja-fondo { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.hoja-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; background: var(--fondo-2);
  border-top: 1px solid var(--borde); border-radius: 22px 22px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  animation: subir .22s cubic-bezier(.2, .8, .2, 1); max-width: 760px; margin: 0 auto;
}
.hoja-panel::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--borde); margin: 2px auto 12px; }
.hoja-panel h3 { margin: 0 0 4px; font-size: 18px; }
.hoja-panel .sub { color: var(--texto-2); margin: 0 0 16px; font-size: 13.5px; }
@keyframes subir { from { transform: translateY(40px); opacity: 0; } }

/* ── avisos emergentes ──────────────────────────────────────── */
#toasts { position: fixed; left: 12px; right: 12px; bottom: calc(var(--barra-alto) + 14px + env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-direction: column; gap: 8px; pointer-events: none; align-items: center; }
.toast { pointer-events: auto; max-width: 520px; width: 100%; background: #10233D; border: 1px solid var(--borde); border-radius: 12px; padding: 11px 14px; box-shadow: 0 10px 30px -10px #000; font-size: 14px; animation: subir .2s; }
.toast.ok { border-color: rgba(34, 197, 94, .55); }
.toast.mal { border-color: rgba(239, 68, 68, .55); }

@media (min-width: 640px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
}

/* ── modificar (v2): pagos anulables, menú «Más», planes y PQR ── */
button.orden { width: 100%; text-align: left; color: var(--texto); font: inherit; cursor: pointer; align-items: center; }
button.orden > div { flex: 1; min-width: 0; }
.der { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mini { border: 1px solid rgba(239, 68, 68, .45); background: transparent; color: #FCA5A5; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.boton.peligro { color: #FCA5A5; border-color: rgba(239, 68, 68, .45); }
.menu-mas { display: grid; gap: 8px; margin-top: 6px; }
.menu-mas a { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 14px; color: var(--texto); text-decoration: none; }
.menu-mas a span { font-size: 24px; }
.menu-mas small { display: block; color: var(--texto-2); }
.hoja-panel .sub { color: var(--texto-2); font-size: 13px; }
.hoja-panel .tarjeta { margin-bottom: 12px; }

/* ── panel completo (v3) ── */
.pfila { display: block; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 14px; margin-bottom: 8px; color: var(--texto); text-decoration: none; }
.pfila.rojo { border-left: 4px solid var(--rojo); } .pfila.verde { border-left: 4px solid var(--verde); }
.pfila.ambar { border-left: 4px solid var(--ambar); } .pfila.celeste { border-left: 4px solid var(--celeste); }
.pfila-cuerpo { display: flex; gap: 10px; align-items: center; padding: 12px; color: inherit; text-decoration: none; }
.pfila-cuerpo .medio { flex: 1; min-width: 0; }
.pfila-cuerpo b { display: block; font-size: 14.5px; overflow-wrap: anywhere; }
.pfila-cuerpo small { display: block; color: var(--texto-2); font-size: 12.5px; overflow-wrap: anywhere; }
.pfila-btn { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.mini.verde { border-color: rgba(34, 197, 94, .5); color: #86EFAC; } .mini.claro { border-color: var(--borde); color: var(--texto); text-decoration: none; }
.mini.rojo { border-color: rgba(239, 68, 68, .45); color: #FCA5A5; }
.mini { padding: 6px 12px; font-size: 12.5px; }
.etiqueta.verde { color: #86EFAC; } .etiqueta.rojo { color: #FCA5A5; } .etiqueta.ambar { color: #FCD34D; } .etiqueta.celeste { color: var(--celeste); }
.etiqueta { white-space: nowrap; font-size: 12px; }
.volver { display: inline-block; margin: 2px 0 10px; color: var(--celeste); text-decoration: none; font-size: 14px; }
.kpi.ambar b { color: var(--ambar); } .kpi.rojo b { color: var(--rojo); } .kpi.verde b { color: var(--verde); } .kpi.celeste b { color: var(--celeste); }

/* ── v5: menú lateral IGUAL al del programa del PC ── */
:root { --menu-ancho: 262px; --menu-fondo: #0A1628; --menu-activo: #1A8FD0; --menu-hover: #1A2E42; }
.barra { display: none !important; }
.contenido { padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
.flotante { bottom: calc(18px + env(safe-area-inset-bottom)); }
.menu-lateral {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 30; width: var(--menu-ancho); background: var(--menu-fondo);
  border-right: 1px solid var(--borde); overflow-y: auto; padding: 12px 10px calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-102%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); scrollbar-width: thin;
}
.menu-abierto .menu-lateral { transform: none; box-shadow: 20px 0 60px -10px rgba(0, 0, 0, .7); }
.menu-fondo { position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
.menu-abierto .menu-fondo { opacity: 1; pointer-events: auto; }
.m-marca { display: flex; gap: 10px; align-items: center; padding: 6px 6px 10px; }
.m-marca img { width: 42px; height: 42px; border-radius: 12px; }
.m-marca b { display: block; font-size: 15px; letter-spacing: .3px; }
.m-marca small { display: block; color: var(--texto-2); font-size: 11.5px; }
.m-usuario { background: #142433; border-radius: 10px; padding: 8px 10px; font-size: 12px; color: var(--texto-2); margin: 0 4px 6px; }
.m-sec { color: var(--naranja); font-weight: 800; font-size: 12px; letter-spacing: .4px; padding: 16px 10px 6px; }
.m-item {
  display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 10px; margin: 2px 0; border-radius: 10px;
  color: var(--texto); text-decoration: none; font-size: 14px; position: relative; transition: background .15s;
}
.m-item img { width: 30px; height: 30px; flex: none; }
.m-item:hover { background: var(--menu-hover); }
.m-item.activo { background: var(--menu-activo); color: #fff; box-shadow: 0 6px 18px -8px rgba(26, 143, 208, .9); }
.m-item .globo { position: static; margin-left: auto; min-width: 20px; height: 20px; border-radius: 10px; background: var(--rojo); color: #fff;
  font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; font-style: normal; }
.menu-btn { font-size: 22px; }
/* tableta / PC: el menú queda fijo a la izquierda, como en el programa */
@media (min-width: 900px) {
  .menu-lateral { transform: none; }
  .menu-fondo, .menu-btn { display: none; }
  .area { margin-left: var(--menu-ancho); }
  .cabecera { left: var(--menu-ancho); }
}

/* ── v6: fluidez y animación ── */
/* rendimiento en Android: fondo sin «fixed» y cabecera sin desenfoque (eran lo que trababa al desplazar) */
body { background: radial-gradient(120% 60% at 50% -10%, #0C2A4A 0%, var(--fondo) 60%) no-repeat, var(--fondo); }
.cabecera { backdrop-filter: none; -webkit-backdrop-filter: none; background: #08121F; }
#toasts { bottom: calc(14px + env(safe-area-inset-bottom)); }
body:not(.con-sesion) .menu-lateral, body:not(.con-sesion) .menu-fondo { display: none; }
.centinela { height: 1px; }
.lista-anim { contain: content; }

/* selector «Trabajando en» (como en el PC) */
.m-nodo { display: block; margin: 0 4px 4px; background: #142433; border: 1px solid var(--borde); border-radius: 10px; padding: 8px 10px; }
.m-nodo small { display: block; color: var(--naranja); font-weight: 800; font-size: 11px; letter-spacing: .4px; margin-bottom: 4px; }
.m-nodo select { width: 100%; background: #081424; color: var(--texto); border: 1px solid var(--borde); border-radius: 8px; padding: 8px; font: inherit; font-size: 14px; }
.chip-nodo { display: inline-block; background: rgba(26, 143, 208, .18); color: var(--celeste); border-radius: 999px; padding: 0 8px; margin-right: 6px; font-weight: 700; font-size: 11.5px; }

/* entrada de cada pantalla: aparece desde abajo, en cascada */
@keyframes entrar { from { opacity: 0; transform: translateY(14px); } }
@keyframes entrarIzq { from { opacity: 0; transform: translateX(-18px); } }
@keyframes crecer { from { transform: scaleY(0); } }
@keyframes respirar { 50% { transform: scale(1.1); filter: drop-shadow(0 0 7px rgba(167, 243, 192, .9)); } }
@keyframes latidoPunto { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
.contenido.anim > * { animation: entrar .38s cubic-bezier(.2, .8, .2, 1) both; }
.contenido.anim > *:nth-child(2) { animation-delay: .04s; } .contenido.anim > *:nth-child(3) { animation-delay: .08s; }
.contenido.anim > *:nth-child(4) { animation-delay: .12s; } .contenido.anim > *:nth-child(5) { animation-delay: .16s; }
.contenido.anim > *:nth-child(n+6) { animation-delay: .2s; }
.contenido.anim .kpis > * { animation: entrar .45s cubic-bezier(.2, .8, .2, 1) both; }
.contenido.anim .kpis > *:nth-child(2) { animation-delay: .05s; } .contenido.anim .kpis > *:nth-child(3) { animation-delay: .1s; }
.contenido.anim .kpis > *:nth-child(4) { animation-delay: .15s; } .contenido.anim .kpis > *:nth-child(5) { animation-delay: .2s; }
.contenido.anim .kpis > *:nth-child(6) { animation-delay: .25s; }
.contenido.anim .lista-anim > *:nth-child(-n+12) { animation: entrar .35s cubic-bezier(.2, .8, .2, 1) both; }
.contenido.anim .lista-anim > *:nth-child(2) { animation-delay: .03s; } .contenido.anim .lista-anim > *:nth-child(3) { animation-delay: .06s; }
.contenido.anim .lista-anim > *:nth-child(4) { animation-delay: .09s; } .contenido.anim .lista-anim > *:nth-child(5) { animation-delay: .12s; }
.contenido.anim .lista-anim > *:nth-child(6) { animation-delay: .15s; } .contenido.anim .lista-anim > *:nth-child(n+7) { animation-delay: .18s; }
.barras i { transform-origin: bottom; animation: crecer .7s cubic-bezier(.2, .8, .2, 1) both; }
.barras div:nth-child(2) i { animation-delay: .05s; } .barras div:nth-child(3) i { animation-delay: .1s; }
.barras div:nth-child(4) i { animation-delay: .15s; } .barras div:nth-child(5) i { animation-delay: .2s; } .barras div:nth-child(6) i { animation-delay: .25s; }
.punto.on { animation: latidoPunto 2.2s infinite; }

/* menú: las opciones entran en cascada al abrirlo y la figura activa «respira» (como en el programa) */
.menu-abierto .m-item, .menu-abierto .m-sec { animation: entrarIzq .32s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(min(var(--i), 18) * 14ms); }
.m-item img { transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.m-item:hover img, .m-item:active img { transform: scale(1.18); }
.m-item.activo img { animation: respirar 2.6s ease-in-out infinite; }
.m-item { transition: background .18s, transform .12s; }
.m-item:active { transform: scale(.97); }

/* todo lo que se toca responde (se hunde un poco) */
.boton, .chip, .kpi, .pfila, .cliente, .orden, .mini, .icono-btn, .flotante { transition: transform .12s ease, background .18s, border-color .18s, opacity .18s; }
.boton:active, .chip:active, .kpi:active, .pfila:active, .cliente:active, .orden:active, .mini:active, .icono-btn:active { transform: scale(.97); }
.flotante:active { transform: scale(.92); }
.chip.activo { transition: background .25s, color .25s, border-color .25s; }
.toast { animation: entrar .28s cubic-bezier(.2, .8, .2, 1); }
.hoja-fondo { animation: aparecer .2s both; }
@keyframes aparecer { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
