/* =========================================
   ESTILOS GENERALES Y COMPONENTES
   ========================================= */
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px; 
}

body { 
    background-color: #f8f9fa; 
    margin: 0;
    padding: 0;
}

/* Pantalla de carga superpuesta (Loader) */
#pantalla-carga {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center; 
    justify-content: center;
    transition: opacity 0.5s ease;
}

.spinner-border { 
    width: 3rem; 
    height: 3rem; 
}

/* =========================================
   COMPORTAMIENTO DINÁMICO DEL ENCABEZADO
   ========================================= */
.navbar-sticky{
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    /* Ajustado para darle espacio al logo más grande */
    min-height: 130px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.logo-header{
    display:block;
    /* AQUÍ ESTABA EL TOPE: Lo subimos de 85px a 115px */
    height: 115px;
    width:auto;
}

.navbar-brand{
    margin-right: 2rem;
}

/* =========================================
   SECCIONES Y PIE DE PÁGINA
   ========================================= */
.hero-section { 
    background: linear-gradient(135deg, #0b1a3a 0%, #1a365d 100%); 
    padding: 100px 0; 
}

.footer-section { 
    background-color: #343a40; 
    color: #ffffff; 
    padding: 30px 0; 
}

/* =========================================
   FONDOS ALTERNADOS (COLOR BLOCKING)
   ========================================= */
.seccion-oscura {
    background: linear-gradient(135deg, #0b1a3a 0%, #1a365d 100%); 
    color: #ffffff;
    padding: 80px 0; 
}

.seccion-oscura h2, 
.seccion-oscura h3 {
    color: #ffffff !important;
}

.seccion-clara {
    background-color: #f8f9fa; 
    color: #212529;
    padding: 80px 0;
}

.seccion-clara h2, 
.seccion-clara h3 {
    color: #212529 !important;
}

/* =========================================
   SECCIÓN DE CONTACTO GENERAL
   ========================================= */
.btn-contacto-general {
    min-width: 160px;
    border-width: 2px;
    transition: all 0.3s ease;
}

.btn-contacto-general:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* =========================================
   ESTILOS EXCLUSIVOS PARA EL LOGIN
   ========================================= */
body.login-body {
    background-color: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.login-card {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
}

@media (max-width: 480px) {
    body.login-body {
        padding: 15px;
    }
    
    .login-card {
        padding: 25px 20px;
        max-width: 100%;    
    }
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo {
    max-width: 160px;
    width: 100%;
    height: auto;
    margin-bottom: 12px;
    object-fit: contain;
}

.login-header h2 {
    font-size: 18px;
    color: #1e293b;
    font-weight: 600;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-ingresar {
    width: 100%;
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 11px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 5px;
}

.btn-ingresar:hover {
    background-color: #1d4ed8;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

.login-footer p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

.support-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-contacto {
    flex: 1;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-whatsapp {
    color: #16a34a;
    border-color: #bbf7d0;
    background-color: #f0fdf4;
}

.btn-whatsapp:hover {
    background-color: #dcfce7;
}

.btn-correo {
    color: #475569;
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.btn-correo:hover {
    background-color: #f1f5f9;
}