* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   ESTILOS GENERALES Y OCULTAMIENTO BASE
   ========================================= */

/* Ocultamos todo lo que es de móvil para que no rompa la PC */
.header-mobile,
.mobile-menu-overlay {
    display: none;
}

.container-fluid {
    width: 100%;
    max-width: 1300px; 
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* =========================================
   HEADER ESCRITORIO (PC)
   ========================================= */

.top-bar {
    background-color: #d9d9d9;
    color: #666;
    font-size: 0.75rem;
}

.top-flex {
    height: 70px;
}

.schedule p { 
    font-weight: 300;
    line-height: 1.2;
}

.top-right-group {
    display: flex;
    align-items: center;
    height: 100%;
}

.social-links {
    margin-right: 20px;
    display: flex;
    gap: 15px;
}

.social-icon img {
    height: 40px; 
    width: auto;
    display: block;
}

.btn-asesoria {
    background-color: #1a1a1a;
    color: white !important;
    text-decoration: none;
    padding: 0 35px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 500; 
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 16px;
}

.main-header {
    background: #f8f8f8;
    padding: 5px 0;
}

.nav-left-group {
    display: flex;
    align-items: center;
    gap: 60px;
}

.nav-logo {
    height: 100px; 
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: #444;
    font-weight: 400; 
    font-size: 0.95rem;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent; 
    padding-bottom: 2px;
    transition: all 0.3s ease; 
}

.nav-links li a.active {
    padding-bottom: 2px;
    font-weight: 700;
} 

.nav-links li a:hover {
    border-bottom: 2px solid #444; 
    color: #000; 
}

.header-info {
    display: flex;             
    flex-direction: column;    
    justify-content: center;   
    text-align: right;         
    line-height: 1.2;          
}

.header-info .phone {
    font-weight: 700;         
    font-size: 1rem;
    color: #333;
}

.header-info .email {
    font-weight: 300;          
    font-size: 1rem;
    color: #666;
}

/* =========================================
   ADAPTACIÓN MÓVIL (TABLETS Y CELULARES)
   ========================================= */

@media (max-width: 992px) {
    
    /* 1. Escondemos el de PC */
    .header-desktop {
        display: none;
    }

    /* 2. Mostramos la barra superior móvil */
    .header-mobile {
        display: block;
        background-color: #1d0f26;
        padding: 10px 15px;
        width: 100%;
    }

    .mobile-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-logo-group {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo-img-sm {
        height: 60px;
        width: auto;
        filter: brightness(0) invert(1);
    }

    .mobile-text {
        display: flex;
        flex-direction: column;
        line-height: 1;
    }

    .m-estudio {
        font-size: 0.9rem;
        color: #ddd;
        letter-spacing: 1px;
        word-spacing: -3px;
    }

    .m-firma {
        font-size: 0.48rem;
        font-weight: 300;
        color: #fff;
        letter-spacing: 0.4px;
    }

    .burger-icon {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        padding: 5px;
    }

    .burger-icon span {
        width: 25px;
        height: 3px;
        background-color: #fff;
        border-radius: 2px;
    }

    /* 3. Activamos el Menú Desplegable (Overlay) */
    .mobile-menu-overlay {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #0d0614; /* Fondo oscuro exacto del PDF */
        z-index: 2000;
        flex-direction: column;
        align-items: center; /* Centra el bloque de contenido horizontalmente */
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    .mobile-menu-overlay.active {
        transform: translateX(0);
    }

    .close-menu {
        position: absolute;
        top: 20px;
        right: 25px;
        font-size: 3rem;
        color: #8a7c93; /* Tono morado grisáceo apagado */
        background: none;
        border: none;
        cursor: pointer;
    }

    .menu-content {
        text-align: left; /* Todo alineado a la izquierda */
        width: 85%;
        max-width: 400px;
        display: flex;
        flex-direction: column;
    }

    .menu-logo-big {
        width: 170px;
        margin: 0 auto 20px auto; /* Logo centrado */
        display: block;
        filter: brightness(0) invert(1);
        opacity: 0.7; /* Lo opaca un poco para dar el tono del PDF */
    }

    /* Líneas separadoras */
    .menu-divider {
        border: none;
        height: 1px;
        background-color: #3a2845; /* Línea morada sutil */
        margin: 20px 0;
    }

    .menu-nav-links {
        list-style: none;
        margin: 5px 0;
    }

    .menu-nav-links li {
        margin: 15px 0;
    }

    .menu-nav-links li a {
        color: #9a8a9f; /* Gris morado de los enlaces */
        text-decoration: none;
        font-size: 1.25rem;
        font-weight: 500;
        letter-spacing: 0.5px;
    }

    /* Contenedor del Horario y Redes */
    .menu-info-top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .menu-schedule-block {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .menu-schedule-title {
        color: #9a8a9f;
        font-weight: 500;
        font-size: 0.9rem;
    }

    .menu-schedule-text {
        color: #7b6d82; /* Un gris más oscuro para la hora */
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .menu-email {
        color: #9a8a9f;
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .menu-social {
        display: flex;
        gap: 15px;
    }

    .menu-social img {
        height: 40px;
        opacity: 0.8; /* Suaviza el blanco de los iconos */
    }

    .btn-asesoria-mobile {
        display: block;
        background-color: #877288; /* Fondo gris-morado apagado del botón */
        color: #0d0614; /* Texto súper oscuro */
        padding: 15px 0;
        text-align: center;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.1rem;
        letter-spacing: 1px;
        margin-top: 10px;
        border-radius: 3px;
    }
}