/* SYSTEM SYSTEM-DESIGN TOKENS - PORTAL DIGITAL TRAZA (v3.0 - Noble Slate Edition) */
:root {
    /* Paleta Ejecutiva de Confianza Institucional */
    --color-bg-main: #080b11;          /* Pizarra profunda terciopelo */
    --color-bg-card: #0e131d;          /* Terciopelo Slate noble */
    --color-bg-glass: rgba(14, 19, 29, 0.88);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(56, 189, 248, 0.35);
    
    --color-primary: #0284c7;          /* Zafiro Corporativo */
    --color-primary-rgb: 2, 132, 199;
    --color-primary-light: #38bdf8;    /* Acento Cielo */
    --color-secondary: #0369a1;        /* Azul Océano */
    --color-brand-dark: #0b0f17;       /* Azul Pizarra Sombra */
    
    --color-text-title: #ffffff;
    --color-text-main: #cbd5e1;        /* Slate 300 - Máxima calma y legibilidad */
    --color-text-muted: #94a3b8;       /* Slate 400 */
    
    --color-success: #059669;          /* Esmeralda Corporativo */
    --color-error: #dc2626;            /* Rubí Alerta */
    --color-warning: #d97706;          /* Ámbar Precaución */

    /* Fuentes */
    --font-primary: 'Inter', -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Sombras y Efectos Naturales (Sin resplandor tóxico de IA) */
    --shadow-neon: 0 4px 18px rgba(2, 132, 199, 0.16);
    --shadow-card: 0 16px 40px -8px rgba(0, 0, 0, 0.65);
    --radius-l: 14px;
    --radius-m: 8px;
    --radius-s: 4px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==================== ESTRUCTURA BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--color-text-title);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--color-brand-dark);
    border-radius: var(--radius-s);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ==================== COMPONENTES COMUNES ==================== */
.hidden {
    display: none !important;
}

.glass {
    background: var(--color-bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px stroke var(--color-border);
    box-shadow: var(--shadow-card);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    background: rgba(0, 240, 255, 0.1);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(0, 230, 118, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: var(--radius-m);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: #0284c7;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}
.btn-primary:hover {
    transform: translateY(-1px);
    background: #0369a1;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.38);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-outline:hover {
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-small {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.disabled-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================== BARRA DE ACCIÓN FLOTANTE (HEADER) ==================== */
.main-header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1200px;
    z-index: 1000;
    background: rgba(14, 19, 29, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.logo-brand {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    line-height: 1.1;
    text-transform: uppercase;
}

.logo-subtitle {
    font-size: 0.55rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--color-text-muted);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-admin-access {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    padding: 10px;
    border-radius: var(--radius-m);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-admin-access:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(0, 240, 255, 0.05);
}

/* ============================================================================
   💎 FASE 284: VISTA CLIENTE — OVERHAUL VISUAL SUPREMO Y EFECTOS LLAMATIVOS AAA++
   Canvas Atmosférico Cyber-Óptico, Barra de Comandos Glassmorphic Neón Cyan,
   Cockpit Map HUD, Tarjetas Bento 3D y Telemetría en Vivo (V299.0.0)
   ============================================================================ */

/* 1. Canvas Atmosférico y Luces Cyber-Ópticas */
.hero-section {
    position: relative;
    padding-top: 130px;
    padding-bottom: 90px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: 
        radial-gradient(ellipse 80% 60% at 50% -15%, rgba(14, 165, 233, 0.22), transparent 75%),
        radial-gradient(ellipse 60% 40% at 90% 20%, rgba(16, 185, 129, 0.12), transparent 60%),
        radial-gradient(circle at 10% 60%, rgba(99, 102, 241, 0.08), transparent 50%),
        #030712;
}

.hero-bg-glow {
    position: absolute;
    top: -120px;
    right: -100px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, rgba(16, 185, 129, 0.08) 40%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
    animation: heroGlowDrift 14s ease-in-out infinite alternate;
}

@keyframes heroGlowDrift {
    0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    50% { transform: translate(-40px, 30px) scale(1.15); opacity: 1; }
    100% { transform: translate(20px, -20px) scale(0.95); opacity: 0.85; }
}

/* Orbes de luz en levitación */
.hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.22;
    animation: orbFloat 16s ease-in-out infinite alternate;
}

.orb-1 { width: 340px; height: 340px; top: 10%; left: 5%; background: rgba(14, 165, 233, 0.20); animation-duration: 18s; }
.orb-2 { width: 280px; height: 280px; bottom: 15%; right: 15%; background: rgba(16, 185, 129, 0.16); animation-duration: 14s; }
.orb-3 { width: 200px; height: 200px; top: 40%; left: 45%; background: rgba(99, 102, 241, 0.12); animation-duration: 22s; }
.orb-4 { width: 180px; height: 180px; top: -50px; left: 30%; background: rgba(56, 189, 248, 0.16); }
.orb-5 { width: 220px; height: 220px; bottom: -40px; left: 10%; background: rgba(16, 185, 129, 0.12); }

@keyframes orbFloat {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(25px, -30px, 0); }
}

/* Siluetas de tecnología flotantes (Desactivadas por mandato para erradicar ruido visual) */
.floating-icons-layer {
    display: none !important;
}

/* Contenedor Principal del Hero */
.hero-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

/* Badges Strip Superior */
.hero-badges-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-badges-strip .badge {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(14, 165, 233, 0.1));
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
}

.hero-cabase-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.32);
    color: #34d399;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 13px;
    border-radius: 999px;
}

/* Headline con Gradiente Cromático Metálico de Alta Gama */
.hero-text h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
}

.hero-text h1 .text-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #00f0ff 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 14px rgba(56, 189, 248, 0.35));
}

.hero-lead {
    font-size: 1.08rem;
    line-height: 1.65;
    color: #94a3b8;
    margin: 0;
    max-width: 600px;
}

.hero-lead strong {
    color: #f1f5f9;
}

/* 2. Barra de Comandos Glassmorphic para Búsqueda de Cobertura */
.hero-search-box.glass-premium {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 20px;
    padding: 14px 16px;
    box-shadow: 
        0 20px 50px -10px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-search-box.glass-premium:focus-within {
    border-color: #38bdf8;
    box-shadow: 
        0 20px 50px -10px rgba(2, 132, 199, 0.35),
        0 0 25px rgba(56, 189, 248, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-search-box .search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-search-box .input-icon-group {
    position: relative;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.hero-search-box .search-icon {
    position: absolute;
    left: 12px;
    color: #38bdf8;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.hero-search-box input {
    width: 100%;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 12px 38px 12px 42px;
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}

.hero-search-box input:focus {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(56, 189, 248, 0.45);
}

.hero-search-box input::placeholder {
    color: #64748b;
    font-size: 0.9rem;
}

.btn-clear-search {
    position: absolute;
    right: 10px;
    background: rgba(148, 163, 184, 0.2);
    border: none;
    color: #cbd5e1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-search:hover {
    background: rgba(239, 68, 68, 0.4);
    color: #ffffff;
}

.btn-clear-search.hidden {
    display: none !important;
}

.btn-search-elite {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-search-elite:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.45);
    transform: translateY(-2px);
}

.btn-search-elite:hover .btn-arrow-icon {
    transform: translateX(3px);
}

.btn-arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

/* Quick Search Chips Bar */
.search-chips-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.chip-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 4px;
}

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-chip svg {
    width: 13px;
    height: 13px;
    color: #38bdf8;
}

.search-chip:hover {
    background: rgba(56, 189, 248, 0.16);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-1px);
}

.search-chip.chip-gps-highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.22));
    border-color: rgba(16, 185, 129, 0.45);
    color: #34d399;
    font-weight: 700;
}

.search-chip.chip-gps-highlight svg {
    color: #34d399;
}

.search-chip.chip-gps-highlight:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(5, 150, 105, 0.35));
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Stepper de 3 pasos */
.cobertura-stepper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    width: fit-content;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.55;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

.step.active .step-num {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.step-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f1f5f9;
}

.step-connector {
    width: 20px;
    height: 2px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 2px;
}

.step.active + .step-connector {
    background: linear-gradient(90deg, #0284c7, rgba(148, 163, 184, 0.2));
}

/* 3. Marco de Cabina Futurista para el Mapa Interactivo */
.hero-map-wrapper {
    position: relative;
}

#map-client {
    width: 100%;
    height: 100%;
    min-height: 560px;
    background: #060b14;
    position: relative;
    z-index: 1;
}

.map-wrapper-outer {
    position: relative;
    height: 560px;
    min-height: 560px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.32);
    box-shadow: 
        0 25px 65px -12px rgba(0, 0, 0, 0.85),
        0 0 35px rgba(2, 132, 199, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    background: #020617;
}

.map-wrapper-outer:hover {
    border-color: #38bdf8;
    box-shadow: 
        0 30px 75px -12px rgba(0, 0, 0, 0.9),
        0 0 45px rgba(56, 189, 248, 0.25);
}

/* Píldora de Telemetría sobre el Mapa */
.map-infra-legend-pill.glass {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.legend-dot-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dot-ftth {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.dot-wireless {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

.legend-sep {
    color: rgba(148, 163, 184, 0.35);
}

/* Controles Flotantes del Mapa */
.map-floating-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 900;
    display: flex;
    gap: 8px;
}

.btn-map-layer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #f1f5f9;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.btn-map-layer svg {
    width: 14px;
    height: 14px;
    color: #38bdf8;
}

.btn-map-layer:hover {
    background: rgba(2, 132, 199, 0.25);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Badge de ayuda flotante inferior */
.map-helper-badge.glass {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
}

.map-helper-badge svg {
    width: 15px;
    height: 15px;
    color: #38bdf8;
}

/* 4. Tarjetas de Beneficios Bento Glass 3D */
.benefits-section {
    background: linear-gradient(180deg, #030712 0%, #070e1e 100%);
    padding: 90px 0;
    border-top: 1px solid rgba(56, 189, 248, 0.12);
    position: relative;
}

.benefits-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.benefit-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.75), rgba(10, 15, 30, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.65);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 
        0 24px 50px -10px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(56, 189, 248, 0.15);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon-ring {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(16, 185, 129, 0.12));
    border: 1px solid rgba(56, 189, 248, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    margin-bottom: 22px;
    transition: all 0.3s ease;
}

.benefit-icon-ring svg,
.benefit-icon {
    width: 28px;
    height: 28px;
    color: #38bdf8;
}

.benefit-card:hover .benefit-icon-ring {
    transform: scale(1.08) translateY(-2px);
    border-color: #38bdf8;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
    color: #00f0ff;
}

.benefit-card h3 {
    font-size: 1.28rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.benefit-card p {
    color: #94a3b8;
    font-size: 0.94rem;
    line-height: 1.65;
    margin: 0;
}

/* 5. Barra de Estadísticas Animadas en Vivo (Tabular Nums) */
.stats-bar {
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 24px;
}

.stats-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 24px;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-val-wrap {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    font-variant-numeric: tabular-nums;
}

.stat-prefix, .stat-suffix {
    font-size: 1.6rem;
    font-weight: 800;
    color: #38bdf8;
    font-variant-numeric: tabular-nums;
}

.stat-number {
    font-size: 2.9rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #ffffff 40%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.stat-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-divider {
    display: none;
}

/* Responsive para Hero, Beneficios y Stats */
@media (max-width: 960px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .benefits-container {
        grid-template-columns: 1fr;
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding-top: 110px;
        padding-bottom: 60px;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .stats-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hero-search-box .search-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-search-elite {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== VISTA ADMINISTRATIVA: LAYOUT ==================== */
.app-view {
    display: none;
}
.app-view.active {
    display: block;
}

#view-admin {
    background-color: var(--color-bg-main);
    min-height: 100vh;
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* Sidebar Admin */
.admin-sidebar {
    background: #040912;
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: sticky;
    top: 0;
    height: 100vh;
    width: 260px;
    min-width: 260px;
    max-width: 260px;
}

.sidebar-header {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.logo-tag {
    background: rgba(0, 240, 255, 0.1);
    color: var(--color-primary);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: var(--radius-s);
    margin-left: 8px;
    text-transform: uppercase;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--color-secondary);
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-title);
}

.user-role {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.menu-category-header {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    opacity: 0.5;
    padding: 14px 16px 4px 16px;
    user-select: none;
    transition: all 0.2s ease-in-out;
}

.admin-layout.sidebar-collapsed .menu-category-header {
    padding: 8px 0 0 0;
    margin: 8px 12px 4px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0 !important;
    text-align: center;
    opacity: 0.4;
    overflow: hidden;
}

.sidebar-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu li {
    border-radius: var(--radius-m);
    transition: var(--transition);
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.sidebar-menu li:hover, .sidebar-menu li.active {
    background: rgba(0, 240, 255, 0.05);
}

.sidebar-menu li:hover a, .sidebar-menu li.active a {
    color: var(--color-primary);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Cuerpo Admin */
.admin-body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: #060d1a;
    position: sticky;
    top: 0;
    z-index: 500;
}

.admin-topbar h2 {
    font-size: 1.5rem;
}

.api-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-title);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.status-pill-active {
    background: rgba(0, 230, 118, 0.08);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.18);
}

.status-pill-pending {
    background: rgba(255, 234, 0, 0.08);
    color: #ffea00;
    border: 1px solid rgba(255, 234, 0, 0.18);
}

.status-pill-paused {
    background: rgba(255, 23, 68, 0.08);
    color: #ff1744;
    border: 1px solid rgba(255, 23, 68, 0.18);
}

.status-pill-time {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* MONITOREO DE SERVICIOS - EXQUISITE UX STYLE */
.services-status-grid {
    margin-top: 10px;
}
.service-card {
    padding: 18px;
    border-radius: var(--radius-m);
    background: rgba(30, 41, 59, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.service-card:hover::before {
    opacity: 1;
}
.service-card:hover {
    background: rgba(30, 41, 59, 0.4);
    border-color: var(--brand-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--brand-glow-alpha);
}
.service-card.selected {
    background: rgba(30, 41, 59, 0.55);
    border-color: var(--brand-glow);
    box-shadow: 0 0 25px var(--brand-glow-alpha), inset 0 0 12px rgba(255, 255, 255, 0.01);
}
.service-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.service-card-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-text-title);
    letter-spacing: -0.2px;
}
.service-card-type {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}
.service-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}
.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.status-indicator-dot.online {
    background: #00e676;
    box-shadow: 0 0 8px #00e676;
    animation: status-pulse-green 2s infinite;
}
.status-indicator-dot.warning {
    background: #ff9800;
    box-shadow: 0 0 8px #ff9800;
    animation: status-pulse-orange 2s infinite;
}
.status-indicator-dot.critical {
    background: #ff3b30;
    box-shadow: 0 0 10px #ff3b30;
    animation: status-pulse-red 1.5s infinite;
}
.service-card-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 10px;
    font-size: 0.75rem;
}
.service-metric-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.service-metric-label {
    color: var(--color-text-muted);
    font-size: 0.65rem;
}
.service-metric-value {
    color: var(--color-text-title);
    font-weight: 600;
}
.chart-bar-item {
    width: calc(100% / 24 - 4px);
    background: rgba(255,255,255,0.05);
    border-radius: 2px 2px 0 0;
    min-height: 4px;
    transition: height 0.3s ease, background 0.3s ease;
    cursor: pointer;
    position: relative;
}
.chart-bar-item:hover {
    background: var(--color-primary) !important;
}

@keyframes status-pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(0, 230, 118, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}
@keyframes status-pulse-orange {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(255, 152, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
}
@keyframes status-pulse-red {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.pulse-green {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.pulse-red {
    width: 8px;
    height: 8px;
    background: var(--color-error);
    border-radius: 50%;
    animation: pulse-red 2s infinite;
}

.date-time-badge {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-family: monospace;
    margin-top: 4px;
}

.admin-tab-content {
    padding: 40px;
    flex-grow: 1;
}

/* ==================== BLINDAJE DE AISLAMIENTO SPA (Vistas Enrutador) ==================== */
/* Solo ocultamos los contenedores raíz del SPA */
.tab-pane {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
/* Al estar activo, el tab-pane se muestra y todo su contenido interno vuelve al flujo normal */
.tab-pane.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    animation: fadeInTab 0.25s ease-out forwards;
}
#tab-crm.tab-pane.active {
    display: flex !important;
    flex-direction: column !important;
}
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== KPI Y PANEL DE CONTROL ==================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.kpi-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-l);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.kpi-card-interactive {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.kpi-card-interactive::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    pointer-events: none;
}

.kpi-card-interactive:hover {
    transform: translateY(-5px) scale(1.02);
}

.kpi-card-interactive .kpi-shortcut-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 14px;
    height: 14px;
    color: var(--color-text-muted);
    opacity: 0.3;
    transform: translate(-2px, 2px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpi-card-interactive:hover .kpi-shortcut-icon {
    opacity: 1;
    transform: translate(0, 0);
    color: var(--color-primary);
}

.kpi-card-interactive.glow-blue:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 114, 255, 0.25), 0 0 1px 1px rgba(0, 114, 255, 0.3);
}
.kpi-card-interactive.glow-blue:hover::after {
    border-color: rgba(0, 114, 255, 0.4);
}

.kpi-card-interactive.glow-green:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 230, 118, 0.25), 0 0 1px 1px rgba(0, 230, 118, 0.3);
}
.kpi-card-interactive.glow-green:hover::after {
    border-color: rgba(0, 230, 118, 0.4);
}

.kpi-card-interactive.glow-red:hover {
    box-shadow: 0 10px 25px -5px rgba(255, 51, 102, 0.25), 0 0 1px 1px rgba(255, 51, 102, 0.3);
}
.kpi-card-interactive.glow-red:hover::after {
    border-color: rgba(255, 51, 102, 0.4);
}

.kpi-card-interactive.glow-yellow:hover {
    box-shadow: 0 10px 25px -5px rgba(255, 234, 0, 0.25), 0 0 1px 1px rgba(255, 234, 0, 0.3);
}
.kpi-card-interactive.glow-yellow:hover::after {
    border-color: rgba(255, 234, 0, 0.4);
}

.kpi-card-interactive.glow-orange:hover {
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.25), 0 0 1px 1px rgba(245, 158, 11, 0.3);
}
.kpi-card-interactive.glow-orange:hover::after {
    border-color: rgba(245, 158, 11, 0.4);
}


.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-m);
    display: flex;
    align-items: center;
    justify-content: center;
}
.kpi-icon.blue { background: rgba(0, 114, 255, 0.1); color: var(--color-secondary); }
.kpi-icon.green { background: rgba(0, 230, 118, 0.1); color: var(--color-success); }
.kpi-icon.red { background: rgba(255, 51, 102, 0.1); color: var(--color-error); }
.kpi-icon.yellow { background: rgba(255, 234, 0, 0.1); color: var(--color-warning); }

.kpi-details {
    display: flex;
    flex-direction: column;
}

.kpi-title {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-title);
    line-height: 1.2;
}

.kpi-sub {
    font-size: 0.75rem;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kpi-sub.green { color: var(--color-success); }
.kpi-sub.red { color: var(--color-error); }

.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
}

.chart-container {
    padding: 16px;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-l);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s ease;
}

.chart-container:hover {
    border-color: rgba(0, 240, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.03);
}

.chart-container h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.simulated-chart-wrapper {
    height: 220px;
    width: 100%;
}

.svg-chart {
    width: 100%;
    height: 100%;
}

.chart-text {
    fill: var(--color-text-muted);
    font-size: 10px;
    text-anchor: middle;
}

.pie-chart-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.pie-chart-graphic {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: conic-gradient(
        var(--color-secondary) 0% 45%,
        var(--color-primary) 45% 80%,
        var(--color-brand-dark) 80% 100%
    );
}

.pie-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.color-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
}
.color-box.fib100, .pie-slice.fib100 { background: var(--color-secondary); }
.color-box.gam200, .pie-slice.gam200 { background: var(--color-primary); }
.color-box.gam300, .pie-slice.gam300 { background: var(--color-brand-dark); }

/* ==================== DATAGRID (TABLA DE LEADS) ==================== */
.datagrid-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
}

.search-bar-mini {
    background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-m);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 300px;
}
.search-bar-mini input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-title);
    font-size: 0.85rem;
    width: 100%;
}
.search-bar-mini i {
    color: var(--color-text-muted);
}

.filter-group {
    display: flex;
    gap: 8px;
}

.btn-filter {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: var(--radius-m);
    transition: var(--transition);
}
.btn-filter:hover, .btn-filter.active {
    background: rgba(0, 240, 255, 0.05);
    color: var(--color-primary);
    border-color: var(--color-border);
}

.pii-warning-banner {
    background: rgba(255, 234, 0, 0.05);
    border: 1px solid rgba(255, 234, 0, 0.15);
    padding: 12px 20px;
    border-radius: var(--radius-m);
    color: var(--color-warning);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    margin-bottom: 24px;
}
.warning-icon {
    flex-shrink: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-l);
    border: 1px solid rgba(255,255,255,0.05);
    background: var(--color-bg-card);
    margin-bottom: 24px;
}

.admin-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
    table-layout: fixed;
}

.admin-table th, .admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.admin-table th {
    background: rgba(255,255,255,0.02);
    font-weight: 600;
    color: var(--color-text-title);
    white-space: nowrap;
}

.admin-table tbody tr {
    transition: background-color 0.2s ease;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02) !important;
}

/* Distribución compacta y equilibrada de anchos para la tabla de administración (8 Columnas con Infografía) */
.admin-table th:nth-child(1), .admin-table td:nth-child(1) {
    width: 18%;
    min-width: 180px;
    text-align: left;
}
.admin-table th:nth-child(2), .admin-table td:nth-child(2) {
    width: 33%;
    min-width: 380px;
    text-align: left;
}
.admin-table th:nth-child(3), .admin-table td:nth-child(3) {
    width: 5%;
    min-width: 50px;
    text-align: center;
}
.admin-table th:nth-child(4), .admin-table td:nth-child(4) {
    width: 8%;
    min-width: 80px;
    text-align: center;
}
.admin-table th:nth-child(5), .admin-table td:nth-child(5) {
    width: 9%;
    min-width: 100px;
    text-align: left;
}
.admin-table th:nth-child(6), .admin-table td:nth-child(6) {
    width: 10%;
    min-width: 110px;
    text-align: left;
}
.admin-table th:nth-child(7), .admin-table td:nth-child(7) {
    width: 8%;
    min-width: 90px;
    text-align: left;
}
.admin-table th:nth-child(8), .admin-table td:nth-child(8) {
    width: 9%;
    min-width: 110px;
    text-align: center;
}

/* FASE 80.2: Distribución de Columnas Dedicada y Exclusiva para Tabla de Lista Negra Antifraude */
#blacklist-table {
    table-layout: fixed !important;
    width: 100% !important;
    border-collapse: collapse;
}

#blacklist-table th, 
#blacklist-table td {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    vertical-align: middle;
    box-sizing: border-box;
}

#blacklist-table th:nth-child(1), #blacklist-table td:nth-child(1) {
    width: 14% !important;
    min-width: 130px !important;
    text-align: left !important;
}

#blacklist-table th:nth-child(2), #blacklist-table td:nth-child(2) {
    width: 22% !important;
    min-width: 190px !important;
    text-align: left !important;
}

#blacklist-table th:nth-child(3), #blacklist-table td:nth-child(3) {
    width: 25% !important;
    min-width: 210px !important;
    text-align: left !important;
}

#blacklist-table th:nth-child(4), #blacklist-table td:nth-child(4) {
    width: 12% !important;
    min-width: 110px !important;
    text-align: right !important;
}

#blacklist-table th:nth-child(5), #blacklist-table td:nth-child(5) {
    width: 10% !important;
    min-width: 95px !important;
    text-align: center !important;
}

#blacklist-table th:nth-child(6), #blacklist-table td:nth-child(6) {
    width: 8% !important;
    min-width: 85px !important;
    text-align: center !important;
}

#blacklist-table th:nth-child(7), #blacklist-table td:nth-child(7) {
    width: 9% !important;
    min-width: 135px !important;
    text-align: center !important;
}


.cell-lead-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
}
.cell-lead-name {
    font-weight: 600;
    color: var(--color-text-title);
}
.cell-lead-id {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.masked-data-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace;
}
.btn-reveal {
    background: transparent;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 2px;
    opacity: 0.7;
    transition: var(--transition);
}
.btn-reveal:hover {
    opacity: 1;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.status-badge.verificado { background: rgba(0, 230, 118, 0.1); color: var(--color-success); }
.status-badge.pendiente { background: rgba(255, 234, 0, 0.1); color: var(--color-warning); }
.status-badge.prospección { background: rgba(0, 240, 255, 0.1); color: var(--color-primary); }

.action-buttons {
    display: flex;
    gap: 8px;
}

/* ==================== MAPA DE CALOR ==================== */
.map-controls-panel {
    border-radius: var(--radius-l);
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 24px;
}
.map-controls-panel h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.map-controls-panel p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}
.map-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.map-filters select {
    background: var(--color-bg-main);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text-title);
    padding: 8px 16px;
    border-radius: var(--radius-m);
    outline: none;
}
.heatmap-metric {
    font-size: 0.9rem;
}
.heatmap-metric strong {
    color: var(--color-primary);
}

#map-admin-heatmap {
    height: 500px;
    border-radius: var(--radius-l);
    border: 1px solid var(--color-border);
    background: #000;
}

