/* ==========================================================================
   SUNERA Marketing & Lead Nurturing Hub - Estilos Premium
   Glassmorphism, Cyberpunk Solar, Micro-animaciones & Tipografía Editorial
   ========================================================================== */

:root {
    --sunera-gold: #fdb813;
    --sunera-gold-dark: #d97706;
    --sunera-rose: #f43f5e;
    --sunera-rose-dark: #be123c;
    --sunera-cyan: #06b6d4;
    --sunera-emerald: #10b981;
    --sunera-dark: #090d16;
    --sunera-card: rgba(15, 23, 42, 0.75);
    --sunera-border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: #030712;
    background-image: 
        radial-gradient(at 10% 20%, rgba(244, 63, 94, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 10%, rgba(253, 184, 19, 0.07) 0px, transparent 50%),
        radial-gradient(at 50% 90%, rgba(14, 165, 233, 0.06) 0px, transparent 50%);
    background-attachment: fixed;
    color: #f1f5f9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Cards */
.glass-panel {
    background: var(--sunera-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--sunera-border);
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
}

/* Metric Cards */
.metric-card {
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.8;
}

/* Thermal Badges */
.badge-cold-critico {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-cold-estancado {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.35);
}

.badge-cold-enfriandose {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.35);
}

.badge-cold-activo {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--sunera-gold);
}

/* Pulsing Inactive Dot */
.pulse-critico {
    animation: pulseRed 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseRed {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.15); }
}

/* Lead Table Row */
.lead-row {
    transition: all 0.2s ease;
}

.lead-row:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.lead-row.selected {
    background-color: rgba(244, 63, 94, 0.08) !important;
    border-color: rgba(244, 63, 94, 0.4);
}

/* Template Card */
.template-pill-active {
    background: linear-gradient(135deg, #f43f5e, #be123c) !important;
    color: #ffffff !important;
    border-color: #f43f5e !important;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
}

/* Action Buttons */
.btn-nurture-email {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
    transition: all 0.2s ease;
}

.btn-nurture-email:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(244, 63, 94, 0.45);
}

.btn-nurture-wa {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.btn-nurture-wa:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* Preview Email Sandbox */
.email-preview-container {
    background: #ffffff;
    color: #1e293b;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}
