/* ==========================================================================
   PALETA DE COLORES (Original de LaTeX + Mejoras de Contraste)
   ========================================================================== */
:root {
    --industrial-blue: #0c2340;
    --tech-cyan: #00838f;
    --bright-cyan: #00acc1; /* Cyan vivo para fondos oscuros */
    --dark-gray: #1e293b; 
    --sub-gray: #475569;  
    --light-bg: #f1f5f9;  
    --site-bg: #ffffff;   
}

/* ==========================================================================
   CONFIGURACIONES GLOBALES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--site-bg);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    scroll-margin-top: 160px; 
}

/* ==========================================================================
   MENÚ DE NAVEGACIÓN
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(12, 35, 64, 0.08);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.svg-container {
    height: 90px; 
    display: flex;
    align-items: center;
}

.svg-container svg {
    height: 100%;
    width: auto; 
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--dark-gray);
    margin-left: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--tech-cyan);
}

/* ==========================================================================
   SECCIÓN HERO (Impacto Inicial)
   ========================================================================== */
.hero-section {
    height: auto;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--industrial-blue) 0%, #163354 100%);
    color: white;
    padding: 60px 20px;
    margin-top: 120px; 
}

.hero-content {
    max-width: 850px;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 35px;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--tech-cyan);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 131, 143, 0.4);
}

/* ==========================================================================
   SECCIÓN 2: DATOS DUROS
   ========================================================================== */
.stats-section {
    padding: 100px 0;
    background-color: #ffffff; 
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.stat-card {
    background: #ffffff;
    padding: 45px 35px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--industrial-blue);
    margin-bottom: 15px;
    line-height: 1;
}

.stat-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--industrial-blue);
    font-weight: 700;
}

.stat-card p {
    font-size: 0.95rem;
    color: var(--sub-gray); 
}

/* ==========================================================================
   SECCIÓN 3: PROPUESTA DE VALOR (Alto Contraste)
   ========================================================================== */
.value-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%); 
    color: #ffffff; 
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 60px;
}

.value-text h2 {
    font-size: 2.2rem;
    color: #ffffff; 
    margin-bottom: 25px;
    font-weight: 800;
}

.value-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #e5e7eb; 
}

.risks-box {
    background-color: #111827; 
    padding: 45px;
    border-top: 4px solid var(--bright-cyan); 
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #374151; 
}

.risks-box h2 {
    font-size: 1.6rem;
    color: var(--bright-cyan); 
    margin-bottom: 25px;
    font-weight: 700;
}

.clean-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 18px;
    font-size: 1rem;
    color: #f3f4f6; 
    list-style: none;
}

.clean-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: var(--bright-cyan); 
    font-size: 0.9rem;
    top: 1px;
}

/* ==========================================================================
   SECCIÓN 4: ECOSISTEMA OPERATIVO
   ========================================================================== */
.ecosystem-section {
    padding: 100px 0;
    background-color: #ffffff; 
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.4rem;
    color: var(--industrial-blue);
    font-weight: 800;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.eco-card {
    background: var(--light-bg); 
    padding: 45px 35px;
    border-radius: 8px;
    border-left: 5px solid var(--industrial-blue);
}

.eco-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--tech-cyan);
    margin-bottom: 15px;
}

.eco-card h3 {
    font-size: 1.3rem;
    color: var(--industrial-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.eco-card p {
    color: var(--dark-gray);
    font-size: 1rem;
}

/* ==========================================================================
   SECCIÓN 5: TABLA COMPARATIVA (Escritorio PC)
   ========================================================================== */
.comparison-section {
    padding: 100px 0;
    background-color: var(--industrial-blue);
    color: #ffffff;
}

.comparison-section h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 800;
}

.comparison-table {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: rgba(255, 255, 255, 0.12);
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.table-header div {
    padding: 20px;
    font-size: 1.1rem;
}

.table-header div:first-child {
    color: #cbd5e1;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table-row div {
    padding: 25px 20px;
    font-size: 1rem;
    display: flex;
    align-items: center; 
}

.table-row div:first-child {
    color: #e2e8f0;
}

.table-row div:last-child {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   SECCIÓN 6: CONTACTO INSTITUCIONAL (Limpio y Serio)
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background-color: var(--light-bg);
    border-top: 1px solid #e2e8f0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 60px;
    align-items: center;
}

.contact-text h2 {
    color: var(--industrial-blue);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.contact-text p {
    font-size: 1.1rem;
    color: var(--sub-gray);
    max-width: 550px;
}

.contact-details {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}

.info-item {
    margin-bottom: 25px;
}

.info-item span {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sub-gray);
    margin-bottom: 5px;
}

.info-item strong {
    font-size: 1.2rem;
    color: var(--industrial-blue);
    font-weight: 700;
}

.btn-corporate {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    background-color: var(--industrial-blue);
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn-corporate:hover {
    background-color: #14355e;
}

/* ==========================================================================
   PIE DE PÁGINA (Footer)
   ========================================================================== */
.main-footer {
    background-color: #0b1329; 
    color: #94a3b8; 
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}

.footer-content p {
    margin: 4px 0;
}

.footer-subtext {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ==========================================================================
   RESPONSIVIDAD DEPURADA (Celulares y Pantallas Pequeñas)
   ========================================================================== */
@media (max-width: 768px) {
    .navbar {
        position: static; 
        flex-direction: column;
        padding: 20px;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    section {
        scroll-margin-top: 20px; 
    }
    
    .svg-container {
        height: 65px;
        margin-bottom: 15px;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: var(--light-bg);
        border-radius: 6px;
        padding: 10px 0;
    }
    
    .nav-links li {
        width: 100%;
        margin: 0;
    }
    
    .nav-links li a {
        display: block;
        padding: 12px 0;
        margin: 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    .hero-section {
        margin-top: 0; 
        padding: 60px 20px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .split-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-details {
        padding: 30px 20px;
    }

    /* Ajuste de Tabla Comparativa a modo tarjeta en Celular */
    .comparison-table {
        background-color: transparent; 
    }

    .table-header {
        display: none; 
    }
    
    .table-row {
        grid-template-columns: 1fr;
        background-color: rgba(255, 255, 255, 0.03);
        margin-bottom: 25px; 
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .table-row div {
        padding: 20px;
        display: block; 
    }
    
    .table-row div:first-child {
        background-color: rgba(239, 68, 68, 0.05); 
        color: #cbd5e1;
        position: relative;
    }
    
    .table-row div:first-child::before {
        content: "SITUACIÓN TRADICIONAL / RIESGO:";
        display: block;
        font-size: 0.75rem;
        font-weight: 800;
        color: #f87171; 
        letter-spacing: 1px;
        margin-bottom: 8px;
    }
    
    .table-row div:last-child {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background-color: rgba(0, 172, 193, 0.1); 
        color: #ffffff;
    }
    
    .table-row div:last-child::before {
        content: "SOLUCIÓN INTELIGENTE DURCON:";
        display: block;
        font-size: 0.75rem;
        font-weight: 800;
        color: var(--bright-cyan);
        letter-spacing: 1px;
        margin-bottom: 8px;
    }
}