.map-wrapper {
    position: relative;
    width: 100%;
}

.map-floating-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000;
}

.btn-map-layer {
    background: rgba(26, 26, 26, 0.75) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--color-text) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-m) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.btn-map-layer:hover {
    background: rgba(26, 26, 26, 0.95) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}

.btn-map-layer i {
    width: 16px;
    height: 16px;
}

/* ==================== CONFIGURACIÓN MAESTRA ==================== */
.config-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-radius: var(--radius-l);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    margin-bottom: 24px;
}

.sub-tabs-container {
    display: flex;
    gap: 8px;
}

.sub-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-m);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sub-tab-btn:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.03);
}

.sub-tab-btn.active {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.2);
    color: var(--color-primary);
}

.sub-tab-btn i {
    width: 16px;
    height: 16px;
}

.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block;
}

/* Verificador de Cobertura */
.admin-verifier-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: var(--radius-m);
    margin-top: 16px;
}

.search-input-group {
    display: flex;
    gap: 12px;
}

.search-input-group input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 10px 16px;
    border-radius: var(--radius-m);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input-group input:focus {
    border-color: var(--color-primary);
}

.verification-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    width: 320px;
    padding: 16px;
    border-radius: var(--radius-l);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.verification-card .close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.verification-card .close-btn:hover {
    color: var(--color-text);
}

.verification-status {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verification-status.success {
    color: #00e676;
}

.verification-status.error {
    color: #ff3b30;
}

.verification-details {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--color-text-muted);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.config-column {
    padding: 32px;
    border-radius: var(--radius-l);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.column-header {
    margin-bottom: 24px;
}
.column-header h3, .column-header-flex h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.column-header p, .column-header-flex p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.column-header-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.map-drawing-wrapper {
    height: 300px;
    border-radius: var(--radius-m);
    overflow: hidden;
    border: 1px solid var(--color-border);
    margin-bottom: 20px;
}
#map-admin-config {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-l);
    border: 1px solid var(--color-border);
    background: #000;
}

.zones-list-wrapper h4 {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: var(--color-text-title);
}

.upload-geojson-box {
    margin-bottom: 16px;
}

.zones-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.zone-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 12px 16px;
    border-radius: var(--radius-m);
}

.zone-info {
    display: flex;
    flex-direction: column;
}
.zone-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-title);
}
.zone-tech {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Switch Toggle Component */
.flex-row-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .4s;
    border-radius: 34px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
    background-color: var(--color-primary);
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
    background-color: #000;
}
.fullscreen-map-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
    background: #060814 !important;
    margin: 0 !important;
}

.filter-pill {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    cursor: pointer;
}
.filter-pill:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    transform: translateY(-1px);
}
#net-client-search {
    transition: all 0.3s ease;
}
#net-client-search:focus {
    border-color: #00f0ff !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
    background: rgba(0, 0, 0, 0.45) !important;
}

.plans-crud-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.plan-crud-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-m);
    padding: 16px;
}

.plan-crud-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.plan-crud-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-title);
}
.plan-crud-title-input {
    background: transparent;
    border: none;
    border-bottom: 1px díashed rgba(255,255,255,0.2);
    color: var(--color-text-title);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 2px 4px;
    width: 60%;
    outline: none;
    transition: border-bottom-color 0.2s;
}
.plan-crud-title-input:focus {
    border-bottom: 1px solid var(--color-primary);
}

.plan-crud-fields {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 12px;
    margin-bottom: 16px;
}

.plan-crud-fields input {
    background: var(--color-bg-main);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text-title);
    padding: 8px 12px;
    border-radius: var(--radius-s);
    outline: none;
    font-size: 0.85rem;
    width: 100%;
}

.plan-crud-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 12px;
}

.btn-icon-trash {
    background: rgba(255, 51, 102, 0.05);
    border: 1px solid rgba(255, 51, 102, 0.1);
    color: var(--color-error);
    padding: 8px;
    border-radius: var(--radius-m);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-icon-trash:hover {
    background: var(--color-error);
    color: #fff;
}

.global-save-actions {
    margin-top: auto;
}

/* ==================== AUDIT TRAIL ==================== */
.audit-header {
    margin-bottom: 24px;
}
.audit-header h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.audit-header p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ==================== MODALES COMPONENTES ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: var(--transition);
}
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: #0e131d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-l);
    width: 100%;
    max-width: 520px;
    padding: 36px 32px;
    position: relative;
    box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.85);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.form-modal {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.modal-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}
.modal-icon-badge.green { background: rgba(5, 150, 105, 0.12); color: #10b981; border: 1px solid rgba(5, 150, 105, 0.25); }
.modal-icon-badge.gray { background: rgba(255, 255, 255, 0.04); color: #94a3b8; border: 1px solid rgba(255, 255, 255, 0.08); }
.modal-icon-badge.blue { background: rgba(2, 132, 199, 0.12); color: #38bdf8; border: 1px solid rgba(2, 132, 199, 0.25); }

.modal-card h2 {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}
.modal-card p {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.coverage-plans-box h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--color-text-title);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.modal-plans-list {
    display: flex;
    flex-direction: row;
    gap: 16px;
    max-height: none;
    overflow-y: visible;
    align-items: stretch;
}

.modal-plan-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 24px 16px 20px 16px;
    border-radius: var(--radius-l);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    transition: var(--transition);
    flex: 1;
    min-width: 200px;
    position: relative;
}
.modal-plan-item:hover {
    border-color: var(--color-primary);
    background: rgba(0, 240, 255, 0.02);
}

.modal-plan-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-grow: 1;
}
.modal-plan-name {
    font-weight: 800;
    color: var(--color-text-title);
    font-size: 1rem;
    line-height: 1.2;
}
.modal-plan-speed {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.modal-plan-price-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    margin-top: auto;
}
.modal-plan-price {
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.unserved-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-m);
    padding: 24px;
}
.box-text {
    margin-bottom: 24px !important;
}

/* Formulario Campos */
.modal-form-header {
    margin-bottom: 24px;
}
.modal-form-header h2 {
    text-align: left;
    margin-bottom: 4px;
}
.modal-form-header p {
    text-align: left;
    margin-bottom: 0;
}

.form-group-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-title);
}

.input-validate-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group-field input, .form-group-field select {
    background: var(--color-bg-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-title);
    padding: 12px 16px;
    border-radius: var(--radius-m);
    outline: none;
    font-size: 0.9rem;
    width: 100%;
    transition: var(--transition);
}
.form-group-field input:focus, .form-group-field select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.form-row-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.validate-icon {
    position: absolute;
    right: 16px;
    width: 16px;
    height: 16px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estados de validación visuales */
.form-group-field.valid input {
    border-color: var(--color-success);
}
.form-group-field.valid .validate-icon::after {
    content: "✓";
    color: var(--color-success);
    font-weight: bold;
}

.form-group-field.invalid input {
    border-color: var(--color-error);
}
.form-group-field.invalid .validate-icon::after {
    content: "✗";
    color: var(--color-error);
    font-weight: bold;
}

.error-msg {
    color: var(--color-error);
    font-size: 0.75rem;
    display: none;
}
.form-group-field.invalid .error-msg {
    display: block;
}

.form-security-disclaimer {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 240, 255, 0.02);
    border: 1px solid rgba(0, 240, 255, 0.05);
    padding: 12px 16px;
    border-radius: var(--radius-m);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}
.form-security-disclaimer i {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* OTP modal */
.otp-header {
    text-align: center;
    margin-bottom: 32px;
}

.otp-inputs-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.otp-digit {
    width: 48px;
    height: 54px;
    background: var(--color-bg-main);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-m);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-title);
    outline: none;
    transition: var(--transition);
}
.otp-digit:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.otp-timer-box {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}
.otp-timer-box span {
    color: var(--color-primary);
    font-weight: 600;
}

.otp-actions {
    text-align: center;
    margin-top: 16px;
}
.btn-link {
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
}
.btn-link:hover {
    text-decoration: underline;
}

/* Success modal */
.success-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
}
.success-icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-success);
    opacity: 0.15;
    filter: blur(15px);
    border-radius: 50%;
}
.success-circle {
    background: var(--color-success);
    color: #000;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-circle i {
    width: 42px;
    height: 42px;
}

.success-details-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-m);
    padding: 16px 24px;
    margin-bottom: 32px;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 8px 0;
}
.detail-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==================== TOAST & SIMULADOS ==================== */
.toast-container {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 100010 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 380px !important;
    width: 100% !important;
    pointer-events: none !important;
}

.toast {
    background: var(--color-bg-card);
    border-left: 4px solid var(--color-primary);
    padding: 16px 20px;
    border-radius: var(--radius-s) var(--radius-m) var(--radius-m) var(--radius-s);
    color: var(--color-text-title);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: toast-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.85rem;
    pointer-events: auto !important;
}
.toast.success { border-left-color: var(--color-success); }
.toast.error { border-left-color: var(--color-error); }
.toast.warning { border-left-color: var(--color-warning); }

.toast-content {
    flex-grow: 1;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.1rem;
}

/* Simulador de Inbox de Correo (Diseño Rich Mail transactional en Primer Plano) */
.simulated-email-inbox {
    position: fixed !important;
    bottom: 24px !important;
    left: 24px !important;
    width: 440px !important;
    max-width: calc(100vw - 48px) !important;
    max-height: calc(100vh - 48px) !important;
    background: #0f1a2d !important;
    border: 2px solid var(--color-primary) !important;
    border-radius: var(--radius-m) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 240, 255, 0.4) !important;
    z-index: 100005 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: auto !important;
}

.simulated-email-inbox.hidden {
    display: none !important;
    pointer-events: none !important;
}

.inbox-header {
    background: var(--color-brand-dark);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    color: #fff;
}
.inbox-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.inbox-header button {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
}
.inbox-header button:hover {
    color: var(--color-error);
}

.inbox-envelope {
    background: #f4f6f8; /* Fondo gris claro típico de Gmail/Outlook */
    color: #1a202c;
    overflow-y: auto;
    max-height: 480px;
}

.email-meta {
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #4a5568;
}
.email-meta strong {
    color: #1a202c;
}

.email-content-card {
    background: #fff;
    margin: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.email-brand-banner {
    background: #071329;
    padding: 16px;
    text-align: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--color-primary);
}
.email-brand-banner .brand-t {
    color: var(--color-primary);
}
.email-brand-banner .brand-raza {
    color: #fff;
}
.email-brand-banner .brand-sub {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    font-weight: normal;
    display: block;
    margin-top: 2px;
}

.email-body-text {
    padding: 20px 24px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #2d3748;
}
.email-body-text h3 {
    color: #071329;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 700;
}
.email-body-text p {
    margin-bottom: 16px;
}

.email-otp-box {
    background: rgba(0, 240, 255, 0.03);
    border: 2px díashed var(--color-primary);
    padding: 16px;
    text-align: center;
    border-radius: 8px;
    margin: 20px 0;
}
.email-otp-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #718096;
    letter-spacing: 1.5px;
}
.email-otp-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #071329;
    letter-spacing: 6px;
    margin-top: 6px;
}

.btn-email-autofill {
    display: block;
    width: 100%;
    background: var(--color-primary);
    color: #071329;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 240, 255, 0.2);
    text-align: center;
}
.btn-email-autofill:hover {
    background: #00d8e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 240, 255, 0.3);
}

.email-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 20px 0;
}

.whatsapp-prompt {
    font-size: 0.75rem;
    color: #4a5568;
    margin-bottom: 10px;
}
.btn-email-whatsapp {
    display: block;
    width: 100%;
    background: #25d366;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.2);
}
.btn-email-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.email-footer {
    padding: 16px 24px;
    background: #f7fafc;
    border-top: 1px solid #edf2f7;
    font-size: 0.65rem;
    color: #a0aec0;
    text-align: center;
    line-height: 1.4;
}
.email-footer p {
    margin: 4px 0;
}

/* Confeti de Ééééxito */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: 2100;
    opacity: 0.8;
    pointer-events: none;
    animation: confetti-fall 2.5s ease-out infinite;
}

/* ==================== ANIMACIONES ==================== */
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
    70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
    100% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

@keyframes pulse-red {
    0% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.4); }
    70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 10px rgba(255, 51, 102, 0); }
    100% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(255, 51, 102, 0); }
}

@keyframes toast-in {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes confetti-fall {
    0% { transform: translateY(-50px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}

/* Animaciones del Hero */
.animate-fade-in {
    animation: toast-in 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-slide-up {
    animation: toast-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

/* ==================== MEDIA QUERIES (DISEÑO RESPONSIVO) ==================== */
@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        height: auto;
        position: relative;
    }
    .admin-body {
        height: auto;
        overflow-y: visible;
    }
    .config-layout {
        grid-template-columns: 1fr;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-text {
        text-align: center;
        align-items: center;
    }
    .hero-ctas {
        justify-content: center;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 120px !important;
    }
    .header-container {
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 8px;
    }
    .logo-wrapper {
        order: 1;
    }
    .header-actions {
        order: 2;
        gap: 8px;
    }
    .header-actions .btn {
        display: none; /* Ocultar "Contratar Ahora" */
    }
    .main-nav {
        display: block !important;
        order: 3;
        width: 100%;
        margin-top: 4px;
    }
    .main-nav ul {
        justify-content: center;
        gap: 16px;
        padding: 0;
        margin: 0;
    }
    .main-nav a {
        font-size: 0.85rem;
    }
    .map-wrapper-outer {
        height: 350px !important;
    }
    .map-location-card {
        bottom: 12px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        padding: 12px;
        gap: 8px;
    }
    .cobertura-stepper {
        justify-content: center !important;
        margin: 12px auto !important;
    }
    .hero-ctas {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        justify-content: center;
    }
    .benefits-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    .form-row-fields, .plan-crud-fields {
        grid-template-columns: 1fr;
    }
    .modal-card {
        padding: 24px;
    }
}

/* ==================== PIN PERSONALIZADO Y ANIMADO (A PRUEBA DE ERRORES) ==================== */
.custom-pin-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 42px;
}

.custom-pin-icon {
    width: 24px;
    height: 24px;
    background: #00f0ff;
    border: 3px solid #ffffff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition);
}

.custom-pin-icon:hover {
    transform: rotate(-45deg) scale(1.1);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.9);
}

.custom-pin-dot {
    width: 8px;
    height: 8px;
    background: #060d1a;
    border-radius: 50%;
    transform: rotate(45deg); /* Compensa la rotación del padre */
}

.custom-pin-glow {
    position: absolute;
    width: 14px;
    height: 6px;
    background: rgba(0, 240, 255, 0.4);
    border-radius: 50%;
    bottom: -3px;
    left: calc(50% - 7px);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
    animation: pin-shadow-pulse 2s infinite ease-in-out;
    z-index: 1;
}

@keyframes pin-shadow-pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* Tarjeta flotante de confirmación de ubicación en el mapa */
.map-location-card {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: calc(100% - 48px);
    max-width: 380px;
    padding: 20px;
    border-radius: var(--radius-l);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: toast-in 0.3s ease;
    transition: var(--transition);
}

.card-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-title);
}

.map-location-card .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.map-location-card .status-indicator.success {
    background: var(--color-success);
    box-shadow: 0 0 10px var(--color-success);
}

.map-location-card .status-indicator.error {
    background: var(--color-text-muted);
    box-shadow: none;
}

.card-instruction {
    font-size: 0.85rem;
    color: var(--color-text-main);
    line-height: 1.4;
}

/* ==================== NUEVAS CLASES: DIRECCIÓN ESTRUCTURADA Y GPS ==================== */
.form-address-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 16px;
    margin-bottom: 20px;
}

.grid-col-2 {
    grid-column: span 2;
}

.grid-col-4 {
    grid-column: span 4;
}

/* Ajustes de responsive para la grilla de dirección */
@media (max-width: 768px) {
    .form-address-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-col-2, .grid-col-4 {
        grid-column: span 2;
    }
}

/* Botón flotante GPS en el mapa */
.btn-map-float {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--radius-m);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    background: rgba(6, 13, 26, 0.85);
    backdrop-filter: blur(12px);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.btn-map-float:hover {
    background: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.btn-map-float i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-map-float:hover i {
    transform: rotate(90deg);
}

/* Estilo para los elementos select dentro de la validación */
.form-group-field.valid select {
    border-color: var(--color-success);
}
.form-group-field.invalid select {
    border-color: var(--color-error);
}

/* ==================== CONTROL DE AUTENTICACIÓN Y GESTIÓN DE USUARIOS ==================== */

/* Contenedor de Login de Administración - Split Screen Hero (Fase 173 - V188.0.0) */
.admin-login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background: radial-gradient(ellipse at 75% 35%, #0e1e38 0%, #060d1a 50%, #020409 100%);
    padding: 30px 24px;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
}

.admin-login-split-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    gap: 50px;
    margin: auto;
}

.login-left-brand-pane {
    flex: 1;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.login-left-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-left-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #38bdf8 0%, #00e5ff 40%, #0088ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    line-height: 1;
}

.login-left-pill-tag {
    font-size: 0.68rem;
    font-weight: 800;
    background: rgba(0, 229, 255, 0.1);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.login-left-headline {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 4px 0 0 0;
    line-height: 1.3;
}

.login-left-subtext {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

.login-left-info-bento {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}

.info-bento-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    background: rgba(10, 20, 38, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    text-decoration: none;
    transition: all 0.2s ease;
}

.info-bento-card:hover {
    border-color: rgba(0, 229, 255, 0.35);
    background: rgba(14, 26, 48, 0.75);
    transform: translateX(3px);
}

.info-bento-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-bento-icon i, .info-bento-icon svg {
    width: 20px;
    height: 20px;
}

.info-bento-texts {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.info-bento-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-bento-desc {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 2px;
}

.login-left-security-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 4px;
}

.login-split-divider {
    width: 1px;
    height: 520px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 229, 255, 0.3) 25%, rgba(0, 136, 255, 0.4) 50%, rgba(0, 229, 255, 0.25) 75%, transparent 100%);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.12);
    flex-shrink: 0;
}

.login-right-card-pane {
    width: 440px;
    max-width: 100%;
    flex-shrink: 0;
}

.login-access-card {
    background: rgba(10, 20, 38, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 22px;
    padding: 34px 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 229, 255, 0.08);
    box-sizing: border-box;
}

.access-card-header {
    text-align: center;
    margin-bottom: 22px;
}

.access-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.66rem;
    font-weight: 800;
    background: rgba(0, 229, 255, 0.1);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.access-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.access-card-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
}

.access-form-field {
    margin-bottom: 16px;
}

.access-form-field label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.access-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.access-input-box .field-icon {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    color: #64748b;
    pointer-events: none;
}

.access-input-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 14px 12px 42px !important;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.access-input-box input:focus {
    outline: none;
    border-color: #00e5ff;
    background: rgba(0, 229, 255, 0.03);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.access-btn-submit {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0088ff 0%, #00c6ff 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 136, 255, 0.35);
    transition: all 0.2s ease;
}

.access-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 136, 255, 0.5);
}

.access-quick-links-row {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.access-quick-links-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
    display: block;
    text-align: center;
}

.access-quick-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-badge-link:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    color: #00e5ff;
    transform: translateY(-1px);
}

@media (max-width: 960px) {
    .admin-login-split-container {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }
    .login-split-divider {
        display: none;
    }
    .login-left-brand-pane {
        max-width: 440px;
        text-align: center;
    }
    .login-left-logo-row {
        justify-content: center;
    }
    .login-left-security-tag {
        justify-content: center;
    }
    .login-right-card-pane {
        width: 100%;
        max-width: 440px;
    }
}

/* Badges y Elementos de Gestión de Usuarios */
.users-header {
    margin-bottom: 24px;
}

.users-header h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 6px;
}

.users-header p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.badge-user-active {
    background: rgba(0, 230, 118, 0.1);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-user-pending {
    background: rgba(255, 234, 0, 0.1);
    color: #ffea00;
    border: 1px solid rgba(255, 234, 0, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-user-paused {
    background: rgba(255, 23, 68, 0.1);
    color: #ff1744;
    border: 1px solid rgba(255, 23, 68, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-danger {
    background: var(--color-error);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-s);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    background: #e6224e;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

.btn-danger-small {
    background: rgba(255, 51, 102, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(255, 51, 102, 0.2);
    padding: 4px 8px;
    border-radius: var(--radius-s);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger-small:hover {
    background: var(--color-error);
    color: #fff;
}

.btn-success-small {
    background: rgba(0, 230, 118, 0.1);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.2);
    padding: 4px 8px;
    border-radius: var(--radius-s);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 6px;
}

.btn-success-small:hover {
    background: #00e676;
    color: #000;
}

.btn-warning-small {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.2);
    padding: 4px 8px;
    border-radius: var(--radius-s);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 6px;
}

.btn-warning-small:hover {
    background: #ff9800;
    color: #000;
}

/* Deshabilitación por permisos (Seguridad) */
.role-disabled-element {
    opacity: 0.4 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.role-hidden-element {
    display: none !important;
}
/* Tooltip del dibujador de círculos (Leaflet Geoman) */
.geoman-radius-tooltip {
    background: rgba(10, 25, 41, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    font-weight: bold !important;
    font-size: 12px !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.25) !important;
    font-family: 'Inter', sans-serif !important;
}

/* ==================== COMPONENTES UX MEJORADOS (PREMIUM) ==================== */

/* 1. Hero CTA Button (Pill Style, Cyan Refined Glow - Fase 68) */
.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00f0ff 0%, #00b4d8 100%);
    color: #030a16;
    font-weight: 800;
    font-size: 1.02rem;
    padding: 14px 32px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    box-shadow: 0 8px 24px -4px rgba(0, 240, 255, 0.35), 0 0 1px rgba(0, 240, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-primary);
}

.btn-hero-cta:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #38bdf8 0%, #00f0ff 100%);
    box-shadow: 0 12px 28px -2px rgba(0, 240, 255, 0.5), 0 0 15px rgba(0, 240, 255, 0.3);
    color: #000;
}

.btn-hero-cta:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-hero-cta i {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-hero-cta:hover i {
    transform: translateX(4px);
}

/* 2. Cobertura Stepper */
.cobertura-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    margin: 12px auto 32px auto;
    padding: 0 16px;
}

.cobertura-stepper .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.cobertura-stepper .step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0f1c3f;
    border: 2px solid var(--color-border);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.cobertura-stepper .step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.cobertura-stepper .step.active .step-num {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-neon);
}

.cobertura-stepper .step.active .step-label {
    color: var(--color-primary);
}

.cobertura-stepper .step.completed .step-num {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #000;
}

.cobertura-stepper .step.completed .step-label {
    color: var(--color-success);
}

.cobertura-stepper .step-connector {
    flex: 1;
    height: 2px;
    background: var(--color-border);
    margin-top: -24px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.cobertura-stepper .step-connector.completed {
    background: var(--color-success);
}

/* 3. Plan Finder Widget */
.plan-finder-widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-l);
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.finder-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.finder-header .finder-icon {
    width: 18px;
    height: 18px;
}

.finder-body {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.finder-question {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.finder-question {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.finder-q-title {
    font-size: 0.85rem;
    color: var(--color-text-main);
    font-weight: 500;
}

.finder-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.finder-btn {
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.8rem !important;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    transition: var(--transition);
}

.finder-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 240, 255, 0.05);
}

.finder-btn.active {
    background: rgba(0, 240, 255, 0.1) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* 4. Plan Item Recomendado */
.modal-plan-item {
    transition: var(--transition);
}

.modal-plan-item.recommended-plan-card {
    position: relative;
    border: 2px solid var(--color-primary) !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25) !important;
    background: rgba(0, 240, 255, 0.03) !important;
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
    }
}

.recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 10;
    white-space: nowrap;
}

.recommended-badge i {
    width: 10px;
    height: 10px;
}

/* 5. OTP Timer styles */
.otp-timer-box {
    margin: 16px 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

#otp-timer {
    color: var(--color-warning);
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
}

/* 6. Success Roadmap (Timeline de Instalación) */
.success-roadmap-container {
    text-align: left;
    margin: 24px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-l);
}

.success-roadmap-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-roadmap-title i {
    color: var(--color-primary);
    width: 16px;
    height: 16px;
}

.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-left: 28px;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.roadmap-step {
    position: relative;
}

.roadmap-dot {
    position: absolute;
    left: -28px;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.roadmap-dot i {
    width: 10px;
    height: 10px;
    display: none;
}

.roadmap-step.completed .roadmap-dot {
    border-color: var(--color-success);
    background: var(--color-success);
}

.roadmap-step.completed .roadmap-dot i {
    display: block;
    color: #000;
}

.roadmap-step.active .roadmap-dot {
    border-color: var(--color-primary);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 8px var(--color-primary);
}

.roadmap-step.active .roadmap-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

.roadmap-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.roadmap-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.roadmap-step.active .roadmap-label {
    color: var(--color-primary);
}

.roadmap-step.completed .roadmap-label {
    color: #fff;
}

.roadmap-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* 7. WhatsApp success action */
.success-whatsapp-box {
    margin-top: 16px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: var(--radius-m);
    background: rgba(0, 230, 118, 0.03);
    border: 1px díashed rgba(0, 230, 118, 0.15);
    text-align: center;
}

.success-whatsapp-box .whatsapp-prompt {
    font-size: 0.8rem;
    color: var(--color-text-main);
    margin-bottom: 12px;
}

.btn-whatsapp {
    background: #00e676;
    color: #000 !important;
    border: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #00b359;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
}

/* ==================== AJUSTES DE ESPACIO PARA MODAL DE COBERTURA ==================== */

#modal-coverage-result .modal-card {
    max-width: 800px;
    padding: 32px;
}

#modal-coverage-result .modal-icon-badge {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

#modal-coverage-result .modal-icon-badge i {
    width: 24px;
    height: 24px;
}

