:root {
    --bg-dark: #04040a;
    --gold: #ffd166;
    --gold-bright: #ffe29a;
    --gold-dark: #b8860b;
    --gold-glow: rgba(255, 209, 102, 0.3);
    --violet: #a78bfa;
    --violet-glow: rgba(139, 92, 246, 0.35);
    --cyan: #22d3ee;
    --cyan-glow: rgba(34, 211, 238, 0.3);
    --orange: #fb923c;
    --orange-glow: rgba(251, 146, 60, 0.3);
    --red: #ff5f56;
    --red-glow: rgba(255, 95, 86, 0.3);
    --green: #34d399;
    --green-glow: rgba(52, 211, 153, 0.3);
    --text-main: #f8fafc;
    --text-muted: #a3b0c4;
    --border-color: rgba(255, 255, 255, 0.08);
    --grad-gold: linear-gradient(135deg, #ffe29a 0%, #ffd166 45%, #f0a500 100%);
    --grad-violet: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    --grad-red: linear-gradient(135deg, #ff8a80 0%, #ff5f56 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

::selection { background: rgba(255, 209, 102, 0.25); color: #fff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #f0a500, #b8860b); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #ffd166; }

body {
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 50px;
    user-select: none;
    -webkit-user-select: none;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ============ FONDO AURORA ============ */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; animation: auroraMove 20s ease-in-out infinite alternate; }
.aurora .a1 { width: 46vw; height: 46vw; left: -12%; top: -12%; background: radial-gradient(circle, rgba(139, 92, 246, 0.55), transparent 70%); }
.aurora .a2 { width: 40vw; height: 40vw; right: -12%; top: 18%; background: radial-gradient(circle, rgba(255, 209, 102, 0.4), transparent 70%); animation-delay: -6s; }
.aurora .a3 { width: 38vw; height: 38vw; left: 22%; bottom: -22%; background: radial-gradient(circle, rgba(34, 211, 238, 0.3), transparent 70%); animation-delay: -11s; }
.aurora .a4 { width: 30vw; height: 30vw; left: 58%; top: -18%; background: radial-gradient(circle, rgba(236, 72, 153, 0.25), transparent 70%); animation-delay: -4s; }

@keyframes auroraMove {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(6vw, 4vh) scale(1.15); }
    100% { transform: translate(-5vw, -3vh) scale(0.95); }
}

/* ============ TOPBAR ============ */
.topbar {
    background: rgba(6, 6, 14, 0.6);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    padding: 14px 4%;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 100; flex-wrap: wrap;
}
.topbar::after {
    content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.6), rgba(139, 92, 246, 0.6), transparent);
}
.logo {
    font-family: 'Orbitron', sans-serif; font-size: 19px; font-weight: 800;
    display: flex; align-items: center; gap: 11px; letter-spacing: 1px;
}
.logo .logo-icon {
    width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
    background: var(--grad-gold); color: #140d00; font-size: 17px;
    box-shadow: 0 0 18px var(--gold-glow); animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 10px var(--gold-glow); }
    50%      { box-shadow: 0 0 22px var(--gold-glow); }
}
.logo .logo-txt {
    background: linear-gradient(120deg, #ffffff 0%, #ffe29a 55%, #f0a500 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.logo .logo-txt span { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a {
    padding: 9px 16px; border-radius: 9px; font-family: 'Orbitron', sans-serif; font-size: 11px;
    font-weight: 800; letter-spacing: 1px; text-transform: uppercase; transition: 0.3s;
    color: var(--text-muted); border: 1px solid transparent;
    display: flex; align-items: center; gap: 7px;
}
.nav a:hover { color: var(--gold); background: rgba(255, 209, 102, 0.08); border-color: rgba(255, 209, 102, 0.25); }
.nav a.active {
    color: #140d00; background: var(--grad-gold);
    box-shadow: 0 4px 18px var(--gold-glow);
}
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.user-chip {
    font-family: 'Orbitron', sans-serif; font-size: 11px; color: var(--gold);
    display: flex; align-items: center; gap: 8px; padding: 7px 14px;
    background: rgba(255, 209, 102, 0.08); border: 1px solid rgba(255, 209, 102, 0.25);
    border-radius: 9px;
}
.logout-btn {
    padding: 9px 16px; border-radius: 9px; font-weight: 800; color: var(--red);
    border: 1px solid rgba(255, 95, 86, 0.35); background: rgba(255, 95, 86, 0.08);
    font-family: 'Orbitron', sans-serif; font-size: 11px; transition: 0.3s;
    display: flex; align-items: center; gap: 8px; letter-spacing: 1px;
}
.logout-btn:hover { background: var(--grad-red); color: #fff; box-shadow: 0 0 18px var(--red-glow); }

/* ============ LAYOUT ============ */
.container { max-width: 1350px; margin: 34px auto; padding: 0 20px; position: relative; z-index: 5; }

.page-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-title { font-family: 'Orbitron', sans-serif; font-size: 22px; font-weight: 900; letter-spacing: 1px; }
.page-title .grad {
    background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 16px var(--gold-glow));
}
.page-sub { color: var(--text-muted); font-size: 13px; margin-top: 5px; }

/* ============ CARDS ============ */
.card {
    background: linear-gradient(160deg, rgba(26, 26, 44, 0.6) 0%, rgba(10, 10, 20, 0.55) 100%);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color); border-radius: 18px; padding: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative; overflow: hidden;
    animation: fadeUp 0.6s ease-out backwards;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(139, 92, 246, 0.1); }
