:root {
    /* Corporate Theme (Dark Mode Premium) */
    --bg-main: #0a0a0a;       /* Deepest black for background */
    
    /* Glassmorphism */
    --glass-bg: rgba(20, 20, 20, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    
    /* Golden Accents */
    --primary: #E5A93C;       
    --primary-hover: #fcd34d; /* Brighter gold for hover */
    --primary-glow: rgba(229, 169, 60, 0.25);
    
    --secondary: #E5A93C;     
    
    /* Text */
    --text-main: #FFFFFF;     
    --text-muted: #a1a1aa;    /* Lighter gray for better contrast on dark */
    
    /* Borders & UI */
    --border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    
    /* Gradients */
    --gold-gradient: linear-gradient(135deg, #E5A93C 0%, #d19733 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden; 
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

/* Background animated shapes (Dramatic in dark mode) */
.bg-shape {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.shape-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(229, 169, 60, 0.15) 0%, transparent 70%);
    top: -150px; left: -100px;
}
.shape-2 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(229, 169, 60, 0.1) 0%, transparent 70%);
    bottom: -200px; right: -150px;
    animation-delay: -5s;
}
.shape-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    top: 40%; left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
    100% { transform: translate(-30px, 60px) scale(0.9); }
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    height: 100vh;
    z-index: 1;
    position: relative;
}

/* Sidebar */
.sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--glass-border);
    border-top: none;
    border-bottom: none;
    border-left: none;
    z-index: 10;
}

.logo {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-logo {
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(229,169,60,0.3));
}

.sidebar-menu {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu h3 {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* City Tabs */
.city-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    display: none !important;
}

.tab-btn i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.65rem;
    margin-top: 0.6rem;
}

.sidebar-section-number {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(229, 169, 60, 0.2);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid rgba(229, 169, 60, 0.4);
}

.sidebar-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Sidebar Accordion for BUSCAR CLIENTES */
.sidebar-accordion-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.sidebar-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    text-align: left;
}

.sidebar-accordion-header:hover {
    background: rgba(229, 169, 60, 0.08);
    border-color: rgba(229, 169, 60, 0.35);
    transform: translateX(4px);
}

.sidebar-accordion-header.is-current {
    background: rgba(229, 169, 60, 0.12);
    border-color: rgba(229, 169, 60, 0.45);
    box-shadow: 0 0 16px rgba(229, 169, 60, 0.12);
}

.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.accordion-header-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.accordion-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.accordion-arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.sidebar-accordion-header.is-open .accordion-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.sidebar-accordion-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.45rem;
    padding-left: 0.65rem;
    border-left: 2px solid rgba(229, 169, 60, 0.35);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.25s ease;
}

.sidebar-accordion-body.is-open {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
}

.sub-tab-btn {
    padding: 0.65rem 0.9rem !important;
    border-radius: 10px !important;
}

.sub-tab-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow: hidden;
}

.sub-tab-content .tab-text {
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-tab-content .tab-sublabel {
    font-size: 0.68rem;
    padding: 1px 6px;
    align-self: flex-start;
    margin-left: 0;
}

.tab-sublabel {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.sidebar-count-badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.35);
}

#badge-agenda {
    background: rgba(96, 165, 250, 0.18);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.35);
}

#badge-mensajes-enviados {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.35);
}

.btn-marcar-enviado {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.6) !important;
    color: #fff !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
}

.btn-marcar-enviado:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.tab-btn:hover {
    background: var(--glass-highlight);
    color: var(--text-main);
    transform: translateX(5px);
}

.tab-btn.active {
    background: var(--primary-glow);
    color: var(--primary);
    font-weight: 700;
    border: 1px solid rgba(229, 169, 60, 0.3);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--primary);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
}
.refresh-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.top-header {
    min-height: 84px;
    height: auto;
    padding: 0.95rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    z-index: 5;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(14, 14, 14, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-shrink: 0;
}

.header-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 250px;
    flex: 1 1 300px;
}

.header-left h2 {
    font-size: 1.45rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-main);
    margin: 0 0 3px 0;
    letter-spacing: -0.3px;
    line-height: 1.25;
}
.header-left h2 i {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
    font-size: 1.35rem;
    flex-shrink: 0;
}
.subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.35;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-left: auto;
}

/* Search Box */
.search-box {
    position: relative;
    width: 240px;
    transition: width 0.25s ease;
}
.search-box:focus-within {
    width: 280px;
}
.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}
.search-box input {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--glass-border);
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border-radius: 100px;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}
.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: rgba(0, 0, 0, 0.5);
}
.search-box input::placeholder {
    color: #71717a;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    transition: all 0.25s ease;
    cursor: pointer;
    flex-shrink: 0;
}
.user-info:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
.user-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px var(--primary-glow);
}
.user-text {
    display: flex;
    flex-direction: column;
}
.user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}
.user-role {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 1250px) {
    .top-header {
        padding: 0.8rem 1.5rem;
        gap: 0.85rem 1rem;
    }
    .header-left h2 {
        font-size: 1.35rem;
    }
    .subtitle {
        font-size: 0.82rem;
    }
    .search-box {
        width: 200px;
    }
    .search-box:focus-within {
        width: 240px;
    }
}

@media (max-width: 960px) {
    .top-header {
        padding: 0.8rem 1.25rem;
        gap: 0.85rem;
    }
    .header-left {
        width: 100%;
        min-width: 100%;
    }
    .header-right {
        width: 100%;
        justify-content: flex-start;
        gap: 0.75rem;
        margin-left: 0;
    }
    .search-box {
        flex: 1;
        min-width: 160px;
    }
}

.content-body {
    flex: 1;
    padding: 1.5rem 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Stats Row */
.stats-row {
    padding: 1.5rem 2rem;
    border-radius: 16px;
    margin: 0 auto 2.5rem auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
}
.stats-row .stat-card:not(:first-child) {
    border-left: 1px solid var(--glass-border);
}
.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 0 20px var(--primary-glow);
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Leads Container */
.leads-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    contain: layout;
}

.lead-card {
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, border-color 0.25s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: auto 380px;
    transform: translateZ(0);
}

/* Add a subtle highlight line at the top of the card */
.lead-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0.5;
}

.lead-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--primary);
    background: rgba(30, 30, 30, 0.7);
}

