/* [EXCALIBUR SEAL] - S‌​‍O‌​​V​E﻿﻿﻿‌R‌‌﻿​E‍​﻿I﻿‍‍‌G‌​‌N​​‌ ‌​﻿﻿I​‌N﻿‍‍T​E​‌﻿L​﻿L﻿E​C‌‍‌T‍U‌‍​﻿A‍﻿L‌‌‌ ​﻿P‍​﻿R‍‍​﻿O﻿‍﻿﻿P﻿﻿E﻿﻿R‌﻿‌‍T‍‍​﻿Y﻿:‍​​ ‌G‌﻿u‍‍i‍﻿l​l​​e​﻿‌‍r﻿m﻿﻿​‍o​‌‍ ‌‍‍A‌‍﻿r‍‍t​﻿‍​u‌‍‍r​‍﻿o‌﻿‍‍ ﻿﻿﻿L​﻿e﻿﻿‍﻿ó﻿n﻿​ ﻿‍H​​e​s‍s​﻿​ ‌﻿‌​-‌‍​​ ﻿M‌‍Q​‍‌﻿N​﻿‍ ‌‌﻿2‍0‍‌‌‍2​‍​‍6‍​‍‍ */
/* ════════════════════════════════════════
   CRM 360° MODULES & COMPONENTS — MQN 2026
   LEY 1: Fragmentación Visual - MONOCROMÁTICO
   ════════════════════════════════════════ */

/* ────── SECCIÓN DE IDENTIDAD ────── */
.crm-identity-hero {
    margin: 12px 16px 0;
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
}

.crm-identity-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: #ffffff; box-shadow: 4px 4px 10px #d1d9e6, -4px -4px 10px #ffffff;, var(--accent-2, #00d4aa));
}

.identity-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    font-weight: 900;
    color: #718096;
    flex-shrink: 0;
    position: relative;
}

.avatar-bronze   { background: linear-gradient(135deg, #cd7f32, #a0522d); }
.avatar-silver   { background: linear-gradient(135deg, #8a9bb2, #5a7a9a); }
.avatar-gold     { background: linear-gradient(135deg, #f5a623, #e8890c); }
.avatar-platinum { background: linear-gradient(135deg, #a8b2c8, #8090b0); }

.identity-info { flex: 1; min-width: 0; padding-left: 12px; }

.identity-name {
    font-size: 1.05em;
    font-weight: 900;
    color: var(--text-primary);
}

.identity-role {
    font-size: 0.7em;
    font-weight: 800;
    color: var(--accent, #6c63ff);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.identity-jid {
    font-size: 0.7em;
    font-family: monospace;
    opacity: 0.5;
    margin-top: 3px;
}

.tier-badge {
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.65em;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge-bronze   { background: rgba(205,127,50,0.15);  color: #cd7f32;  border: 1px solid rgba(205,127,50,0.3); }
.badge-silver   { background: rgba(138,155,178,0.15); color: #8a9bb2;  border: 1px solid rgba(138,155,178,0.3); }
.badge-gold     { background: rgba(245,166,35,0.15);  color: #f5a623;  border: 1px solid rgba(245,166,35,0.3); }
.badge-platinum { background: rgba(168,178,200,0.15); color: #a8b2c8;  border: 1px solid rgba(168,178,200,0.3); }

/* ────── TELEMETRÍA Y MÉTRICAS ────── */
.crm-section {
    margin: 15px 16px 0;
    padding: 15px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 18px;
    box-shadow: var(--shadow-out, 8px 8px 16px #d1d9e6);
}

.section-label {
    font-size: 0.65em;
    font-weight: 900;
    text-transform: uppercase;
    color: #a0aec0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.metric-item {
    background: #f8f9fc;
    border: 1px solid rgba(0,0,0,0.02);
    border-radius: 12px;
    padding: 12px;
    box-shadow: inset 2px 2px 5px #d1d9e6, inset -2px -2px 5px #ffffff;
}

.metric-label { font-size: 0.65em; font-weight: 800; color: #718096; }
.metric-value { font-size: 1.1em; font-weight: 900; color: #1a202c; margin-top: 5px; }

/* ────── BARRA DE POTENCIAL ────── */
.potential-bar-bg { height: 8px; background: #edf2f7; border-radius: 8px; overflow: hidden; margin-top: 10px; }
.potential-bar-fill {
    height: 100%;
    border-radius: 8px;
    background: #cbd5e0;
}

/* ────── ITEMS & CARDS (MONO) ────── */
.order-item, .link-item, .empresa-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 4px 4px 8px #d1d9e6, -4px -4px 8px #ffffff;
    transition: 0.2s;
}

.order-amount { font-weight: 900; color: #1a202c; }

/* ────── MODALES ────── */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(255,255,255,0.4);
    backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; z-index: 2000;
}
.neumo-card {
    background: #f5f7fa;
    border-radius: 25px;
    box-shadow: 20px 20px 40px #d1d9e6, -20px -20px 40px #ffffff;
    border: 1px solid rgba(255,255,255,0.8);
}
.neumo-btn {
    padding: 10px 20px;
    border-radius: 12px;
    background: #f5f7fa;
    box-shadow: 4px 4px 8px #d1d9e6, -4px -4px 8px #ffffff;
    border: none;
    font-weight: 800;
    cursor: pointer;
}
.neumo-btn:active { box-shadow: inset 3px 3px 6px #d1d9e6, inset -3px -3px 6px #ffffff; }

.tab-panel { display: none; padding: 10px 16px 16px; }
.tab-panel.active { display: block; }
.empty-tab { text-align: center; padding: 20px; color: var(--text-muted); font-size: 0.75em; font-weight: 600; }
.empty-tab i { font-size: 1.8em; display: block; margin-bottom: 6px; }
