/* Variables de color de Del Bajío Group */
:root {
    --gold-primary: #C5A059;
    --gold-dark: #9F8046;
    --white: #FFFFFF;
    --bg-light: #F4F6F8;
    --text-dark: #2C3E50;
    --text-muted: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ocupa toda la altura de la pantalla */
}

h2, h3 {
    font-family: 'Cinzel', serif;
}

.login-container {
    background: var(--white);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 5px solid var(--gold-primary);
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.logo-img {
    max-height: 100px;
    margin-bottom: 15px;
}

.login-header h2 {
    color: var(--gold-primary);
    margin-bottom: 5px;
    font-size: 1.8rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Formulario */
.form-group {
    text-align: left;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 5px rgba(197, 160, 89, 0.3);
}

.btn-primary {
    background-color: var(--gold-primary);
    color: var(--white);
    padding: 12px;
    width: 100%;
    border: none;
    font-size: 1.1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 15px;
}

.btn-primary:hover {
    background-color: var(--gold-dark);
}

.back-link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--gold-primary);
}

/* Mensaje de Estatus */
.status-message {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 15px;
}

.status-message h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.policy-notice {
    background-color: #FFF9E6; /* Un amarillo muy sutil para alertas */
    border-left: 4px solid var(--gold-primary);
    padding: 15px;
    margin: 20px 0;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-radius: 0 4px 4px 0;
}

.btn-whatsapp-solid {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-whatsapp-solid:hover {
    background-color: #1DA851;
}

/* =========================================
   DISEÑO RESPONSIVO (MÓVILES Y TABLETS)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Ajuste del Header y Menú */
    .navbar {
        padding: 15px 0;
    }
    
    .navbar .container {
        flex-direction: column; /* Apila los elementos en vertical */
        text-align: center;
        min-height: auto;
    }

    .logo-img {
        max-height: 90px; /* Reducimos un poco el logo en celular */
        margin: 0 auto 15px auto; /* Centra el logo */
    }

    nav {
        width: 100%;
    }

    nav ul {
        flex-wrap: wrap; /* Permite que los enlaces bajen a otra línea si no caben */
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }

    .btn-login {
        display: inline-block;
        margin-top: 5px;
    }

    /* 2. Ajuste del texto principal (Hero) */
    .hero {
        padding: 60px 0; /* Menos espacio en blanco arriba y abajo */
    }

    .hero h2 {
        font-size: 2.2rem; /* Letra más pequeña para que no se corte */
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* 3. Ajuste de Títulos Generales y Botones */
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .btn-primary {
        display: block;
        width: 100%; /* Botón de lado a lado para que sea fácil de tocar */
        text-align: center;
    }

    /* 4. Ajuste de la Calculadora y Formularios */
    .calculator-wrapper, .form-wrapper {
        padding: 20px 15px;
    }

    /* 5. Ajuste de los Modales (Ventanas emergentes) */
    .modal-content {
        width: 95%;
        padding: 25px 20px;
        margin: 15% auto;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }

    .badges {
        flex-direction: column; /* Apila los sellos de CONDUSEF, etc. */
        gap: 15px;
        align-items: center;
    }
}