.lead-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--text-main);
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.lead-name i {
    color: var(--primary);
    margin-top: 4px;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.lead-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.lead-name a:hover {
    color: var(--primary-hover);
}

.lead-address {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    line-height: 1.5;
}
.lead-address i {
    margin-top: 3px;
    color: var(--primary);
    opacity: 0.7;
}

.lead-footer {
    margin-top: auto;
}

@keyframes pulseButton {
    0% { box-shadow: 0 0 0 0 rgba(229, 169, 60, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(229, 169, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 169, 60, 0); }
}

.lead-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: var(--gold-gradient);
    color: #000;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    width: 100%;
    text-decoration: none;
    transition: all 0.3s;
    animation: pulseButton 2.5s infinite;
    border: none;
}

.lead-phone:hover {
    animation: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--primary-glow);
    filter: brightness(1.1);
}

.loading-state, .error-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: var(--text-muted);
    gap: 1.5rem;
    text-align: center;
}

.loading-state p {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   LOGIN OVERLAY (PROFILE SELECTOR)
========================================= */
.login-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
}

.login-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.03;
    pointer-events: none;
}

.login-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 2;
}

.login-logo {
    max-width: 240px;
    margin-bottom: 0;
    filter: drop-shadow(0 0 20px rgba(229,169,60,0.2));
}