.card::before {
    content: ''; position: absolute; top: 0; left: -60%; width: 55%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.9), transparent);
    animation: borderShine 6s linear infinite;
}
@keyframes borderShine { 0% { left: -60%; } 100% { left: 135%; } }
.card::after {
    content: ''; position: absolute; inset: 0; border-radius: 18px; padding: 1px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), transparent 32%, transparent 70%, rgba(139, 92, 246, 0.18));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.card-header {
    font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 800; color: #fff;
    margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--border-color); padding-bottom: 14px; letter-spacing: 0.5px;
}
.card-header i {
    width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.16), rgba(139, 92, 246, 0.16));
    border: 1px solid rgba(255, 209, 102, 0.28); border-radius: 9px;
    color: var(--gold); font-size: 13px; box-shadow: 0 0 12px var(--gold-glow);
}

/* ============ STATS ============ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat-card {
    padding: 22px; border-radius: 16px; position: relative; overflow: hidden;
    background: linear-gradient(160deg, rgba(26, 26, 44, 0.6), rgba(10, 10, 20, 0.5));
    border: 1px solid var(--border-color);
    animation: fadeUp 0.6s ease-out backwards;
    transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 0 34px var(--accent-glow); }
.stat-card .stat-icon {
    position: absolute; right: -12px; top: -12px; font-size: 74px; opacity: 0.08; color: var(--accent);
}
.stat-card .stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); font-weight: 700; }
.stat-card .stat-value { font-family: 'Orbitron', sans-serif; font-size: 28px; font-weight: 900; margin-top: 8px; color: var(--accent); text-shadow: 0 0 18px var(--accent-glow); }
.stat-card.gold   { --accent: var(--gold);   --accent-glow: var(--gold-glow); }
.stat-card.violet { --accent: var(--violet); --accent-glow: var(--violet-glow); }
.stat-card.cyan   { --accent: var(--cyan);   --accent-glow: var(--cyan-glow); }
.stat-card.green  { --accent: var(--green);  --accent-glow: var(--green-glow); }
.stat-card.orange { --accent: var(--orange); --accent-glow: var(--orange-glow); }
.stat-card.red    { --accent: var(--red);    --accent-glow: var(--red-glow); }

/* ============ BADGES ============ */
.badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 13px; border-radius: 30px; font-size: 10px; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge.blue    { background: rgba(96, 165, 250, 0.12); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.35); }
.badge.violet  { background: rgba(167, 139, 250, 0.12); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.35); }
.badge.gold    { background: rgba(255, 209, 102, 0.12); color: var(--gold); border: 1px solid rgba(255, 209, 102, 0.35); box-shadow: 0 0 16px var(--gold-glow); }
.badge.orange  { background: rgba(251, 146, 60, 0.12); color: var(--orange); border: 1px solid rgba(251, 146, 60, 0.35); }
.badge.cyan    { background: rgba(34, 211, 238, 0.12); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.35); }
.badge.green   { background: rgba(52, 211, 153, 0.12); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.35); box-shadow: 0 0 16px var(--green-glow); }
.badge.red     { background: rgba(255, 95, 86, 0.12); color: var(--red); border: 1px solid rgba(255, 95, 86, 0.35); box-shadow: 0 0 16px var(--red-glow); }
.badge.gray    { background: rgba(163, 176, 196, 0.1); color: var(--text-muted); border: 1px solid rgba(163, 176, 196, 0.3); }

