/* =====================================================================
   Tema FUTURISTA — se carga encima de style.css. Todo está limitado a
   html.fx, así que quitando esa clase (botón del menú superior) regresa
   el diseño clásico. No afecta la impresión.
   ===================================================================== */
@media screen {
html.fx {
    --fx-cian: #22d3ee;
    --fx-violeta: #8b5cf6;
    --fx-glow: rgba(var(--azul-rgb, 37,99,235), 0.45);
    --fx-vidrio: rgba(255,255,255,0.72);
    --fx-vidrio-borde: rgba(255,255,255,0.65);
    --fx-sombra: 0 1px 0 rgba(255,255,255,.7) inset, 0 12px 30px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.06);
    --fx-sombra-hover: 0 1px 0 rgba(255,255,255,.8) inset, 0 22px 44px rgba(15,23,42,.18), 0 0 0 1px rgba(var(--azul-rgb,37,99,235),.25), 0 0 26px var(--fx-glow);
    --fx-ease: cubic-bezier(.2,.8,.2,1);
    color-scheme: light;
}
html.fx.tema-oscuro {
    --fx-vidrio: rgba(20,28,48,0.66);
    --fx-vidrio-borde: rgba(148,163,184,0.20);
    --fx-sombra: 0 1px 0 rgba(255,255,255,.06) inset, 0 14px 34px rgba(0,0,0,.45);
    --fx-sombra-hover: 0 1px 0 rgba(255,255,255,.10) inset, 0 22px 48px rgba(0,0,0,.6), 0 0 0 1px rgba(34,211,238,.35), 0 0 30px rgba(34,211,238,.25);
    color-scheme: dark;
}

