﻿:root {
    --primary: #0A1F44;
    --secondary: #C8102E;
    --bg: #FFFFFF;
    --surface: #F5F5F5;
    --text: #333333;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0; font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg); color: var(--text);
    overflow-x: hidden;
}
.navbar {
    background-color: var(--primary); padding: 1.2rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.logo { color: white; font-weight: 800; font-size: 1.8rem; letter-spacing: 1px; }
.logo span { color: var(--secondary); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-links a { 
    color: white; text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; 
    transition: color 0.2s ease;
}
.nav-links a:hover {
    color: #e0e0e0;
}

.hero {
    text-align: center; padding: 5rem 5%; background: var(--surface);
    border-bottom: 1px solid #ddd;
}
.hero h1 { 
    color: var(--primary); 
    font-size: clamp(1.8rem, 5vw, 3.2rem); 
    margin-bottom: 1.5rem; 
    letter-spacing: -0.5px; 
    line-height: 1.2;
}
.hero p { 
    font-size: clamp(1rem, 2.2vw, 1.3rem); 
    color: #555; 
    max-width: 800px; 
    margin: 0 auto 2.5rem; 
    line-height: 1.6; 
}
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn { 
    padding: 0.9rem 2rem; 
    border-radius: 4px; 
    text-decoration: none; 
    font-weight: bold; 
    display: inline-block; 
    transition: all 0.3s ease; 
    text-align: center;
    font-size: 1rem;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary { background-color: var(--secondary); color: white; border: 2px solid var(--secondary); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }

.features { 
    display: flex; 
    justify-content: center; 
    align-items: stretch;
    gap: 2rem; 
    padding: 4rem 5%; 
    flex-wrap: wrap;
}
.feature-card { 
    background: white; 
    padding: 2.5rem 2rem; 
    border-radius: 8px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
    width: 100%;
    max-width: 380px; 
    text-align: center; 
    border-top: 5px solid var(--primary); 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.feature-card h3 { color: var(--primary); font-size: 1.4rem; margin-bottom: 1rem; margin-top: 0; }
.feature-card p { color: #666; line-height: 1.5; margin-bottom: 0; }

/* REGLA A PRUEBA DE BALAS: Evita sobreposición de botones */
.nexus-widget-safe {
    position: fixed !important; 
    bottom: 24px !important; 
    right: 24px !important; 
    z-index: 2147483647 !important; /* Max Z-index */
}
.chat-toggle {
    background: var(--primary); color: white; border: 2px solid white;
    padding: 0.9rem 1.8rem; border-radius: 30px; cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2); font-weight: bold;
    font-size: 0.95rem;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
        padding: 1rem 5%;
    }
    .nav-links {
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
        gap: 1rem;
    }
    .hero {
        padding: 3.5rem 1.2rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        margin: 0.3rem 0;
    }
    .features {
        padding: 2.5rem 1.2rem;
        gap: 1.5rem;
    }
    .feature-card {
        padding: 2rem 1.5rem;
    }
    .nexus-widget-safe {
        bottom: 15px !important;
        right: 15px !important;
    }
    .chat-toggle {
        padding: 0.75rem 1.4rem;
        font-size: 0.85rem;
    }
}