#modal-coverage-result h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

#modal-coverage-result p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* Responsive grid inside the coverage modal */
@media (max-width: 768px) {
    #modal-coverage-result .modal-card {
        max-width: 480px;
        padding: 24px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-plans-list {
        flex-direction: column;
        align-items: stretch;
        max-height: 280px;
        overflow-y: auto;
    }
    .finder-body {
        flex-direction: column;
        gap: 16px;
    }
    .modal-plan-item {
        min-width: 0;
        flex-direction: row;
        text-align: left;
        padding: 16px;
        align-items: center;
    }
    .modal-plan-info {
        align-items: flex-start;
        margin-bottom: 0;
    }
    .modal-plan-price-action {
        flex-direction: row;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        width: auto;
    }
    .recommended-badge {
        left: auto;
        right: 16px;
        transform: none;
    }
}

/* Banner de Recomendación en Modal de Cobertura */
.recommendation-banner {
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-l);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    animation: borderGlow 3s infinite alternate;
}

@keyframes borderGlow {
    0% {
        border-color: rgba(0, 240, 255, 0.4);
        box-shadow: 0 0 8px rgba(0, 240, 255, 0.05);
    }
    100% {
        border-color: var(--color-primary);
        box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
    }
}

.recommendation-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.recommendation-icon {
    font-size: 1.8rem;
    color: var(--color-primary);
    background: rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
    flex-shrink: 0;
}

.recommendation-icon i {
    width: 24px;
    height: 24px;
}

.recommendation-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recommendation-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.recommendation-plan-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-text-title);
}

.recommendation-plan-text span {
    color: var(--color-primary);
}

.recommendation-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.recommendation-action {
    display: flex;
    align-items: center;
    gap: 20px;
}

.recommendation-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .recommendation-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 16px;
    }
    .recommendation-content {
        flex-direction: column;
        gap: 12px;
    }
    .recommendation-action {
        flex-direction: column;
        gap: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 12px;
    }
}

/* --- SECCIÓN DE PLANES EN HOME --- */
.plans-section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.plans-categories-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-top: 48px;
    align-items: stretch;
}

.plans-category-column {
    flex: 1;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-xl);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.category-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 24px;
}

.category-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--radius-m);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.category-icon-wrapper i {
    width: 28px;
    height: 28px;
}

.category-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text-title);
    margin: 0;
}

.category-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.plans-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-grow: 1;
}

.landing-plan-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-l);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    backdrop-filter: blur(16px);
}

.landing-plan-card:hover {
    border-color: var(--color-primary);
    background: rgba(0, 240, 255, 0.02);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 240, 255, 0.15);
}

/* Plan Destacado de Máxima Velocidad */
.landing-plan-card.highlight-plan-card {
    border: 2.5px solid var(--color-primary) !important;
    background: rgba(0, 240, 255, 0.04) !important;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.22) !important;
    animation: landingPulseGlow 3s infinite alternate;
}

@keyframes landingPulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
    }
    100% {
        box-shadow: 0 0 22px rgba(0, 240, 255, 0.28);
    }
}

.highlight-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    z-index: 5;
}

.highlight-badge i {
    width: 11px;
    height: 11px;
}

.landing-plan-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text-title);
    margin: 0;
}

.landing-plan-speed {
    display: flex;
    align-items: center;
    gap: 12px;
}

.speed-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    font-family: var(--font-display);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.speed-unit {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.landing-plan-devices {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-s);
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--color-text-title);
}

.landing-plan-devices i {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.landing-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landing-plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.landing-plan-features li i {
    width: 14px;
    height: 14px;
    color: var(--color-success);
    flex-shrink: 0;
}

.landing-plan-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    gap: 16px;
}

.landing-plan-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text-title);
    white-space: nowrap;
}

.landing-plan-price small {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Responsividad de Planes en Home */
@media (max-width: 992px) {
    .plans-categories-container {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .landing-plan-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
    }
    .main-nav ul {
        gap: 10px !important;
    }
    .main-nav a {
        font-size: 0.78rem !important;
    }
    .hero-text h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    .hero-search-box {
        padding: 6px !important;
    }
    .search-input-wrapper input {
        padding: 8px 10px !important;
        font-size: 0.85rem !important;
    }
    .search-input-wrapper .btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }
    .btn-hero-cta {
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
    }
    .cobertura-stepper {
        padding: 0 !important;
        margin: 8px 0 12px 0 !important;
        gap: 4px !important;
    }
    .cobertura-stepper .step-num {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
    }
    .cobertura-stepper .step-label {
        font-size: 0.7rem !important;
    }
    .cobertura-stepper .step-connector {
        margin-top: -18px !important;
        min-width: 10px !important;
        width: 10px !important;
    }
    .form-address-grid {
        grid-template-columns: 1fr !important;
    }
    .grid-col-2, .grid-col-4 {
        grid-column: span 1 !important;
    }
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .about-card {
        padding: 20px !important;
    }
    .modal-close {
        top: 12px !important;
        right: 12px !important;
    }
}

/* ==================== INTEGRACIÓN DE WISPRO Y VISTA PREVIA ==================== */
.kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
}

.sparkline-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    min-height: 2px;
    transition: all 0.2s ease;
}
.sparkline-bar:hover {
    filter: brightness(1.4);
    transform: scaleY(1.15);
}

.kpi-icon.purple {
    background: rgba(156, 39, 176, 0.1);
    color: #e040fb;
}

.kpi-icon.orange {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
}

.status-badge.sincronizado {
    background: rgba(156, 39, 176, 0.1);
    color: #e040fb;
}

.status-badge.activo {
    background: rgba(0, 230, 118, 0.15);
    color: #00e676;
}

.status-badge.suspendido {
    background: rgba(255, 107, 53, 0.15);
    color: #ff6b35;
}

.status-badge.baja {
    background: rgba(142, 142, 147, 0.15);
    color: #8e8e93;
}

.status-badge.inactivo {
    background: rgba(142, 142, 147, 0.08);
    color: #aeaeae;
    border: 1px solid rgba(142, 142, 147, 0.2);
}

.status-badge.no-activa {
    background: rgba(239, 68, 68, 0.12);
    color: #ff5252;
    border: 1px solid rgba(239, 68, 68, 0.25);
}


.btn-mini {
    padding: 2px 6px;
    font-size: 0.65rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    width: auto;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.btn-mini:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--color-primary);
    border-color: rgba(0, 240, 255, 0.3);
}

.preview-modal-layout {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.preview-details-col {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-map-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#map-lead-preview {
    height: 100%;
    min-height: 520px;
    border-radius: var(--radius-m);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #090e17;
    position: relative;
    flex-grow: 1;
}

.link-distance-tooltip {
    background: rgba(13, 23, 40, 0.92) !important;
    border: 1px solid rgba(0, 240, 255, 0.5) !important;
    color: #fff !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(6px) !important;
}

.link-distance-tooltip::before {
    border-top-color: rgba(13, 23, 40, 0.92) !important;
}

.info-group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.info-val {
    font-size: 0.95rem;
    color: var(--color-text-title);
    font-weight: 600;
    display: block;
}

.preview-modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

/* PIN de cliente personalizado en mapa Leaflet */
.custom-client-marker {
    background: transparent;
    border: none;
}

.client-marker-pin {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 2px solid #000;
    color: #000;
    position: relative;
    z-index: 10;
    transition: var(--transition);
}

.client-marker-pin.verificado {
    background: var(--color-success);
    color: #000;
}

.client-marker-pin.prospección {
    background: var(--color-primary);
    color: #000;
}

.client-marker-pin.sincronizado {
    background: #e040fb;
    color: #fff;
}

.client-marker-pin i {
    width: 16px;
    height: 16px;
}

.client-marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    z-index: 5;
    pointer-events: none;
    animation: clientMarkerPulseAnim 2s infinite ease-out;
}

.custom-client-marker .verificado + .client-marker-pulse {
    border: 2px solid var(--color-success);
    background: rgba(0, 230, 118, 0.15);
}

.custom-client-marker .prospección + .client-marker-pulse {
    border: 2px solid var(--color-primary);
    background: rgba(0, 240, 255, 0.15);
}

.custom-client-marker .sincronizado + .client-marker-pulse {
    border: 2px solid #e040fb;
    background: rgba(224, 64, 251, 0.15);
}

@keyframes clientMarkerPulseAnim {
    0% {
        width: 32px;
        height: 32px;
        opacity: 0.8;
    }
    100% {
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .preview-modal-layout {
        flex-direction: column;
        gap: 20px;
    }
    .preview-map-col {
        height: 300px;
    }
    #map-lead-preview {
        height: 260px;
    }
}

/* --- VALIDACIÓN DE IDENTIDAD CON NOSIS --- */
.preview-modal.nosis-success {
    border: 2px solid var(--color-success) !important;
    box-shadow: 0 0 25px rgba(0, 230, 118, 0.25) !important;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.preview-modal.nosis-warning {
    border: 2px solid var(--color-warning) !important;
    box-shadow: 0 0 25px rgba(255, 234, 0, 0.25) !important;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.preview-modal.nosis-danger {
    border: 2px solid var(--color-error) !important;
    box-shadow: 0 0 30px rgba(255, 51, 102, 0.35) !important;
    animation: nosisDangerPulse 2s infinite alternate;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

@keyframes nosisDangerPulse {
    0% {
        box-shadow: 0 0 15px rgba(255, 51, 102, 0.15);
    }
    100% {
        box-shadow: 0 0 35px rgba(255, 51, 102, 0.45);
    }
}

.nosis-banner {
    padding: 12px 16px;
    border-radius: var(--radius-m);
    font-size: 0.85rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 1px solid transparent;
}

.nosis-banner.success {
    background: rgba(0, 230, 118, 0.08);
    border-color: rgba(0, 230, 118, 0.2);
    color: #b9ffd4;
}

.nosis-banner.warning {
    background: rgba(255, 234, 0, 0.08);
    border-color: rgba(255, 234, 0, 0.2);
    color: #fffde0;
}

.nosis-banner.danger {
    background: rgba(255, 51, 102, 0.08);
    border-color: rgba(255, 51, 102, 0.2);
    color: #ffb8c6;
}

.nosis-banner i {
    flex-shrink: 0;
    margin-top: 2px;
}

.nosis-banner.success i {
    color: var(--color-success);
}

.nosis-banner.warning i {
    color: var(--color-warning);
}

.nosis-banner.danger i {
    color: var(--color-error);
}

.nosis-confirm-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-m);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nosis-confirm-box p {
    font-size: 0.8rem;
    color: var(--color-text-title);
    margin: 0;
    line-height: 1.4;
}

.nosis-confirm-actions {
    display: flex;
    gap: 10px;
}

/* ==================== NUEVAS CLASES: TAREAS PENDIENTES LEADS ==================== */
.task-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 200px;
}

.task-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.task-badge.done {
    background: rgba(0, 230, 118, 0.08);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.15);
}

.task-badge.pending {
    background: rgba(255, 152, 0, 0.08);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.15);
}

.task-badge.na {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Fila de lead visitado por técnico */
.lead-row-visited {
    background: rgba(0, 230, 118, 0.03) !important;
    border-left: 3px solid #00e676 !important;
}

.lead-row-visited td {
    opacity: 0.8;
}

.lead-row-visited:hover td {
    opacity: 1;
}

/* ==================== MEJORAS VISUALES DETALLES DE LEADS (GLASS CARDS & ICONS) ==================== */
.info-group-grid > div {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-s);
    padding: 10px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-group-grid > div:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.08);
    transform: translateY(-1px);
}

.info-label {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-label i {
    width: 12px;
    height: 12px;
    color: var(--color-primary);
    opacity: 0.9;
}

.info-val {
    font-size: 0.95rem;
    color: var(--color-text-title);
    font-weight: 700;
}

#map-lead-preview {
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden;
}

/* ==================== TARJETAS DE DATOS COPIABLES AL CLIC ==================== */
.copyable-card {
    cursor: pointer;
    position: relative;
}

.copyable-card::after {
    content: "Copiar";
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.58rem;
    color: var(--color-primary);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    text-transform: uppercase;
    font-weight: 700;
}

.copyable-card:hover::after {
    opacity: 1;
}

.copyable-card:active {
    transform: scale(0.99);
}

/* ==================== MEJORAS DE RESPONSIVIDAD GENERALES Y MÓVILES ==================== */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 12px;
    }
    
    .modal-card {
        padding: 24px 16px;
        max-height: calc(100vh - 24px);
    }
    
    /* Evitar que las acciones en pie de modal colapsen feo */
    .preview-modal-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch !important;
    }
    
    .preview-modal-footer .nosis-confirm-actions {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px;
        width: 100%;
    }
}

/* ==================== BOTÓN WHATSAPP PREMIUM (CIRCULAR) ==================== */
.btn-whatsapp:not(.btn) {
    background: #25d366;
    color: #ffffff !important;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    flex-shrink: 0;
}

.btn-whatsapp:not(.btn):hover {
    background: #20ba5a;
    transform: scale(1.2) rotate(8deg);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:not(.btn) i, .btn-whatsapp:not(.btn) svg {
    color: #ffffff !important;
    width: 12px !important;
    height: 12px !important;
    display: block;
}

/* ==================== ACORDEÓN DE PLANES ADICIONALES ==================== */
.btn-toggle-other-plans {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-main);
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--radius-m);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
    margin-bottom: 8px;
}

.btn-toggle-other-plans:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-toggle-other-plans i {
    transition: transform 0.2s ease;
}

/* ==================== FTTH INFRASTRUCTURE INVENTORY TAB ==================== */
.infra-layout {
    display: flex;
    gap: 20px;
    height: 700px;
    margin-top: 16px;
}
.infra-sidebar {
    width: 380px;
    min-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    padding: 20px;
    border-radius: var(--radius-l);
}
.infra-sidebar h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-title);
    margin-bottom: 4px;
}
.infra-sidebar h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-title);
    margin-top: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
}
.infra-map-container {
    flex: 1;
    position: relative;
    border-radius: var(--radius-l);
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: #000;
}
#map-infra-inventory {
    width: 100%;
    height: 100%;
}

/* Custom Marker Badges on Map */
.infra-marker-pin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    border: 2px solid #fff;
    transition: transform 0.2s;
}
.infra-marker-pin:hover {
    transform: scale(1.15);
}
.infra-marker-pin.olt { background: linear-gradient(135deg, #7b1fa2, #ab47bc); }
.infra-marker-pin.nap { background: linear-gradient(135deg, #00796b, #009688); }
.infra-marker-pin.botella { background: linear-gradient(135deg, #e65100, #ff9800); }
.infra-marker-pin.poste { background: linear-gradient(135deg, #455a64, #78909c); }
.infra-marker-pin.antena { background: linear-gradient(135deg, #2e7d32, #4caf50); }
.infra-marker-pin.proveedor { 
    background: linear-gradient(135deg, #00b0ff, #00e5ff); 
    border-color: #00e5ff;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.7);
}
.infra-marker-pin.proveedor svg { color: #021226 !important; }

/* FASE 122: Optical Multi-Buffer Cards & Breadcrumbs */
.infra-buffer-card {
    margin-top: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 10px 12px;
    border-radius: var(--radius-m);
    background: rgba(255,255,255,0.015);
    transition: all 0.2s ease;
}
.infra-buffer-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.02);
}
.buffer-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}
.buffer-tube-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.2);
}
.buffer-zone-tag {
    font-size: 0.7rem;
    color: var(--color-primary);
    background: rgba(0, 229, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    cursor: pointer;
}
.optical-trace-flow {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-m);
    border: 1px solid rgba(0, 229, 255, 0.2);
}
.optical-trace-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--color-text);
}
.optical-trace-step .step-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.optical-trace-step .step-arrow {
    margin-left: 8px;
    color: var(--color-primary);
    font-weight: 900;
}

/* Animations for fiber tracing */
@keyframes fiber-laser-pulse {
    0% { stroke-dashoffset: 20; }
    100% { stroke-dashoffset: 0; }
}
.leaflet-interactive.fiber-path-animated {
    stroke-dasharray: 6, 6;
    animation: fiber-laser-pulse 1s linear infinite;
}

/* NAP Ports Grid */
.nap-ports-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.nap-port-item {
    aspect-ratio: 1;
    border-radius: var(--radius-s);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.nap-port-item.free {
    background: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}
.nap-port-item.free:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: #4caf50;
}
.nap-port-item.used {
    background: rgba(156, 39, 176, 0.1);
    border-color: rgba(156, 39, 176, 0.2);
    color: #e040fb;
}
.nap-port-item.used:hover {
    background: rgba(156, 39, 176, 0.18);
    border-color: #e040fb;
}
.nap-port-item.damaged {
    background: rgba(244, 67, 54, 0.08);
    border-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
}
.nap-port-item.damaged:hover {
    background: rgba(244, 67, 54, 0.15);
    border-color: #f44336;
}

/* Fiber strands list */
.infra-strands-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}
.strand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 6px 10px;
    border-radius: var(--radius-s);
}
.strand-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.strand-badge {
    width: 14px;
    height: 14px;
    border-radius: var(--radius-s);
    border: 1px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}
.strand-num {
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-title);
}
.strand-color-name {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}
.strand-select-status {
    background: var(--color-bg-main);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: var(--radius-s);
    outline: none;
    cursor: pointer;
}

/* Splice closures */
.fusion-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.fusion-row {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 8px 12px;
    border-radius: var(--radius-s);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}
.fusion-desc {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-title);
    flex-wrap: wrap;
}
.btn-delete-fusion {
    background: none;
    border: none;
    color: #ff3366;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}
.btn-delete-fusion:hover {
    opacity: 1;
}

/* Photo uploader */
.infra-photo-box {
    margin-top: 8px;
    border: 1px díashed rgba(255,255,255,0.15);
    border-radius: var(--radius-m);
    padding: 16px;
    text-align: center;
    background: rgba(255,255,255,0.01);
    transition: border-color 0.2s;
    cursor: pointer;
}
.infra-photo-box:hover {
    border-color: var(--color-primary);
}
.infra-photo-preview {
    margin-top: 10px;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: var(--radius-m);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ==================== COBERTURA SEARCH TAB 2.0 (FASE 121) ==================== */
.coverage-layout {
    display: flex;
    gap: 16px;
    height: calc(100vh - 165px);
    min-height: 640px;
    margin-top: 12px;
}

.coverage-side-search {
    width: 480px;
    min-width: 460px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
    border-radius: var(--radius-l);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 18, 36, 0.65) !important;
    backdrop-filter: blur(16px);
}

.coverage-side-map {
    flex: 1;
    border-radius: var(--radius-l);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#map-coverage-search-preview {
    cursor: crosshair !important;
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
}

.search-input-wrapper input {
    flex: 1;
    border-radius: var(--radius-m);
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

.search-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.search-input-wrapper input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
    background: rgba(0, 0, 0, 0.6) !important;
    color: #ffffff !important;
}

/* Glow Badges FASE 121 */
.badge-coverage-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.35) 100%);
    border: 1px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
    color: #10b981;
    font-weight: 800;
    padding: 12px 16px;
    border-radius: var(--radius-m);
    text-align: center;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.badge-coverage-saturated {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.35) 100%);
    border: 1px solid rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
    color: #f59e0b;
    font-weight: 800;
    padding: 12px 16px;
    border-radius: var(--radius-m);
    text-align: center;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.badge-coverage-extended {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(202, 138, 4, 0.35) 100%);
    border: 1px solid rgba(234, 179, 8, 0.55);
    box-shadow: 0 0 16px rgba(234, 179, 8, 0.25);
    color: #facc15;
    font-weight: 800;
    padding: 12px 16px;
    border-radius: var(--radius-m);
    text-align: center;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.4);
}

.badge-coverage-wireless {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(0, 114, 255, 0.35) 100%);
    border: 1px solid rgba(0, 240, 255, 0.55);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
    color: #00f0ff;
    font-weight: 800;
    padding: 12px 16px;
    border-radius: var(--radius-m);
    text-align: center;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.badge-coverage-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.35) 100%);
    border: 1px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
    color: #ef4444;
    font-weight: 800;
    padding: 12px 16px;
    border-radius: var(--radius-m);
    text-align: center;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.coverage-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.coverage-detail-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    border-radius: var(--radius-m);
}

.coverage-detail-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.coverage-detail-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-title);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* recommended plans style */
.coverage-plans-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-title);
    margin: 20px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coverage-plans-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coverage-plan-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-m);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.coverage-plan-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.05);
}

.coverage-plan-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coverage-plan-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-title);
}

.coverage-plan-speed {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
}

.coverage-plan-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-title);
}

.btn-xs {
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: var(--radius-s);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: var(--color-text);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.25);
}


/* ==================== REDISEÑO DE HERO SPLIT-SCREEN Y SECCIÓN NOSOTROS ==================== */

.hero-map-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-search-box {
    position: relative;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 22, 43, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.1), 0 0 15px rgba(0, 240, 255, 0.05);
    backdrop-filter: blur(20px);
    max-width: 520px;
    width: 100%;
    transition: all 0.3s ease;
}
.hero-search-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.1), 0 0 25px rgba(0, 240, 255, 0.15);
}

.about-section {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(180deg, var(--color-brand-dark) 0%, var(--color-bg-main) 100%);
    border-top: 1px solid rgba(0, 240, 255, 0.05);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.about-card {
    padding: 32px;
    border-radius: var(--radius-l);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.01);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.about-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-m);
    background: rgba(0, 240, 255, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon-wrapper i {
    width: 24px;
    height: 24px;
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-title);
}

.about-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==================== CONTROL DE SEGURIDAD Y LISTA NEGRA ==================== */
.blacklist-danger-banner {
    background: rgba(255, 51, 102, 0.08) !important;
    border: 1.5px solid var(--color-error) !important;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.15) !important;
    border-radius: var(--radius-m);
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blacklist-row-warning {
    background: rgba(255, 51, 102, 0.04) !important;
    border-left: 4px solid var(--color-error) !important;
    transition: background-color 0.2s ease;
}

.blacklist-row-warning:hover {
    background: rgba(255, 51, 102, 0.07) !important;
}

.animate-pulse-red {
    animation: pulse-red 2s infinite ease-in-out;
}

/* ==================== BI INSIGHTS & RECOMMENDATIONS ==================== */
.insights-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-l);
    padding: 24px;
    margin-top: 24px;
    box-shadow: var(--shadow-m);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.insight-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-m);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 160px;
}

.insight-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.05);
}

.insight-card.border-danger { border-left: 3px solid var(--color-error); }
.insight-card.border-danger:hover {
    border-color: var(--color-error);
    box-shadow: 0 8px 20px rgba(255, 51, 102, 0.15);
}

.insight-card.border-success { border-left: 3px solid var(--color-success); }
.insight-card.border-success:hover {
    border-color: var(--color-success);
    box-shadow: 0 8px 20px rgba(0, 230, 118, 0.15);
}

.insight-card.border-warning { border-left: 3px solid var(--color-warning); }
.insight-card.border-warning:hover {
    border-color: var(--color-warning);
    box-shadow: 0 8px 20px rgba(255, 234, 0, 0.15);
}

.insight-card.border-info { border-left: 3px solid var(--color-secondary); }
.insight-card.border-info:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 8px 20px rgba(0, 114, 255, 0.15);
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.insight-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-s);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.insight-icon.danger {
    background: rgba(255, 51, 102, 0.1);
    color: var(--color-error);
}

.insight-icon.warning {
    background: rgba(255, 234, 0, 0.1);
    color: var(--color-warning);
}

.insight-icon.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.insight-icon.info {
    background: rgba(0, 229, 255, 0.1);
    color: var(--color-primary);
}

.insight-body {
    flex-grow: 1;
    margin-bottom: 12px;
}

.insight-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-title);
    margin-bottom: 4px;
    display: block;
}

.insight-desc {
    font-size: 0.85rem;
    color: var(--color-text-main);
    line-height: 1.4;
}

.insight-action {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: var(--radius-s);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.insight-action.danger {
    background: rgba(255, 51, 102, 0.08);
    color: #ff4d6d;
    border: 1px solid rgba(255, 51, 102, 0.15);
}

.insight-action.warning {
    background: rgba(255, 234, 0, 0.06);
    color: #ffd60a;
    border: 1px solid rgba(255, 234, 0, 0.1);
}

.insight-action.success {
    background: rgba(76, 175, 80, 0.06);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.12);
}

.insight-action.info {
    background: rgba(0, 229, 255, 0.06);
    color: #33ecff;
    border: 1px solid rgba(0, 229, 255, 0.12);
}

/* --- GOOGLE SIGN-IN STYLES --- */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.login-divider:not(:empty)::before {
    margin-right: .5em;
}

.login-divider:not(:empty)::after {
    margin-left: .5em;
}

.btn-google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-title);
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-s);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.btn-google-login:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-google-login:active {
    transform: scale(0.98);
}

.google-icon {
    width: 18px;
    height: 18px;
    display: block;
}

/* Google Chooser Modal Card */
.google-chooser-card {
    background: #15161a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    width: 100%;
    max-width: 420px;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    margin: auto;
    font-family: 'Roboto', 'Inter', sans-serif;
    position: relative;
    box-sizing: border-box;
}