/* ---------- Fondo ---------- */
html.fx body {
    background:
        radial-gradient(1100px 600px at 8% -10%, rgba(var(--azul-rgb,37,99,235),.16), transparent 60%),
        radial-gradient(900px 560px at 100% 0%, rgba(139,92,246,.14), transparent 60%),
        radial-gradient(900px 600px at 50% 110%, rgba(34,211,238,.12), transparent 60%),
        #eef2fb;
    background-attachment: fixed;
    font-family: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    position: relative;
}
html.fx body::before {           /* cuadrícula sutil */
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(var(--azul-rgb,37,99,235),.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--azul-rgb,37,99,235),.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
html.fx.tema-oscuro body {
    background:
        radial-gradient(1100px 600px at 8% -10%, rgba(59,130,246,.22), transparent 60%),
        radial-gradient(900px 560px at 100% 0%, rgba(139,92,246,.20), transparent 60%),
        radial-gradient(900px 600px at 50% 110%, rgba(34,211,238,.14), transparent 60%),
        #070b17;
    background-attachment: fixed;
}
html.fx.tema-oscuro body::before {
    background-image:
        linear-gradient(rgba(34,211,238,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34,211,238,.06) 1px, transparent 1px);
}
html.fx .app-shell, html.fx .container, html.fx .footer { position: relative; z-index: 1; }

/* ---------- Barra superior ---------- */
html.fx .topbar {
    position: sticky; top: 0; z-index: 60;
    background: linear-gradient(100deg, var(--azul-oscuro), var(--azul) 55%, color-mix(in srgb, var(--azul) 70%, #8b5cf6));
    border-bottom: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 8px 28px rgba(var(--azul-rgb,37,99,235),.35), 0 1px 0 rgba(255,255,255,.25) inset;
}
html.fx .topbar::after {          /* línea de luz que recorre la barra */
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--fx-cian), #fff, var(--fx-violeta), transparent);
    background-size: 220% 100%; animation: fx-barrido 6s linear infinite; opacity: .9;
}
html.fx .topbar-brand span { letter-spacing: .04em; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
html.fx .topbar-logo { box-shadow: 0 4px 14px rgba(0,0,0,.35), 0 0 0 2px rgba(255,255,255,.35); transition: transform .4s var(--fx-ease); }
html.fx .topbar-brand:hover .topbar-logo { transform: rotate(-6deg) scale(1.08); }
html.fx .topbar-tema {
    background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
    box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 3px 8px rgba(0,0,0,.25);
    transition: transform .2s var(--fx-ease), background .2s, box-shadow .2s;
}
html.fx .topbar-tema:hover { background: rgba(255,255,255,.3); transform: translateY(-2px) scale(1.08); box-shadow: 0 6px 14px rgba(0,0,0,.35), 0 0 14px rgba(255,255,255,.4); }
html.fx .topbar-tema:active { transform: translateY(1px) scale(.96); }
html.fx .topbar-logout { box-shadow: 0 3px 0 rgba(0,0,0,.25), 0 6px 14px rgba(220,38,38,.45); transition: transform .15s, box-shadow .15s; }
html.fx .topbar-logout:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 5px 0 rgba(0,0,0,.25), 0 10px 20px rgba(220,38,38,.55); }
html.fx .topbar-logout:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
html.fx .topbar-nav a:hover { text-decoration: none; }
html.fx #btnFx { font-size: .95em; }
html.fx .campanita-contador { animation: fx-pulso 1.8s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(220,38,38,.6); }

/* ---------- Menú lateral ---------- */
html.fx .sidebar {
    background: var(--fx-vidrio); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-right: 1px solid var(--fx-vidrio-borde);
    box-shadow: 8px 0 30px rgba(15,23,42,.08);
    position: sticky; top: 61px; align-self: flex-start; max-height: calc(100vh - 61px); overflow-y: auto;
    scrollbar-width: thin;
}
html.fx .sidebar-nav a {
    position: relative; margin: 2px 10px; padding: 9px 12px; border-radius: 10px; border-left: none;
    transition: transform .2s var(--fx-ease), background .2s, box-shadow .2s, color .2s;
}
html.fx .sidebar-nav a i { transition: transform .25s var(--fx-ease), filter .25s; }
html.fx .sidebar-nav a::before {      /* barra luminosa lateral */
    content: ""; position: absolute; left: -10px; top: 20%; bottom: 20%; width: 4px; border-radius: 4px;
    background: linear-gradient(var(--fx-cian), var(--fx-violeta)); transform: scaleY(0); transition: transform .25s var(--fx-ease);
    box-shadow: 0 0 12px var(--fx-cian);
}
html.fx .sidebar-nav a:hover {
    background: linear-gradient(90deg, rgba(var(--azul-rgb,37,99,235),.14), rgba(var(--azul-rgb,37,99,235),.02));
    transform: translateX(5px); box-shadow: 0 6px 14px rgba(var(--azul-rgb,37,99,235),.12);
}
html.fx .sidebar-nav a:hover::before { transform: scaleY(1); }
html.fx .sidebar-nav a:hover i { transform: scale(1.25) rotate(-6deg); filter: drop-shadow(0 0 6px var(--fx-glow)); }
html.fx .sidebar-nav a.fx-activo { background: linear-gradient(90deg, rgba(var(--azul-rgb,37,99,235),.2), transparent); font-weight: 700; }
html.fx .sidebar-nav a.fx-activo::before { transform: scaleY(1); }
html.fx .sidebar-seccion { position: relative; overflow: hidden; transform-style: preserve-3d; }
html.fx .sidebar-seccion::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg);
    animation: fx-brillo 5.5s ease-in-out infinite;
}
html.fx.tema-oscuro .sidebar { box-shadow: 8px 0 30px rgba(0,0,0,.4); }
html.fx.tema-oscuro .sidebar-nav a:hover { background: linear-gradient(90deg, rgba(34,211,238,.16), transparent); box-shadow: 0 6px 16px rgba(0,0,0,.4); }
@media (max-width: 900px) {
    html.fx .sidebar { position: fixed; top: 0; max-height: 100vh; background: var(--fx-vidrio); }
}