/* ============ PROGRESS ============ */
.progress-track { width: 100%; height: 8px; background: rgba(255, 255, 255, 0.06); border-radius: 20px; overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; border-radius: 20px; transition: width 1s cubic-bezier(0.22, 1, 0.36, 1); }
.pf-blue    { background: linear-gradient(90deg, #60a5fa, #3b82f6); box-shadow: 0 0 12px rgba(59, 130, 246, 0.5); }
.pf-violet  { background: linear-gradient(90deg, #a78bfa, #7c3aed); box-shadow: 0 0 12px rgba(124, 58, 237, 0.5); }
.pf-gold    { background: linear-gradient(90deg, #ffe29a, #f0a500); box-shadow: 0 0 12px var(--gold-glow); }
.pf-orange  { background: linear-gradient(90deg, #fdba74, #ea580c); box-shadow: 0 0 12px var(--orange-glow); }
.pf-cyan    { background: linear-gradient(90deg, #67e8f9, #06b6d4); box-shadow: 0 0 12px var(--cyan-glow); }
.pf-green   { background: linear-gradient(90deg, #6ee7b7, #10b981); box-shadow: 0 0 12px var(--green-glow); }
.pf-red     { background: linear-gradient(90deg, #ff8a80, #ef4444); box-shadow: 0 0 12px var(--red-glow); }

/* ============ TABLES ============ */
.table-wrapper {
    overflow-x: auto; border-radius: 12px;
    border: 1px solid var(--border-color); background: rgba(5, 5, 12, 0.5);
}
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 780px; }
.table th {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(255, 209, 102, 0.12));
    color: var(--gold); padding: 14px; text-align: left; font-family: 'Orbitron', sans-serif; font-size: 10.5px;
    text-transform: uppercase; border-bottom: 1px solid var(--border-color);
    letter-spacing: 1.3px; white-space: nowrap;
}
.table td { padding: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.03); color: #cbd5e1; }
.table tr { transition: 0.2s; }
.table tr:hover td { background: linear-gradient(90deg, rgba(255, 209, 102, 0.06), rgba(139, 92, 246, 0.06)); }
.table tr:last-child td { border-bottom: none; }
.table .mono { font-family: 'Orbitron', sans-serif; color: var(--gold); font-size: 12px; font-weight: 700; }
.table .muted { color: var(--text-muted); }

.btn-sm {
    padding: 7px 14px; border-radius: 8px; font-family: 'Orbitron', sans-serif; font-size: 10.5px;
    font-weight: 800; letter-spacing: 1px; text-transform: uppercase; transition: 0.3s;
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.14), rgba(255, 209, 102, 0.06));
    border: 1px solid rgba(255, 209, 102, 0.35); color: var(--gold);
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-sm:hover { background: var(--grad-gold); color: #140d00; box-shadow: 0 0 16px var(--gold-glow); }

/* ============ FORMS ============ */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; }
.form-input {
    width: 100%; padding: 13px 16px; background: rgba(8, 8, 16, 0.55); border: 1px solid var(--border-color);
    color: white; font-family: 'Inter', sans-serif; font-size: 14px; border-radius: 10px; outline: none; transition: 0.3s;
}
.form-input:focus {
    border-color: transparent;
    background: rgba(10, 10, 22, 0.7);
    box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.6), 0 0 22px var(--gold-glow);
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.28); }
select.form-input option { background: #12121f; color: #fff; }
textarea.form-input { resize: vertical; min-height: 90px; }
.form-input.money { font-family: 'Orbitron', sans-serif; }

.section-title {
    font-family: 'Orbitron', sans-serif; font-size: 12px; color: var(--gold); font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase; margin: 6px 0 14px;
    display: flex; align-items: center; gap: 10px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 209, 102, 0.4), transparent); }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 8px 13px; border-radius: 9px; font-size: 12px; cursor: pointer; transition: 0.25s;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color); color: var(--text-muted);
}
.chip input { display: none; }
.chip:has(input:checked) {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(139, 92, 246, 0.14));
    border-color: rgba(255, 209, 102, 0.5); color: var(--gold);
    box-shadow: 0 0 14px var(--gold-glow);
}

/* ============ BUTTONS ============ */
.btn {
    position: relative; overflow: hidden;
    padding: 14px 26px; border: none; font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 12.5px;
    cursor: pointer; text-transform: uppercase; transition: 0.3s; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; letter-spacing: 1px;
}
.btn-gold { background: var(--grad-gold); color: #140d00; box-shadow: 0 6px 20px var(--gold-glow); }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 10px 32px rgba(255, 209, 102, 0.45); }
.btn-gold::after {
    content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
}
.btn-gold:hover::after { left: 135%; }
.btn-outline {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-muted);
}
.btn-outline:hover { border-color: rgba(255, 209, 102, 0.5); color: var(--gold); box-shadow: 0 0 16px var(--gold-glow); }
.btn-red {
    background: linear-gradient(135deg, rgba(255, 95, 86, 0.16), rgba(255, 95, 86, 0.06));
    border: 1px solid rgba(255, 95, 86, 0.35); color: var(--red);
}
.btn-red:hover { background: var(--grad-red); color: #fff; box-shadow: 0 8px 26px var(--red-glow); }
.btn-cyan { background: linear-gradient(135deg, #67e8f9, #06b6d4); color: #04222b; box-shadow: 0 6px 20px var(--cyan-glow); }
.btn-cyan:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 10px 30px var(--cyan-glow); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ============ INFO GRID ============ */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.info-item {
    background: rgba(8, 8, 16, 0.5); border: 1px solid var(--border-color); border-radius: 11px; padding: 13px 15px;
}
.info-item .k { font-size: 10px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--text-muted); font-weight: 700; margin-bottom: 6px; }
.info-item .v { font-size: 13.5px; color: #fff; font-weight: 600; word-break: break-word; }
.info-item .v.gold { color: var(--gold); font-family: 'Orbitron', sans-serif; }
.info-item .v.violet { color: var(--violet); }

.alert { padding: 13px; margin-bottom: 18px; font-weight: 600; font-size: 13px; border-radius: 10px; display: flex; align-items: center; gap: 9px; }
.alert-success { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.35); box-shadow: 0 0 18px var(--green-glow); }
.alert-error { background: rgba(255, 95, 86, 0.12); color: #ff8a80; border: 1px solid rgba(255, 95, 86, 0.35); box-shadow: 0 0 18px var(--red-glow); }

/* ============ TIMELINE ============ */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, rgba(255, 209, 102, 0.4), rgba(139, 92, 246, 0.3)); }
.tl-item { position: relative; margin-bottom: 18px; }
.tl-item::before {
    content: ''; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--gold); box-shadow: 0 0 12px var(--gold-glow); border: 2px solid #04040a;
}
.tl-item .tl-title { font-size: 13.5px; font-weight: 700; color: #fff; }
.tl-item .tl-title .badge { margin-left: 8px; }
.tl-item .tl-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.tl-item .tl-detail { font-size: 12.5px; color: #cbd5e1; margin-top: 6px; line-height: 1.5; }

/* ============ EMPTY ============ */
.empty {
    text-align: center; padding: 50px 20px; color: var(--text-muted);
}
.empty i { font-size: 46px; color: rgba(255, 209, 102, 0.35); margin-bottom: 14px; }

/* ============ RECIBO / PRINT ============ */
.print-area { display: none; }

@media print {
    body { background: #fff !important; color: #000 !important; user-select: text; -webkit-user-select: text; }
    .aurora, .topbar, .container > *:not(.print-wrap), .no-print { display: none !important; }
    .print-wrap { display: block !important; }
    .print-area { display: block !important; padding: 20px; color: #000; font-family: 'Inter', sans-serif; }
    .print-area .pr-shop { font-family: 'Orbitron', sans-serif; font-size: 22px; color: #b8860b; font-weight: 900; letter-spacing: 2px; }
    .print-area .pr-muted { color: #555; font-size: 11px; }
    .print-area h3 { margin: 18px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: #333; border-bottom: 1px solid #bbb; padding-bottom: 5px; }
    .print-area .pr-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12.5px; }
    .print-area .pr-row b { font-weight: 700; }
    .print-area .pr-total { border-top: 2px solid #000; margin-top: 12px; padding-top: 10px; font-size: 15px; font-weight: 800; display: flex; justify-content: space-between; }
}

/* ============================================================
   ESTILOS NUEVOS v2026 — LOGIN FLOTANTE, HERO, PANEL
   ============================================================ */

/* ---------- Partículas (canvas) ---------- */
#particles { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

/* ---------- Grid tecnológico ---------- */
.grid-overlay {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 78%);
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 78%);
}

/* ---------- Línea de escaneo ---------- */
.scanline {
    position: fixed; left: 0; right: 0; height: 130px; top: -130px; z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(255, 209, 102, 0.05), transparent);
    animation: scanMove 9s linear infinite;
}
@keyframes scanMove {
    0%   { top: -130px; }
    100% { top: 110vh; }
}

/* ---------- HUD esquinas ---------- */
.login-scan-hud { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.login-scan-hud span { position: absolute; width: 34px; height: 34px; border: 2px solid rgba(255, 209, 102, 0.5); filter: drop-shadow(0 0 8px rgba(255,209,102,0.4)); }
.hud-tl { top: 20px; left: 20px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.hud-tr { top: 20px; right: 20px; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.hud-bl { bottom: 20px; left: 20px; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.hud-br { bottom: 20px; right: 20px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }

/* ---------- Login body ---------- */
.login-body {
    background: radial-gradient(ellipse at 50% 0%, #120c24 0%, #04040a 60%);
    min-height: 100vh; overflow-x: hidden; padding-bottom: 0;
    display: flex; flex-direction: column;
}
.login-aurora span { opacity: 0.5; }

/* ---------- Nav del login ---------- */
.login-nav {
    position: relative; z-index: 10;
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 5%; flex-wrap: wrap; gap: 14px;
}
.login-nav-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.login-pill {
    font-family: 'Orbitron', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1px;
    color: var(--cyan); padding: 9px 15px; border-radius: 30px;
    background: rgba(34, 211, 238, 0.07); border: 1px solid rgba(34, 211, 238, 0.3);
    display: inline-flex; align-items: center; gap: 8px;
    animation: pillPulse 3s ease-in-out infinite;
}
@keyframes pillPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(34, 211, 238, 0.15); }
    50%      { box-shadow: 0 0 22px rgba(34, 211, 238, 0.4); }
}
.login-cta {
    font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 1px;
    padding: 11px 20px; border: none; border-radius: 10px; cursor: pointer;
    background: var(--grad-gold); color: #140d00;
    box-shadow: 0 6px 20px var(--gold-glow); transition: 0.3s;
    display: inline-flex; align-items: center; gap: 8px;
}
.login-cta:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 10px 30px rgba(255,209,102,0.45); }

/* ---------- Hero landing ---------- */
.login-hero {
    position: relative; z-index: 5; flex: 1;
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px;
    align-items: center; padding: 30px 6% 10px; max-width: 1500px; margin: 0 auto; width: 100%;
}
.hero-chip {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px;
    color: var(--gold); padding: 10px 18px; border-radius: 30px;
    background: rgba(255, 209, 102, 0.07); border: 1px solid rgba(255, 209, 102, 0.3);
    animation: fadeUp 0.8s ease-out backwards;
}
.hero-chip i { color: var(--gold); animation: boltSpin 2.4s ease-in-out infinite; }
@keyframes boltSpin { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(15deg) scale(1.15); } }

.hero-title {
    font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(30px, 5vw, 54px);
    line-height: 1.1; margin: 22px 0 16px; letter-spacing: 1px; color: #fff;
    animation: fadeUp 0.8s ease-out 0.1s backwards;
}
.grad-text {
    background: var(--grad-gold); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 22px var(--gold-glow));
}
.hero-sub {
    color: var(--text-muted); font-size: 15px; line-height: 1.7; max-width: 520px;
    animation: fadeUp 0.8s ease-out 0.2s backwards;
}
.hero-features {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px;
    animation: fadeUp 0.8s ease-out 0.3s backwards;
}
.hf {
    display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
    color: #e2e8f0; padding: 10px 15px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color);
    transition: 0.3s;
}
.hf:hover { border-color: rgba(255, 209, 102, 0.4); color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.hf i { color: var(--gold); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; animation: fadeUp 0.8s ease-out 0.4s backwards; }
.btn-orbiting { position: relative; }
.btn-orbiting::before {
    content: ''; position: absolute; inset: -2px; border-radius: 12px; z-index: -1;
    background: conic-gradient(from var(--ang, 0deg), transparent, rgba(255,209,102,0.6), transparent 60%);
    animation: orbitSpin 3.5s linear infinite;
}
@keyframes orbitSpin { to { --ang: 360deg; } }

/* ---------- Visual hero ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.phone-3d { position: relative; z-index: 3; transform: perspective(1200px) rotateY(-14deg) rotateX(4deg); animation: phoneFloat 5s ease-in-out infinite; }
@keyframes phoneFloat {
    0%, 100% { transform: perspective(1200px) rotateY(-14deg) rotateX(4deg) translateY(0); }
    50%      { transform: perspective(1200px) rotateY(-14deg) rotateX(4deg) translateY(-16px); }
}
.phone-screen {
    width: 280px; height: 570px; border-radius: 42px; padding: 30px 20px 22px;
    background: linear-gradient(160deg, rgba(24, 24, 48, 0.95), rgba(8, 8, 18, 0.97));
    border: 1.5px solid rgba(255, 209, 102, 0.45);
    box-shadow: 0 40px 90px rgba(0,0,0,0.7), 0 0 60px rgba(139, 92, 246, 0.18), inset 0 0 40px rgba(255,255,255,0.02);
    position: relative; overflow: hidden;
}
.phone-screen::after {
    content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: phoneShine 5s ease-in-out infinite;
}
@keyframes phoneShine { 0%,55% { left: -80%; } 85%,100% { left: 140%; } }
.phone-status { display: flex; justify-content: space-between; font-family: 'Orbitron', sans-serif; font-size: 9px; color: #94a3b8; letter-spacing: 1px; }
.phone-icons { display: flex; gap: 6px; justify-content: flex-end; font-size: 9px; color: var(--gold); margin-top: 5px; }
.phone-app {
    margin-top: 24px; text-align: center;
    background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 18px; padding: 22px 18px;
}
.phone-logo { font-size: 40px; color: var(--gold); filter: drop-shadow(0 0 16px var(--gold-glow)); animation: logoPulse 3s ease-in-out infinite; }
.phone-app-title { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 16px; margin: 10px 0 16px; }
.phone-app-title span { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.phone-line { height: 9px; border-radius: 6px; background: rgba(255,255,255,0.07); margin: 8px auto; }
.w90 { width: 90%; } .w75 { width: 75%; } .w60 { width: 60%; } .w50 { width: 50%; } .w40 { width: 40%; }
.phone-bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,0.06); margin: 14px 0 6px; overflow: hidden; }
.phone-bar span { display: block; height: 100%; background: var(--grad-gold); border-radius: 6px; box-shadow: 0 0 12px var(--gold-glow); }
.phone-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.phone-row i { color: var(--cyan); font-size: 12px; }
.phone-ring {
    position: absolute; border: 2px solid rgba(139, 92, 246, 0.35); border-radius: 50%;
    animation: ringPulse 4s ease-out infinite;
}
.phone-ring.r1 { inset: -30px; }
.phone-ring.r2 { inset: -55px; animation-delay: 1.2s; }
@keyframes ringPulse {
    0%   { transform: scale(0.96); opacity: 0.9; }
    100% { transform: scale(1.06); opacity: 0.25; }
}

.float-chip {
    position: absolute; z-index: 4; font-size: 12px; font-weight: 700; color: #fff;
    padding: 11px 16px; border-radius: 12px; display: flex; align-items: center; gap: 9px;
    background: rgba(12, 12, 26, 0.9); border: 1px solid rgba(255, 209, 102, 0.35);
    backdrop-filter: blur(8px); box-shadow: 0 14px 34px rgba(0,0,0,0.5);
    animation: chipFloat 4.5s ease-in-out infinite;
}
.float-chip i { color: var(--gold); }
@keyframes chipFloat {
    0%,100% { transform: translateY(0) rotate(-2deg); }
    50%     { transform: translateY(-12px) rotate(2deg); }
}
.fc1 { top: 18%; left: -6%; }
.fc2 { bottom: 24%; right: -4%; animation-delay: 1s; }
.fc3 { bottom: 8%; left: 10%; animation-delay: 2s; }
.fc2 i { color: var(--green); }
.fc3 i { color: var(--cyan); }

.orbit-orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit-node {
    position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
    box-shadow: 0 0 14px var(--gold-glow); animation: nodeFloat 6s ease-in-out infinite;
}
.orbit-node.n1 { top: 12%; right: 14%; }
.orbit-node.n2 { bottom: 16%; left: 4%; animation-delay: 1.4s; background: var(--violet); box-shadow: 0 0 14px var(--violet-glow); }
.orbit-node.n3 { top: 55%; right: -2%; animation-delay: 2.4s; background: var(--cyan); box-shadow: 0 0 14px var(--cyan-glow); }
@keyframes nodeFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(8px,-12px) scale(1.25); }
}

/* ---------- Marquee ---------- */
.hero-marquee {
    position: relative; z-index: 4; overflow: hidden; margin-top: 14px;
    border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
    background: rgba(6, 6, 14, 0.5); padding: 13px 0;
}
.marquee-track {
    display: flex; align-items: center; gap: 34px; white-space: nowrap;
    font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 4px;
    color: rgba(255, 209, 102, 0.5); animation: marqueeScroll 22s linear infinite;
}
.marquee-track i { font-size: 6px; color: var(--violet); }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- Footer login ---------- */
.login-footer {
    position: relative; z-index: 5; text-align: center; padding: 20px 16px;
    font-size: 11.5px; color: var(--text-muted); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.login-footer-sep { opacity: 0.4; }
.login-footer i { color: var(--green); }

/* ---------- VENTANA FLOTANTE LOGIN ---------- */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(2, 2, 8, 0.72);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal-backdrop.show { opacity: 1; visibility: visible; }

.auth-card {
    position: relative; width: 100%; max-width: 420px;
    background: linear-gradient(165deg, rgba(22, 22, 44, 0.96), rgba(8, 8, 18, 0.98));
    border: 1px solid rgba(255, 209, 102, 0.25);
    border-radius: 24px; padding: 38px 34px 30px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 60px rgba(139, 92, 246, 0.12);
    overflow: hidden;
    transform: translateY(40px) scale(0.94);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-backdrop.show .auth-card { transform: translateY(0) scale(1); }

.auth-card::before {
    content: ''; position: absolute; top: -2px; left: -50%; width: 200%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.9), rgba(139, 92, 246, 0.9), transparent);
    animation: borderShine 4s linear infinite;
}
.auth-glow {
    position: absolute; width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.12), transparent 70%);
    top: -110px; right: -90px; pointer-events: none;
}
.auth-glow::after {
    content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.14), transparent 70%);
    bottom: -280px; left: -180px;
}

.auth-close {
    position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color);
    color: var(--text-muted); cursor: pointer; font-size: 13px; transition: 0.3s; z-index: 5;
}
.auth-close:hover { background: var(--grad-red); color: #fff; border-color: transparent; box-shadow: 0 0 16px var(--red-glow); }

.auth-head { text-align: center; margin-bottom: 26px; }
.auth-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.auth-logo-icon {
    width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: var(--grad-gold); color: #140d00; font-size: 18px; box-shadow: 0 0 20px var(--gold-glow);
    animation: logoPulse 3s ease-in-out infinite;
}
.auth-logo-txt { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 18px; }
.auth-logo-txt span { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-title {
    font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 20px; letter-spacing: 3px; color: #fff;
    background: linear-gradient(120deg, #fff 0%, var(--gold) 60%, #f0a500 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}
.auth-sub { color: var(--text-muted); font-size: 13px; }
.auth-sub strong { color: var(--gold); }
.auth-shield {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
    font-size: 10.5px; font-weight: 700; letter-spacing: 1px; color: var(--cyan);
    padding: 7px 14px; border-radius: 30px;
    background: rgba(34, 211, 238, 0.07); border: 1px solid rgba(34, 211, 238, 0.28);
}
.auth-shield i { animation: shieldPulse 2s ease-in-out infinite; }
@keyframes shieldPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }

.auth-error {
    display: flex; align-items: center; gap: 9px;
    background: rgba(255, 95, 86, 0.12); color: #ff8a80;
    border: 1px solid rgba(255, 95, 86, 0.35); border-radius: 10px;
    padding: 12px 14px; font-size: 12.5px; font-weight: 600; margin-bottom: 18px;
    animation: shake 0.5s ease;
    box-shadow: 0 0 18px var(--red-glow);
}
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20% { transform: translateX(-8px); } 40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); } 80% { transform: translateX(5px); }
}

.auth-field { margin-bottom: 18px; }
.auth-label {
    display: block; font-family: 'Orbitron', sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 1.6px; color: var(--text-muted); margin-bottom: 8px;
}
.auth-input-wrap { position: relative; }
.auth-ico {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: rgba(255, 209, 102, 0.6); font-size: 14px; pointer-events: none;
    transition: 0.3s;
}
.auth-input {
    width: 100%; padding: 15px 44px 15px 44px;
    background: rgba(8, 8, 16, 0.65); border: 1px solid var(--border-color);
    border-radius: 12px; color: #fff; font-size: 14px; font-family: 'Inter', sans-serif;
    outline: none; transition: 0.3s;
}
.auth-input:focus {
    border-color: transparent;
    background: rgba(10, 10, 22, 0.8);
    box-shadow: 0 0 0 1.5px rgba(255, 209, 102, 0.65), 0 0 24px var(--gold-glow);
}
.auth-input-wrap:focus-within .auth-ico { color: var(--gold); }
.auth-input::placeholder { color: rgba(255, 255, 255, 0.25); }
.auth-eye {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 6px; transition: 0.3s;
}
.auth-eye:hover { color: var(--gold); }

.auth-submit {
    width: 100%; margin-top: 8px; position: relative; overflow: hidden;
    padding: 16px; font-size: 13px; letter-spacing: 2px;
}
.auth-submit::after {
    content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg); animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine { 0%,60% { left: -80%; } 90%,100% { left: 150%; } }

.auth-foot {
    text-align: center; margin-top: 20px; font-size: 11px; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; gap: 7px;
}
.auth-foot i { color: var(--green); }

/* ============ PANEL HERO (index) ============ */
.panel-hero {
    position: relative; overflow: hidden; border-radius: 22px; margin-bottom: 26px;
    padding: 34px 36px;
    background: linear-gradient(150deg, rgba(30, 24, 60, 0.7), rgba(8, 8, 18, 0.7));
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
    animation: fadeUp 0.6s ease-out backwards;
}
.panel-hero::before {
    content: ''; position: absolute; inset: 0; border-radius: 22px; padding: 1px;
    background: linear-gradient(160deg, rgba(255, 209, 102, 0.4), transparent 40%, transparent 65%, rgba(139, 92, 246, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}
.hero-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-glow.gl1 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(255, 209, 102, 0.14), transparent 70%); top: -140px; left: -80px; }
.hero-glow.gl2 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(139, 92, 246, 0.16), transparent 70%); bottom: -130px; right: 60px; }
.hero-left { position: relative; z-index: 2; max-width: 640px; }
.hero-chip {
    display: inline-flex; align-items: center; gap: 8px; font-family: 'Orbitron', sans-serif;
    font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--gold);
    padding: 8px 15px; border-radius: 30px;
    background: rgba(255, 209, 102, 0.07); border: 1px solid rgba(255, 209, 102, 0.28);
}
.hero-chip i { animation: boltSpin 2.4s ease-in-out infinite; }
.hero-big { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(24px, 3.2vw, 36px); margin: 16px 0 10px; color: #fff; letter-spacing: 1px; }
.hero-big .grad { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 14px var(--gold-glow)); }
.hero-desc { color: var(--text-muted); font-size: 13.5px; line-height: 1.6; max-width: 560px; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.quick-item {
    display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #cbd5e1;
    padding: 9px 14px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color);
    font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700;
}
.quick-item i { color: var(--gold); }
.online-dot { color: var(--green); border-color: rgba(52, 211, 153, 0.3); }
.online-dot i { color: var(--green); animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-right { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 190px; }
.btn-hero { width: 100%; }

.hero-radar {
    position: relative; width: 74px; height: 74px; margin: 4px auto 0;
    border: 1px solid rgba(34, 211, 238, 0.4); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08), transparent 70%);
    overflow: hidden;
}
.hero-radar i { color: var(--cyan); font-size: 22px; z-index: 2; filter: drop-shadow(0 0 10px var(--cyan-glow)); }
.radar-sweep {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.45), transparent 25%);
    animation: radarSpin 3.5s linear infinite;
}
@keyframes radarSpin { to { transform: rotate(360deg); } }
.radar-ring { position: absolute; border: 1px solid rgba(34, 211, 238, 0.2); border-radius: 50%; }
.radar-ring.rr1 { inset: 8px; } .radar-ring.rr2 { inset: 16px; } .radar-ring.rr3 { inset: 24px; }