.google-chooser-header {
    text-align: center;
    margin-bottom: 24px;
}

.google-logo-large {
    margin-bottom: 16px;
}

.google-chooser-header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #e8eaed;
    margin: 0 0 6px 0;
}

.google-chooser-header p {
    font-size: 0.95rem;
    color: #9aa0a6;
    margin: 0;
}

.google-chooser-header p .app-domain {
    color: #8ab4f8;
    font-weight: 500;
}

.google-accounts-list {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    max-height: 240px;
    overflow-y: auto;
}

.google-account-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.google-account-item:last-child {
    border-bottom: none;
}

.google-account-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.google-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #8ab4f8;
    color: #15161a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.google-account-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.google-account-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: #e8eaed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.google-account-email {
    font-size: 0.78rem;
    color: #9aa0a6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.google-chooser-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-link-google {
    background: transparent;
    border: none;
    color: #8ab4f8;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-start;
    padding: 8px 12px;
    margin-left: -12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-link-google:hover {
    background: rgba(138, 180, 248, 0.08);
}

.google-privacy-text {
    font-size: 0.72rem;
    color: #70757a;
    line-height: 1.4;
    text-align: justify;
}

/* ==========================================================================
   COLLAPSIBLE SIDEBAR SYSTEM
   ========================================================================== */

/* Transition for layout grid columns */
.admin-layout {
    transition: grid-template-columns 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Layout state when collapsed */
.admin-layout.sidebar-collapsed {
    grid-template-columns: 78px 1fr !important;
}

/* Transitions for sidebar structural properties */
.admin-sidebar {
    transition: padding 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-x: hidden !important;
}

/* Sidebar padding adaptation */
.admin-layout.sidebar-collapsed .admin-sidebar {
    padding: 24px 8px !important;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
}

/* Hide brand rest, subtitle tags, profile name/role and text labels when collapsed */
.admin-layout.sidebar-collapsed .logo-brand-rest,
.admin-layout.sidebar-collapsed .logo-tag,
.admin-layout.sidebar-collapsed .user-info,
.admin-layout.sidebar-collapsed .sidebar-menu li a span,
.admin-layout.sidebar-collapsed .sidebar-footer button span {
    display: none !important;
}

/* Center elements for icon-only layout */
.admin-layout.sidebar-collapsed .logo-wrapper {
    justify-content: center !important;
}

.admin-layout.sidebar-collapsed .user-profile {
    justify-content: center !important;
    gap: 0 !important;
    margin-top: 16px !important;
}

.admin-layout.sidebar-collapsed .sidebar-menu li a {
    justify-content: center !important;
    padding: 12px 0 !important;
    gap: 0 !important;
}

.admin-layout.sidebar-collapsed .sidebar-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Transform footer text buttons to compact circular icon buttons */
.admin-layout.sidebar-collapsed .sidebar-footer button {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.admin-layout.sidebar-collapsed .sidebar-footer button i {
    margin: 0 !important;
}

/* ==========================================================================
   CONNECTIVITY PING LED SYSTEM
   ========================================================================== */
.ping-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.ping-dot.online-pulse {
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: pulse-green-led 2s infinite;
}
.ping-dot.warning-pulse {
    background-color: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
    animation: pulse-yellow-led 2s infinite;
}
.ping-dot.offline-pulse {
    background-color: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    animation: pulse-red-led 2s infinite;
}

@keyframes pulse-green-led {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}
@keyframes pulse-yellow-led {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}
@keyframes pulse-red-led {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* ESTILOS DEL MONITOR DE RED */
.net-alert-card {
    padding: 10px 12px;
    border-radius: var(--radius-s);
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
}
.net-alert-card:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}
.net-alert-card.warning {
    border-left: 3px solid #ff9800;
}
.net-alert-card.critical {
    border-left: 3px solid #ff3b30;
}
.net-alert-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-title);
    margin-bottom: 2px;
}
.net-alert-meta {
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

/* Segmented Control styling (v7.9) */
.segmented-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2px;
    border-radius: var(--radius-m);
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.segment-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-s);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.segment-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.segment-btn.active {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-primary);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Alert Pill Buttons styling (v7.9) */
.alert-pill-btn {
    background: rgba(239, 68, 68, 0.02);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: rgba(239, 68, 68, 0.7);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-m);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alert-pill-btn i {
    width: 12px;
    height: 12px;
}

.alert-pill-btn:hover {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.3);
    color: rgb(239, 68, 68);
}

.alert-pill-btn.active {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgb(239, 68, 68);
    color: #fff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
    font-weight: 700;
}

#quick-filter-alert-ccq {
    background: rgba(245, 158, 11, 0.02);
    border-color: rgba(245, 158, 11, 0.15);
    color: rgba(245, 158, 11, 0.7);
}

#quick-filter-alert-ccq:hover {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.3);
    color: rgb(245, 158, 11);
}

#quick-filter-alert-ccq.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgb(245, 158, 11);
    color: #fff;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

/* Floating Map Style Selector and Highlight pin (v7.9.5) */
.map-style-btn.active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--color-primary) !important;
}

.highlight-glow {
    width: 38px !important;
    height: 38px !important;
    border: 3px solid #fff !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.8), 0 4px 15px rgba(0, 0, 0, 0.6) !important;
}

.highlight-pulse {
    animation: clientMarkerPulseAnimHighlight 1.5s infinite ease-out !important;
}

@keyframes clientMarkerPulseAnimHighlight {
    0% {
        width: 38px;
        height: 38px;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* ==========================================
   ELITE PREMIUM SEARCH BAR & CHIPS UX/UI
   ========================================== */
.glass-premium {
    background: rgba(10, 15, 30, 0.7) !important;
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), 
                inset 0 0 12px rgba(0, 240, 255, 0.05),
                0 0 20px rgba(0, 240, 255, 0.05) !important;
    border-radius: 20px !important;
    padding: 14px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 600px !important;
    width: 100%;
}

.glass-premium:focus-within {
    border-color: rgba(0, 240, 255, 0.4) !important;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5), 
                inset 0 0 18px rgba(0, 240, 255, 0.1),
                0 0 30px rgba(0, 240, 255, 0.15) !important;
    transform: translateY(-2px);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.input-icon-group {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.input-icon-group .search-icon {
    position: absolute;
    left: 14px;
    color: rgba(255, 255, 255, 0.4);
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-icon-group input:focus + .search-icon {
    color: var(--color-primary);
}

.input-icon-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 14px 16px 14px 46px !important;
    font-size: 0.95rem !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-icon-group input::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

.input-icon-group input:focus {
    background: rgba(0, 0, 0, 0.7) !important;
    border-color: rgba(0, 240, 255, 0.5) !important;
    box-shadow: inset 0 0 8px rgba(0, 240, 255, 0.15) !important;
    outline: none;
}

/* Botón Elite */
.btn-search-elite {
    background: linear-gradient(135deg, #00f0ff 0%, #0072ff 100%) !important;
    border: none !important;
    color: #0b0f19 !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.5px !important;
    padding: 14px 28px !important;
    border-radius: 14px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3) !important;
}

.btn-search-elite:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 240, 255, 0.5) !important;
    filter: brightness(1.1);
}

.btn-search-elite:active {
    transform: translateY(1px);
}

.btn-arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-search-elite:hover .btn-arrow-icon {
    transform: translateX(4px);
}

/* Chips de Formato de Búsqueda */
.search-chips-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-left: 4px;
}

.chip-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    margin-right: 4px;
}

.search-chip {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 100px !important;
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.search-chip i {
    width: 13px;
    height: 13px;
    color: #00f0ff;
}

.search-chip:hover {
    background: rgba(0, 240, 255, 0.1) !important;
    border-color: rgba(0, 240, 255, 0.3) !important;
    color: #00f0ff !important;
    transform: translateY(-1px);
}

.search-chip:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
    .glass-premium {
        border-radius: 16px !important;
        padding: 10px !important;
    }
    .search-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .input-icon-group input {
        padding: 12px 14px 12px 42px !important;
    }
    .btn-search-elite {
        justify-content: center;
        padding: 12px !important;
    }
    .search-chips-container {
        justify-content: flex-start;
    }
}

/* ==========================================
   ELITE PREMIUM MODAL & FORM FIELDS
   ========================================== */
#modal-hiring-form .modal-card {
    background: radial-gradient(circle at 10% 10%, rgba(16, 22, 42, 0.95) 0%, rgba(8, 12, 24, 0.98) 100%) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid rgba(0, 240, 255, 0.18) !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 
                0 0 40px rgba(0, 240, 255, 0.1),
                inset 0 0 15px rgba(0, 240, 255, 0.03) !important;
    border-radius: 24px !important;
    padding: 36px !important;
    max-width: 580px !important;
    max-height: 92vh !important;
    color: #ffffff !important;
    transition: all 0.4s ease;
}

#modal-hiring-form .modal-form-header h2 {
    font-size: 1.85rem !important;
    font-weight: 850 !important;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-align: left !important;
    margin-bottom: 6px !important;
}

#modal-hiring-form .modal-form-header p {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-align: left !important;
    margin-bottom: 24px !important;
}

/* Campos de Formulario Elite */
#modal-hiring-form .form-group-field {
    gap: 6px !important;
    margin-bottom: 18px !important;
}

#modal-hiring-form .form-group-field label {
    font-size: 0.82rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 650 !important;
    letter-spacing: 0.2px;
}

#modal-hiring-form .form-group-field input, 
#modal-hiring-form .form-group-field select {
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    padding: 13px 16px !important;
    border-radius: 12px !important;
    font-size: 0.92rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
}

#modal-hiring-form .form-group-field input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

#modal-hiring-form .form-group-field input:focus, 
#modal-hiring-form .form-group-field select:focus {
    background: rgba(0, 0, 0, 0.65) !important;
    border-color: rgba(0, 240, 255, 0.5) !important;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.2), 
                inset 0 0 8px rgba(0, 240, 255, 0.1) !important;
}

#modal-hiring-form .form-group-field.valid input {
    border-color: rgba(16, 185, 129, 0.6) !important;
    background: rgba(16, 185, 129, 0.03) !important;
}

#modal-hiring-form .form-group-field.invalid input {
    border-color: rgba(239, 68, 68, 0.6) !important;
    background: rgba(239, 68, 68, 0.03) !important;
}

/* Disclaimer de Seguridad */
#modal-hiring-form .form-security-disclaimer {
    background: rgba(0, 240, 255, 0.03) !important;
    border: 1px solid rgba(0, 240, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 24px 0 !important;
}

#modal-hiring-form .form-security-disclaimer i {
    color: #00f0ff !important;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#modal-hiring-form .form-security-disclaimer span {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.4 !important;
}

/* Botón de Confirmación */
#modal-hiring-form #btn-submit-hiring {
    background: linear-gradient(135deg, #00f0ff 0%, #0072ff 100%) !important;
    border: none !important;
    color: #0b0f19 !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.5px !important;
    padding: 16px !important;
    border-radius: 14px !important;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    margin-top: 10px;
}

#modal-hiring-form #btn-submit-hiring:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5) !important;
    filter: brightness(1.1);
}

#modal-hiring-form #btn-submit-hiring:active {
    transform: translateY(1px);
}

/* Step 2 Nosis Panel Styling */
#panel-step-2 .glass {
    background: radial-gradient(circle at 5% 5%, rgba(18, 25, 47, 0.85) 0%, rgba(9, 13, 26, 0.96) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 32px !important;
}

#panel-step-2 h4 {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #00f0ff 0%, #00bcff 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

#panel-step-2 .form-control {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease;
}

#panel-step-2 .form-control:focus {
    border-color: rgba(0, 240, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15) !important;
}

#panel-step-2 .btn-secondary {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.12) 0%, rgba(0, 114, 255, 0.08) 100%) !important;
    border: 1px solid rgba(0, 240, 255, 0.35) !important;
    color: #00f0ff !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
}

#panel-step-2 .btn-secondary:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.25) 0%, rgba(0, 114, 255, 0.18) 100%) !important;
    border-color: rgba(0, 240, 255, 0.7) !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2) !important;
}

#step2-nosis-status-badge {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#panel-step-2 .btn-primary {
    background: linear-gradient(135deg, #00f0ff 0%, #0072ff 100%) !important;
    border: none !important;
    color: #0b0f19 !important;
    font-weight: 800 !important;
    padding: 14px 24px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25) !important;
    transition: all 0.3s ease !important;
}

#panel-step-2 .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4) !important;
    filter: brightness(1.1);
}

/* Keyframes and classes for premium breathing NOC telemetry rings */
@keyframes telemetry-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 6px var(--glow-color), inset 0 0 3px var(--glow-color);
        border-color: var(--border-color);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 12px var(--glow-color), inset 0 0 6px var(--glow-color);
        border-color: var(--glow-color);
    }
}
.telemetry-indicator-ring {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.telemetry-indicator-ring:hover {
    transform: scale(1.22) translateY(-2px) !important;
    border-color: var(--hover-color) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 18px var(--hover-color), inset 0 0 10px var(--hover-color) !important;
    filter: brightness(1.25);
    animation-play-state: paused;
}

/* Card-style table rows from user mockup */
.admin-table {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    background: transparent !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}
.admin-table tbody tr {
    background: rgba(16, 23, 41, 0.96) !important; /* Más opaco para mejor contraste */
    border-radius: 8px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}
.admin-table tbody tr:hover {
    background: rgba(26, 36, 62, 0.98) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
}
.admin-table th, .admin-table td {
    padding: 16px 14px !important;
    vertical-align: middle !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}
.admin-table th {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
/* Aumentar contraste de textos secundarios y muted dentro de las celdas de la tabla */
.admin-table td, .admin-table td strong {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.admin-table td [style*="--color-text-muted"], 
.admin-table td span[style*="color: var(--color-text-muted)"],
.admin-table td div[style*="color: var(--color-text-muted)"],
.admin-table td .text-muted {
    color: #9cb2e2 !important; /* Más claro/nítido que el muted original para legibilidad */
}
.admin-table th:first-child, .admin-table td:first-child {
    padding-left: 24px !important;
}
.admin-table th:last-child, .admin-table td:last-child {
    padding-right: 24px !important;
}
.admin-table td {
    border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}
.admin-table td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}
.admin-table td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* Enlarge text and buttons in admin table */
.admin-table {
    font-size: 0.94rem !important;
}
.admin-table th {
    font-size: 0.88rem !important;
}
.admin-table td button.btn {
    font-size: 0.78rem;
    padding: 6px 12px;
}
.admin-table td button.btn i {
    width: 13px;
    height: 13px;
}


/* Blinking Critical Alert Row Highlight */
@keyframes critical-blink {
    0%, 100% {
        background: rgba(255, 59, 48, 0.07) !important;
        box-shadow: 0 0 10px rgba(255, 59, 48, 0.15);
    }
    50% {
        background: rgba(255, 59, 48, 0.18) !important;
        box-shadow: 0 0 20px rgba(255, 59, 48, 0.35);
    }
}
.critical-alarm-row-highlight {
    animation: critical-blink 2s infinite ease-in-out !important;
    border-color: rgba(255, 59, 48, 0.5) !important;
}

/* Blinking red glow KPI card */
@keyframes kpi-red-blink {
    0%, 100% {
        box-shadow: 0 5px 15px -5px rgba(255, 51, 102, 0.15), 0 0 1px 1px rgba(255, 51, 102, 0.2);
        border-color: rgba(255, 51, 102, 0.2);
        background: rgba(255, 51, 102, 0.03);
    }
    50% {
        box-shadow: 0 10px 25px -5px rgba(255, 51, 102, 0.4), 0 0 3px 3px rgba(255, 51, 102, 0.5);
        border-color: rgba(255, 51, 102, 0.7);
        background: rgba(255, 51, 102, 0.08);
    }
}
.kpi-card.glow-red-blinking {
    animation: kpi-red-blink 1.5s infinite ease-in-out !important;
    border: 1px solid rgba(255, 51, 102, 0.4) !important;
}

/* Cinema Mode (Pantalla Completa) and Stretching Layout Rules */
.preview-modal-layout {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}
.preview-modal-layout.map-expanded {
    grid-template-columns: 1fr !important;
}
.preview-modal-layout.map-expanded #preview-col-1,
.preview-modal-layout.map-expanded #preview-col-3 {
    display: none !important;
}
.preview-modal-layout.map-expanded #map-lead-preview {
    height: 100% !important;
}
.preview-modal-layout.map-expanded .map-preview-container-wrapper {
    height: 100% !important;
    flex: 1;
}
.preview-modal {
    transition: max-width 0.3s ease, width 0.3s ease, max-height 0.3s ease;
}
.preview-modal.modal-expanded {
    max-width: 98% !important;
    width: 98% !important;
    max-height: 95vh !important;
}

/* Auto-stretching elements on resize (Eliminating empty spaces) */
#preview-col-1,
#preview-col-2,
#preview-col-3 {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    height: auto !important;
    min-height: 0;
}
#preview-col-1 > div,
#preview-col-3 > div {
    margin-bottom: 0;
}

/* Columna Central (Mapa) */
#preview-col-2 > .glass {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
}
#preview-col-2 .map-preview-container-wrapper {
    flex: 1;
    min-height: 250px;
    height: 100% !important; /* Sobrescribir el inline de 580px */
}

/* Columna Derecha (Comentarios/Bitácora) */
.preview-comments-section {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 100px;
    height: 125px;
}
#lead-comments-list {
    flex: 1 !important;
    max-height: 55px !important;
    overflow-y: auto !important;
}

/* Columna Izquierda (Diagnósticos) */
#preview-diagnostics-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
#preview-diagnostics-box > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Resizer handles for draggable modal borders & corners */
.preview-modal {
    position: relative;
    user-select: none;
}
.resizer {
    position: absolute;
    z-index: 10010;
    background: transparent;
}
/* Edges */
.resizer-r {
    cursor: e-resize;
    width: 8px;
    right: -4px;
    top: 0;
    bottom: 0;
}
.resizer-l {
    cursor: w-resize;
    width: 8px;
    left: -4px;
    top: 0;
    bottom: 0;
}
.resizer-b {
    cursor: s-resize;
    height: 8px;
    bottom: -4px;
    left: 0;
    right: 0;
}
.resizer-t {
    cursor: n-resize;
    height: 8px;
    top: -4px;
    left: 0;
    right: 0;
}
/* Corners */
.resizer-br {
    cursor: se-resize;
    width: 14px;
    height: 14px;
    right: -5px;
    bottom: -5px;
}
.resizer-bl {
    cursor: sw-resize;
    width: 14px;
    height: 14px;
    left: -5px;
    bottom: -5px;
}
.resizer-tr {
    cursor: ne-resize;
    width: 14px;
    height: 14px;
    right: -5px;
    top: -5px;
}
.resizer-tl {
    cursor: nw-resize;
    width: 14px;
    height: 14px;
    left: -5px;
    top: -5px;
}

/* Specific Column Widths for Clientes Table */
#clientes-table {
    table-layout: fixed !important;
    width: 100% !important;
}
#clientes-table th:nth-child(1), #clientes-table td:nth-child(1) {
    width: 22% !important;
    min-width: 200px !important;
    text-align: left;
}
#clientes-table th:nth-child(2), #clientes-table td:nth-child(2) {
    width: 22% !important;
    min-width: 200px !important;
    text-align: left;
}
#clientes-table th:nth-child(3), #clientes-table td:nth-child(3) {
    width: 24% !important;
    min-width: 220px !important;
    text-align: left;
}
#clientes-table th:nth-child(4), #clientes-table td:nth-child(4) {
    width: 14% !important;
    min-width: 120px !important;
    text-align: left;
}
#clientes-table th:nth-child(5), #clientes-table td:nth-child(5) {
    width: 10% !important;
    min-width: 100px !important;
    text-align: left;
}
#clientes-table th:nth-child(6), #clientes-table td:nth-child(6) {
    width: 8% !important;
    min-width: 180px !important;
    text-align: center;
}

/* Premium Client Timeline Styles */
.client-timeline-container {
    position: relative;
    padding-left: 28px;
    margin-left: 10px;
}
.client-timeline-item {
    position: relative;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}
.client-timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-badge-dot {
    position: absolute;
    left: -39px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg-card);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
}
.timeline-content-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.timeline-content-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 240, 255, 0.25);
    background: rgba(0, 240, 255, 0.01);
}
.timeline-item-meta {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: 6px;
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 6px;
}

/* Wide Modal / Pestañas de Carga de Clientes */
.modal-card.wide-modal {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    padding-bottom: 8px;
}

.modal-tabs .tab-link {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modal-tabs .tab-link:hover {
    color: var(--color-primary-light);
}

.modal-tabs .tab-link.active {
    color: var(--color-primary);
    font-weight: bold;
    border-bottom-color: var(--color-primary);
}

.new-client-tab-panel {
    display: block;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
    padding-right: 8px;
}

.new-client-tab-panel.hidden {
    display: none !important;
}

/* Tooltip Trigger Icon */
.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    border-radius: 50%;
    font-size: 0.7rem;
    margin-left: 4px;
    cursor: help;
    vertical-align: middle;
    transition: background 0.2s ease;
}

.tooltip-trigger:hover {
    background: var(--color-primary);
    color: #000;
}

/* Custom Styles for Client Status and Timeline Events */
.status-badge.no-activa {
    background: rgba(142, 142, 147, 0.1) !important;
    border-color: rgba(142, 142, 147, 0.3) !important;
    color: #8e8e93 !important;
}

.timeline-badge-dot.pago {
    background-color: #00e676 !important;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.5) !important;
}

.timeline-badge-dot.reclamo {
    background-color: #ff3b30 !important;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.5) !important;
}

.timeline-badge-dot.baja {
    background-color: #ff9500 !important;
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.5) !important;
}

.timeline-badge-dot.retiro {
    background-color: #9c27b0 !important;
    box-shadow: 0 0 10px rgba(156, 39, 176, 0.5) !important;
}

.swal2-container {
    z-index: 999999 !important;
}


/* ==========================================================================
   GAMIFIED CLIENT WIZARD STYLES (NEW CLIENT FLOW)
   ========================================================================== */
.wizard-progress-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 24px;
    padding: 0 10px;
}

.wizard-progress-line {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.wizard-progress-line-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9500, #00f0ff, #30d158);
    transition: width 0.4s ease;
    width: 0%;
}

.wizard-progress-step-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1c1c1e;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--color-text-muted);
}

.wizard-progress-step-node.active {
    border-color: #00f0ff;
    background: rgba(0, 240, 255, 0.1);
    color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.wizard-progress-step-node.completed {
    border-color: #30d158;
    background: rgba(48, 209, 88, 0.15);
    color: #30d158;
    box-shadow: 0 0 8px rgba(48, 209, 88, 0.25);
}

.wizard-step-panel {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-step-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Quality Score Gauge */
.quality-gauge-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.01);
}

.quality-gauge-bar-outer {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.quality-gauge-bar-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff9500 0%, #ffcc00 40%, #00f0ff 70%, #30d158 100%);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Interactive inputs with neon indicators */
.neon-input-group {
    position: relative;
    margin-bottom: 18px;
}

.neon-input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.neon-input-field {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.neon-input-field:focus {
    outline: none;
    border-color: #00f0ff;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

/* Validation glow classes */
.neon-input-field.valid {
    border-color: #30d158 !important;
    background: rgba(48, 209, 88, 0.02) !important;
    box-shadow: 0 0 8px rgba(48, 209, 88, 0.15) !important;
}

.neon-input-field.invalid {
    border-color: #ff3b30 !important;
    background: rgba(255, 59, 48, 0.02) !important;
    box-shadow: 0 0 8px rgba(255, 59, 48, 0.15) !important;
}

/* On-the-fly badge unlocks */
@keyframes badgeUnlock {
    0% { transform: scale(0.6); opacity: 0; }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 12px var(--badge-glow)); }
    100% { transform: scale(1); opacity: 1; }
}

.achievement-badge-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 86px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.35;
    filter: grayscale(100%);
}

.achievement-badge-card.unlocked {
    opacity: 1;
    filter: grayscale(0%);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(48, 209, 88, 0.3);
    animation: badgeUnlock 0.5s ease forwards;
}

.achievement-badge-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ==========================================================================
   ADVANCED WIZARD STYLES (OTP, GEOCODING & FRAUD ALERTS)
   ========================================================================== */
.otp-btn-container {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.btn-otp {
    padding: 8px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #00f0ff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.btn-otp:hover {
    background: rgba(0, 240, 255, 0.22);
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
}

.btn-otp.verified {
    background: rgba(48, 209, 88, 0.15) !important;
    border-color: rgba(48, 209, 88, 0.35) !important;
    color: #30d158 !important;
    cursor: default;
    box-shadow: none !important;
}

/* Formatted Address Preview Box */
.address-preview-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.address-preview-value {
    font-family: monospace;
    font-size: 0.82rem;
    color: #00f0ff;
    font-weight: 700;
    word-break: break-all;
    margin-top: 4px;
}

/* Step 4 Coherence Alert Box */
.coherence-alerts-wrapper {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.coherence-alert-item {
    background: rgba(255, 149, 0, 0.08);
    border: 1px solid rgba(255, 149, 0, 0.25);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.78rem;
    color: #ff9500;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.3;
}

.coherence-alert-item.critical {
    background: rgba(255, 59, 48, 0.08);
    border: 1px solid rgba(255, 59, 48, 0.25);
    color: #ff3b30;
}

.coherence-alert-item.info {
    background: rgba(0, 122, 255, 0.08);
    border: 1px solid rgba(0, 122, 255, 0.25);
    color: #007aff;
}

/* Fraud Score Visual Gauge */
.fraud-gauge-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.fraud-pill {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fraud-pill.low {
    background: rgba(48, 209, 88, 0.15);
    color: #30d158;
    border: 1px solid rgba(48, 209, 88, 0.3);
}

.fraud-pill.medium {
    background: rgba(255, 149, 0, 0.15);
    color: #ff9500;
    border: 1px solid rgba(255, 149, 0, 0.3);
}

.fraud-pill.critical {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.3);
    animation: pulseGlowError 1.5s infinite alternate;
}

/* ===== V6.3.0: Wispro Sync Panel & Wizard Micro-Animations ===== */
.wispro-sync-panel {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.04), rgba(99, 102, 241, 0.04));
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 16px;
}

