/* ==========================================================================
   1. VARIABLES Y ESTILOS BASE (Se mantienen igual)
   ========================================================================== */
:root {
    --bg: #05070a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --primary: #0070f3;
    --accent: #00dfd8;
    --text-main: #ffffff;
    --text-dim: #94a3b8;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.glow-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% -20%, #003366 0%, transparent 50%);
    z-index: -1;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ==========================================================================
   2. NAVEGACIÓN (Consolidada)
   ========================================================================== */
.main-header {
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dim);
    transition: color 0.3s;
}

.nav-menu a:hover { color: var(--primary); }

/* El botón de Iniciar Proyecto (Consolidado) */
.nav-menu li:last-child a {
    background: var(--primary);
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 112, 243, 0.3);
    transition: all 0.3s ease;
}

.nav-menu li:last-child a:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.logo { font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; }
.logo span { color: var(--primary); }

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero { padding: 10rem 0 5rem; }
.hero h1 { font-size: 4.5rem; font-weight: 800; line-height: 1.1; margin: 1rem 0; }
.hero h1 span { 
    background: linear-gradient(90deg, var(--primary), var(--accent)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.badge { 
    background: rgba(0, 112, 243, 0.1); 
    border: 1px solid var(--primary); 
    color: var(--accent); 
    padding: 0.5rem 1rem; 
    border-radius: 50px; 
    font-size: 0.8rem; 
    font-weight: 600; 
}

/* ==========================================================================
   4. TARJETAS DE SERVICIOS (Eliminada la duplicidad)
   ========================================================================== */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    margin-top: 4rem; 
}

.service-card {
    background: rgba(255, 255, 255, 0.03);  
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3rem 2rem;
    border-radius: 24px;
    backdrop-filter: blur(10px); 
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 112, 243, 0.2);
    transform: translateY(-10px) scale(1.02);
}

.service-card.featured {
    background: linear-gradient(180deg, rgba(0, 112, 243, 0.1) 0%, transparent 100%);
    border: 1px solid rgba(0, 112, 243, 0.3);
}

.card-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }

/* Features (Checks) */
.features { list-style: none; padding: 0; margin-top: 1.5rem; }
.features li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-dim);
}
.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ==========================================================================
   5. BOTONES Y STATS
   ========================================================================== */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 112, 243, 0.3);
    display: inline-block;
}

.btn-secondary {
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
}

.stats { display: flex; gap: 3rem; margin-top: 2rem; }
.stats span { font-size: 2.5rem; font-weight: 800; color: var(--accent); }

/* ==========================================================================
   6. SECCIÓN DE CONFIANZA (Mismo diseño de la DIRIS)
   ========================================================================== */
.trust-section { padding: 100px 0; position: relative; }

.trust-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.trust-text h2 span { color: var(--accent); }

.badge-alt {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.stats-premium { display: flex; gap: 2rem; margin-top: 3rem; }

.stat-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 160px;
}

.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--text-main); display: block; line-height: 1; }
.stat-label { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.5rem; line-height: 1.2; }

/* Visual Software Preview */
.trust-visual { position: relative; }
.software-preview {
    background: #0f172a;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
/* Estilos para los Iconos SVG */
.card-icon {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.icon-primary {
    stroke: var(--primary);
    filter: drop-shadow(0 0 8px rgba(0, 112, 243, 0.4));
}

.icon-accent {
    stroke: var(--accent);
    filter: drop-shadow(0 0 8px rgba(0, 223, 216, 0.4));
}

/* Mejora del título de sección */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -1px;
}

.preview-header {
    background: rgba(255,255,255,0.05);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dots span { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: rgba(255,255,255,0.2); }
.preview-title { font-size: 0.7rem; color: var(--text-dim); }
.preview-body { padding: 2rem; }
.skeleton-chart { height: 100px; background: linear-gradient(90deg, var(--primary) 0%, transparent 100%); opacity: 0.2; border-radius: 10px; margin-bottom: 1rem; }
.skeleton-list span { display: block; height: 8px; width: 100%; background: rgba(255,255,255,0.05); margin-bottom: 8px; border-radius: 4px; }

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--primary);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 112, 243, 0.4);
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   7. WHATSAPP Y RESPONSIVE
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.whatsapp-float img { width: 25px; }

@media (max-width: 968px) {
    .trust-grid { grid-template-columns: 1fr; text-align: center; }
    .stats-premium { justify-content: center; }
    .experience-badge { display: none; }
}

/* ==========================================================================
   8. OPTIMIZACIÓN RESPONSIVE (Móviles y Tablets)
   ========================================================================== */

/* --- Ajustes para Tablets y Laptops Pequeñas (1024px hacia abajo) --- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .trust-grid { gap: 2rem; }
    .container { padding: 0 1.5rem; }
}

/* --- Ajustes para Tablets Retrato y Móviles Grandes (768px hacia abajo) --- */
@media (max-width: 768px) {
    /* Header: Convertimos el menú en algo más compacto o apilado */
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-menu {
        gap: 1.2rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Hero Section */
    .hero { padding: 7rem 0 3rem; text-align: center; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { margin: 0 auto 2rem; }
    .actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .btn-primary, .btn-secondary { width: 100%; max-width: 300px; text-align: center; }

    /* Servicios */
    .section-title { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; } /* Una columna en móvil */

    /* Sección de Confianza (DIRIS) */
    .trust-section { padding: 60px 0; }
    .trust-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .stats-premium {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .stat-card { width: 100%; max-width: 280px; }
    
    /* El preview de software puede ser muy grande, lo ajustamos */
    .trust-visual { margin-top: 3rem; }
    .experience-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -15px;
        width: 180px;
        text-align: center;
    }

    /* Formulario de contacto */
    .contact-section { padding: 4rem 0 !important; }
    .contact-section h2 { font-size: 2.2rem !important; }
    .contact-section form { padding: 1.5rem !important; }
    .contact-section form div {
        grid-template-columns: 1fr !important; /* Nombre y correo uno sobre otro */
    }
}

/* --- Ajustes para Móviles Pequeños (480px hacia abajo) --- */
@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .logo { font-size: 1.5rem; }
    .nav-menu { gap: 0.8rem; }
    .nav-menu li:last-child a { padding: 0.5rem 1rem; font-size: 0.8rem; }
    
    /* Flotante de WhatsApp: Lo hacemos más discreto para que no tape contenido */
    .whatsapp-float {
        padding: 8px 15px;
        bottom: 15px;
        right: 15px;
        font-size: 0.8rem;
    }
    .whatsapp-float img { width: 20px; }
}