/* --- Master Password Security Gate (Minimalista & Elegante) --- */
.auth-minimal-container,
#auth-shield-card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.35s ease;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.auth-minimal-container.shake,
#auth-shield-card.shake {
    animation: authShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes authShake {
    10%, 90% { transform: translate3d(-3px, 0, 0); }
    20%, 80% { transform: translate3d(5px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
    40%, 60% { transform: translate3d(6px, 0, 0); }
}

.auth-minimal-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-minimal-bar {
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(22, 22, 30, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 6px 7px 6px 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.auth-minimal-bar:focus-within {
    border-color: rgba(229, 169, 60, 0.65);
    background: rgba(26, 26, 36, 0.9);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(229, 169, 60, 0.22);
}

.auth-minimal-lock {
    color: #71717a;
    font-size: 0.92rem;
    margin-right: 12px;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.auth-minimal-bar:focus-within .auth-minimal-lock {
    color: #E5A93C;
}

.auth-minimal-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    letter-spacing: 0.5px;
    padding: 8px 4px;
}

.auth-minimal-input::placeholder {
    color: #64748b;
    font-weight: 400;
}

.auth-minimal-toggle {
    background: transparent;
    border: none;
    color: #71717a;
    font-size: 0.92rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.auth-minimal-toggle:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.auth-minimal-submit {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E5A93C 0%, #d99726 100%);
    border: none;
    color: #0b0c10;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(229, 169, 60, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    margin-left: 6px;
}

.auth-minimal-submit:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(229, 169, 60, 0.55);
    filter: brightness(1.08);
}

.auth-minimal-submit:active:not(:disabled) {
    transform: scale(0.95);
}

.auth-minimal-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.5);
    transform: none;
}

.auth-feedback-box {
    margin-top: 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #f87171;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    animation: fadeInUp 0.25s ease-out;
}

.auth-feedback-box.locked {
    color: #fca5a5;
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(239, 68, 68, 0.45);
    font-weight: 600;
}

.header-lock-btn:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.login-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.profiles-container {
    display: flex;
    gap: 3rem;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

.profile-card {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.8rem 2.2rem;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.profile-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(229, 169, 60, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.profile-card:hover:not(.disabled) {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--primary-glow);
}

.profile-card:hover:not(.disabled)::after {
    opacity: 1;
}

.profile-card:hover:not(.disabled) .profile-avatar {
    background: var(--gold-gradient);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.profile-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1.4rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.profile-name {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-main);
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.profile-role {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.profile-subdesc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.profile-card-ceo {
    border-color: rgba(245, 158, 11, 0.25) !important;
}

.profile-card-ceo:hover:not(.disabled) {
    border-color: #f59e0b !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.35) !important;
}

.profile-card-ceo .avatar-ceo {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.08);
}

.badge-luz-verde {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.45);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.15);
}

.luz-verde-badge {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(52, 211, 153, 0.22);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}

.profile-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(100%);
}

/* =========================================
   LEAD MODAL
========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s, visibility 0.4s;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-card {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    width: 90%;
    max-width: 600px;
    padding: 4rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(229,169,60,0.2);
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--gold-gradient);
    border-radius: 30px 30px 0 0;
}

.modal-overlay.hidden .modal-card {
    transform: scale(0.9) translateY(20px);
}

.modal-close {
    position: absolute;
    top: 2rem; right: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 45px; height: 45px;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.modal-icon {
    width: 80px; height: 80px;
    background: var(--gold-gradient);
    color: #000;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem auto;
    box-shadow: 0 15px 30px var(--primary-glow);
    transform: rotate(-5deg);
    transition: transform 0.3s;
}
.modal-card:hover .modal-icon {
    transform: rotate(0deg) scale(1.05);
}

.modal-header h3 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}
.modal-header p i {
    color: var(--primary);
}

.modal-body {
    text-align: center;
}

.modal-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.modal-phone-container {
    margin-bottom: 3rem;
}

.modal-phone-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: var(--gold-gradient);
    color: #000;
    padding: 1.5rem 3.5rem;
    border-radius: 100px;
    font-weight: 900;
    font-size: 2.5rem;
    text-decoration: none;
    box-shadow: 0 15px 35px var(--primary-glow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 1px;
}

.modal-phone-large:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(229, 169, 60, 0.5);
    filter: brightness(1.1);
}

.modal-actions {
    display: flex;
    justify-content: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* =========================================
   FAVORITES FEATURE
========================================= */
.sidebar-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 1.5rem 0;
}

.favorites-btn {
    width: 100%;
    margin-bottom: 0.8rem;
    background: rgba(229, 169, 60, 0.05);
    border: 1px solid rgba(229, 169, 60, 0.1);
}
.favorites-btn:hover {
    background: rgba(229, 169, 60, 0.1);
}

.lead-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.lead-header .lead-name {
    margin-bottom: 0;
}

.fav-icon {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0.5rem;
    margin: -0.5rem;
}

.fav-icon:hover {
    color: var(--primary);
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.fav-icon.active {
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

/* ====================================================
   BORME LEADS PRO STYLING
   ==================================================== */

/* Source Tabs in Sidebar */
.source-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.source-tab-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.source-tab-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    transform: translateX(3px);
}

.source-tab-btn.active {
    background: rgba(229, 169, 60, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(229, 169, 60, 0.2);
}

/* Sync BORME Button */
.sync-borme-btn {
    width: calc(100% - 2rem);
    margin: 0.8rem 1rem 0.5rem;
    padding: 0.85rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sync-borme-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

.sync-borme-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Official BOE Button in Sidebar */
.borme-official-btn {
    display: block;
    text-decoration: none;
    margin: 0.5rem 1rem 1.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #E5A93C 0%, #d19733 100%);
    color: #000;
    border-radius: 10px;
    font-weight: 800;
    text-align: center;
    font-size: 0.85rem;
    box-shadow: 0 0 15px rgba(229, 169, 60, 0.3);
    border: 1px solid #E5A93C;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.borme-official-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(229, 169, 60, 0.6);
    filter: brightness(1.05);
}

/* Score Badges */
.lead-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.score-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.score-interesa {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.score-revisar {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.score-baja {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.verification-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #d1d5db;
}

.verification-tag.verified {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
}

/* Objeto Social Description Block */
.lead-social-object {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #e2e8f0;
    max-height: 110px;
    overflow-y: auto;
    position: relative;
}

.lead-social-object strong {
    color: var(--primary);
    font-weight: 600;
}

/* Official Links Pill Buttons */
.official-links-row {
    display: flex;
    gap: 8px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.official-link-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.official-link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.official-link-btn.pdf-btn:hover {
    border-color: #ef4444;
    color: #f87171;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(24, 24, 27, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.2);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 9999;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}

.toast.hidden {
    transform: translateY(40px);
    opacity: 0;
    pointer-events: none;
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(239, 68, 68, 0.2);
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast-icon {
    color: #34d399;
    font-size: 1.2rem;
}

/* ====================================================
   BORME DATE NAVIGATOR BAR
   ==================================================== */
.borme-date-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    margin-bottom: 2rem;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid var(--glass-border);
}

.date-controls-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.date-controls-left label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.borme-date-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    transition: all 0.3s;
}

.borme-date-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.date-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.date-nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.date-today-btn {
    background: rgba(229, 169, 60, 0.15);
    border-color: rgba(229, 169, 60, 0.4);
    color: var(--primary);
}

.date-today-btn:hover {
    background: rgba(229, 169, 60, 0.25);
    border-color: var(--primary);
    color: #fff;
}

.date-controls-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-date-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 8px;
    color: white;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.download-date-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

.download-date-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.synced-dates-select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}

.synced-dates-select:focus {
    border-color: var(--primary);
}

/* ====================================================
   CALL NOTES & AI EMAIL PROPOSAL MODAL
   ==================================================== */
.notes-modal-card {
    max-width: 780px;
    width: 94%;
    padding: 2.2rem 2.5rem;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(229, 169, 60, 0.3);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(229, 169, 60, 0.15);
}

.notes-grid-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

@media (max-width: 640px) {
    .notes-grid-fields {
        grid-template-columns: 1fr;
    }
    .notes-modal-card {
        padding: 1.5rem;
    }
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.45rem;
}

.form-group label i {
    color: var(--primary);
    margin-right: 4px;
}

.modal-input,
.modal-textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(10, 10, 10, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.modal-input:focus,
.modal-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(0, 0, 0, 0.85);
}

.modal-input::placeholder,
.modal-textarea::placeholder {
    color: #64748b;
}

/* Fix: native <select> dropdown options need solid opaque backgrounds */
select.modal-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Eva Dorks selects — solid dark background for fully legible dropdowns */
.dork-select-eva {
    background: #0f0e1a !important;
    border: 1.5px solid rgba(168, 85, 247, 0.45) !important;
    border-radius: 10px !important;
    color: #f1f5f9 !important;
    font-size: 0.93rem !important;
    font-weight: 700 !important;
    padding: 12px 36px 12px 14px !important;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dork-select-eva:hover {
    border-color: rgba(168, 85, 247, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.dork-select-eva:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
    outline: none;
}

select.modal-input option {
    background: #1a1a2e;
    color: #f1f5f9;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 600;
}

select.modal-input option:checked {
    background: #7e22ce;
    color: #ffffff;
}

select.modal-input option:hover {
    background: #2d2b55;
}

select.modal-input optgroup {
    background: #12121f;
    color: #a78bfa;
    font-weight: 800;
    font-size: 0.88rem;
    font-style: normal;
    padding: 6px 0;
}

.modal-textarea {
    resize: vertical;
    line-height: 1.5;
}


/* AI Proposal Box */
.ai-proposal-box {
    background: linear-gradient(135deg, rgba(30, 27, 45, 0.6) 0%, rgba(18, 18, 26, 0.85) 100%);
    border: 1px solid rgba(167, 139, 250, 0.35);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.ai-proposal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e5a93c, #8b5cf6, #3b82f6);
}

.ai-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.generate-proposal-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #4f46e5 100%);
    color: #ffffff;
    border: 1px solid rgba(196, 181, 253, 0.4);
    border-radius: 8px;
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.35);
}

.generate-proposal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.55);
    filter: brightness(1.1);
}

.generate-proposal-btn:active {
    transform: translateY(0);
}

.generate-proposal-btn i {
    color: #fbbf24;
}

.proposal-textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.88rem;
    background: rgba(5, 5, 8, 0.8);
    border-color: rgba(139, 92, 246, 0.25);
    min-height: 160px;
}

.modal-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    transition: all 0.2s ease;
}

.modal-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

.save-contactado-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #ffffff;
    border-radius: 10px;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.save-contactado-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.55);
    filter: brightness(1.08);
}

.save-contactado-btn:active {
    transform: translateY(0);
}

/* ====================================================
   LEAD CARD ACTION BUTTONS (Vibrant & Responsive)
   ==================================================== */
.lead-actions-bottom {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
}

.card-action-btn {
    flex: 1 1 auto;
    min-width: 85px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    text-transform: none;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.card-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.card-action-btn:active {
    transform: translateY(0);
}

/* Agenda button */
.card-btn-agenda {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.45);
}

.card-btn-agenda:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #60a5fa;
    color: #93c5fd;
}

/* Contactado button - Vibrant Gold/Amber */
.card-btn-contactado {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(229, 169, 60, 0.4) 100%);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 12px rgba(229, 169, 60, 0.18);
    font-weight: 800;
}

.card-btn-contactado:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4) 0%, rgba(229, 169, 60, 0.6) 100%);
    border-color: #f59e0b;
    box-shadow: 0 0 16px rgba(229, 169, 60, 0.4);
    color: #ffffff;
}