.wispro-sync-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wispro-sync-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wispro-sync-status-badge.connected {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: #00e676;
}

.wispro-sync-status-badge.disconnected {
    background: rgba(255, 59, 48, 0.12);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
}

.wispro-sync-progress-outer {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0;
}

.wispro-sync-progress-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #00f0ff, #00e676);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.wispro-sync-steps-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.wispro-sync-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
    transition: all 0.4s ease;
}

.wispro-sync-step-item.active {
    background: rgba(0, 240, 255, 0.06);
    border-color: rgba(0, 240, 255, 0.2);
    color: #00f0ff;
    animation: syncPulse 1.5s infinite;
}

.wispro-sync-step-item.completed {
    background: rgba(0, 230, 118, 0.06);
    border-color: rgba(0, 230, 118, 0.2);
    color: #00e676;
}

.wispro-sync-step-item.error {
    background: rgba(255, 59, 48, 0.08);
    border-color: rgba(255, 59, 48, 0.25);
    color: #ff3b30;
}

.wispro-sync-step-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.wispro-client-summary-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.wispro-client-summary-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.wispro-kyc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wispro-kyc-badge.passed {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: #00e676;
}

.wispro-kyc-badge.pending {
    background: rgba(255, 179, 0, 0.12);
    border: 1px solid rgba(255, 179, 0, 0.3);
    color: #ffb300;
}

.wispro-kyc-badge.failed {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.25);
    color: #ff3b30;
}

.wispro-payload-toggle {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    transition: all 0.2s;
}

.wispro-payload-toggle:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.15);
    color: #00f0ff;
}

.wispro-payload-code {
    display: none;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.72rem;
    color: #94a3b8;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.wispro-payload-code.visible {
    display: block;
}

/* Wizard step transitions */
.wizard-step-panel {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.wizard-step-panel.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Stepper node pulse animation */
.wizard-progress-step-node.active {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 240, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 40px rgba(0, 240, 255, 0.2); }
}

@keyframes syncPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Sync result card */
.wispro-sync-result {
    display: none;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.08), rgba(0, 240, 255, 0.05));
    border: 1px solid rgba(0, 230, 118, 0.25);
    border-radius: 10px;
    padding: 16px;
    margin-top: 14px;
    text-align: center;
}

.wispro-sync-result.visible {
    display: block;
    animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wispro-sync-result.error-result {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.08), rgba(255, 149, 0, 0.05));
    border-color: rgba(255, 59, 48, 0.25);
}

@keyframes pulseGlowError {
    0% { box-shadow: 0 0 5px rgba(255, 59, 48, 0.2); }
    100% { box-shadow: 0 0 15px rgba(255, 59, 48, 0.55); }
}

/* Fix invisible option text inside custom styled selects (Chrome/Edge on Windows) */
.neon-input-field option {
    background-color: #1c1c1e !important;
    color: #ffffff !important;
}

/* ==================== TRAZABILIDAD DE EQUIPOS STYLES (v17.40) ==================== */
.eq-timeline-item {
    position: relative;
    padding-left: 20px;
    padding-bottom: 16px;
}

.eq-timeline-item::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff9500;
    border: 2px solid #1c1c1e;
    box-shadow: 0 0 6px #ff9500;
    z-index: 2;
}

.eq-timeline-item.info::before {
    background: #00f0ff;
    box-shadow: 0 0 6px #00f0ff;
}

.eq-timeline-item.success::before {
    background: #30d158;
    box-shadow: 0 0 6px #30d158;
}

.eq-timeline-item.error::before {
    background: #ff3b30;
    box-shadow: 0 0 6px #ff3b30;
}

.eq-timeline-item:last-child {
    padding-bottom: 0;
}

.eq-card-interactive {
    transition: all 0.2s ease-in-out;
}

.eq-card-interactive:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 149, 0, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Network Map Fullscreen Overlay (v18.0) */
.map-fullscreen-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* ==================== FLOATING ORBS ANIMATION ==================== */
.hero-orbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    will-change: transform;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.3) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation: orbFloat1 12s ease-in-out infinite alternate;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 114, 255, 0.25) 0%, transparent 70%);
    top: 60%;
    right: 15%;
    animation: orbFloat2 10s ease-in-out infinite alternate;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, transparent 70%);
    bottom: 20%;
    left: 30%;
    animation: orbFloat3 14s ease-in-out infinite alternate;
}

.orb-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(100, 0, 255, 0.15) 0%, transparent 70%);
    top: 30%;
    right: 5%;
    animation: orbFloat4 16s ease-in-out infinite alternate;
}

.orb-5 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.12) 0%, transparent 70%);
    bottom: 10%;
    right: 40%;
    animation: orbFloat5 11s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -50px) scale(1.2); }
}

@keyframes orbFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 40px) scale(0.9); }
}

@keyframes orbFloat3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 20px) scale(1.15); }
}

@keyframes orbFloat4 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, -30px) scale(1.1); }
}

@keyframes orbFloat5 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(25px, -45px) scale(0.95); }
}

/* ==================== SCROLL REVEAL ANIMATIONS ==================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children animation */
.reveal-on-scroll .benefit-card,
.reveal-on-scroll .about-card,
.reveal-on-scroll .landing-plan-card,
.reveal-on-scroll .stat-item {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed .benefit-card,
.reveal-on-scroll.revealed .about-card,
.reveal-on-scroll.revealed .landing-plan-card,
.reveal-on-scroll.revealed .stat-item {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll.revealed .benefit-card:nth-child(1),
.reveal-on-scroll.revealed .about-card:nth-child(1),
.reveal-on-scroll.revealed .stat-item:nth-child(1) { transition-delay: 0.1s; }
.reveal-on-scroll.revealed .benefit-card:nth-child(2),
.reveal-on-scroll.revealed .about-card:nth-child(2),
.reveal-on-scroll.revealed .stat-item:nth-child(3) { transition-delay: 0.25s; }
.reveal-on-scroll.revealed .benefit-card:nth-child(3),
.reveal-on-scroll.revealed .about-card:nth-child(3),
.reveal-on-scroll.revealed .stat-item:nth-child(5) { transition-delay: 0.4s; }
.reveal-on-scroll.revealed .stat-item:nth-child(7) { transition-delay: 0.55s; }

/* ==================== STATS COUNTER BAR ==================== */
.stats-bar {
    padding: 60px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.02) 50%, transparent 100%);
    border-top: 1px solid rgba(0, 240, 255, 0.06);
    border-bottom: 1px solid rgba(0, 240, 255, 0.06);
    position: relative;
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-left: 2px;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.2), transparent);
}

/* ==================== BENEFIT CARDS ENHANCED HOVER ==================== */
.benefit-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.benefit-card:hover {
    transform: translateY(-8px) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 15px 30px rgba(0, 240, 255, 0.12) !important;
}

.benefit-card:hover .benefit-icon {
    color: var(--color-primary) !important;
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.benefit-icon {
    transition: all 0.3s ease !important;
}

/* ==================== ABOUT CARDS ENHANCED ==================== */
.about-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.about-card:hover {
    transform: translateY(-6px) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 15px 30px rgba(0, 240, 255, 0.1) !important;
}

.about-icon-wrapper {
    transition: all 0.3s ease !important;
}

.about-card:hover .about-icon-wrapper {
    background: rgba(0, 240, 255, 0.15) !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2) !important;
    transform: scale(1.1);
}

/* ==================== ANIMATED GRADIENT TEXT ==================== */
.text-gradient {
    background: linear-gradient(135deg, #00f0ff 0%, #0072ff 30%, #00f0ff 60%, #00e676 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==================== BADGE PULSE ==================== */
.badge {
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(0, 240, 255, 0); }
}

/* ==================== PREMIUM FOOTER STYLES ==================== */
.client-footer {
    background: linear-gradient(180deg, var(--color-bg-main) 0%, rgba(3, 5, 10, 1) 100%);
    border-top: 1px solid rgba(0, 240, 255, 0.08);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
    gap: 36px;
    margin-bottom: 48px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 12px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* ==================== HERO CTA BUTTON GLOW ==================== */
.btn-hero-cta {
    position: relative;
    overflow: hidden;
}

.btn-hero-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 240, 255, 0.15), transparent 30%);
    animation: rotateBorder 4s linear infinite;
    z-index: -1;
}

@keyframes rotateBorder {
    100% { transform: rotate(360deg); }
}

/* ==================== STATS BAR RESPONSIVE ==================== */
@media (max-width: 768px) {
    .stats-container {
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
    }
    .stat-divider {
        display: none;
    }
    .stat-item {
        flex: 1 1 40%;
    }
    .stat-number {
        font-size: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}



/* ==================== FLOATING INTERNET ICONS ==================== */
.floating-icons-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-icon {
    position: absolute;
    width: 32px;
    height: 32px;
    color: rgba(0, 240, 255, 0.12);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.float-icon svg {
    width: 100%;
    height: 100%;
}

/* Left column icons */
.fi-1 { top: 15%; left: 3%; animation: floatY 8s ease-in-out infinite alternate; }
.fi-2 { top: 40%; left: 6%; animation: floatY 10s ease-in-out infinite alternate-reverse; color: rgba(0, 114, 255, 0.1); width: 28px; height: 28px; }
.fi-3 { top: 65%; left: 2%; animation: floatY 12s ease-in-out infinite alternate; color: rgba(0, 240, 255, 0.08); width: 24px; height: 24px; }
.fi-4 { top: 85%; left: 5%; animation: floatY 9s ease-in-out infinite alternate-reverse; color: rgba(100, 0, 255, 0.1); width: 26px; height: 26px; }

/* Right column icons */
.fi-5 { top: 12%; right: 3%; animation: floatY 11s ease-in-out infinite alternate; color: rgba(0, 240, 255, 0.1); width: 26px; height: 26px; }
.fi-6 { top: 35%; right: 5%; animation: floatY 7s ease-in-out infinite alternate-reverse; color: rgba(0, 230, 118, 0.1); width: 30px; height: 30px; }
.fi-7 { top: 60%; right: 2%; animation: floatY 13s ease-in-out infinite alternate; color: rgba(0, 114, 255, 0.08); width: 22px; height: 22px; }
.fi-8 { top: 82%; right: 4%; animation: floatY 9.5s ease-in-out infinite alternate-reverse; color: rgba(0, 240, 255, 0.1); width: 28px; height: 28px; }

@keyframes floatY {
    0%   { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(8deg); }
}

/* Magnetism glow when cursor is near */
.float-icon.attracted {
    color: rgba(0, 240, 255, 0.35);
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
}

@media (max-width: 768px) {
    .floating-icons-layer { display: none; }
}

/* ==================== WIZARD MULTI-STEP FORM (ELITE UX) ==================== */
.wizard-header {
    text-align: center;
    margin-bottom: 24px;
}

.wizard-subtitle {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.wizard-progress {
    margin-top: 20px;
}

.wizard-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f0ff, #0072ff);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.wizard-steps-indicator {
    display: flex;
    justify-content: space-between;
    padding: 0 10%;
}

.wizard-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    transition: all 0.4s ease;
}

.wizard-dot.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: #00f0ff;
    color: #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.wizard-dot.completed {
    background: rgba(0, 230, 118, 0.15);
    border-color: #00e676;
    color: #00e676;
}

/* Wizard Viewport & Panels */
.wizard-viewport {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.wizard-panel {
    display: none;
    animation: wizardFadeIn 0.4s ease forwards;
}

.wizard-panel.active {
    display: block;
}

@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-panel.slide-out-left {
    display: block;
    animation: wizardSlideOutLeft 0.25s ease forwards;
}

.wizard-panel.slide-in-right {
    display: block;
    animation: wizardSlideInRight 0.35s ease forwards;
}

.wizard-panel.slide-out-right {
    display: block;
    animation: wizardSlideOutRight 0.25s ease forwards;
}

.wizard-panel.slide-in-left {
    display: block;
    animation: wizardSlideInLeft 0.35s ease forwards;
}

@keyframes wizardSlideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-30px); }
}

@keyframes wizardSlideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes wizardSlideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(30px); }
}

@keyframes wizardSlideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Wizard Panel Content */
.wizard-panel-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #00f0ff;
}

.wizard-panel-icon i, .wizard-panel-icon svg {
    width: 22px;
    height: 22px;
}

.wizard-panel-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-title);
    margin-bottom: 20px;
}

.field-required {
    color: #ff5252;
    font-weight: 700;
}

/* Wizard Button Row */
.wizard-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.wizard-btn-row .btn-ghost {
    flex: 0 0 auto;
}

.wizard-btn-row .wizard-btn-next,
.wizard-btn-row .wizard-btn-submit {
    flex: 1;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-main);
    padding: 12px 20px;
    border-radius: var(--radius-m);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
}

.wizard-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Address Preview Block */
.address-preview-block {
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: var(--radius-m);
    padding: 16px;
    margin-bottom: 20px;
}

.address-preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.address-preview-text {
    font-size: 0.95rem;
    color: var(--color-text-title);
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.address-preview-text.loading {
    color: var(--color-text-muted);
    font-style: italic;
}

.btn-edit-address {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 6px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.btn-edit-address:hover {
    color: var(--color-primary);
}

.address-fields-collapsible {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    margin-top: 12px;
    animation: wizardFadeIn 0.3s ease forwards;
}

/* Phone Prefix Badge */
.phone-input-wrapper {
    position: relative;
}

.phone-prefix-badge {
    position: absolute;
    left: 1px;
    top: 1px;
    bottom: 1px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: rgba(0, 240, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-m) 0 0 var(--radius-m);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    pointer-events: none;
    letter-spacing: 0.5px;
    z-index: 2;
}

.phone-input-wrapper input {
    padding-left: 60px !important;
}

/* Consent Checkbox */
.wizard-consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(0, 230, 118, 0.03);
    border: 1px solid rgba(0, 230, 118, 0.08);
    border-radius: var(--radius-m);
    cursor: pointer;
    margin-top: 16px;
    transition: border-color 0.2s ease;
}

.wizard-consent-check:hover {
    border-color: rgba(0, 230, 118, 0.2);
}

.wizard-consent-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00e676;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.wizard-consent-check span {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ==================== MICRO-UX ANIMATIONS ==================== */
@keyframes shakeField {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-6px); }
    30% { transform: translateX(5px); }
    45% { transform: translateX(-4px); }
    60% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
}

.field-shake {
    animation: shakeField 0.5s ease;
}

@keyframes flashValid {
    0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
    50% { box-shadow: 0 0 12px 2px rgba(0, 230, 118, 0.25); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.field-flash input {
    animation: flashValid 0.6s ease;
}

/* OTP auto-scale */
.otp-digit.filled {
    border-color: #00f0ff !important;
    color: #00f0ff !important;
    transform: scale(1.05);
    transition: all 0.15s ease;
}

/* Interactive Stepper */
.cobertura-stepper .step.completed {
    cursor: pointer;
}

.cobertura-stepper .step.completed:hover .step-num {
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.4);
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.cobertura-stepper .step.active .step-num {
    animation: stepPulse 2s infinite;
}

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(0, 240, 255, 0); }
}

/* Wizard button loading state */
.wizard-btn-submit.loading span {
    opacity: 0;
}

.wizard-btn-submit.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsive Wizard */
@media (max-width: 768px) {
    .wizard-viewport {
        min-height: 280px;
    }
    
    .wizard-panel .form-row-fields {
        grid-template-columns: 1fr;
    }
    
    .wizard-btn-row {
        flex-direction: column-reverse;
    }
    
    .wizard-btn-row .btn-ghost {
        width: 100%;
        justify-content: center;
    }
    
    .wizard-steps-indicator {
        padding: 0 5%;
    }
    
    .address-fields-collapsible .form-row-fields {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   FICHA PERFIL 360 BENTO BOX MODAL ELITE
   ========================================== */
.elite-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    color: white;
    width: 90%;
    max-width: 900px;
    padding: 0;
    margin: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}
.elite-modal:not([open]) {
    display: none !important;
}
.elite-modal[open] {
    display: block !important;
}
.elite-modal::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    padding: 20px;
}
.bento-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-close-modal {
    background: none;
    border: none;
    color: #ff3b30;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    font-weight: bold;
}

/* ==================== MENÚ CONTEXTUAL ÉLITE ==================== */
.elite-context-menu {
    position: fixed; /* Fijo a la pantalla para evadir el overflow de la tabla */
    z-index: 999999;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    padding: 4px 0;
    min-width: 200px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.elite-context-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.elite-context-menu li {
    list-style: none;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.elite-context-menu li:hover { background: rgba(0, 240, 255, 0.1); color: #00f0ff; }
.elite-context-menu li.danger:hover { background: rgba(255, 59, 48, 0.15); color: #ff3b30; }

/* ==================== FORMULARIOS ÉLITE ==================== */
.elite-input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}
.elite-input:focus {
    outline: none;
    border-color: #00f0ff;
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}
.elite-input::placeholder { color: rgba(255, 255, 255, 0.3); }
.link-result-item {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}
.link-result-item:hover { background: rgba(0, 240, 255, 0.05); }

/* ==================== KANBAN BOARD ÉLITE ==================== */
.kanban-board {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    height: calc(100vh - 200px);
    overflow-x: auto;
    align-items: flex-start;
}
.kanban-column {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: 320px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    max-height: 100%;
}
.kanban-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kanban-title { font-weight: 800; color: #fff; font-size: 0.95rem; }
.kanban-count { background: rgba(0, 240, 255, 0.2); color: #00f0ff; padding: 4px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; }
.kanban-body {
    padding: 16px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.kanban-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px;
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
    touch-action: manipulation; /* Optimiza el toque en móviles */
    user-select: none; /* Evita que el texto se sombree al arrastrar */
    -webkit-user-select: none;
}
/* Clase fantasma que SortableJS aplica a la tarjeta mientras se arrastra */
.kanban-ghost {
    opacity: 0.4;
    background: rgba(0, 240, 255, 0.1);
    border: 1px dashed #00f0ff;
}
.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    border-color: rgba(0, 240, 255, 0.4);
}
.kanban-card:active { cursor: grabbing; }
.card-badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 0.65rem; font-weight: 800; margin-bottom: 8px; text-transform: uppercase; }
.bg-danger { background: rgba(255, 59, 48, 0.15); color: #ff3b30; border: 1px solid rgba(255, 59, 48, 0.3); }
.card-client { font-weight: 700; color: #fff; font-size: 0.9rem; margin-bottom: 4px; }
.card-address { color: #94a3b8; font-size: 0.75rem; margin-bottom: 12px; }
.card-footer { font-size: 0.7rem; color: rgba(255,255,255,0.4); text-align: right; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 8px; }

/* ==================== FICHA PERFIL V2.0 ==================== */
.copyable { cursor: pointer; transition: color 0.2s; position: relative; }
.copyable:hover { color: #00f0ff !important; text-shadow: 0 0 8px rgba(0, 240, 255, 0.4); }
.copyable::after { content: "📋 Copiar"; position: absolute; right: -60px; font-size: 0.65rem; background: rgba(0,0,0,0.8); padding: 2px 6px; border-radius: 4px; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.copyable:hover::after { opacity: 1; }

.btn-contact { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 800; border: none; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.btn-wsp { background: rgba(37, 211, 102, 0.15); color: #25D366; border: 1px solid rgba(37, 211, 102, 0.3); }
.btn-wsp:hover { background: #25D366; color: #fff; }
.btn-mail { background: rgba(234, 67, 53, 0.15); color: #EA4335; border: 1px solid rgba(234, 67, 53, 0.3); }
.btn-mail:hover { background: #EA4335; color: #fff; }

#modal-map { height: 180px; width: 100%; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); margin-top: 10px; z-index: 1; }

/* ==================== FICHA PERFIL V2.5 (REFINAMIENTO) ==================== */
.bento-card {
    background: rgba(15, 23, 42, 0.4) !important; /* Más oscuro y elegante */
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}
.elite-map-pin {
    background: transparent;
    border: none;
}
.elite-pin-core {
    background: #00f0ff;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 12px 2px rgba(0, 240, 255, 0.8);
    animation: pulse-pin 2s infinite;
}
@keyframes pulse-pin {
    0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}







/* ==================== TABS ÉLITE (MODAL EDITAR) ==================== */
.elite-tabs-nav {
    display: flex;
    gap: 4px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(15, 23, 42, 0.3);
}

.elite-tab-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    padding: 14px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.elite-tab-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.02);
}

.elite-tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: rgba(139, 92, 246, 0.05);
}

.elite-tab-content {
    display: none;
    animation: eliteFadeIn 0.3s ease forwards;
}

.elite-tab-content.active {
    display: block;
}

@keyframes eliteFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== TOGGLE SWITCHES ÉLITE ==================== */
.elite-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.elite-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.elite-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.elite-toggle-slider:before {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: #94a3b8;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.elite-toggle input:checked + .elite-toggle-slider.neon-cyan {
    background-color: rgba(0, 240, 255, 0.2);
    border-color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3), inset 0 2px 4px rgba(0,0,0,0.3);
}

.elite-toggle input:checked + .elite-toggle-slider.neon-cyan:before {
    background-color: #00f0ff;
    transform: translateX(20px);
    box-shadow: 0 0 8px #00f0ff;
}

.elite-toggle input:checked + .elite-toggle-slider.neon-green {
    background-color: rgba(0, 230, 118, 0.2);
    border-color: #00e676;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.3), inset 0 2px 4px rgba(0,0,0,0.3);
}

.elite-toggle input:checked + .elite-toggle-slider.neon-green:before {
    background-color: #00e676;
    transform: translateX(20px);
    box-shadow: 0 0 8px #00e676;
}

/* ==================== FORMULARIOS ÉLITE (REFINAMIENTO V3) ==================== */

/* 1. Área de contenido del Modal con Scrollbar Personalizado */
.elite-modal-body {
    max-height: 65vh; /* Evita que el modal ocupe toda la pantalla */
    overflow-y: auto;
    padding: 20px;
    padding-right: 15px; /* Espacio para el scroll */
}
.elite-modal-body::-webkit-scrollbar {
    width: 6px;
}
.elite-modal-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}
.elite-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 4px;
}
.elite-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.6);
}

/* 2. Etiquetas (Labels) Legibles y Jerárquicas */
.elite-modal label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1; /* Gris claro con tinte azulado para contraste perfecto */
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 3. Inputs y Selects que respiran */
.elite-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 16px; /* Separación automática entre filas */
}
.elite-input:focus {
    outline: none;
    border-color: #00f0ff;
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
    background: rgba(15, 23, 42, 0.9);
}

/* 4. Cajas Elegantes para Toggles (El fix para la pestaña Facturación) */
.elite-toggle-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: background 0.2s;
}
.elite-toggle-box:hover {
    background: rgba(255, 255, 255, 0.05);
}
.elite-toggle-box label.elite-toggle-box-label {
    margin-bottom: 0; /* Anula el margin de los labels generales */
    color: #f8fafc;
    text-transform: none; /* Texto normal para que sea fácil de leer */
    font-size: 0.85rem;
    letter-spacing: 0;
}

/* 5. Botón de Guardado Premium */
.btn-save-elite {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 8px;
    margin-top: 10px;
    background: linear-gradient(90deg, #007bff, #00f0ff);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-save-elite:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

/* ==================== APPLE-STYLE MODAL ANIMATION ==================== */
.modal-overlay.hidden {
    display: none !important;
}
.modal-overlay {
    transition: opacity 0.3s ease;
}
.modal-content {
    transition: all 0.3s ease;
}
.modal-overlay:not(.hidden) .glass-premium,
.modal-overlay:not(.hidden) .glass-panel {
    animation: eliteModalSpring 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes eliteModalSpring {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.elite-modal-body {
    max-height: 80vh !important;
}

/* ==================== APPLE-STYLE DIALOG ==================== */
.elite-dialog {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 0;
    max-width: 1400px !important;
    width: 95% !important;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: white;
    /* Spring animation */
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}
.elite-dialog[open] {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.elite-dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.elite-dialog[open]::backdrop {
    opacity: 1;
}

/* Fix inner scroll */
.elite-tab-content {
    overflow-y: auto;
    max-height: 85vh;
}
.elite-tab-content::-webkit-scrollbar {
    width: 6px;
}
.elite-tab-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}

/* ==================== CENTERED APPLE-STYLE DIALOG ==================== */
.elite-dialog {
    border: 1px solid rgba(0, 240, 255, 0.3) !important;
    border-radius: 20px !important;
    padding: 0 !important;
    max-width: 1250px !important;
    width: 92% !important;
    background: rgba(11, 15, 25, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.15) !important;
    color: white !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.92) !important;
    margin: 0 !important;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease !important;
}
.elite-dialog[open] {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}
.elite-dialog::backdrop {
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* ==================== TOGGLE SWITCHES UNIFIED COLORS ==================== */
.elite-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(239, 68, 68, 0.2) !important;
    border: 1px solid #ef4444 !important;
    transition: .3s ease-in-out;
    border-radius: 34px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.elite-toggle-slider:before {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: #ef4444 !important;
    box-shadow: 0 0 8px #ef4444 !important;
    transition: .3s ease-in-out;
    border-radius: 50%;
}

.elite-toggle input:checked + .elite-toggle-slider {
    background-color: rgba(0, 240, 255, 0.2) !important;
    border-color: #00f0ff !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3), inset 0 2px 4px rgba(0,0,0,0.3) !important;
}

.elite-toggle input:checked + .elite-toggle-slider:before {
    background-color: #00f0ff !important;
    transform: translateX(20px) !important;
    box-shadow: 0 0 10px #00f0ff !important;
}

/* ==================== COMPACT NO-SCROLL LAYOUT ==================== */
.elite-dialog {
    max-height: 92vh !important;
    border-radius: 16px !important;
}
.modal-header {
    padding: 10px 20px !important;
}
.elite-tabs-nav {
    padding: 0 20px !important;
}
.elite-tab-content {
    padding: 12px 20px !important;
    max-height: 80vh !important;
}
.elite-input {
    padding: 6px 10px !important;
    font-size: 0.82rem !important;
    border-radius: 6px !important;
}
.elite-toggle-box {
    padding: 8px 12px !important;
    margin-bottom: 6px !important;
}
#edit-client-map {
    height: 180px !important;
}

/* ==================== SUPER COMPACT NO-SCROLL LAYOUT V10 ==================== */
.elite-dialog {
    max-height: 94vh !important;
    border-radius: 16px !important;
}
.modal-header {
    padding: 8px 16px !important;
}
.elite-tabs-nav {
    padding: 0 16px !important;
}
.elite-tab-content {
    padding: 10px 16px !important;
    max-height: 82vh !important;
}
.elite-input {
    padding: 4px 8px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    margin-top: 2px !important;
}
.elite-toggle-box {
    padding: 6px 10px !important;
    margin-bottom: 4px !important;
}
#edit-client-map {
    height: 160px !important;
    margin-top: 4px !important;
}

/* ==================== LEAFLET MAP CONTROLS & SATELLITE TOGGLE ==================== */
#edit-client-map {
    position: relative !important;
    min-height: 220px !important;
    height: 220px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 240, 255, 0.4) !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15) !important;
    overflow: hidden !important;
    background: #0f172a !important;
}

.leaflet-control-layers {
    background: rgba(11, 15, 25, 0.92) !important;
    border: 1px solid rgba(0, 240, 255, 0.4) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6) !important;
    font-family: inherit !important;
}

.leaflet-control-layers-toggle {
    width: 32px !important;
    height: 32px !important;
    background-size: 20px 20px !important;
}

.leaflet-control-layers-base label {
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 4px !important;
}

/* ==================== ABSOLUTE NO-SCROLL MODAL CSS (V14) ==================== */
.elite-dialog {
    max-height: 94vh !important;
    height: auto !important;
    margin: auto !important;
    font-size: 0.8rem !important;
    overflow: hidden !important;
}

.elite-dialog .modal-content {
    overflow: hidden !important;
}

.elite-tab-content {
    max-height: 82vh !important;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    padding: 10px 16px !important;
}

.elite-input {
    padding: 3px 8px !important;
    height: 26px !important;
    font-size: 0.78rem !important;
    margin-top: 2px !important;
    line-height: 1.2 !important;
}

.elite-toggle-box {
    padding: 4px 10px !important;
    margin-bottom: 4px !important;
}

#edit-client-map {
    height: 140px !important;
    min-height: 140px !important;
    margin-top: 4px !important;
}