/* ---------- Stat trends ---------- */
.stat-trend {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px; color: var(--text-muted);
}
.stat-trend.up { color: var(--green); }
.stat-trend i { font-size: 11px; }

/* ---------- Dash row (gráfico + actividad) ---------- */
.dash-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 26px; }
.chart-wrap {
    display: flex; align-items: flex-end; gap: 14px; height: 210px;
    padding: 10px 6px 0; border-bottom: 1px solid var(--border-color);
}
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 100%; width: 100%; justify-content: center; }
.cbar {
    width: 16px; max-width: 40%; height: 0; border-radius: 6px 6px 3px 3px; position: relative;
    transition: height 1s cubic-bezier(0.22, 1, 0.36, 1); min-height: 2px;
}
.cbar-rec { background: var(--grad-gold); box-shadow: 0 0 14px var(--gold-glow); }
.cbar-ent { background: linear-gradient(180deg, #67e8f9, #06b6d4); box-shadow: 0 0 14px var(--cyan-glow); }
.cbar-val {
    position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif; font-size: 10px; font-weight: 800; color: #fff;
}
.chart-label { font-size: 10px; font-family: 'Orbitron', sans-serif; color: var(--text-muted); font-weight: 700; letter-spacing: 0.5px; }
.chart-legend { display: flex; gap: 18px; margin-top: 14px; font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.chart-legend i { margin-right: 6px; font-size: 10px; }

/* ---------- Activity ---------- */
.activity-list { display: flex; flex-direction: column; }
.activity-item {
    display: flex; gap: 13px; padding: 11px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: 0.25s; border-radius: 8px;
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: rgba(255, 209, 102, 0.04); }
.activity-dot {
    width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex-shrink: 0;
    background: var(--gold); box-shadow: 0 0 10px var(--gold-glow);
    animation: dotPulse 2.4s ease-in-out infinite;
}
.activity-body { min-width: 0; }
.activity-txt { font-size: 12.5px; color: #e2e8f0; line-height: 1.4; }
.activity-txt strong { color: #fff; }
.activity-txt .mono { font-family: 'Orbitron', sans-serif; font-size: 10.5px; color: var(--violet); margin-left: 7px; }
.activity-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.activity-meta i { margin-right: 4px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
    .login-hero { grid-template-columns: 1fr; text-align: center; padding-top: 20px; }
    .hero-sub { margin: 0 auto; }
    .hero-actions, .hero-features { justify-content: center; }
    .hero-visual { margin-top: 30px; }
    .dash-row { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    .grid-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .topbar { padding: 12px 16px; }
    .nav { order: 3; width: 100%; justify-content: flex-start; }
    .aurora .a1 { width: 80vw; height: 80vw; }
    .aurora .a2 { width: 70vw; height: 70vw; }
    .page-title { font-size: 18px; }
    .panel-hero { padding: 24px 20px; }
    .hero-right { width: 100%; min-width: 0; }
    .hero-radar { display: none; }
    .phone-screen { width: 230px; height: 470px; }
    .float-chip { font-size: 10.5px; padding: 8px 12px; }
    .fc1 { left: 0; } .fc2 { right: 0; }
    .auth-card { padding: 30px 22px 24px; }
    .chart-wrap { height: 170px; }
}