/* Discard button */
.card-btn-discard {
    flex: 0 0 auto;
    min-width: 40px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.card-btn-discard:hover {
    background: rgba(239, 68, 68, 0.28);
    border-color: #ef4444;
    color: #ffffff;
}

/* Proposal button */
.card-btn-propuesta {
    background: rgba(139, 92, 246, 0.2);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.45);
}

.card-btn-propuesta:hover {
    background: rgba(139, 92, 246, 0.32);
    border-color: #a855f7;
    color: #ffffff;
}

/* Cerrar button */
.card-btn-cerrar {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.45);
}

.card-btn-cerrar:hover {
    background: rgba(16, 185, 129, 0.32);
    border-color: #10b981;
    color: #ffffff;
}

/* ====================================================
   DISCARD MODAL & TAGS
   ==================================================== */
.discard-modal-card {
    max-width: 520px;
    width: 90%;
    padding: 2.2rem;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(239, 68, 68, 0.2);
}

.discard-tag-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.discard-tag-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    transform: translateY(-1px);
}

.discard-tag-btn.active {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Restore button for Papelera */
.card-btn-restore {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.45);
    font-weight: 700;
}

.card-btn-restore:hover {
    background: rgba(59, 130, 246, 0.35);
    border-color: #3b82f6;
    color: #ffffff;
}

/* ====================================================
   SCRIPT HEADER BUTTON
   ==================================================== */
.script-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(229, 169, 60, 0.2) 0%, rgba(229, 169, 60, 0.08) 100%);
    border: 1px solid rgba(229, 169, 60, 0.45);
    color: #fcd34d;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(229, 169, 60, 0.15);
}

.script-header-btn:hover {
    background: linear-gradient(135deg, rgba(229, 169, 60, 0.35) 0%, rgba(229, 169, 60, 0.18) 100%);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(229, 169, 60, 0.35);
    transform: translateY(-1px);
}

.script-header-btn i {
    font-size: 0.95rem;
    color: #E5A93C;
}

/* ====================================================
   BORME SCORE FILTER PILLS
   ==================================================== */
.borme-filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.filter-pill.active {
    background: rgba(229, 169, 60, 0.25);
    border-color: var(--primary);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(229, 169, 60, 0.3);
}

.filter-pill.pill-interesa.active {
    background: rgba(52, 211, 153, 0.25);
    border-color: #34d399;
    color: #a7f3d0;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.3);
}

.filter-pill.pill-revisar.active {
    background: rgba(251, 191, 36, 0.25);
    border-color: #fbbf24;
    color: #fef08a;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

.filter-pill.pill-baja.active {
    background: rgba(148, 163, 184, 0.2);
    border-color: #94a3b8;
    color: #f1f5f9;
}

/* ====================================================
   PLAYBOOK SCRIPT MODAL
   ==================================================== */
.script-modal-card {
    max-width: 820px;
    width: 95%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 2.2rem;
    border: 1px solid rgba(229, 169, 60, 0.35);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(229, 169, 60, 0.15);
}

.script-tabs-bar {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.script-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.script-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.script-tab-btn.active {
    background: rgba(229, 169, 60, 0.22);
    border-color: var(--primary);
    color: #fcd34d;
    box-shadow: 0 0 12px rgba(229, 169, 60, 0.25);
}

.script-tab-content {
    animation: fadeIn 0.3s ease;
}

.script-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
}

.script-box-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.badge-borme {
    background: rgba(229, 169, 60, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(229, 169, 60, 0.4);
}

.badge-maps {
    background: rgba(96, 165, 250, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.4);
}

.script-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #f1f5f9;
}

.copy-script-btn {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.copy-script-btn:hover {
    background: rgba(229, 169, 60, 0.2);
    border-color: var(--primary);
    color: #fcd34d;
}

/* Qualify Cards */
.qualify-card {
    display: flex;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.qualify-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(229, 169, 60, 0.2);
    color: #fcd34d;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qualify-body strong {
    color: #f8fafc;
    font-size: 0.88rem;
    display: block;
    margin-bottom: 3px;
}

.qualify-body p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.45;
}

/* Objections */
.objections-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.objection-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #ef4444;
    border-radius: 10px;
    padding: 12px 16px;
}

.objection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.objection-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fca5a5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-script-mini {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.copy-script-mini:hover {
    color: #fcd34d;
    background: rgba(255, 255, 255, 0.1);
}

.objection-solution {
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.5;
    padding-left: 4px;
}

/* ====================================================
   ENRICHMENT BUTTONS ON CARDS
   ==================================================== */
.enrich-links-row {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.enrich-link-btn {
    flex: 1;
    min-width: 105px;
    text-align: center;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.enrich-link-btn:hover {
    transform: translateY(-1px);
    color: #ffffff;
}

.enrich-link-linkedin {
    background: rgba(10, 102, 194, 0.18);
    border-color: rgba(10, 102, 194, 0.45);
    color: #93c5fd;
}

.enrich-link-linkedin:hover {
    background: rgba(10, 102, 194, 0.35);
    border-color: #0a66c2;
    color: #ffffff;
}

.enrich-link-infocif {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(52, 211, 153, 0.4);
    color: #6ee7b7;
}

.enrich-link-infocif:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: #10b981;
    color: #ffffff;
}

.enrich-link-google {
    background: rgba(234, 67, 53, 0.12);
    border-color: rgba(234, 67, 53, 0.35);
    color: #fca5a5;
}

.enrich-link-google:hover {
    background: rgba(234, 67, 53, 0.25);
    border-color: #ea4335;
    color: #ffffff;
}

/* ====================================================
   INLINE PHONE EDITOR & ACTIVE PHONE CALL
   ==================================================== */
.quick-phone-box {
    margin-top: 6px;
}

.add-phone-trigger-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: #94a3b8;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.add-phone-trigger-btn:hover {
    border-color: #60a5fa;
    color: #93c5fd;
    background: rgba(96, 165, 250, 0.1);
}

.phone-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.inline-phone-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 6px;
    color: #ffffff;
    padding: 5px 8px;
    font-size: 0.82rem;
    font-weight: 600;
    outline: none;
    width: 140px;
    font-family: inherit;
}

.inline-phone-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.3);
}

.inline-phone-save {
    background: rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(52, 211, 153, 0.5);
    color: #34d399;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.inline-phone-save:hover {
    background: #10b981;
    color: #ffffff;
}