.modal-header {
    padding: 8px 16px !important;
}

.elite-tabs-nav {
    padding: 0 16px !important;
}




/* ==================== UNIVERSAL MODAL OVERLAY VISIBILITY (V20) ==================== */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(5, 8, 15, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

.modal-overlay.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.modal-overlay:not(.hidden) {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ==================== ABSOLUTE NO-SCROLL MODAL CSS (V22) ==================== */
body:has(.modal-overlay:not(.hidden)),
body:has(dialog[open]),
body:has(.elite-dialog[open]),
body.modal-open,
body:has(.swal2-container),
body:has(.swal2-shown) {
    overflow: hidden !important;
}


/* ==================== V24 ELITE MODAL REDESIGN ==================== */
/* Modal Layout & Glassmorphism */
.elite-modal-body {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(5, 8, 15, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    border-radius: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.elite-modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.elite-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.025em;
}

/* Glass Panels (Grouping Cards) */
.elite-glass-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}
.elite-glass-panel:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}
.elite-panel-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.elite-panel-title i {
    color: #38bdf8;
    font-size: 1rem;
}

/* Elite Inputs & Groups */
.elite-label {
    font-size: 0.75rem;
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.elite-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.elite-input-group i {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    pointer-events: none;
}

.elite-input-group .elite-input {
    padding-left: 40px !important; /* Space for icon */
}

.elite-input-group:focus-within i {
    color: #38bdf8; /* Highlight icon on focus */
}

.elite-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    color: #f8fafc;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.elite-input:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: #38bdf8;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.elite-input::placeholder {
    color: #475569;
}

/* Elite Tabs */
.elite-tabs-container {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.elite-tab-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.elite-tab-btn:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
}

.elite-tab-btn.active {
    color: #fff;
    background: #38bdf8;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

/* Elite Toggle Switches */
.elite-switch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.elite-switch-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
}

.elite-switch-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.elite-switch-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f8fafc;
}

.elite-switch-desc {
    font-size: 0.7rem;
    color: #64748b;
}

/* Leaflet Map Custom Overlay */
.elite-map-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.elite-map-layer-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.elite-map-layer-btn:hover {
    background: #38bdf8;
    border-color: #38bdf8;
}

/* Save Button */
.elite-btn-save {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.4), 0 8px 10px -6px rgba(14, 165, 233, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.elite-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.5), 0 8px 10px -6px rgba(14, 165, 233, 0.1);
}

.elite-btn-save:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px -3px rgba(14, 165, 233, 0.4);
}


/* ==================== V25 HYPER-ELITE MODAL DESIGN ==================== */
.elite-modal-body {
    background: #090d16 !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.05) 0px, transparent 50%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(14, 165, 233, 0.05) !important;
    border-radius: 20px !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* Elite Header */
.elite-modal-header {
    padding: 20px 28px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(255, 255, 255, 0.01) !important;
}

.elite-modal-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    letter-spacing: -0.01em !important;
}

/* Elite Segmented Tabs Control */
.elite-tabs-wrapper {
    display: flex !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 4px !important;
    border-radius: 12px !important;
    width: 100% !important;
}

.elite-tab-btn {
    flex: 1 !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 0.825rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.elite-tab-btn:hover {
    color: #f1f5f9 !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.elite-tab-btn.active {
    color: #ffffff !important;
    background: rgba(14, 165, 233, 0.2) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15) !important;
}

/* Glass Panels (Grouping Cards) */
.elite-glass-panel {
    background: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    padding: 20px !important;
    transition: border-color 0.3s ease !important;
}

.elite-glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.elite-panel-title {
    font-size: 0.725rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.elite-panel-title::before {
    content: '' !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #0ea5e9 !important;
    box-shadow: 0 0 8px #0ea5e9 !important;
}

/* Elite Labels & Inputs */
.elite-label {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.elite-input {
    width: 100% !important;
    background: rgba(6, 11, 22, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 9px 12px !important;
    color: #f1f5f9 !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.elite-input:focus {
    border-color: #38bdf8 !important;
    background: rgba(10, 18, 35, 0.9) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
}

select.elite-input {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    padding-right: 32px !important;
}

/* Elite Map Section */
.elite-map-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 220px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.elite-map-layer-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 1000 !important;
    background: rgba(9, 13, 22, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.elite-map-layer-btn:hover {
    background: #0ea5e9 !important;
    color: #fff !important;
    border-color: #0ea5e9 !important;
}

/* Save Button */
.elite-btn-save {
    width: 100% !important;
    padding: 13px 24px !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.elite-btn-save:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.45) !important;
    transform: translateY(-1px) !important;
}


/* ==================== V26 PROFESSIONAL MODAL DESIGN ==================== */
.pro-modal-body {
    background: #0b1120 !important;
    background-image: radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.05) 0px, transparent 50%),
                      radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.04) 0px, transparent 50%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9) !important;
    border-radius: 16px !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

.pro-modal-header {
    padding: 18px 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(15, 23, 42, 0.4) !important;
}

.pro-modal-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* 3-Tab Segmented Navbar */
.pro-tabs-wrapper {
    display: flex !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 4px !important;
    border-radius: 10px !important;
    gap: 4px !important;
}

.pro-tab-btn {
    flex: 1 !important;
    padding: 8px 14px !important;
    border-radius: 7px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.pro-tab-btn:hover {
    color: #f1f5f9 !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.pro-tab-btn.active {
    color: #ffffff !important;
    background: #0ea5e9 !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.3) !important;
}

/* Glass Panels */
.pro-glass-panel {
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
    padding: 18px !important;
}

.pro-panel-title {
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #38bdf8 !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Inputs and Selects (STRICT FIX FOR TEXT CLIPPING) */
.pro-label {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
    display: block !important;
}

.pro-input {
    width: 100 !important;
    width: 100% !important;
    height: 42px !important;
    line-height: 20px !important;
    box-sizing: border-box !important;
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    color: #f8fafc !important;
    font-size: 0.875rem !important;
    font-family: inherit !important;
    transition: all 0.15s ease !important;
    outline: none !important;
    vertical-align: middle !important;
}

textarea.pro-input {
    height: auto !important;
    min-height: 70px !important;
    line-height: 1.4 !important;
}

.pro-input:focus {
    border-color: #0ea5e9 !important;
    background: #1e293b !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2) !important;
}

select.pro-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    padding-right: 36px !important;
    cursor: pointer !important;
}

select.pro-input option {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    padding: 10px !important;
    font-size: 0.875rem !important;
}

/* Map Styling */
.pro-map-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 250px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.pro-map-layer-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 1000 !important;
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.pro-map-layer-btn:hover {
    background: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
}

/* Save Button */
.pro-btn-save {
    width: 100% !important;
    padding: 12px 24px !important;
    background: #0ea5e9 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3) !important;
}

.pro-btn-save:hover {
    background: #0284c7 !important;
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.45) !important;
}


/* ==================== V27 MAP & BUTTON REFINEMENTS ==================== */
.pro-map-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 380px !important; /* Maximized map height */
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.pro-btn-save-container {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 18px !important;
}

.pro-btn-save {
    width: auto !important;
    min-width: 180px !important;
    padding: 10px 24px !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25) !important;
}

.pro-btn-save:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4) !important;
    transform: translateY(-1px) !important;
}


/* ==================== V28 FINAL REFINEMENTS ==================== */
.pro-map-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 340px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.pro-btn-save-container {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 16px !important;
}

.pro-btn-save {
    width: auto !important;
    min-width: 200px !important;
    padding: 11px 26px !important;
    background: #0ea5e9 !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35) !important;
}

.pro-btn-save:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%) !important;
    box-shadow: 0 6px 22px rgba(14, 165, 233, 0.5) !important;
    transform: translateY(-1px) !important;
}


/* ==================== V29 MAP & DNI FINAL OVERRIDE ==================== */
#edit-client-map {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    position: relative !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #0f172a !important;
}

.pro-map-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 380px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

/* FORZAR MAYÚSCULAS EN CAMPOS DE TEXTO GENERALES */
input[type="text"], input[type="search"], textarea, .pro-input {
    text-transform: uppercase !important;
}

/* EXCEPCIÓN CRÍTICA: Preservar minúsculas y case-sensitivity estricta en Tokens, URLs y Passwords de Integraciones (PLAN-REPARACIÓN-SYNC-12) */
#wispro-api-token, #wispro-api-url, #wispro-cors-proxy, input[type="password"], input.keep-case, textarea.keep-case {
    text-transform: none !important;
}

/* ===== V4.3.0: Inspector Master-Detail de Contratos en Grilla ===== */
.contract-detail-row {
    animation: fadeInAccordion 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInAccordion {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contract-card-bento {
    transition: all 0.25s ease;
}

.contract-card-bento:hover {
    border-color: rgba(0, 240, 255, 0.5) !important;
    box-shadow: 0 6px 24px rgba(0, 240, 255, 0.12) !important;
    transform: translateY(-2px);
}

.btn-contracts-toggle.active {
    background: rgba(0, 240, 255, 0.25) !important;
    border-color: #00f0ff !important;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.4) !important;
}

/* ===== V6.4.0: Bento Grid Profile 360 & Timeline CSS ===== */
.bento-grid-360 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.bento-card-360 {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 20px;
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bento-card-360:hover {
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.08);
}

.bento-card-title-360 {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Timeline 360 */
.profile-timeline {
    position: relative;
    padding-left: 20px;
    margin-top: 12px;
    max-height: 260px;
    overflow-y: auto;
}

.profile-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item-360 {
    position: relative;
    margin-bottom: 14px;
    padding-bottom: 4px;
}

.timeline-dot-360 {
    position: absolute;
    left: -19px;
    top: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00f0ff;
    border: 2px solid #0b0f19;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.timeline-dot-360.create { background: #00e676; box-shadow: 0 0 8px rgba(0, 230, 118, 0.5); }
.timeline-dot-360.invoice { background: #3b82f6; box-shadow: 0 0 8px rgba(59, 130, 246, 0.5); }
.timeline-dot-360.payment { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
.timeline-dot-360.ticket { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
.timeline-dot-360.noc { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }

.timeline-content-360 {
    font-size: 0.82rem;
    color: #f1f5f9;
}

.timeline-date-360 {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 2px;
}

/* Scoring Ring */
.credit-score-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 14px;
}

.credit-score-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    flex-shrink: 0;
}

/* Relationships */
.relationship-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 0.8rem;
}

/* Blacklist Warning Box */
.blacklist-box-360 {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 8px;
}

.timeline-dot-360.kyc { background: #a855f7; box-shadow: 0 0 8px rgba(168, 85, 247, 0.5); }
.timeline-dot-360.note { background: #00f0ff; box-shadow: 0 0 8px rgba(0, 240, 255, 0.5); }


/* ===== V6.5.0: Timeline Journey Vertical Axis Style ===== */
.timeline-journey-wrapper {
    position: relative;
    padding: 20px 10px;
    max-height: 480px;
    overflow-y: auto;
}

.timeline-journey-axis {
    position: absolute;
    left: 50%;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background: linear-gradient(180deg, #00f0ff 0%, #a855f7 50%, #00e676 100%);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.timeline-journey-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.journey-item {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.journey-item.left {
    justify-content: flex-end;
}

.journey-item.left .journey-card {
    margin-right: calc(50% + 24px);
    text-align: right;
}

.journey-item.left .journey-card .journey-meta {
    justify-content: flex-end;
}

.journey-item.right {
    justify-content: flex-start;
}

.journey-item.right .journey-card {
    margin-left: calc(50% + 24px);
    text-align: left;
}

.journey-node-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0b0f19;
    border: 3px solid #00f0ff;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.8);
    z-index: 2;
    transition: all 0.3s ease;
}

.journey-node-dot.create { border-color: #00e676; box-shadow: 0 0 12px rgba(0, 230, 118, 0.8); }
.journey-node-dot.install { border-color: #00f0ff; box-shadow: 0 0 12px rgba(0, 240, 255, 0.8); }
.journey-node-dot.ticket { border-color: #f59e0b; box-shadow: 0 0 12px rgba(245, 158, 11, 0.8); }
.journey-node-dot.invoice { border-color: #3b82f6; box-shadow: 0 0 12px rgba(59, 130, 246, 0.8); }
.journey-node-dot.payment { border-color: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.8); }
.journey-node-dot.kyc { border-color: #a855f7; box-shadow: 0 0 12px rgba(168, 85, 247, 0.8); }
.journey-node-dot.noc { border-color: #ef4444; box-shadow: 0 0 12px rgba(239, 68, 68, 0.8); }

.journey-card {
    width: calc(50% - 30px);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    transition: all 0.25s ease;
}

.journey-card:hover {
    border-color: rgba(0, 240, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.12);
}

.journey-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.journey-detail {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.5;
}

.journey-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.journey-badge-date {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #00f0ff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.journey-badge-author {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .timeline-journey-axis { left: 16px; }
    .journey-item.left .journey-card,
    .journey-item.right .journey-card {
        margin-left: 40px !important;
        margin-right: 0 !important;
        width: calc(100% - 50px) !important;
        text-align: left !important;
    }
    .journey-node-dot { left: 16px; }
    .journey-item.left .journey-card .journey-meta { justify-content: flex-start; }
}


/* ===== V6.5.4: Timeline Dedicated Right Column Responsive Styling ===== */
.bento-card-360 .timeline-journey-wrapper {
    padding: 10px 4px;
    max-height: 560px;
    overflow-y: auto;
}

.bento-card-360 .timeline-journey-axis {
    left: 20px;
    transform: none;
}

.bento-card-360 .journey-node-dot {
    left: 20px;
    transform: translateX(-50%);
}

.bento-card-360 .journey-item.left .journey-card,
.bento-card-360 .journey-item.right .journey-card {
    margin-left: 44px !important;
    margin-right: 0 !important;
    width: calc(100% - 50px) !important;
    text-align: left !important;
}

.bento-card-360 .journey-item.left .journey-card .journey-meta,
.bento-card-360 .journey-item.right .journey-card .journey-meta {
    justify-content: flex-start !important;
}

@media (max-width: 1024px) {
    .fp-2col-layout {
        grid-template-columns: 1fr !important;
    }
}


/* ===== V6.5.5: Timeline Full Vertical Height & Continuous Axis Fix ===== */
.bento-card-360.timeline-card-container {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 560px !important;
    padding: 18px !important;
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(0, 240, 255, 0.3) !important;
    border-radius: 16px !important;
}

.timeline-journey-wrapper {
    position: relative;
    padding: 10px 4px 20px 4px;
    flex: 1;
    height: 100%;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

.timeline-journey-axis {
    display: none !important; /* Replaced by container pseudo-element for full stretch */
}

.timeline-journey-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-bottom: 12px;
}

.timeline-journey-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 12px;
    bottom: 24px;
    width: 3px;
    background: linear-gradient(180deg, #00f0ff 0%, #a855f7 50%, #00e676 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    z-index: 1;
}

.bento-card-360 .timeline-journey-wrapper {
    padding: 10px 4px 24px 4px;
    flex: 1;
    height: 100%;
    max-height: 620px;
    overflow-y: auto;
}

.bento-card-360 .journey-node-dot {
    left: 20px;
    transform: translateX(-50%);
    z-index: 3;
}

.bento-card-360 .journey-item.left .journey-card,
.bento-card-360 .journey-item.right .journey-card {
    margin-left: 44px !important;
    margin-right: 0 !important;
    width: calc(100% - 50px) !important;
    text-align: left !important;
}


/* ===== V6.5.6: Timeline Full Space Coverage & Historial del Cliente CSS ===== */
.bento-card-360.timeline-card-container {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 540px !important;
    padding: 18px !important;
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(0, 240, 255, 0.3) !important;
    border-radius: 16px !important;
}

.bento-card-360 .timeline-journey-wrapper {
    padding: 10px 4px 10px 4px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow-y: auto !important;
}

.bento-card-360 .timeline-journey-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 !important;
    min-height: 100% !important;
    gap: 16px !important;
    position: relative !important;
    padding-bottom: 12px !important;
}

.bento-card-360 .timeline-journey-container::before {
    content: '' !important;
    position: absolute !important;
    left: 20px !important;
    top: 12px !important;
    bottom: 16px !important;
    width: 3px !important;
    background: linear-gradient(180deg, #00f0ff 0%, #a855f7 50%, #00e676 100%) !important;
    border-radius: 2px !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5) !important;
    z-index: 1 !important;
}

.bento-card-360 .journey-item {
    flex: 0 0 auto !important;
}


/* ===== V6.5.7: Full Height Stretch & Continuous Axis for Historial del Cliente ===== */
.bento-card-360.timeline-card-container {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 18px !important;
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(0, 240, 255, 0.3) !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
}

.bento-card-360 .timeline-journey-wrapper {
    padding: 10px 4px 10px 4px !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

.bento-card-360 .timeline-journey-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 1 auto !important;
    min-height: 100% !important;
    gap: 16px !important;
    position: relative !important;
    padding-bottom: 20px !important;
}

.bento-card-360 .timeline-journey-axis {
    display: none !important;
}

.bento-card-360 .timeline-journey-container::before {
    content: '' !important;
    position: absolute !important;
    left: 20px !important;
    top: 14px !important;
    bottom: 28px !important;
    width: 3px !important;
    background: linear-gradient(180deg, #00f0ff 0%, #a855f7 50%, #00e676 100%) !important;
    border-radius: 2px !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.6) !important;
    z-index: 1 !important;
}

.bento-card-360 .journey-node-dot {
    left: 20px !important;
    transform: translateX(-50%) !important;
    z-index: 3 !important;
}

.bento-card-360 .journey-item.left .journey-card,
.bento-card-360 .journey-item.right .journey-card {
    margin-left: 44px !important;
    margin-right: 0 !important;
    width: calc(100% - 50px) !important;
    text-align: left !important;
}


/* ===== V6.6.6: Scrollbar Extremes Corner Bleed Fix ===== */
.bento-card-360.timeline-card-container {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 18px !important;
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(0, 240, 255, 0.3) !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
}

.bento-card-360 .timeline-journey-wrapper {
    padding: 10px 8px 10px 4px !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    border-radius: 12px !important;
}

.bento-card-360 .timeline-journey-wrapper::-webkit-scrollbar {
    width: 6px !important;
}

.bento-card-360 .timeline-journey-wrapper::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5) !important;
    border-radius: 10px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

.bento-card-360 .timeline-journey-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.4) !important;
    border-radius: 10px !important;
}

.bento-card-360 .timeline-journey-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.8) !important;
}


/* ==========================================================================
   V67.0.0 ÉLITE CONTRATOS GRID & GLASS BENTO CARD ROWS
   ========================================================================== */
.admin-table-elite {
    min-width: 1450px !important;
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    text-align: left;
    font-size: 0.85rem;
    table-layout: fixed;
}

.admin-table-elite thead th {
    padding: 12px 16px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    border: none;
    font-family: 'Outfit', sans-serif;
}

.admin-table-elite thead th:last-child,
.admin-table-elite tbody tr td:last-child {
    min-width: 215px !important;
    white-space: nowrap !important;
}

.admin-table-elite tbody tr {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
}

.admin-table-elite tbody tr:hover {
    background: rgba(15, 23, 42, 0.88) !important;
    border-color: rgba(0, 240, 255, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 22px rgba(0, 240, 255, 0.15) !important;
}

.admin-table-elite tbody tr td:first-child {
    border-top-left-radius: 14px !important;
    border-bottom-left-radius: 14px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.admin-table-elite tbody tr td:last-child {
    border-top-right-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.admin-table-elite tbody tr td {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

/* Pulsing LED dot for online connectivity status */
.pulse-led-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 8px #00e676;
    display: inline-block;
    animation: pulseLed 1.8s infinite;
}

@keyframes pulseLed {
    0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.pulse-led-offline {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 6px #ff3b30;
    display: inline-block;
}

/* Hover Action Button FX */
.btn-action-elite {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.btn-action-elite:hover {
    transform: scale(1.12);
}

/* ============================================================================
   T5.1.3: MOBILE TOUCH OPTIMIZATION FOR LEAFLET MAPS (≤480px)
   Gestos táctiles, scroll-lock prevention, layout responsive
   ============================================================================ */

/* Touch-action en contenedores de mapa para permitir scroll de página */
#map-client,
#map-admin-heatmap,
#map-admin-config,
#map-coverage-search-preview,
#map-infra-inventory,
#map-lead-preview,
#modal-map,
#edit-client-map,
#fp-modal-map,
#mora-map-container,
#map-tech-tracking {
    touch-action: none;
}

/* Overlay informativo de dos dedos para mobile */
.map-touch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 13, 26, 0.7);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 800;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    border-radius: inherit;
}

.map-touch-overlay.visible {
    opacity: 1;
}

/* Smartphone (≤480px) */
@media (max-width: 480px) {
    /* Altura ergonómica de mapa en mobile */
    .map-wrapper-outer {
        height: 380px !important;
        min-height: 350px !important;
    }

    #map-admin-heatmap,
    #map-admin-config,
    #map-coverage-search-preview {
        height: 300px !important;
        min-height: 280px !important;
    }

    /* Infraestructura FTTH: layout vertical en mobile */
    .infra-layout {
        flex-direction: column !important;
        height: auto !important;
        gap: 12px !important;
    }

    .infra-sidebar {
        width: 100% !important;
        max-height: 300px !important;
        order: 2 !important;
    }

    .infra-map-container {
        width: 100% !important;
        height: 320px !important;
        min-height: 280px !important;
        order: 1 !important;
    }

    #map-infra-inventory {
        height: 300px !important;
        min-height: 280px !important;
    }

    /* Reposicionar controles Leaflet para no superponerse */
    .leaflet-control-zoom {
        margin-top: 8px !important;
        margin-left: 8px !important;
    }

    .leaflet-control-zoom a {
        width: 36px !important;
        height: 36px !important;
        line-height: 36px !important;
        font-size: 18px !important;
    }

    /* Mapas en modales */
    #map-lead-preview,
    #modal-map,
    #edit-client-map,
    #fp-modal-map {
        height: 220px !important;
        min-height: 200px !important;
    }

    /* Controles flotantes de mapa en top-right para no solapar con tarjeta de cobertura */
    .map-floating-controls {
        top: 10px !important;
        right: 10px !important;
        bottom: auto !important;
        gap: 6px !important;
    }

    .pro-map-layer-btn {
        top: 10px !important;
        right: 10px !important;
        bottom: auto !important;
    }

    .btn-map-layer {
        padding: 8px 12px !important;
        font-size: 0.72rem !important;
        min-height: 40px !important;
    }
}

/* Tablet (≤768px) - Ajustes intermedios */
@media (max-width: 768px) and (min-width: 481px) {
    .infra-layout {
        flex-direction: column !important;
        height: auto !important;
    }

    .infra-sidebar {
        width: 100% !important;
        max-height: 350px !important;
    }

    .infra-map-container {
        width: 100% !important;
        height: 400px !important;
    }
}

/* ========================================================================== */
/* FASE 38: ESTILOS NOC ELITE & TELEMETRÍA GPON EN TIEMPO REAL                */
/* ========================================================================== */

@keyframes pulse-offline-noc {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.8), 0 0 10px #ff3b30;
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 59, 48, 0), 0 0 18px #ff3b30;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0), 0 0 10px #ff3b30;
    }
}

@keyframes pulse-nap {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 12px #ff3b30;
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 24px #ff3b30, 0 0 36px rgba(255, 59, 48, 0.6);
    }
}

