/* ==========================================================================
   1. CONFIGURACIONES GENERALES & RE-ARMONIZACIÓN INTEGRADA
   ========================================================================== */

body {
    font-family: 'Inter', sans-serif;
    color: #212529;
    background-color: #FAFAFA !important;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #2D3136;
}

/* ==========================================================================
   2. NAVEGACIÓN TOTALMENTE INTEGRADA
   ========================================================================== */

.navbar {
    background-color: #FAFAFA !important;
    border-bottom: 1px solid #E2E8F0;
    padding: 0.0rem 0;
}

.nav-brand-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.brand-text-corporate {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin-left: 0.6rem;
}

.brand-main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #2D3136;
    letter-spacing: 0.5px;
}

.brand-desc {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5A626A;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #5A626A;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link:hover {
    color: #E44A15;
}

/* ==========================================================================
   3. HERO SECTION - PRESENTACIÓN CENTRAL DE MARCA
   ========================================================================== */

.hero-section {
    min-height: calc(100vh - 85px);
    background-color: #FAFAFA !important; 
    display: flex !important;
    align-items: flex-start !important;
    padding: 2rem 0 4rem 0 !important;
}

.hero-logo-top-wrapper {
    display: block;
    width: 100%;
    margin-top: 0rem !important;
    margin-bottom: 0rem !important;
}


/* UBICACIÓN EQUIDISTANTE SIMÉTRICA DEL TEXTO PRINCIPAL ADAPTATIVA */

.hero-content h1.display-5 {
    margin-top: 0.5rem !important;
    margin-bottom: 2.5rem !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

@media (max-width: 575.98px) {
    .hero-content h1.display-5 {
        font-size: 1.4rem !important; /* Ajuste leve de lectura en móviles */
        margin-bottom: 2rem !important;
    }
}

/* INVERSIÓN DE BOTONES OPTIMIZADA (Solo pantallas de escritorio/tablets) */

@media (min-width: 576px) {
    .hero-content .d-sm-flex {
        flex-direction: row-reverse !important;
    }
}

@media (max-width: 575.98px) {
    .hero-content .d-sm-flex a:first-child {
        margin-bottom: 12px !important;
    }
}

/* ==========================================================================
   4. SECCIONES Y COMPONENTES
   ========================================================================== */

.bg-mhm-flat {
    background-color: #FAFAFA !important;
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-weight: 700;
    font-size: 2.1rem;
}

.title-line {
    width: 60px;
    height: 3px;
    background-color: #E44A15;
    margin: 1rem auto 1.5rem auto;
}

.corporate-card, .service-box, .testimonial-card {
    border: 1px solid #E2E8F0 !important;
    background-color: #FFFFFF !important; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.corporate-card:hover, .service-box:hover {
    border-color: #E44A15 !important;
    transform: translateY(-3px);
}

.card-icon-box {
    width: 45px;
    height: 45px;
    background-color: rgba(228, 74, 21, 0.07);
    color: #E44A15;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 1.25rem;
}

.service-icon {
    font-size: 1.4rem;
    color: #2D3136;
}

/* ==========================================================================
   5. SECCIÓN BENEFICIOS
   ========================================================================== */

.bg-dark-premium {
    background-color: #2D3136 !important;
}

.benefit-card {
    background-color: #383D44;
    border-radius: 6px;
    height: 100%;
}

.benefit-icon {
    font-size: 1.8rem;
    color: #E44A15;
}

/* ==========================================================================
   6. METODOLOGÍA
   ========================================================================== */

.step-number {
    width: 46px;
    height: 46px;
    background-color: #2D3136;
    color: #FFFFFF;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 4px solid #FAFAFA;
}

/* ==========================================================================
   7. COMPONENTES DE INTERACCIÓN
   ========================================================================== */

.accordion-item {
    border-color: #E2E8F0 !important;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(45, 49, 54, 0.01);
    color: #E44A15 !important;
}

.form-control:focus, .form-select:focus {
    border-color: #E44A15;
    box-shadow: 0 0 0 3px rgba(228, 74, 21, 0.1);
}

/* ==========================================================================
   8. BOTONES
   ========================================================================== */

.btn-custom-primary {
    background-color: #E44A15;
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 4px;
}

.btn-custom-primary:hover {
    background-color: #C83E0F;
    color: #FFFFFF;
}

.btn-custom-secondary {
    background-color: transparent;
    color: #2D3136;
    font-weight: 600;
    padding: 0.7rem 1.8rem;
    border: 2px solid #2D3136;
    border-radius: 4px;
}

.btn-custom-secondary:hover {
    background-color: #2D3136;
    color: #FFFFFF;
}

.btn-login {
    background-color: #2D3136;
    color: #FFFFFF;
    font-size: 0.85rem;
    padding: 0.4rem 1.1rem;
    border-radius: 4px;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.footer-logo-wrapper {
    background-color: #FAFAFA;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
}

.footer-logo {
    max-height: 45px;
    width: auto;
}

.footer-links a {
    color: #A0A5A9;
    text-decoration: none;
}

.footer-links a:hover {
    color: #E44A15;
}

/* ==========================================================================
   10. CONTROLES RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1199.98px) {
    .brand-desc {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .hero-logo-controlled {
        max-height: 400px;
    }

    /* PARCHE CORRECTIVO PARA EL MODAL PREMIUM */
    .modal-content {
        background-color: #FFFFFF !important;
    }
    
    .modal-header .btn-close {
        box-shadow: none !important;
        opacity: 0.8;
        transition: all 0.2s ease;
    }
    
    .modal-header .btn-close:hover {
        opacity: 1;
        transform: scale(1.1);
    }
    
    .btn-google-sso {
        border-color: #E2E8F0 !important;
        font-weight: 500 !important;
        color: #4A5568 !important;
        background-color: #FFFFFF !important;
    }
    
    .btn-google-sso:hover {
        background-color: #F7FAFC !important;
        border-color: #CBD5E0 !important;
    }
    
/* AJUSTE DE ANCLAJE PARA MENÚ MÓVIL Y ESCRITORIO */
section[id] {
    scroll-margin-top: 90px !important;
}
}