.inline-phone-cancel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.inline-phone-cancel:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: #ef4444;
}

.phone-call-btn-active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #93c5fd;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.phone-call-btn-active:hover {
    background: rgba(96, 165, 250, 0.3);
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.35);
    transform: translateY(-1px);
}

/* ====================================================
   DORKS LEAD CAPTURE PRO STUDIO
   ==================================================== */
.dorks-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.3s ease;
    padding-bottom: 2rem;
}

/* Global Hidden Helper */
.hidden {
    display: none !important;
}

.dork-tab-pane.hidden {
    display: none !important;
}

.dorks-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 14px 20px;
    border-radius: 14px;
    margin: 0 auto 1.25rem auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 850px) {
    .dorks-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dorks-stats-row .stat-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
}

.dorks-stats-row .stat-card:not(:first-child) {
    border-left: 1px solid var(--glass-border);
}

@media (max-width: 850px) {
    .dorks-stats-row .stat-card:nth-child(2n+1) {
        border-left: none;
    }
}

.dorks-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 1280px) {
    .dorks-grid {
        grid-template-columns: 1fr;
    }
}

.dorks-card {
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    position: relative;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.dorks-form-card {
    border-color: rgba(192, 132, 252, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.1);
}

.dorks-card-header {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.85rem;
}

.dorks-card-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.dorks-card-header p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.dorks-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dorks-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.dorks-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.dorks-chip input {
    display: none;
}

.dorks-chip:hover {
    background: rgba(192, 132, 252, 0.15);
    border-color: rgba(192, 132, 252, 0.4);
    color: #e9d5ff;
}

.dorks-chip.active {
    background: rgba(168, 85, 247, 0.25);
    border-color: #a855f7;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

.dorks-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    cursor: pointer;
    margin-top: 6px;
}

.dorks-checkbox-label input {
    accent-color: #a855f7;
    width: 16px;
    height: 16px;
}

.dorks-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.25rem;
}

.dorks-status-msg {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #e9d5ff;
    animation: fadeIn 0.2s ease;
}

/* Botón Gigante de Máxima Potencia para Eva */
.eva-huge-btn {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 60%, #6b21a8 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(233, 213, 255, 0.45) !important;
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.4) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.eva-huge-btn:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.6) !important;
    filter: brightness(1.1) !important;
}

.eva-huge-btn:active {
    transform: translateY(0) scale(0.99) !important;
}

/* Acordeón de Opciones Técnicas Avanzadas */
.dorks-advanced-accordion summary {
    outline: none;
    transition: color 0.2s ease;
}

.dorks-advanced-accordion summary:hover {
    color: #e9d5ff;
}

.dorks-advanced-accordion[open] summary {
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
}

/* Caja de Captura Rápida de Google */
.dorks-quick-capture-box {
    transition: all 0.25s ease;
}

.dorks-quick-capture-box:hover {
    border-color: rgba(168, 85, 247, 0.7);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.16) 0%, rgba(59, 130, 246, 0.12) 100%);
}

/* Results panel */
.dorks-results-card {
    min-height: 580px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.dorks-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.dorks-tabs {
    display: flex;
    gap: 6px;
}

.dork-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dork-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dork-tab-btn.active {
    background: rgba(168, 85, 247, 0.25);
    border-color: #a855f7;
    color: #e9d5ff;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.dorks-export-bar {
    display: flex;
    gap: 6px;
    align-items: center;
}

.dork-export-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 6px 11px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.dork-export-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-1px);
}

.dork-export-btn.btn-csv {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.dork-export-btn.btn-csv:hover {
    background: rgba(16, 185, 129, 0.32);
    color: #ffffff;
}

.dork-export-btn.btn-transfer {
    background: linear-gradient(135deg, rgba(229, 169, 60, 0.25) 0%, rgba(229, 169, 60, 0.12) 100%);
    border-color: rgba(229, 169, 60, 0.45);
    color: #fcd34d;
}

.dork-export-btn.btn-transfer:hover {
    background: linear-gradient(135deg, rgba(229, 169, 60, 0.4) 0%, rgba(229, 169, 60, 0.2) 100%);
    color: #ffffff;
}

.dork-tab-pane {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.dorks-queries-list, .dorks-leads-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dork-query-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.dork-query-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(168, 85, 247, 0.3);
}

.dork-query-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    color: #f1f5f9;
    word-break: break-all;
    line-height: 1.4;
}

.dork-query-meta {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.dork-pill-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    text-transform: uppercase;
}

.dork-query-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.dork-google-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #93c5fd;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dork-google-btn:hover {
    background: rgba(59, 130, 246, 0.35);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.dork-copy-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 6px 9px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.dork-copy-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

/* Leads Cards */
.dork-lead-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
}

.dork-lead-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(168, 85, 247, 0.35);
    transform: translateY(-1px);
}

.dork-lead-info {
    flex: 1;
}

.dork-lead-name {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.dork-lead-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.84rem;
    color: #cbd5e1;
    margin-top: 4px;
}

.dork-lead-contacts span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dork-lead-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.dork-transfer-lead-btn {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #e9d5ff;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.dork-transfer-lead-btn:hover {
    background: rgba(168, 85, 247, 0.35);
    border-color: #a855f7;
    color: #ffffff;
}

.dorks-empty-state {
    text-align: center;
    padding: 3.5rem 2rem;
    color: var(--text-muted);
}

.dorks-empty-state i {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    opacity: 0.4;
    color: #c084fc;
}

.dorks-empty-state p {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 6px;
}

.dorks-empty-state span {
    font-size: 0.85rem;
    display: block;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.4;
}

/* ============================================================
   TABLA GIGANTE DE LEADS DORKS (CAPTADOR ÉLITE)
   ============================================================ */

.dorks-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.dorks-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.dorks-table-search-box {
    position: relative;
    min-width: 180px;
    max-width: 260px;
    flex: 1;
}

.dorks-table-search-box i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.82rem;
    pointer-events: none;
}

.dorks-table-search-box input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    font-size: 0.84rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

.dorks-table-search-box input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.25);
    background: rgba(15, 23, 42, 0.9);
}

.dorks-filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.dork-filter-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dork-filter-pill:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: #ffffff;
}

.dork-filter-pill.active {
    background: #a855f7;
    border-color: #c084fc;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.dorks-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

#dorks-batch-contactados-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid #34d399;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

#dorks-batch-contactados-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #334155;
    border-color: #475569;
    box-shadow: none;
}