@keyframes pulse-banner {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 59, 48, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 59, 48, 0.7);
    }
}

.noc-pulse-offline {
    animation: pulse-offline-noc 1.8s infinite ease-out;
}

@keyframes pulse-massive-noc {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.9), 0 0 14px #ff0055;
    }
    70% {
        box-shadow: 0 0 0 14px rgba(255, 0, 85, 0), 0 0 22px #ff0055;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 85, 0), 0 0 14px #ff0055;
    }
}

@keyframes pulse-dying-noc {
    0% {
        box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.8), 0 0 10px #c084fc;
    }
    70% {
        box-shadow: 0 0 0 12px rgba(192, 132, 252, 0), 0 0 18px #c084fc;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(192, 132, 252, 0), 0 0 10px #c084fc;
    }
}

.noc-pulse-massive {
    animation: pulse-massive-noc 1.2s infinite ease-out;
}

.noc-pulse-dying {
    animation: pulse-dying-noc 2.0s infinite ease-out;
}

/* Popups oscuros Leaflet de Alta Fidelidad para NOC */
.leaflet-popup.dark-popup .leaflet-popup-content-wrapper {
    background: rgba(10, 15, 30, 0.95) !important;
    border: 1px solid rgba(0, 240, 255, 0.25) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.15) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(12px) !important;
    color: #f8fafc !important;
    padding: 0 !important;
}

.leaflet-popup.dark-popup .leaflet-popup-content {
    margin: 0 !important;
    line-height: 1.4 !important;
}

.leaflet-popup.dark-popup .leaflet-popup-tip {
    background: rgba(10, 15, 30, 0.95) !important;
    border: 1px solid rgba(0, 240, 255, 0.25) !important;
}

/* ============================================================================
   FASE 67: TARJETAS DE PLANES COMERCIALES BENTO GLASSMORPHIC PREMIUM
   ============================================================================ */
.plans-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
    align-items: stretch;
}

.landing-plan-card {
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.landing-plan-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 240, 255, 0.15);
}

.landing-plan-card.highlight-plan-card {
    border: 1.5px solid rgba(0, 240, 255, 0.55);
    background: linear-gradient(180deg, rgba(15, 30, 55, 0.85) 0%, rgba(10, 20, 38, 0.8) 100%);
    box-shadow: 0 12px 35px rgba(0, 240, 255, 0.15), 0 0 20px rgba(0, 240, 255, 0.08);
}

.landing-plan-card .highlight-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #00f0ff 0%, #0077ff 100%);
    color: #030a16;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 6px 14px;
    border-bottom-left-radius: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.3);
    z-index: 2;
}

.plan-card-header {
    margin-bottom: 14px;
}

.plan-badges-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

.plan-tech-pill {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.plan-tech-pill.ftth {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.plan-tech-pill.antena {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.plan-symmetry-pill {
    background: rgba(0, 240, 255, 0.1);
    color: #00f0ff;
    border: 1px solid rgba(0, 240, 255, 0.3);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.plan-title {
    color: #f8fafc;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    line-height: 1.25;
}

/* Bloque Hero de Velocidad */
.plan-speed-box {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plan-speed-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.plan-speed-val {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1px;
}

.plan-speed-unit {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 800;
    color: #00f0ff;
    text-transform: uppercase;
}

.plan-speed-symmetry-tag {
    font-size: 0.78rem;
    color: #38bdf8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Lista de Características / Checklist */
.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.plan-feature-item .feat-icon {
    width: 17px;
    height: 17px;
    min-width: 17px;
    margin-top: 1px;
    color: #00e676;
}

.plan-feature-item strong {
    color: #f1f5f9;
}

.plan-feature-item .tag-charge {
    background: rgba(255, 183, 3, 0.15);
    color: #ffb703;
    border: 1px solid rgba(255, 183, 3, 0.35);
    padding: 1px 6px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Footer de Tarjeta */
.plan-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-price-block {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.plan-price-left {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price-currency {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: #00f0ff;
}

.plan-price-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.1rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.plan-price-period {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
}

.plan-price-caption {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: -8px;
}

.btn-plan-hire {
    width: 100%;
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 180, 216, 0.25);
}

.btn-plan-hire:hover {
    background: linear-gradient(135deg, #00f0ff 0%, #0096c7 100%);
    color: #030a16;
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

.highlight-plan-card .btn-plan-hire {
    background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);
    color: #030a16;
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.3);
}

.highlight-plan-card .btn-plan-hire:hover {
    background: linear-gradient(135deg, #00f0ff 0%, #00e676 100%);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5);
}

/* ============================================================================
   FASE 68: EFECTOS CINEMÁTICOS, PESTAÑAS SEGMENTADAS Y GRILLA HORIZONTAL
   ============================================================================ */

/* 1. Barra de Progreso de Scroll Superior */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    width: 0%;
    background: linear-gradient(90deg, #00f0ff 0%, #0077ff 50%, #00e676 100%);
    z-index: 9999999;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.9), 0 0 6px rgba(0, 230, 118, 0.8);
    transition: width 0.08s ease-out;
    pointer-events: none;
}

/* 2. Selector de Pestañas Segmentadas de Planes (Tabs) */
.plans-tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 32px auto 20px auto;
    max-width: 640px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.plans-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 40px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.plans-tab-btn i {
    width: 18px;
    height: 18px;
}

.plans-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.04);
}

.plans-tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(0, 119, 255, 0.2) 100%);
    color: #00f0ff;
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 4px 18px rgba(0, 240, 255, 0.2);
}

.plans-tab-btn .tab-pill-badge {
    background: rgba(0, 230, 118, 0.15);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.4);
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 3. Banner Informativo de Categoría */
.plans-category-banner {
    max-width: 820px;
    margin: 0 auto 32px auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 30px;
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.plans-category-banner .banner-icon {
    width: 18px;
    height: 18px;
    color: #00f0ff;
    flex-shrink: 0;
}

/* 4. Grilla Horizontal de 3 Columnas */
.plans-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 26px !important;
    margin-top: 10px;
    align-items: stretch !important;
}

@media (max-width: 1050px) {
    .plans-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)) !important;
    }
}

/* 5. Efectos Spotlight de Cursor y 3D Tilt */
.landing-plan-card,
.tool-card,
.benefit-card,
.about-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    will-change: transform;
}

.landing-plan-card::before,
.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at var(--mouse-x, -600px) var(--mouse-y, -600px),
        rgba(0, 240, 255, 0.14),
        transparent 45%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

.landing-plan-card:hover::before,
.tool-card:hover::before {
    opacity: 1;
}

/* 6. Grilla de Sellos Oficiales LACNIC / CABASE / ENACOM */
.footer-certifications-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 35px 0 25px 0;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    align-items: center;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: rgba(0, 240, 255, 0.06);
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

.cert-badge {
    background: #ffffff;
    color: #030a16;
    font-weight: 900;
    font-size: 0.72rem;
    padding: 6px 12px;
    border-radius: 8px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.cert-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cert-text strong {
    color: #f8fafc;
    font-size: 0.86rem;
    font-weight: 700;
}

.cert-text span {
    color: #94a3b8;
    font-size: 0.74rem;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .footer-certifications-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Z-Index Fix for SweetAlert2 over Modals */
.swal2-container { z-index: 1000000 !important; }

/* ==================== FASE 72: FACTURACIÓN, PAYSCORE Y SEGUIMIENTO ==================== */
.row-tracking-alert {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0.03) 100%) !important;
    border-left: 4px solid #ffd700 !important;
    box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.08) !important;
    animation: tracking-glow-pulse 3s infinite alternate ease-in-out;
}

@keyframes tracking-glow-pulse {
    0% { background: linear-gradient(90deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0.03) 100%); }
    100% { background: linear-gradient(90deg, rgba(255, 215, 0, 0.22) 0%, rgba(255, 215, 0, 0.06) 100%); }
}

.badge-tracking-alert {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid #ffd700;
    color: #ffd700;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
    animation: bell-pulse 2s infinite;
}

@keyframes bell-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-payscore {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.badge-payscore-aaa {
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid #00e676;
    color: #00e676;
}

.badge-payscore-a {
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid #00f0ff;
    color: #00f0ff;
}

.badge-payscore-b {
    background: rgba(255, 183, 3, 0.15);
    border: 1px solid #ffb703;
    color: #ffb703;
}

.badge-payscore-c {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid #ff3b30;
    color: #ff3b30;
}

.btn-action-billing {
    height: 28px;
    width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.btn-action-billing:hover {
    transform: translateY(-1px);
}

/* ==================== FASE 91: REDISEÑO FICHA TÉCNICA 360° & TIMELINE HISTÓRICO ==================== */
.ficha-nav-tab {
    padding: 6px 14px;
    font-size: 0.74rem;
    font-weight: 800;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #94a3b8;
    transition: all 0.2s ease;
    font-family: var(--font-display);
}

.ficha-nav-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.ficha-nav-tab.active {
    background: var(--color-primary);
    color: #051329;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

.timeline-filter-pill {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(13, 27, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.timeline-filter-pill:hover {
    color: #fff;
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.08);
}

.timeline-filter-pill.active {
    background: rgba(0, 240, 255, 0.2);
    border-color: #00f0ff;
    color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.timeline-stream-wrapper {
    position: relative;
    padding-left: 28px;
}

.timeline-stream-wrapper::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, #00f0ff 0%, rgba(0, 114, 255, 0.5) 50%, rgba(255, 255, 255, 0.05) 100%);
}

.timeline-item-card {
    position: relative;
    background: rgba(12, 22, 43, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.timeline-item-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    transform: translateX(2px);
}

.timeline-node-pin {
    position: absolute;
    left: -28px;
    top: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 2;
}

/* ⚡ ESTILOS FASE 92: TARJETA DE DIAGNÓSTICO FORENSE DE CONECTIVIDAD */
.connectivity-diagnostic-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.connectivity-diagnostic-card:hover {
    border-color: rgba(0, 240, 255, 0.35) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.badge-flapping-stable {
    background: rgba(0, 230, 118, 0.15) !important;
    border: 1px solid #00e676 !important;
    color: #00e676 !important;
}

.badge-flapping-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid #f59e0b !important;
    color: #f59e0b !important;
}

.badge-flapping-critical {
    background: rgba(244, 63, 94, 0.15) !important;
    border: 1px solid #f43f5e !important;
    color: #f43f5e !important;
}

.link-distance-tooltip {
    background: rgba(10, 17, 32, 0.92) !important;
    border: 1px solid #00f0ff !important;
    color: #fff !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
    padding: 3px 8px !important;
}

.pulse-led-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    animation: led-pulse 1.8s infinite;
}

@keyframes led-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   FASE 93: TABLA FORENSE DE CORTES & RESTITUCIONES DE SERVICIO (NOC)
   ========================================================================== */
.conn-history-table th, .conn-history-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.conn-history-table tbody tr {
    transition: background 0.2s ease;
}

.conn-history-table tbody tr:hover {
    background: rgba(0, 240, 255, 0.04);
}

.badge-outage-dying-gasp {
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid #f59e0b !important;
    color: #fbbf24 !important;
}

.badge-outage-los {
    background: rgba(244, 63, 94, 0.15) !important;
    border: 1px solid #f43f5e !important;
    color: #f43f5e !important;
}

.badge-outage-reconnected {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid #10b981 !important;
    color: #10b981 !important;
}

.badge-outage-ticket {
    background: rgba(0, 240, 255, 0.12) !important;
    border: 1px solid #00f0ff !important;
    color: #00f0ff !important;
}

/* ==========================================================================
   FASE 94: TARJETA DE SALUD INTEGRAL, ACORDEÓN TÉCNICO Y ORDENAMIENTO (NOC)
   ========================================================================== */
.health-score-card {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.22);
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(5, 12, 24, 0.98) 100%);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.health-score-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.12);
}

.health-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.health-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00f0ff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.health-header-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.health-header-subtitle {
    font-size: 0.68rem;
    color: #94a3b8;
}

.badge-health-optimal {
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid #00e676;
    color: #00e676;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
}

.badge-health-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid #f59e0b;
    color: #f59e0b;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
}

.badge-health-critical {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid #f43f5e;
    color: #f43f5e;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
}

.health-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.health-bento-tile {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.2s ease;
}

.health-bento-tile:hover {
    background: rgba(0, 240, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateY(-1px);
}

.health-tile-label {
    font-size: 0.68rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.health-tile-label i {
    width: 12px;
    height: 12px;
    color: #00f0ff;
}

.health-tile-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.health-tile-sub {
    font-size: 0.65rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Acordeón de Metadatos Técnicos en Timeline */
.timeline-meta-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 4px;
    font-size: 0.68rem;
    padding: 3px 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    transition: all 0.2s ease;
}

.timeline-meta-toggle-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: #00f0ff;
    color: #00f0ff;
}

.timeline-meta-panel {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 240, 255, 0.15);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 6px;
    font-size: 0.7rem;
}

.timeline-meta-item {
    display: flex;
    flex-direction: column;
}

.timeline-meta-item-label {
    color: #64748b;
    font-size: 0.62rem;
    text-transform: uppercase;
}

.timeline-meta-item-value {
    color: #e2e8f0;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-weight: 600;
}

/* Scrollbars temáticos cian */
#timeline-events-stream::-webkit-scrollbar,
.conn-history-table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#timeline-events-stream::-webkit-scrollbar-track,
.conn-history-table-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

#timeline-events-stream::-webkit-scrollbar-thumb,
.conn-history-table-container::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 3px;
}

#timeline-events-stream::-webkit-scrollbar-thumb:hover,
.conn-history-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.6);
}

/* ==========================================================================
   FASE 95: TELEMETRÍA ÓPTICA DE CAJAS NAP & MARGEN DE MEJORA (DELTA)
   ========================================================================== */
.nap-telemetry-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nap-telemetry-card:hover {
    border-color: rgba(0, 240, 255, 0.35) !important;
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.08);
}

.badge-delta-optimo {
    background: rgba(0, 230, 118, 0.15) !important;
    border: 1px solid #00e676 !important;
    color: #00e676 !important;
}

.badge-delta-moderado {
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid #ffd700 !important;
    color: #ffd700 !important;
}

.badge-delta-alta {
    background: rgba(255, 159, 10, 0.15) !important;
    border: 1px solid #ff9f0a !important;
    color: #ff9f0a !important;
}

.badge-delta-critico {
    background: rgba(244, 63, 94, 0.15) !important;
    border: 1px solid #ff3b30 !important;
    color: #ff3b30 !important;
}

/* ==========================================================================
   FASE 106: CONSOLA C4ISR MILITAR - MONITOREO DE RED NOC (ESPACIO & 4 VISTAS)
   ========================================================================== */