/* ---------- Tarjetas 3D ---------- */
html.fx .hero, html.fx .stat-card, html.fx .grafica-caja, html.fx .card-accion,
html.fx .form-card, html.fx .detalle-ticket, html.fx .comentario, html.fx .etiqueta-qr {
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(var(--ty,0px));
    transition: transform .25s var(--fx-ease), box-shadow .3s ease, border-color .3s;
    will-change: transform;
}
html.fx .stat-card, html.fx .grafica-caja, html.fx .card-accion, html.fx .form-card, html.fx .detalle-ticket, html.fx .comentario {
    background: var(--fx-vidrio); backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%);
    border: 1px solid var(--fx-vidrio-borde); box-shadow: var(--fx-sombra);
}
html.fx .stat-card:hover, html.fx .grafica-caja:hover, html.fx .card-accion:hover {
    --ty: -5px; box-shadow: var(--fx-sombra-hover); transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(var(--ty));
}
html.fx .card-accion { border: 1px solid var(--fx-vidrio-borde); }
html.fx .card-accion:hover { border-color: rgba(var(--azul-rgb,37,99,235),.5); }
html.fx .card-icono, html.fx .card-accion > i { transition: transform .3s var(--fx-ease), filter .3s; }
html.fx .card-accion:hover .card-icono, html.fx .card-accion:hover > i { transform: translateZ(30px) scale(1.2) rotate(-8deg); filter: drop-shadow(0 6px 8px var(--fx-glow)); }
html.fx .stat-card i { box-shadow: 0 6px 14px rgba(0,0,0,.12), 0 1px 0 rgba(255,255,255,.7) inset; transition: transform .3s var(--fx-ease); }
html.fx .stat-card:hover i { transform: translateZ(26px) scale(1.12) rotate(-6deg); }
html.fx .stat-card strong { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
html.fx .stat-card { border-top-width: 3px; }
html.fx .stat-card::after, html.fx .grafica-caja::after, html.fx .card-accion::after {   /* reflejo que sigue al cursor */
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(260px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.55), transparent 60%);
}
html.fx .stat-card, html.fx .grafica-caja, html.fx .card-accion { position: relative; }
html.fx .stat-card:hover::after, html.fx .grafica-caja:hover::after, html.fx .card-accion:hover::after { opacity: .55; }
html.fx.tema-oscuro .stat-card::after, html.fx.tema-oscuro .grafica-caja::after, html.fx.tema-oscuro .card-accion::after {
    background: radial-gradient(260px circle at var(--mx,50%) var(--my,50%), rgba(34,211,238,.22), transparent 60%);
}
html.fx.tema-oscuro .stat-card, html.fx.tema-oscuro .grafica-caja, html.fx.tema-oscuro .card-accion,
html.fx.tema-oscuro .form-card, html.fx.tema-oscuro .detalle-ticket, html.fx.tema-oscuro .comentario {
    background: var(--fx-vidrio); border-color: var(--fx-vidrio-borde); color: #e5e7eb;
}
html.fx.tema-oscuro .stat-card span { color: #94a3b8; }

/* ---------- Hero ---------- */
html.fx .hero {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--azul-oscuro), var(--azul) 50%, color-mix(in srgb, var(--azul) 55%, #8b5cf6));
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 24px 50px rgba(var(--azul-rgb,37,99,235),.40), 0 0 40px rgba(139,92,246,.18);
}
html.fx .hero::before {
    content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); animation: fx-flota 9s ease-in-out infinite;
}
html.fx .hero::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -50%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent); transform: skewX(-18deg);
    animation: fx-brillo 7s ease-in-out infinite;
}
html.fx .hero > * { position: relative; z-index: 1; }
html.fx .hero h1 { text-shadow: 0 3px 16px rgba(0,0,0,.35); letter-spacing: -.01em; }
html.fx .hero-logo { box-shadow: 0 10px 24px rgba(0,0,0,.35); transform: translateZ(40px); animation: fx-flota 6s ease-in-out infinite; }

