/* VARIABLES DE COLOR SIFACON */
:root {
    --bg-light: #f4f6f9;
    --primary: #004a99;
    --primary-dark: #003366;
    --text-dark: #1a1f36;
    --text-muted: #4f566b;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.crm-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* HERO SECTION */
.crm-hero {
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 74, 153, 0.9)), 
                url('https://images.unsplash.com/photo-1552581234-26160f608093?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    color: var(--white);
    text-align: center;
}

.crm-badge {
    background: rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

.crm-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.crm-hero h1 span {
    color: #4facfe;
}

.crm-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.crm-btn-primary {
    background: var(--white);
    color: var(--primary);
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin: 10px;
    display: inline-block;
    transition: 0.3s;
}

.crm-btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--white);
    margin: 10px;
    display: inline-block;
    transition: 0.3s;
}

/* MÓDULOS / CARDS */
.crm-intro {
    padding: 80px 0 40px;
    text-align: center;
}

.crm-section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 800;
}

.crm-grid-section {
    padding-bottom: 80px;
}

.crm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.crm-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
    transition: 0.4s;
}

.crm-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.crm-card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.crm-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.crm-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* SECCIÓN RESULTADOS */
.crm-results {
    background: var(--text-dark);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.crm-results-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 50px;
}

.result-item .result-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #4facfe;
}

/* CTA BOX */
.crm-cta {
    padding: 100px 0;
}

.crm-cta-box {
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    color: var(--white);
}

.crm-btn-white {
    background: var(--white);
    color: var(--primary);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
    margin-top: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .crm-hero { padding: 80px 20px; }
    .crm-results-grid { gap: 40px; }
    .crm-cta-box { padding: 40px 20px; }
}











/* --- ESTILOS CRM INTELIGENTE --- */
.crm-ia-sales {
    background: #ffffff;
    overflow: hidden;
}

.crm-badge-ia {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.text-blue-gradient {
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.crm-ia-grid .crm-ia-item {
    display: flex;
    gap: 20px;
}

.crm-ia-icon {
    min-width: 50px;
    height: 50px;
    background: #0f172a;
    color: #0ea5e9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* Tarjeta de IA (Lado Derecho) */
.crm-ia-visual {
    position: relative;
    padding: 40px;
}

.crm-glass-card {
    background: #0f172a;
    border-radius: 24px;
    padding: 30px;
    color: white;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
}

.card-header-crm {
    color: #0ea5e9;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.crm-user-prediction {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 15px;
}

.prediction-score {
    margin-left: auto;
    font-size: 1.5rem;
    font-weight: 800;
    color: #10b981;
}

.ai-suggestion {
    margin-top: 20px;
    background: rgba(14, 165, 233, 0.15);
    border-left: 4px solid #0ea5e9;
    padding: 12px;
    border-radius: 0 10px 10px 0;
    font-size: 0.85rem;
    display: flex;
    gap: 10px;
}

.prediction-graph {
    margin-top: 25px;
    height: 80px;
    position: relative;
}

.svg-line {
    width: 100%;
    height: 100%;
}

.line-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #0ea5e9;
    border-radius: 50%;
}

.line-dot.active {
    box-shadow: 0 0 15px #0ea5e9;
    transform: scale(1.5);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(1.5); opacity: 1; }
    50% { transform: scale(2.5); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 1; }
}

/* Stats Flotantes */
.floating-stat {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    font-weight: 700;
    color: #0f172a;
    z-index: 3;
}

.stat-1 { top: 10%; right: 0; border-bottom: 4px solid #10b981; }
.stat-2 { bottom: 10%; left: 0; border-bottom: 4px solid #0ea5e9; }

/* Responsive */
@media (max-width: 991px) {
    .crm-ia-visual { margin-top: 40px; padding: 20px; }
}