#dorks-batch-contactados-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
}

/* Tabla Gigante Scrollable */
.dorks-table-wrapper {
    overflow-x: auto;
    max-height: calc(100vh - 350px);
    min-height: 380px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 15, 30, 0.45);
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
    contain: paint layout;
}

.dorks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
    white-space: nowrap;
}

.dorks-table thead {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #0d1322;
    border-bottom: 2px solid rgba(168, 85, 247, 0.35);
}

.dorks-table th {
    padding: 10px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #94a3b8;
    text-transform: uppercase;
    user-select: none;
    text-align: center !important;
}

.dorks-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
}

.dorks-table tbody tr:hover {
    background: rgba(168, 85, 247, 0.08);
}

.dorks-table tbody tr.row-selected {
    background: rgba(59, 130, 246, 0.12);
}

.dorks-table tbody tr.row-contactado {
    background: rgba(16, 185, 129, 0.07);
}

.dorks-table td {
    padding: 10px 10px;
    vertical-align: middle;
    text-align: center !important;
}

/* Celdas Específicas Completamente Centradas */
.table-company-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    max-width: 220px;
    margin: 0 auto;
    text-align: center;
}

.table-company-name {
    font-weight: 800;
    color: #ffffff;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.25;
}

.table-sector-badge {
    font-size: 0.7rem;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 auto;
}

.table-phone-cell, .table-email-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.table-phone-link {
    color: #4ade80;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    transition: color 0.15s;
}

.table-phone-link:hover {
    color: #86efac;
    text-decoration: underline;
}

.table-email-link {
    color: #7dd3fc;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 175px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.82rem;
    transition: color 0.15s;
}

.table-email-link:hover {
    color: #bae6fd;
    text-decoration: underline;
}

.table-copy-mini-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 0.74rem;
    transition: all 0.15s;
}

.table-copy-mini-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.table-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 6px;
}

.table-social-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.table-social-instagram {
    background: rgba(225, 48, 108, 0.18);
    color: #f472b6;
    border: 1px solid rgba(225, 48, 108, 0.35);
}

.table-social-instagram:hover {
    background: rgba(225, 48, 108, 0.3);
    color: #fbcfe8;
}

.table-social-facebook {
    background: rgba(24, 119, 242, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(24, 119, 242, 0.35);
}

.table-social-linkedin {
    background: rgba(10, 102, 194, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(10, 102, 194, 0.35);
}

.table-social-web {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

/* Botón de Acción Directa en Fila: "Enviar a Contactados" */
.table-action-contactado-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid #34d399;
    color: #ffffff;
    border-radius: 8px;
    padding: 7px 13px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    font-family: inherit;
}

.table-action-contactado-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
    background: #10b981;
}

.table-contactado-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

/* ========================================================
   LIVE CALL CONSOLE FOR EVA (ESTACIÓN DE LLAMADAS EN DIRECTO)
   ======================================================== */
.call-console-card {
    max-width: 720px !important;
    width: 95% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

.call-console-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.modal-call-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
    cursor: pointer;
}

.modal-call-btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    color: #ffffff !important;
}

.modal-mini-tool-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-mini-tool-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--text-main);
}

.modal-script-trigger-btn {
    background: rgba(229, 169, 60, 0.15);
    border: 1px solid rgba(229, 169, 60, 0.4);
    color: #f6c065;
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.modal-script-trigger-btn:hover {
    background: rgba(229, 169, 60, 0.25);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(229, 169, 60, 0.3);
}

.save-contactado-btn.primary-finish-call {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #ffffff;
    font-family: inherit;
}

.save-contactado-btn.primary-finish-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.modal-aux-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.modal-aux-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.card-btn-call {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25) !important;
    flex: 1.8 !important;
    cursor: pointer;
}

.card-btn-call:hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45) !important;
    transform: translateY(-1px);
    background: linear-gradient(135deg, #34d399 0%, #059669 100%) !important;
}

.table-action-call-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #ffffff;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    font-family: inherit;
}

.table-action-call-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
    background: #10b981;
}

.lead-card {
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lead-card:hover {
    border-color: rgba(229, 169, 60, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Guion de Apertura Rápido y Editable para Eva */
.eva-script-preview-box {
    margin-top: 0.85rem;
    margin-bottom: 1.15rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
}

.eva-script-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.eva-script-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #e2e8f0;
}

.eva-script-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.eva-script-actions .modal-mini-tool-btn {
    font-size: 0.74rem;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.eva-script-actions .modal-mini-tool-btn:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
    color: #93c5fd;
    transform: translateY(-1px);
}

.eva-script-textarea {
    width: 100%;
    min-height: 62px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 0.88rem;
    line-height: 1.45;
    padding: 8px 12px;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.eva-script-textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25);
    outline: none;
    background: rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   PRESUPUESTOS & PRICING STUDIO (EXCLUSIVO CEOs)
   ========================================================================== */

.presupuestos-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    max-height: calc(100vh - 120px);
    overflow: hidden;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
}

.presupuestos-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1.2rem;
    border-radius: 14px;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.75) 0%, rgba(15, 15, 18, 0.85) 100%);
    border: 1px solid rgba(167, 139, 250, 0.25);
    flex-shrink: 0;
}

.presupuestos-tag-ceo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.presupuestos-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.presupuestos-subtitle {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.presupuestos-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pres-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 9px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pres-action-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.pres-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.pres-action-btn.primary-save {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border: 1px solid rgba(167, 139, 250, 0.5);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.3);
}

.pres-action-btn.primary-save:hover {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(109, 40, 217, 0.45);
}

.pres-action-btn.primary-export {
    background: linear-gradient(135deg, #E5A93C 0%, #d97706 100%);
    border: 1px solid rgba(229, 169, 60, 0.5);
    color: #000000;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(229, 169, 60, 0.25);
}

.pres-action-btn.primary-export:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(229, 169, 60, 0.4);
}

