

/* ==========================================================================
   MÓDULO: NAVBAR / CABECERA COMPLETA (ESTILO EJEMPLO EXACTO)
   ========================================================================== */
.main-header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #081026 !important; /* Azul marino corporativo exacto de tu muestra */
    border-bottom: 1px solid rgba(207, 167, 78, 0.1); 
    padding: 0.8rem 3rem; 
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-container {
    max-width: 1400px; 
    margin: 0 auto;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important; /* Distribución extrema: logo, links, botón */
}

/* --- Estilos del Logo (Presencia Máxima) --- */
.navbar-logo {
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    flex: 1; 
}

.navbar-logo img {
    max-height: 70px; /* Altura idéntica a tu captura */
    width: auto;
    display: block;
    object-fit: contain;
}

/* --- Estilos del Menú Central --- */
.navbar-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; /* Fuerza los links al medio exacto */
    gap: 3rem !important; 
    list-style: none !important;
    flex: 2; 
}

.nav-link {
    font-family: var(--font-serif) !important; /* Tipografía Serif elegante de tu ejemplo */
    font-size: 1rem !important; 
    font-weight: 500 !important;
    color: #ffffff !important; 
    text-decoration: none !important; 
    text-transform: uppercase !important;
    letter-spacing: 2px !important; 
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-gold-light) !important; 
}

/* --- Bloque Derecho: Botón Relleno en Esquina --- */
.navbar-action {
    display: flex;
    justify-content: flex-end;
    flex: 1; 
}

.nav-btn-cta {
    background-color: #dda82a !important; /* Relleno dorado sólido de la imagen */
    color: #ffffff !important; 
    font-family: var(--font-serif) !important; 
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 0.8rem 2.2rem !important; 
    border-radius: 0px !important; /* Bordes ejecutivos rectos */
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.nav-btn-cta:hover {
    background-color: #c99620 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* ==========================================================================
   MÓDULO: MAIN FOOTER (DISEÑO FINO, COMPACTO Y HORIZONTAL)
   ========================================================================== */
.main-footer {
    background-color: #081026 !important; 
    color: #ffffff !important;
    padding: 2rem 3rem !important; /* Altura estilizada muy fina */
    font-family: var(--font-sans) !important;
    border-top: 1px solid rgba(207, 167, 78, 0.15);
    width: 100% !important;
    display: block !important;
    clear: both;
}

.footer-container {
    display: flex !important;
    justify-content: space-between !important; 
    align-items: center !important; /* Alinea los extremos perfectamente en horizontal */
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Identidad de la Firma */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem; 
}

.footer-brand h2 {
    font-size: 1.1rem; 
    font-weight: 700;
    letter-spacing: 3px;
    color: #ffffff !important;
    margin: 0;
}

.footer-brand p {
    font-family: var(--font-serif) !important;
    font-size: 0.95rem;
    color: var(--color-gold-text) !important;
    font-style: italic;
    margin: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2); 
    padding-left: 1rem;
}

/* Derechos y Ubicación */
.footer-info {
    display: flex;
    align-items: center; 
    gap: 1.5rem;
}

.footer-location {
    font-size: 0.85rem;
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--color-text-gray) !important;
    letter-spacing: 0.5px;
    margin: 0;
}


/* ==========================================================================
   ANIMACIONES (KEYFRAMES)
   ========================================================================== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* ==========================================================================
   BLOQUE ÚNICO DE ADAPTACIÓN RESPONSIVA (SINFÍN DE REPETICIONES)
   ========================================================================== */

/* --- Ajustes para Tablets y Pantallas Medianas (992px) --- */
@media (max-width: 992px) {
    .main-header {
        padding: 0.8rem 1.5rem;
    }
    
    .navbar-menu {
        gap: 1.5rem !important;
    }
    
    .enfoque-grid, .especialidades-grid, .casos-grid {
        grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
        gap: 2rem;
    }
    
    .enfoque, .especialidades, .casos, .manifiesto, .contacto-cta { 
        padding: 5rem 1.5rem; 
    }
}

/* --- Ajustes para Celulares y Pantallas Pequeñas (768px hacia abajo) --- */
@media (max-width: 768px) {
    /* El menú y el botón de acción se ocultan temporalmente en celulares */
    .navbar-menu, 
    .navbar-action {
        display: none !important; 
    }
    
    .navbar-logo {
        flex: initial;
        margin: 0 auto; /* El logotipo se auto-centra en smartphones */
    }

    /* El footer pasa de horizontal a vertical ordenado */
    .main-footer {
        padding: 2rem 1.5rem !important;
    }
    
    .footer-container {
        flex-direction: column !important; 
        gap: 1rem;
    }
    
    .footer-brand, 
    .footer-info {
        flex-direction: column;
        align-items: center !important;
        text-align: center !important;
        gap: 0.4rem;
    }
    
    .footer-brand p {
        border-left: none;
        padding-left: 0;
    }
}

/* --- Ajustes Extremos para Móviles Estrechos (650px) --- */
@media (max-width: 650px) {
    .enfoque-grid, .especialidades-grid, .casos-grid { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
    }
    
    .especialidad-card, .caso-card { 
        padding: 2.5rem 2rem; 
    }
    
    .enfoque-title, .especialidades-title, .casos-subtitle, .contacto-description {
        margin-bottom: 3rem;
    }
    
    .btn-contacto, .btn-hero-cta { 
        width: 100%; 
        text-align: center; 
    }
}

/* ==========================================================================
   ATLAS conversion refresh
   ========================================================================== */
.navbar-wordmark {
    align-items: flex-start !important;
    color: #ffffff !important;
    line-height: 1;
}

.brand-name {
    font-family: var(--font-serif) !important;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: #ffffff;
}

.brand-line {
    margin-top: 0.35rem;
    font-family: var(--font-sans) !important;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: var(--color-gold-light);
}

.navbar-menu {
    gap: 2.4rem !important;
}

.nav-btn-cta {
    font-size: 0.78rem !important;
    padding: 0.85rem 1.45rem !important;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .navbar-wordmark {
        align-items: center !important;
    }

    .brand-name {
        font-size: 1.7rem;
        letter-spacing: 4px;
    }

    .brand-line {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }
}