/* Barra de Comando C2 Táctica Superior */
.c2-command-bar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    height: 46px;
    z-index: 1010;
    padding: 0 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(0, 240, 255, 0.22);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    background: rgba(7, 11, 20, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

/* Selector de las 4 Vistas Tácticas */
.tactical-views-group {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 5px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-tactical-view {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-tactical-view:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.btn-tactical-view.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: #00f0ff;
    color: #00f0ff;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.btn-tactical-view.view-ftth.active {
    background: rgba(0, 240, 255, 0.18);
    border-color: #00f0ff;
    color: #00f0ff;
}

.btn-tactical-view.view-wisp.active {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.btn-tactical-view.view-incidents.active {
    background: rgba(255, 0, 85, 0.2);
    border-color: #ff0055;
    color: #ff0055;
    box-shadow: 0 0 14px rgba(255, 0, 85, 0.4);
}

/* Cajones Tácticos Deslizables (Slide-Over Drawers) */
.tactical-drawer {
    position: absolute;
    top: 108px;
    bottom: 14px;
    width: 320px;
    z-index: 1020;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    background: rgba(7, 11, 20, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 14px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.tactical-drawer-left {
    left: 14px;
    transform: translateX(calc(-100% - 25px));
    opacity: 0;
    pointer-events: none;
}

.tactical-drawer-left.drawer-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.tactical-drawer-right {
    right: 14px;
    transform: translateX(calc(100% + 25px));
    opacity: 0;
    pointer-events: none;
}

.tactical-drawer-right.drawer-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Gatillos Flotantes de Cajón (Slide Tabs) */
.drawer-toggle-tab {
    position: absolute;
    top: 14px;
    width: 28px;
    height: 38px;
    background: rgba(7, 11, 20, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #00f0ff;
    z-index: 1021;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.drawer-toggle-tab:hover {
    border-color: #00f0ff;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
    color: #fff;
}

.drawer-toggle-tab-left {
    right: -28px;
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.drawer-toggle-tab-right {
    left: -28px;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

/* Dock Inferior Flotante Táctico */
.tactical-dock-bottom {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1005;
    height: 42px;
    padding: 0 18px;
    border-radius: 30px;
    background: rgba(7, 11, 20, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Triage Board para el Modo C4ISR Incidencias */
.c4isr-triage-panel {
    position: absolute;
    top: 68px;
    left: 14px;
    bottom: 14px;
    width: 380px;
    z-index: 1015;
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 85, 0.3);
    background: rgba(7, 11, 20, 0.94);
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 0, 85, 0.15);
    display: none;
    flex-direction: column;
    padding: 14px;
}

.c4isr-incident-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.c4isr-incident-card:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-1px);
}

.c4isr-incident-card.incident-critico {
    border-left: 3px solid #ff0055;
}

.c4isr-incident-card.incident-dying {
    border-left: 3px solid #c084fc;
}

.c4isr-incident-card.incident-los {
    border-left: 3px solid #ef4444;
}

.c4isr-incident-card.incident-mora {
    border-left: 3px solid #f97316;
}

/* ==========================================================================
   FASE 107: SWITCHES TÁCTICOS, DESOLAPAMIENTO C2 & BARRA DE PROGRESO LÁSER
   ========================================================================== */

/* Pista de Progreso Láser en el Borde Inferior de la Barra C2 */
#net-sync-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

#net-sync-progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00f0ff, #00e676);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.6);
}

/* Contenedor Central de Filtros Forenses con Desolapamiento Garantizado */
.c2-center-filters {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 4px;
    -webkit-overflow-scrolling: touch;
}

.c2-center-filters::-webkit-scrollbar {
    display: none;
}

/* Segmento Derecho Blindado */
.c2-right-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    z-index: 2;
}

/* Insignia de Grado de Actualización */
#net-sync-progress-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.25);
    font-size: 0.58rem;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Switch Táctico Deslizable HUD */
.tactical-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 0.64rem;
    font-weight: 600;
    color: #cbd5e1;
    user-select: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.tactical-switch:hover {
    color: #ffffff;
}

.tactical-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.tactical-switch-slider {
    position: relative;
    width: 28px;
    height: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.tactical-switch-slider::before {
    content: "";
    position: absolute;
    width: 11px;
    height: 11px;
    left: 1px;
    top: 1px;
    background: #94a3b8;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Estado Activado Por Defecto (Cian Neón) */
.tactical-switch input:checked + .tactical-switch-slider {
    background: rgba(0, 240, 255, 0.22);
    border-color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.tactical-switch input:checked + .tactical-switch-slider::before {
    transform: translateX(13px);
    background: #00f0ff;
    box-shadow: 0 0 8px #00f0ff;
}

/* Variante Esmeralda (Wireless / Antena) */
.tactical-switch.switch-emerald input:checked + .tactical-switch-slider {
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.tactical-switch.switch-emerald input:checked + .tactical-switch-slider::before {
    transform: translateX(13px);
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* Variante Blanco Puro (Coberturas) */
.tactical-switch.switch-white input:checked + .tactical-switch-slider {
    background: rgba(255, 255, 255, 0.22);
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.tactical-switch.switch-white input:checked + .tactical-switch-slider::before {
    transform: translateX(13px);
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff;
}

/* ==========================================================================
   FASE 108: SELECTOR TÁCTICO DE FILTROS & DESOLAPAMIENTO DEFINITIVO C2
   ========================================================================== */

/* Selector Táctico de Filtros Forenses */
.tactical-filter-select {
    background: rgba(7, 11, 20, 0.90);
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 8px;
    color: #00f0ff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 26px 3px 8px;
    height: 28px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 0 8px rgba(0, 240, 255, 0.08);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 11px;
    white-space: nowrap;
}

.tactical-filter-select:hover {
    border-color: #00f0ff;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
    background-color: rgba(10, 16, 30, 0.98);
}

.tactical-filter-select:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
}

.tactical-filter-select option {
    background: #070b14;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    padding: 6px;
}

/* Margen de seguridad estricto para botón pantalla completa */
#btn-map-fullscreen {
    margin-right: 4px;
    flex-shrink: 0;
}

/* ==========================================================================
   FASE 109: MODO ENFOQUE NAP & NUEVO ÍCONO SPLITTER VECTORIAL COMPACTO
   ========================================================================== */

/* Ícono Splitter Óptico Compacto (18x18px) */
.custom-nap-splitter-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.nap-splitter-box {
    width: 18px;
    height: 18px;
    background: #070b14;
    border-radius: 5px;
    border: 1.5px solid #00f0ff;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.nap-splitter-box:hover {
    transform: scale(1.3);
    border-color: #fff;
    box-shadow: 0 0 14px #00f0ff;
    z-index: 999;
}

/* Estado de Caída Técnica / Corte Real */
.nap-splitter-box.nap-critical {
    border-color: #ff3b30 !important;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.6) !important;
    animation: pulse-nap-splitter 1.4s infinite;
}

/* Estado Atenuado / Advertencia */
.nap-splitter-box.nap-warning {
    border-color: #ffcc00 !important;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5) !important;
}

/* NAP Enfocada / Modo Aislamiento Activo */
.nap-splitter-box.nap-focused {
    width: 22px;
    height: 22px;
    border-color: #ffd700 !important;
    box-shadow: 0 0 18px #00f0ff, 0 0 35px #ffd700 !important;
    transform: scale(1.35);
    animation: pulse-focused-nap 1.5s infinite;
}

@keyframes pulse-nap-splitter {
    0% { box-shadow: 0 0 4px rgba(255, 59, 48, 0.4); }
    50% { box-shadow: 0 0 14px rgba(255, 59, 48, 0.85); }
    100% { box-shadow: 0 0 4px rgba(255, 59, 48, 0.4); }
}

@keyframes pulse-focused-nap {
    0% { box-shadow: 0 0 12px #00f0ff, 0 0 20px #ffd700; }
    50% { box-shadow: 0 0 20px #00f0ff, 0 0 40px #ffd700; }
    100% { box-shadow: 0 0 12px #00f0ff, 0 0 20px #ffd700; }
}

/* Animación del pulso láser de la barra de progreso */
@keyframes pulse-laser {
    0% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.15); }
    100% { opacity: 0.6; transform: scale(0.95); }
}

/* ==========================================================================
   FASE 120: CONSOLA DE MONITOREO NOC 2.0 (ARQUITECTURA DE ALTO RENDIMIENTO 60 FPS)
   ========================================================================== */

/* Barra Superior NOC 2.0 (42px) */
.noc-header-bar {
    height: 42px;
    min-height: 42px;
    flex-shrink: 0;
    background: rgba(7, 11, 20, 0.95);
    border-bottom: 1px solid rgba(0, 240, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    gap: 8px;
    z-index: 1010;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Selector de Vistas Operativas */
.noc-views-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.45);
    padding: 2px 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.noc-view-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.noc-view-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.noc-view-btn.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: #00f0ff;
    color: #00f0ff;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

/* Contenedor Central de Filtros Semánticos */
.noc-center-pills {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 4px;
}

.noc-center-pills::-webkit-scrollbar {
    display: none;
}

/* Píldoras de Filtro Semántico */
.noc-pill {
    font-family: 'Outfit', sans-serif;
    font-size: 0.60rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.noc-pill:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.noc-pill.active {
    border-color: #00f0ff;
    color: #00f0ff;
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

.noc-pill.pill-online.active {
    border-color: #00e676;
    color: #00e676;
    background: rgba(0, 230, 118, 0.15);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.35);
}

.noc-pill.pill-attenuated.active {
    border-color: #ffd700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}

.noc-pill.pill-offline.active {
    border-color: #ff3b30;
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.15);
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.35);
}

.noc-pill.pill-moroso.active {
    border-color: #f97316;
    color: #f97316;
    background: rgba(249, 115, 22, 0.15);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.35);
}

.noc-pill.pill-reposo.active {
    border-color: #94a3b8;
    color: #fff;
    background: rgba(148, 163, 184, 0.2);
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.35);
}

/* Clúster Derecho */
.noc-right-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    z-index: 2;
}

/* Espacio de Trabajo NOC 2.0 */
.noc-workspace-container {
    display: flex;
    flex: 1;
    height: calc(100% - 42px);
    position: relative;
    overflow: hidden;
}

.noc-map-wrapper {
    flex: 1;
    position: relative;
    height: 100%;
    overflow: hidden;
    min-width: 0;
}

/* Panel de Vista Dividida / Matriz */
.noc-split-panel {
    width: 480px;
    max-width: 100%;
    height: 100%;
    flex-direction: column;
    background: rgba(7, 11, 20, 0.96);
    border-left: 1px solid rgba(0, 240, 255, 0.25);
    z-index: 1020;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.7);
}

.noc-split-header {
    height: 38px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
}

.noc-split-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.noc-matrix-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.68rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.noc-matrix-row:hover {
    background: rgba(0, 240, 255, 0.06);
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateX(2px);
}

/* Inspector Unificado NOC 360° (Slide-Out) */
.noc-inspector-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 95vw;
    background: rgba(7, 11, 20, 0.97);
    border-left: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.85);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.noc-inspector-drawer.open {
    transform: translateX(0);
}

.noc-inspector-header {
    height: 42px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
}

.noc-inspector-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.noc-insp-tab {
    flex: 1;
    padding: 8px 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.noc-insp-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.noc-insp-tab.active {
    color: #00f0ff;
    border-bottom-color: #00f0ff;
    background: rgba(0, 240, 255, 0.06);
}

.noc-inspector-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.noc-insp-pane {
    display: none;
}

.noc-insp-pane.active {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Banner de Modo Enfoque NAP */
.noc-focus-banner {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1018;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    border-radius: 24px;
    background: rgba(7, 11, 20, 0.95);
    border: 1.5px solid #00f0ff;
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.35), 0 0 20px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


/* ==========================================================================
   DISEÑO INSTITUCIONAL, ELEGANCIA SOBRIA Y ALINEACIÓN DE PRECISIÓN (V140.1.0)
   ========================================================================== */

/* 1. ESPACIADO Y AIRE GENEROSO (Erradicación de elementos apretados) */
.kpi-card, .card, .glass-panel, .pro-card {
    padding: 24px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85)) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
    margin-bottom: 24px !important;
}

/* 2. ESTANDARIZACIÓN DE CONTROLES DE FORMULARIO (Cero elementos desalineados) */
.pro-input, select.pro-input, input[type="text"].pro-input, input[type="email"].pro-input {
    height: 44px !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(15, 23, 42, 0.85) !important;
    color: #f8fafc !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease !important;
}

.pro-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* 3. BOTONES DE ACCIÓN Y CONTROLES DE MAPA (Elegancia táctil y respiración) */
.btn-primary, .btn-secondary, .map-style-pill, .map-style-btn {
    height: 40px !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
}

/* 4. CONTENEDORES DE MAPA Y CABECERAS (Cero polución visual) */
.leaflet-container {
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: #090d16 !important;
}

.leaflet-control-container .leaflet-routing-container {
    display: none !important;
}

/* 5. TABLAS INSTITUCIONALES CON ESPACIADO Y ALINEACIÓN DE LÁPIZ */
.table-responsive table tbody td {
    padding: 16px 14px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}


/* ==========================================================================
   POLISH DE NAVBAR, HERO Y MAPA CLIENTE (V140.3.0-CLEAN)
   ========================================================================== */

.main-header .header-container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 12px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.main-nav ul {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-nav ul li a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.main-nav ul li a:hover {
    color: #00f0ff !important;
}

.hero-map-wrapper .map-floating-controls {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 1000 !important;
    display: flex !important;
    gap: 10px !important;
}

.map-helper-badge {
    position: absolute !important;
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    background: rgba(15, 23, 42, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    pointer-events: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

/* ==========================================================================
   FASE 283 (V298.0.0) - LANDING PAGE AAA++ REDESIGN & INTERACTIVE SOLUTIONS
   ========================================================================== */

/* 1. Header Brand Cluster, Live Status Pill & Mobile Navigation Drawer */
.header-brand-cluster {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.header-live-status-pill .live-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: trazaPulseEmerald 2s infinite ease-in-out;
}

@keyframes trazaPulseEmerald {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.65; }
}

.btn-header-wa {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    background: rgba(16, 185, 129, 0.14) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #34d399 !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.btn-header-wa:hover {
    background: rgba(16, 185, 129, 0.24) !important;
    border-color: #10b981 !important;
    color: #ecfdf5 !important;
    transform: translateY(-1px);
}

.btn-mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mobile-menu-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.45);
}

.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 9998;
    background: rgba(11, 15, 25, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.28);
    padding: 18px 24px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65);
}

.mobile-nav-drawer.open {
    display: block;
    animation: trazaSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes trazaSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mobile-nav-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mobile-nav-links li a:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

.mobile-nav-actions {
    display: flex;
    gap: 10px;
}

.btn-mobile-wa {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* 2. Preselected Plan Contextual Sticky Bar */
.preselected-plan-bar {
    position: sticky;
    top: 72px;
    z-index: 950;
    background: linear-gradient(90deg, rgba(6, 78, 59, 0.94), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.4);
    padding: 10px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.preselected-plan-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.preselected-plan-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ecfdf5;
    font-size: 0.9rem;
}

.preselected-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: trazaPulseEmerald 1.6s infinite;
}

.preselected-step-hint {
    color: #a7f3d0;
    font-size: 0.85rem;
}

.btn-clear-preselected {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-preselected:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ffffff;
}

/* 3. Hero Section, Search Clear Button & Map Legend Pill */
.hero-badges-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.hero-badges-strip .badge-pill {
    margin-bottom: 0 !important;
}

.hero-cabase-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    font-size: 0.78rem;
    font-weight: 600;
}

.btn-clear-search {
    background: rgba(148, 163, 184, 0.15);
    border: none;
    color: #cbd5e1;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    cursor: pointer;
    margin-right: 6px;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.btn-clear-search:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
}

.map-infra-legend-pill {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.map-infra-legend-pill .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.map-infra-legend-pill .legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.map-infra-legend-pill .legend-dot.ftth {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.map-infra-legend-pill .legend-dot.wireless {
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

.map-infra-legend-pill .legend-dot.pin {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

/* 4. Benefits Ring & Tabular Nums Stats */
.benefit-icon-ring {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(16, 185, 129, 0.12));
    border: 1px solid rgba(59, 130, 246, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}

.benefit-card:hover .benefit-icon-ring {
    transform: scale(1.06) translateY(-2px);
    border-color: #38bdf8;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.2);
}

.stat-val-wrap {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    font-variant-numeric: tabular-nums;
}

.stat-number, .stat-suffix {
    font-variant-numeric: tabular-nums;
}

/* 5. Solución 1: Asesor Interactivo de Planes (#interactive-plan-advisor) */
.interactive-plan-advisor {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 28px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto 38px auto;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(8, 12, 22, 0.96));
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 28px 30px;
    position: relative;
    overflow: hidden;
}

.interactive-plan-advisor::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 70%);
    pointer-events: none;
}

.advisor-left-controls {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.advisor-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.advisor-step-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.advisor-step-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: #cbd5e1;
}

.advisor-pills-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.advisor-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.advisor-pill:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.4);
    color: #ffffff;
}

.advisor-pill.active {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(16, 185, 129, 0.25));
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

.advisor-right-result {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(11, 15, 25, 0.88);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.advisor-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.advisor-plan-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.advisor-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.advisor-metric-chip {
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 10px;
    padding: 8px 10px;
    text-align: center;
}

.metric-chip-label {
    display: block;
    color: #94a3b8;
    font-size: 0.7rem;
    margin-bottom: 4px;
}

.metric-chip-val {
    color: #38bdf8;
    font-size: 0.95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.advisor-cta-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.advisor-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
}

/* 6. Solución 2: Medidor de Latencia RTT y Jitter Real (#live-ping-tester-card) */
.live-ping-tester-card {
    max-width: 1200px;
    margin: 0 auto 38px auto;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(8, 12, 22, 0.96));
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    padding: 28px 30px;
}

.ping-tester-info {
    margin-bottom: 20px;
}

.ping-tester-badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ping-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.ping-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 8px #00f0ff;
    animation: trazaPulseGlow 1.4s infinite alternate;
}

.ping-node-tag {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
}

.ping-tester-info h3 {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 6px 0;
}

.ping-tester-info p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
    max-width: 800px;
}

.ping-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.ping-metric-box {
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 14px;
    padding: 14px 18px;
    text-align: center;
}

.ping-m-label {
    display: block;
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.ping-m-val-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.ping-m-val {
    color: #38bdf8;
    font-size: 1.8rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', monospace, sans-serif;
}

.ping-m-unit {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

.ping-m-status {
    color: #34d399;
    font-size: 1rem;
    font-weight: 800;
}

.ping-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
}

.ping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #10b981);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.ping-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ping-samples-log {
    color: #94a3b8;
    font-size: 0.82rem;
    font-family: 'JetBrains Mono', monospace, sans-serif;
}

/* 7. Solución 3: Simulador Interactivo de Módem Óptico ONT (#ont-simulator-card) */
.ont-simulator-card {
    max-width: 1200px;
    margin: 0 auto 38px auto;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(8, 12, 22, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    padding: 28px 30px;
}

.ont-sim-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding-bottom: 20px;
}

.ont-sim-kicker {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.ont-sim-header h3 {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 6px 0;
}

.ont-sim-header p {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 0;
    max-width: 600px;
}

.ont-scenario-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ont-scenario-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ont-scenario-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: #ffffff;
}

.ont-scenario-btn.active {
    background: rgba(2, 132, 199, 0.28);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.22);
}

.dot-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot-status.green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.dot-status.yellow { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.dot-status.red { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.dot-status.off { background: #64748b; }

.ont-sim-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    align-items: stretch;
}

.ont-hardware-chassis {
    background: linear-gradient(180deg, #131c2e 0%, #0a0f1d 100%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 20px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ont-chassis-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.ont-brand-tag {
    color: #38bdf8;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.ont-optical-port-tag {
    color: #10b981;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace, sans-serif;
}

.ont-leds-panel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.ont-led-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    background: rgba(11, 15, 25, 0.65);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ont-led-bulb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.ont-led-bulb.led-green {
    background: #10b981;
    box-shadow: 0 0 12px #10b981, 0 0 4px #6ee7b7;
}

.ont-led-bulb.led-green-blink {
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
    animation: ontBlinkGreen 0.8s infinite alternate;
}

.ont-led-bulb.led-red-blink {
    background: #ef4444;
    box-shadow: 0 0 14px #ef4444, 0 0 6px #fca5a5;
    animation: ontBlinkRed 0.55s infinite alternate;
}

.ont-led-bulb.led-off {
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: none;
}

.ont-led-name {
    color: #cbd5e1;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.ont-diagnostic-result {
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ont-diag-status-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}
.ont-diag-status-badge.status-ok { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.35); color: #34d399; }
.ont-diag-status-badge.status-warn { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.35); color: #fbbf24; }
.ont-diag-status-badge.status-error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.35); color: #f87171; }

.ont-diagnostic-result h4 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.ont-diagnostic-result p {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.ont-diag-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

/* 8. Capa de Contenido Dual E-E-A-T & Centro de Conocimiento FTTH */
.content-dual-section {
    background: linear-gradient(180deg, #030712 0%, #070e1e 50%, #030712 100%);
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    padding: 80px 24px;
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.content-dual-container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-dual-header {
    text-align: center;
    margin-bottom: 46px;
}

.content-dual-badge {
    background: rgba(2, 132, 199, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(2, 132, 199, 0.25);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 14px;
}

.content-dual-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.content-dual-subtitle {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #94a3b8;
}

.knowledge-module-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(10, 15, 30, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 34px 30px;
    margin-bottom: 34px;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.65);
}

.knowledge-module-card.accent-emerald {
    border-color: rgba(16, 185, 129, 0.3);
}

.knowledge-module-card.accent-cyan {
    border-color: rgba(56, 189, 248, 0.3);
}

.knowledge-module-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.knowledge-module-icon {
    font-size: 1.8rem;
}

.knowledge-module-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.knowledge-grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    font-size: 0.94rem;
    line-height: 1.75;
    color: #cbd5e1;
}

.knowledge-grid-4col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #cbd5e1;
}

.knowledge-card-item {
    background: rgba(8, 11, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.knowledge-card-item:hover {
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

.knowledge-card-item h4 {
    color: #10b981;
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #cbd5e1;
}

.glossary-card {
    background: rgba(8, 11, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid #0284c7;
    padding: 14px 16px;
    border-radius: 0 10px 10px 0;
    transition: all 0.2s ease;
}

.glossary-card:hover {
    border-left-color: #38bdf8;
    background: rgba(14, 21, 37, 0.9);
}

.glossary-card strong {
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

/* 9. FAQ Interactivo con Buscador y Filtro Instantáneo */
.faq-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.faq-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 8px 14px;
    min-width: 280px;
}

.faq-search-box input {
    background: transparent;
    border: none;
    color: #f8fafc;
    font-size: 0.88rem;
    width: 100%;
    outline: none;
}

.faq-filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.faq-pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.faq-pill:hover, .faq-pill.active {
    background: rgba(59, 130, 246, 0.22);
    border-color: #38bdf8;
    color: #ffffff;
}

.faq-accordion-item {
    background: rgba(11, 15, 25, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.2s ease;
}

.faq-accordion-item[open] {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(15, 23, 42, 0.8);
}

.faq-accordion-item summary {
    cursor: pointer;
    font-weight: 700;
    color: #f8fafc;
    font-size: 0.94rem;
    outline: none;
}

.faq-accordion-item summary:hover {
    color: #38bdf8;
}

.faq-accordion-item p {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 12px 0 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/* 10. Dock Flotante de Acción Rápida & Responsive */
.client-floating-dock {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.dock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dock-btn-top {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.7);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.dock-btn-top:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #38bdf8;
}

.dock-btn-wa {
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.dock-btn-wa:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.55);
}

@media (max-width: 900px) {
    .interactive-plan-advisor {
        grid-template-columns: 1fr;
    }
    .ont-sim-body {
        grid-template-columns: 1fr;
    }
    .ping-metrics-grid {
        grid-template-columns: 1fr;
    }
}

.footer-noc-status-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
    font-size: 0.78rem;
    font-weight: 600;
}

.footer-contact-list li {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.footer-contact-list li a {
    color: #38bdf8;
    text-decoration: none;
}

.footer-canonical-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-badge-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Responsive Breakpoints for Landing Page AAA++ */
@media (max-width: 960px) {
    .main-header .main-nav {
        display: none !important;
    }
    .btn-mobile-menu-toggle {
        display: inline-flex !important;
    }
    .header-live-status-pill {
        display: none !important;
    }
    .advisor-grid, .ont-sim-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .map-infra-legend-pill {
        display: none;
    }
}

@media (max-width: 640px) {
    .interactive-plan-advisor, .ont-simulator-card {
        padding: 20px 16px;
    }
    .ont-leds-strip, .ont-leds-panel {
        gap: 6px;
    }
    .ont-sim-btn-group, .ont-scenario-buttons {
        grid-template-columns: 1fr;
    }
    .client-floating-dock .dock-label,
    .client-floating-dock .dock-wa-label {
        display: none;
    }
    .client-floating-dock {
        bottom: 14px;
        right: 14px;
    }
}

/* Complemento de Selectores Exactos DOM Landing Page V298.0.0 */
.interactive-plan-advisor {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    align-items: center;
}

.advisor-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.advisor-step-group {
    margin-bottom: 16px;
}

.advisor-step-label {
    display: block;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.advisor-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.advisor-pill svg {
    width: 16px;
    height: 16px;
}

.advisor-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.advisor-plan-name {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.advisor-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.metric-chip-label {
    display: block;
    color: #94a3b8;
    font-size: 0.72rem;
    margin-bottom: 4px;
}

.metric-chip-val {
    color: #38bdf8;
    font-size: 0.95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.advisor-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    font-weight: 800;
}

.live-ping-tester-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    align-items: center;
    background: linear-gradient(145deg, rgba(14, 19, 29, 0.95), rgba(11, 15, 25, 0.98));
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.ping-tester-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.ping-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 800;
}

.ping-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.ping-node-tag {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
}

.ping-tester-info h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.ping-tester-info p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.ping-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.ping-m-label {
    display: block;
    color: #94a3b8;
    font-size: 0.72rem;
    margin-bottom: 4px;
}

.ping-m-val-wrap {
    font-variant-numeric: tabular-nums;
}

.ping-m-val {
    color: #38bdf8;
    font-size: 1.35rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
}

.ping-m-unit {
    color: #64748b;
    font-size: 0.78rem;
    margin-left: 2px;
}

.ping-m-status {
    color: #34d399;
    font-size: 0.86rem;
    font-weight: 800;
}

.ping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #10b981);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.ping-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ping-samples-log {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
}

.ont-sim-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ont-sim-kicker {
    display: inline-block;
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.ont-scenario-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ont-scenario-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ont-scenario-btn:hover,
.ont-scenario-btn.active {
    background: rgba(2, 132, 199, 0.24);
    border-color: #38bdf8;
    color: #ffffff;
}

.dot-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot-status.green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.dot-status.yellow { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.dot-status.red { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.dot-status.off { background: #475569; }

.ont-sim-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    align-items: center;
}

.ont-chassis-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.ont-brand-tag {
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.ont-optical-port-tag {
    color: #94a3b8;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
}

.ont-leds-panel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.ont-led-name {
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 700;
}

.ont-diagnostic-result {
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 20px 22px;
}

.ont-diag-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.ont-diag-status-badge.status-ok {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.ont-diag-status-badge.status-warn {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.ont-diag-status-badge.status-error {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.ont-diagnostic-result h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.ont-diagnostic-result p {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0 0 14px 0;
}

.faq-accordion-item {
    background: #080b11;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 22px;
    transition: border-color 0.2s ease;
}

.faq-accordion-item[open] {
    border-color: rgba(56, 189, 248, 0.35);
}

.faq-accordion-item summary {
    cursor: pointer;
    font-weight: 800;
    color: #ffffff;
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-accordion-item p {
    margin: 12px 0 0 0;
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.7;
}

.dock-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dock-btn-top {
    background: rgba(30, 41, 59, 0.85);
    color: #cbd5e1;
    padding: 10px;
}

.dock-btn-top:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #ffffff;
}

.dock-btn-wa {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.dock-btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    color: #ffffff;
}

.legend-dot-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dot-ftth {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.dot-wireless {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

.hero-secondary-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-secondary-link-btn:hover {
    background: rgba(56, 189, 248, 0.22);
    color: #ffffff;
}

@media (max-width: 960px) {
    .interactive-plan-advisor,
    .live-ping-tester-card,
    .ont-sim-body {
        grid-template-columns: 1fr;
    }
    .advisor-metrics-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================== */
/* 📱 FASE 290: ARQUITECTURA TOUCH-FIRST & NAVEGACIÓN MÓVIL ERGONÓMICA AAA++ */
/* ========================================================================== */

/* 1. Touch Engine Global & Fast Tap (Erradicación de retardos de 300ms) */
html {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

button, 
a, 
input, 
select, 
textarea,
.advisor-pill,
.finder-btn,
.plans-tab-btn,
.mobile-dock-btn {
    touch-action: manipulation;
}

/* 2. Área de Agarre Táctil Ampliada para el PIN del Mapa (48x48px Touch Area) */
.custom-pin-wrapper {
    cursor: grab;
    touch-action: none;
    padding: 10px;
    margin-left: -10px;
    margin-top: -10px;
}

.custom-pin-wrapper:active {
    cursor: grabbing;
}

/* 3. Dock Táctico Móvil Inferior (Thumb-Zone Navigation ≤ 768px) */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    /* Despeje inferior para evitar que el dock cubra contenido o botones */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 8px)) !important;
    }

    /* Reubicar el dock flotante secundario para no colisionar con la barra de navegación */
    .client-floating-dock {
        bottom: calc(74px + env(safe-area-inset-bottom, 8px)) !important;
        right: 12px !important;
    }

    /* Mostrar barra fija inferior */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: calc(56px + env(safe-area-inset-bottom, 6px)) !important;
        padding-bottom: env(safe-area-inset-bottom, 6px) !important;
        background: rgba(6, 11, 22, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(56, 189, 248, 0.22) !important;
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.75) !important;
        z-index: 1050 !important;
        align-items: center !important;
        justify-content: space-around !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .mobile-dock-btn {
        flex: 1 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        background: transparent !important;
        border: none !important;
        color: #94a3b8 !important;
        font-family: inherit !important;
        font-size: 0.65rem !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        cursor: pointer !important;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
        border-radius: 10px !important;
        padding: 4px 2px !important;
        position: relative !important;
        min-width: 44px !important;
    }

    .mobile-dock-btn i,
    .mobile-dock-btn svg {
        width: 19px !important;
        height: 19px !important;
        transition: transform 0.2s ease, color 0.2s ease !important;
    }

    .mobile-dock-btn:active {
        transform: scale(0.92) !important;
    }

    .mobile-dock-btn.active {
        color: #38bdf8 !important;
        font-weight: 800 !important;
    }

    .mobile-dock-btn.active i,
    .mobile-dock-btn.active svg {
        color: #38bdf8 !important;
        transform: translateY(-2px) !important;
        filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6)) !important;
    }

    .mobile-dock-btn.active::after {
        content: '' !important;
        position: absolute !important;
        top: 2px !important;
        width: 18px !important;
        height: 3px !important;
        border-radius: 99px !important;
        background: #38bdf8 !important;
        box-shadow: 0 0 8px #38bdf8 !important;
    }

    .mobile-dock-btn.mobile-dock-wa {
        color: #25d366 !important;
    }

    .mobile-dock-btn.mobile-dock-wa i,
    .mobile-dock-btn.mobile-dock-wa svg {
        color: #25d366 !important;
    }

    .mobile-dock-btn.mobile-dock-wa:active {
        filter: brightness(1.2) !important;
    }

    /* 4. Transformación de Modales a Bottom Sheets Táctiles */
    .modal-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
        background: rgba(2, 6, 23, 0.85) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }

    .modal-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 24px 24px 0 0 !important;
        max-height: 88dvh !important;
        margin: 0 !important;
        padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 12px)) 18px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        animation: slideUpSheet 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
        border-bottom: none !important;
        border-left: 1px solid rgba(56, 189, 248, 0.3) !important;
        border-right: 1px solid rgba(56, 189, 248, 0.3) !important;
        border-top: 1px solid rgba(56, 189, 248, 0.4) !important;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.9) !important;
    }

    /* Tirador de agarre visual (Drag Handle) */
    .modal-card::before {
        content: '' !important;
        display: block !important;
        width: 40px !important;
        height: 4px !important;
        background: rgba(255, 255, 255, 0.28) !important;
        border-radius: 99px !important;
        margin: -10px auto 16px auto !important;
    }

    @keyframes slideUpSheet {
        from { transform: translateY(100%); opacity: 0.5; }
        to { transform: translateY(0); opacity: 1; }
    }

    .modal-close {
        top: 12px !important;
        right: 12px !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.5rem !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.08) !important;
        color: #cbd5e1 !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    /* 5. Ergonomía Táctil en Botones y Controles (Apple HIG & Material 3: ≥ 44px) */
    .btn, 
    .btn-primary, 
    .btn-outline, 
    .advisor-pill, 
    .finder-btn, 
    .plans-tab-btn, 
    .btn-map-layer,
    .btn-mobile-menu-toggle {
        min-height: 44px !important;
    }

    .btn:active, 
    .advisor-pill:active, 
    .finder-btn:active, 
    .plans-tab-btn:active, 
    .btn-map-layer:active {
        transform: scale(0.97) !important;
        transition: transform 0.08s ease !important;
    }

    /* Tarjetas de planes sin desbordamiento */
    .plans-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .landing-plan-card {
        padding: 20px 16px !important;
    }

    .plan-card-cta .btn {
        width: 100% !important;
        min-height: 48px !important;
        font-size: 0.95rem !important;
    }

    /* Pestañas de planes scrollables si se requieren */
    .plans-tabs-wrapper {
        width: 100% !important;
        display: flex !important;
        gap: 8px !important;
    }

    .plans-tab-btn {
        flex: 1 !important;
        padding: 10px 8px !important;
        font-size: 0.78rem !important;
    }
}