/* Layout Grid 2 Columnas */
.presupuestos-grid {
    display: grid;
    grid-template-columns: 410px 1fr;
    gap: 1.15rem;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .presupuestos-container {
        height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    .presupuestos-grid {
        grid-template-columns: 1fr;
        overflow: visible;
        gap: 1.5rem;
    }
    .presupuestos-editor-column {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    .presupuestos-preview-column {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin-top: 1rem;
        padding-bottom: 3rem;
    }
    .pricing-canvas-viewport-wrapper {
        min-height: 520px;
        overflow: visible;
    }
}

/* Columna Izquierda: Editor */
.presupuestos-editor-column {
    border-radius: 18px;
    padding: 1.15rem;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    background: rgba(18, 18, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.pres-accordion-box {
    margin-bottom: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    transition: border-color 0.2s;
}

.pres-accordion-box:hover {
    border-color: rgba(167, 139, 250, 0.3);
}

.pres-accordion-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 0.85rem;
}

.pres-accordion-header h4 {
    font-size: 0.94rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.pres-step-badge {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(167, 139, 250, 0.2);
    color: #c4b5fd;
    font-size: 0.76rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pres-input {
    font-size: 0.85rem;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.2s;
}

.pres-input:focus {
    border-color: #a78bfa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.2);
}

.pres-textarea {
    font-size: 0.85rem;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
}

.pres-textarea:focus {
    border-color: #a78bfa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.2);
}

/* Extras Inputs List */
.pres-extras-inputs-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.pres-extra-row-edit {
    display: grid;
    grid-template-columns: 1fr 1fr 80px 32px;
    gap: 6px;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pres-extra-del-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.pres-extra-del-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

.pres-add-row-btn {
    width: 100%;
    padding: 8px;
    background: rgba(167, 139, 250, 0.08);
    border: 1px dashed rgba(167, 139, 250, 0.35);
    color: #c4b5fd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pres-add-row-btn:hover {
    background: rgba(167, 139, 250, 0.18);
    border-color: #a78bfa;
    color: #ffffff;
}

/* Columna Derecha: Canvas Preview */
.presupuestos-preview-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    padding-bottom: 0;
}

.preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 760px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.3);
    color: #e9d5ff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Contenedor flexible con auto-escalado A4 (Fit-to-Page / Fit-to-Width) */
.pricing-canvas-viewport-wrapper {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 6px 10px 20px 6px;
    scroll-behavior: smooth;
}

.pricing-canvas-viewport-wrapper::-webkit-scrollbar {
    width: 6px;
}

.pricing-canvas-viewport-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.pricing-canvas-viewport-wrapper::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.28);
    border-radius: 999px;
}

.pricing-canvas-viewport-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.5);
}

/* Controles de Zoom en Toolbar de Previsualización */
.canvas-zoom-controls {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 2px 4px;
    gap: 3px;
}

.zoom-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    transition: all 0.2s;
}

.zoom-btn:hover {
    background: rgba(167, 139, 250, 0.25);
    color: #ffffff;
}

.zoom-indicator {
    font-size: 0.73rem;
    color: #c4b5fd;
    font-weight: 700;
    min-width: 44px;
    text-align: center;
    padding: 0 3px;
}

.zoom-mode-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.zoom-mode-btn:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
}

.zoom-mode-btn.active {
    background: rgba(167, 139, 250, 0.25);
    border-color: rgba(167, 139, 250, 0.45);
    color: #e9d5ff;
    font-weight: 700;
}

/* ==========================================================================
   CANVAS DE LA PLANTILLA DARK STUDIO - FORMATO A4 EJECUTIVO ESTÁNDAR (210 x 297 mm)
   ========================================================================== */

