:root {
    --primary-color: #0D47A1; /* Azul corporativo fuerte */
    --secondary-color: #1976D2; /* Azul medio */
    --accent-color: #FF9800; /* Naranja para llamar a la acción */
    --text-dark: #212121;
    --text-light: #ECEFF1;
    --bg-light: #FFFFFF;
    --bg-grey: #F5F5F5;
    
    /* Colores funcionales del botón de WhatsApp */
    --whatsapp-enabled: #25D366;
    --whatsapp-disabled: #B0BEC5; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* --- Estilos Generales y Tipografía --- */
body {
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

h2 {
    font-size: 2.2em;
    text-align: center;
    padding-top: 50px;
    margin-bottom: 40px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-light);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #FB8C00;
    transform: translateY(-2px);
}

/* --- Header y Logo --- */
#header {
    background-color: var(--bg-light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center; 
    text-decoration: none;
}

.logo-container img {
    height: 40px; 
    width: auto;
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
}
.logo-text h1 {
    font-size: 1.4em; 
    font-weight: 700;
    margin: 0; 
}

.logo-text span {
    display: block;
    font-size: 0.6em; 
    font-weight: 500;
    color: var(--secondary-color);
    margin-top: 0px; 
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* --- Hero Section --- */
#hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 120px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
}

#hero h1 {
    color: var(--text-light);
    font-size: 3.5em;
    margin-bottom: 10px;
}

#hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
    font-weight: 300;
}

/* --- Reforma Section --- */
#reforma {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.reform-highlights {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.highlight-card {
    background-color: var(--bg-grey);
    padding: 30px;
    border-radius: 8px;
    flex: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}
.highlight-card i {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 15px;
}
.highlight-card h3 {
    color: var(--secondary-color);
    font-size: 1.4em;
}
.reform-details {
    margin-top: 60px;
    padding: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
}

.reform-details ul {
    list-style: none;
    padding-left: 0;
    columns: 2;
    column-gap: 40px;
}
.reform-details ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 1.05em;
    break-inside: avoid;
}
.reform-details ul li::before {
    content: "\f00c"; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* --- Software Section --- */
#software {
    padding: 80px 0;
    background-color: var(--bg-grey);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    color: var(--accent-color);
    font-size: 2em;
    margin-bottom: 15px;
}

/* --- Descarga Section --- */
#descarga {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.download-process {
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--bg-grey);
}

.step {
    margin: 25px 0;
    padding: 15px;
    background-color: var(--bg-light); 
    border-left: 5px solid var(--secondary-color);
    text-align: left;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.step h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* --- Contacto Section --- */
#contacto {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--text-light);
}

#contacto h2 {
    color: var(--text-light);
    margin-bottom: 20px;
}

.contact-content {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    flex: 0.6; 
}

.contact-form-area {
    flex: 1.4; 
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
}

.contact-form-area label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-form-area input[type="text"],
.contact-form-area input[type="email"],
.contact-form-area input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

/* Estilos del botón de WhatsApp (Lógica Gris/Verde) */
#whatsappButton {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    background-color: var(--whatsapp-disabled); 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: not-allowed; 
    transition: background-color 0.3s;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    pointer-events: none;
}

#whatsappButton.enabled {
    background-color: var(--whatsapp-enabled);
    cursor: pointer;
    pointer-events: auto;
}

#whatsappButton.enabled:hover {
    background-color: #128C7E;
}

#submitFormButton {
    display: none;
}

/* --- Footer --- */
#footer {
    background-color: var(--text-dark);
    color: var(--bg-grey);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

/* ======================================= */
/* ====== RESPONSIVE DESIGN (MÓVILES) ====== */
/* ======================================= */
@media (max-width: 768px) {
    /* 1. Generales */
    h2 {
        font-size: 1.8em;
        padding-top: 30px;
        margin-bottom: 30px;
    }
    .container {
        padding: 0 15px;
    }
    
    /* 2. Header y Menú (Para móviles) */
    .navbar {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }
    .logo-container {
        margin-bottom: 10px;
        justify-content: center;
    }
    .nav-links {
        /* Muestra el menú en una sola columna si es necesario */
        display: none; /* Mantener oculto si se usa un menú hamburguesa, pero para el ejercicio lo centramos */
        /* Si se desea mostrar en fila: */
        /* flex-wrap: wrap; */
        /* justify-content: center; */
    }
    .nav-links a {
        margin: 5px 10px;
    }

    /* 3. Hero Section */
    #hero {
        padding: 80px 0;
    }
    #hero h1 {
        font-size: 2.5em;
    }
    #hero p {
        font-size: 1.2em;
    }

    /* 4. Reforma y Highlights */
    .reform-highlights {
        flex-direction: column;
        gap: 20px;
    }
    .reform-details ul {
        columns: 1; /* Pasa de 2 columnas a 1 */
        line-height: 1.8;
    }
    .reform-details {
        padding: 20px;
    }

    /* 5. Software Features */
    .feature-grid {
        grid-template-columns: 1fr; /* Una columna */
        gap: 20px;
    }

    /* 6. Contacto y Formulario */
    #contacto {
        padding: 60px 0;
    }
    .contact-content {
        flex-direction: column; /* Pasa de 2 columnas a 1 */
        gap: 30px;
    }
    .contact-info {
        text-align: center;
    }
    .contact-info i {
        /* Asegura que los íconos no se desplacen */
        display: inline-block;
        width: 25px; 
        text-align: left;
    }
    .contact-form-area {
        padding: 20px;
    }
    
    /* 7. Footer */
    #footer {
        padding: 20px 0;
    }
}