/* ---------- Títulos ---------- */
html.fx .container h1, html.fx .container-con-sidebar h1 {
    background: linear-gradient(90deg, var(--texto), var(--azul) 70%, var(--fx-violeta)); -webkit-background-clip: text; background-clip: text; color: transparent;
    letter-spacing: -.01em;
}
html.fx.tema-oscuro .container h1, html.fx.tema-oscuro .container-con-sidebar h1 { background: linear-gradient(90deg, #f1f5f9, var(--fx-cian) 70%, var(--fx-violeta)); -webkit-background-clip: text; background-clip: text; }
html.fx .hero h1 { background: none; color: #fff; -webkit-background-clip: initial; background-clip: initial; }
html.fx h2 { position: relative; padding-left: 14px; }
html.fx h2::before {
    content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; border-radius: 5px;
    background: linear-gradient(var(--fx-cian), var(--fx-violeta)); box-shadow: 0 0 12px var(--fx-glow);
}

/* ---------- Botones ---------- */
html.fx button:not(.topbar-tema):not(.topbar-hamburguesa), html.fx .boton, html.fx .boton-secundario {
    position: relative; overflow: hidden; isolation: isolate; border-radius: 10px; font-weight: 600; letter-spacing: .01em;
    background: linear-gradient(180deg, color-mix(in srgb, var(--azul) 88%, #fff), var(--azul) 55%, var(--azul-oscuro));
    box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 4px 0 var(--azul-oscuro), 0 10px 18px rgba(var(--azul-rgb,37,99,235),.35);
    transform: translateY(0); transition: transform .15s var(--fx-ease), box-shadow .15s, filter .2s;
}
html.fx button:not(.topbar-tema):not(.topbar-hamburguesa)::before, html.fx .boton::before, html.fx .boton-secundario::before {
    content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -70%; z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); transition: left .6s var(--fx-ease);
}
html.fx button:not(.topbar-tema):not(.topbar-hamburguesa):hover::before, html.fx .boton:hover::before, html.fx .boton-secundario:hover::before { left: 130%; }
html.fx button:not(.topbar-tema):not(.topbar-hamburguesa):hover, html.fx .boton:hover, html.fx .boton-secundario:hover {
    background: linear-gradient(180deg, color-mix(in srgb, var(--azul) 80%, #fff), var(--azul) 60%, var(--azul-oscuro));
    transform: translateY(-2px); filter: brightness(1.06);
    box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 6px 0 var(--azul-oscuro), 0 16px 26px rgba(var(--azul-rgb,37,99,235),.45);
}
html.fx button:not(.topbar-tema):not(.topbar-hamburguesa):active, html.fx .boton:active, html.fx .boton-secundario:active {
    transform: translateY(3px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 1px 0 var(--azul-oscuro), 0 3px 8px rgba(var(--azul-rgb,37,99,235),.3);
}
html.fx .boton-secundario {
    background: linear-gradient(180deg, #fbbf24, #d97706 60%, #b45309);
    box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 4px 0 #92400e, 0 10px 18px rgba(217,119,6,.35);
}
html.fx .boton-secundario:hover { background: linear-gradient(180deg, #fcd34d, #d97706 60%, #b45309); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 6px 0 #92400e, 0 16px 26px rgba(217,119,6,.45); }
/* botones de color inline (verde exportar, etc.) conservan su color pero ganan relieve */
html.fx a[style*="background"], html.fx a.boton[style*="background"] { border-radius: 10px; }
html.fx .fx-onda { position: absolute; border-radius: 50%; background: rgba(255,255,255,.55); transform: scale(0); animation: fx-onda .6s ease-out forwards; pointer-events: none; z-index: 0; }

/* ---------- Formularios ---------- */
html.fx input, html.fx select, html.fx textarea {
    background: rgba(255,255,255,.85); border: 1.5px solid rgba(100,116,139,.35); border-radius: 10px;
    box-shadow: 0 2px 6px rgba(15,23,42,.05) inset; transition: border-color .2s, box-shadow .25s, transform .2s, background .2s;
}
html.fx input:focus, html.fx select:focus, html.fx textarea:focus {
    border-color: var(--azul); background: #fff; transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(var(--azul-rgb,37,99,235),.18), 0 0 22px rgba(var(--azul-rgb,37,99,235),.28);
}
html.fx.tema-oscuro input, html.fx.tema-oscuro select, html.fx.tema-oscuro textarea { background: rgba(8,13,28,.75); border-color: rgba(148,163,184,.3); color: #e5e7eb; }
html.fx.tema-oscuro input:focus, html.fx.tema-oscuro select:focus, html.fx.tema-oscuro textarea:focus { background: rgba(8,13,28,.95); border-color: var(--fx-cian); box-shadow: 0 0 0 3px rgba(34,211,238,.18), 0 0 22px rgba(34,211,238,.3); }
html.fx input[type="checkbox"], html.fx input[type="radio"] { accent-color: var(--azul); }
html.fx details { border-radius: 12px; }
html.fx details > summary { cursor: pointer; transition: color .2s; }

/* ---------- Tablas ---------- */
html.fx .tabla {
    background: var(--fx-vidrio); backdrop-filter: blur(10px); border: 1px solid var(--fx-vidrio-borde); border-radius: 14px; box-shadow: var(--fx-sombra);
}
html.fx .tabla th {
    background: linear-gradient(180deg, rgba(var(--azul-rgb,37,99,235),.14), rgba(var(--azul-rgb,37,99,235),.06));
    text-transform: uppercase; font-size: .74em; letter-spacing: .07em; border-bottom: 1px solid rgba(var(--azul-rgb,37,99,235),.25);
}
html.fx .tabla td { border-bottom: 1px solid rgba(100,116,139,.15); }
html.fx .tabla tbody tr { transition: background .2s, transform .2s var(--fx-ease), box-shadow .2s; }
html.fx .tabla tbody tr:hover { background: linear-gradient(90deg, rgba(var(--azul-rgb,37,99,235),.12), rgba(var(--azul-rgb,37,99,235),.03)); box-shadow: 0 0 0 1px rgba(var(--azul-rgb,37,99,235),.15) inset; }
html.fx .miniatura-inventario { transition: transform .3s var(--fx-ease), box-shadow .3s; }
html.fx .tabla tr:hover .miniatura-inventario { transform: scale(1.35) rotate(-2deg); box-shadow: 0 10px 22px rgba(0,0,0,.35); position: relative; z-index: 3; }
html.fx.tema-oscuro .tabla th { background: rgba(34,211,238,.10); color: #cbd5e1; border-color: rgba(34,211,238,.25); }
html.fx.tema-oscuro .tabla tbody tr:hover { background: linear-gradient(90deg, rgba(34,211,238,.14), transparent); }
html.fx .fila-pendiente { background: rgba(250,204,21,.18); }
html.fx .fila-demorada { background: rgba(239,68,68,.14); }

/* ---------- Avisos, insignias, enlaces ---------- */
html.fx .alert { border: 1px solid rgba(var(--azul-rgb,37,99,235),.25); border-left: 5px solid var(--azul); border-radius: 12px; backdrop-filter: blur(8px); box-shadow: 0 8px 20px rgba(15,23,42,.08); animation: fx-entra .5s var(--fx-ease) both; }
html.fx.tema-oscuro .alert { background: rgba(30,64,175,.30); color: #e5e7eb; }
html.fx.tema-oscuro .alert-error { background: rgba(153,27,27,.38); }
html.fx.tema-oscuro .alert a { color: #93c5fd; }
html.fx .alert-error { border-color: rgba(220,38,38,.3); border-left-color: var(--rojo); }
html.fx .badge, html.fx [class*="badge-"]:not(.stat-card):not(.badges-row) { box-shadow: 0 2px 8px rgba(0,0,0,.2), 0 1px 0 rgba(255,255,255,.35) inset; }
html.fx .badge-alta, html.fx .badge-reabierto { animation: fx-pulso 2.2s ease-in-out infinite; }
html.fx .container a:not(.boton):not(.boton-secundario):not(.card-accion) { transition: color .2s, text-shadow .2s; }
html.fx .container a:not(.boton):not(.boton-secundario):not(.card-accion):hover { text-shadow: 0 0 12px var(--fx-glow); }
html.fx .campanita-panel { backdrop-filter: blur(14px); background: var(--fx-vidrio); border: 1px solid var(--fx-vidrio-borde); box-shadow: 0 24px 50px rgba(0,0,0,.35), 0 0 30px var(--fx-glow); }
html.fx .campanita-panel.campanita-panel-abierto { animation: fx-entra .25s var(--fx-ease) both; }
html.fx.tema-oscuro .campanita-panel { background: rgba(15,23,42,.92); }
html.fx .historial li { border-radius: 10px; transition: transform .2s var(--fx-ease), box-shadow .2s; }
html.fx .historial li:hover { transform: translateX(6px); box-shadow: 0 8px 20px rgba(var(--azul-rgb,37,99,235),.2); }
html.fx .miniatura { transition: transform .3s var(--fx-ease), box-shadow .3s; }
html.fx .miniatura:hover { transform: scale(1.06) rotate(-1deg); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
html.fx .kanban-columna, html.fx .kanban-tarjeta, html.fx .ticket-card { border-radius: 12px; }
html.fx .kanban-tarjeta { transition: transform .2s var(--fx-ease), box-shadow .2s; }
html.fx .kanban-tarjeta:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 14px 28px rgba(0,0,0,.2); }

/* ---------- Scroll ---------- */
html.fx ::-webkit-scrollbar { width: 11px; height: 11px; }
html.fx ::-webkit-scrollbar-track { background: transparent; }
html.fx ::-webkit-scrollbar-thumb { background: linear-gradient(var(--azul), var(--fx-violeta)); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
html.fx { scrollbar-color: var(--azul) transparent; }

/* ---------- Entrada escalonada ---------- */
html.fx .fx-entra { animation: fx-entra .6s var(--fx-ease) both; animation-delay: calc(var(--i, 0) * 55ms); }

/* ---------- Animaciones ---------- */
@keyframes fx-entra { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fx-brillo { 0%, 55% { left: -60%; } 100% { left: 140%; } }
@keyframes fx-barrido { 0% { background-position: 0 0; } 100% { background-position: 220% 0; } }
@keyframes fx-flota { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes fx-pulso { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,.55); } 70% { box-shadow: 0 0 0 9px rgba(220,38,38,0); } 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); } }
@keyframes fx-onda { to { transform: scale(4); opacity: 0; } }

/* ---------- Accesibilidad / rendimiento ---------- */
html.alto-contraste.fx .stat-card, html.alto-contraste.fx .tabla, html.alto-contraste.fx .card-accion { backdrop-filter: none; background: #fff; }
html.alto-contraste.fx body::before { display: none; }
html.fx.fx-ligero body::before, html.fx.fx-ligero .hero::before { display: none; }
html.fx.fx-ligero .stat-card, html.fx.fx-ligero .grafica-caja, html.fx.fx-ligero .card-accion, html.fx.fx-ligero .form-card,
html.fx.fx-ligero .tabla, html.fx.fx-ligero .sidebar, html.fx.fx-ligero .detalle-ticket { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
    html.fx *, html.fx *::before, html.fx *::after { animation: none !important; transition-duration: .01ms !important; }
}