.pricing-template-canvas {
    width: 760px;
    height: 1075px;
    min-height: 1075px;
    max-height: 1075px;
    aspect-ratio: 210 / 297;
    background-color: #070709;
    background: radial-gradient(130% 65% at 50% -12%, rgba(139, 92, 246, 0.16) 0%, rgba(20, 19, 28, 0.96) 42%, #070709 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 32px 34px 28px 34px;
    box-shadow: 0 35px 85px -15px rgba(0, 0, 0, 0.95), 0 0 50px rgba(124, 58, 237, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
    position: relative;
    user-select: text;
    overflow: hidden;
    transform-origin: top center;
    transition: transform 0.15s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

/* Línea sutil de halo superior */
.canvas-ambient-top-glow {
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(167, 139, 250, 0.85) 50%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* 1. Header Ejecutivo Armchairs Solutions */
.pricing-canvas-header-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.header-brand-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-ring {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(139, 92, 246, 0.6) 100%);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-brand-logo-pro {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff;
    object-fit: cover;
}

.header-brand-text {
    display: flex;
    flex-direction: column;
}

.pricing-main-title-pro {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.pricing-sub-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #a78bfa;
    margin-top: 2px;
    text-transform: uppercase;
}

.header-client-meta {
    display: flex;
    gap: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 7px 16px;
    align-items: center;
}

.meta-pill-item {
    font-size: 0.78rem;
    color: #f1f5f9;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.meta-pill-tag {
    font-size: 0.65rem;
    color: #a78bfa;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
}

.meta-pulse-dot {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    display: inline-block;
    margin-right: 5px;
}

.meta-label {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.65rem;
    margin-right: 4px;
    letter-spacing: 0.4px;
}

/* 2. Barra de Objetivo y Alcance Estratégico */
.pricing-objective-bar {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-left: 3.5px solid #8b5cf6;
    border-radius: 10px;
    padding: 6px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.objective-badge {
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.35);
    font-size: 0.63rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.objective-text {
    font-size: 0.79rem;
    color: #f1f5f9;
    font-weight: 400;
    line-height: 1.3;
}

/* 3. Tarjetas Ejecutivas */
.pricing-tier-card-pro {
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    page-break-inside: avoid;
    break-inside: avoid;
    transition: transform 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

/* Pack 1: Recomendado • Solución Integral Llave en Mano */
.pricing-tier-card-pro.featured-pack {
    background-color: #121118;
    background-image: linear-gradient(165deg, rgba(32, 27, 48, 0.88) 0%, rgba(17, 16, 24, 0.96) 55%, rgba(10, 10, 14, 0.98) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 14px 35px -8px rgba(0, 0, 0, 0.75), 0 0 25px rgba(139, 92, 246, 0.08);
}

.card-featured-glow-line {
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.7) 25%, rgba(167, 139, 250, 0.9) 75%, transparent 100%);
    pointer-events: none;
}

/* Pack 2: Alternativa • Pago Único */
.pricing-tier-card-pro:not(.featured-pack) {
    background-color: #0e0e12;
    background-image: linear-gradient(165deg, rgba(22, 22, 28, 0.78) 0%, rgba(13, 13, 16, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.card-pro-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.card-title-group {
    flex: 1 1 58%;
    min-width: 0;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3.5px 11px;
    border-radius: 999px;
    text-transform: uppercase;
    margin-bottom: 7px;
    white-space: nowrap;
}

.card-badge.featured-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #000000;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35);
}

.card-badge.secondary-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #f4f4f5;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.tier-card-title-pro {
    font-size: 1.28rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 7px;
    letter-spacing: -0.3px;
    line-height: 1.2;
    word-break: break-word;
}

.tier-card-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 6px;
}

.meta-tag {
    font-size: 0.72rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 9px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.meta-tag i {
    color: #a78bfa;
}

.card-price-group {
    flex: 0 0 auto;
    max-width: 42%;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.tier-price-row-pro {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 2px;
    line-height: 1;
}

.tier-price-amount-pro {
    font-size: 2.85rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.tier-price-symbol-pro {
    font-size: 1.85rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1;
    margin-left: 2px;
}

.tier-subprice-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 3.5px 11px;
    border-radius: 999px;
    margin-top: 5px;
    letter-spacing: 0.1px;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
    text-align: right;
}

.tier-subprice-badge.secondary-sub {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.tier-condition-subtext {
    font-size: 0.69rem;
    color: #94a3b8;
    margin-top: 4px;
    line-height: 1.25;
    text-align: right;
    max-width: 100%;
    white-space: normal;
}

.card-pro-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 16px 0;
}

/* Grid de Entregables a 2 Columnas Compatible al 100% con html2canvas y PDF */
.card-pro-features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 9px;
}

.feature-item-pro {
    width: 48%;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.84rem;
    color: #f1f5f9;
    line-height: 1.35;
    font-weight: 400;
    box-sizing: border-box;
    margin-bottom: 0;
}

.feature-bullet-badge {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    flex-shrink: 0;
}

.feature-bullet-badge.p2-bullet {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #94a3b8;
}

/* 4. Franja de Garantías y Compromiso de Calidad */
.pricing-trust-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 8px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    text-align: center;
    flex-shrink: 0;
}

.trust-item {
    flex: 1;
    font-size: 0.69rem;
    color: #cbd5e1;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.trust-icon-box {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}

/* 5. Pie de Página Ejecutivo */
.pricing-canvas-footer-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.footer-pro-left {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #cbd5e1;
    white-space: nowrap;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.footer-seal {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
    flex-shrink: 0;
}

.footer-deer-mini {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.footer-pro-right {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.66rem;
    white-space: nowrap;
    text-align: right;
    flex-shrink: 0;
}

/* Sección Servicios Adicionales (Дополнительные услуги) */
.pricing-extras-section {
    margin-top: 36px;
}

.pricing-extras-heading {
    font-size: 1.85rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}

.pricing-extras-card {
    background: #141416;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 10px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.extras-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
}

.extras-row:last-child {
    border-bottom: none;
}

.extras-row-left {
    color: #e4e4e7;
    font-weight: 400;
    flex: 1;
    padding-right: 14px;
}

.extras-row-desc {
    color: #71717a;
    font-size: 0.8rem;
    margin-left: 6px;
    font-weight: 300;
}

.extras-row-price {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.08rem;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* Pie del Canvas */
.pricing-canvas-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: #71717a;
    flex-wrap: wrap;
    gap: 8px;
}

.canvas-footer-sep {
    margin: 0 6px;
    color: #52525b;
}

/* Modal de Presupuestos Guardados */
.pres-saved-list-wrapper {
    max-height: 480px;
    overflow-y: auto;
}

.pres-saved-table th {
    font-size: 0.78rem;
    color: #94a3b8;
    padding: 10px;
}

.pres-saved-table td {
    padding: 12px 10px;
    font-size: 0.85rem;
}

.pres-saved-action-btn {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.2s;
    margin: 0 2px;
}

.pres-saved-action-btn.btn-load {
    background: rgba(167, 139, 250, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(167, 139, 250, 0.35);
}

.pres-saved-action-btn.btn-load:hover {
    background: rgba(167, 139, 250, 0.35);
    color: #ffffff;
}

.pres-saved-action-btn.btn-delete {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.pres-saved-action-btn.btn-delete:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   PRINT STYLES FOR PDF EXPORT (@media print)
   Garantiza que la plantilla de presupuesto se imprima en 1 sola página exacta,
   con diseño Dark Studio 100% idéntico al CRM de borde a borde y sin márgenes blancos.
   ========================================================================== */

@page {
    size: A4 portrait;
    margin: 0;
}

@media print {
    *, *::before, *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    html, body {
        background-color: #070709 !important;
        background: #070709 !important;
        color: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 210mm !important;
        height: 297mm !important;
        max-height: 297mm !important;
        overflow: hidden !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .bg-shape,
    .sidebar,
    .top-header,
    .stats-row,
    .borme-date-bar,
    .borme-filter-bar,
    .presupuestos-top-bar,
    .presupuestos-editor-column,
    .preview-toolbar,
    .modal-overlay,
    .toast,
    #refresh-btn,
    .login-overlay {
        display: none !important;
    }

    .dashboard,
    .main-content,
    .content-body,
    .presupuestos-container,
    .presupuestos-grid,
    .presupuestos-preview-column,
    .pricing-canvas-viewport-wrapper {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
        background: #070709 !important;
    }

    .pricing-template-canvas {
        margin: 0 auto !important;
        transform: none !important;
        transform-origin: top center !important;
        width: 210mm !important;
        max-width: 210mm !important;
        height: 297mm !important;
        max-height: 297mm !important;
        box-sizing: border-box !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
        padding: 9mm 12mm 7mm 12mm !important;
        border: none !important;
        border-radius: 0 !important;
        background-color: #070709 !important;
        background: radial-gradient(130% 65% at 50% -12%, rgba(139, 92, 246, 0.16) 0%, rgba(20, 19, 28, 0.96) 42%, #070709 100%) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .pricing-tier-card-pro.featured-pack {
        background-color: #121118 !important;
        background-image: linear-gradient(165deg, rgba(32, 27, 48, 0.92) 0%, rgba(17, 16, 24, 0.98) 55%, #0a0a0e 100%) !important;
        border: 1px solid rgba(139, 92, 246, 0.2) !important;
        box-shadow: 0 14px 35px -8px rgba(0, 0, 0, 0.75) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .pricing-tier-card-pro:not(.featured-pack) {
        background-color: #0e0e12 !important;
        background-image: linear-gradient(165deg, rgba(22, 22, 28, 0.9) 0%, #0d0d10 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.04) !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}











