.header {
    width: 100%;
    height: 120px; /* Aumentado para acomodar el logo más grande */
    position: fixed;
    top: 50px; /* Ajustado para el social header */
    left: 0;
    padding: 0 5%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header.active {
    top: 0;
    height: 90px; /* Más pequeño al hacer scroll */
    background: rgba(255, 255, 255, 0.95); /* Más transparente */
    backdrop-filter: blur(15px);
    padding: 0 3%;
    justify-content: center; /* Centra el logo cuando el menú desaparece */
}

.logo_container {
    height: 120px; /* Aumentado considerablemente */
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer; /* Indica que es clickeable */
}

.header.active .logo_container {
    height: 70px; /* Más pequeño cuando hace scroll pero aún visible */
    transform: none; /* No se mueve, se queda centrado */
}

.logo_icon {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav_bar {
    margin-left: auto;
    margin-right: 3rem;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.header.active .nav_bar {
    opacity: 0; /* Desaparece completamente al hacer scroll */
    visibility: hidden;
    transform: translateY(-10px);
}

.menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.menu_item {
    position: relative;
}

.menu_link {
    color: var(--color_black);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.menu_link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color_orange);
    transition: width 0.3s ease;
}

.menu_link:hover {
    color: var(--color_orange);
}

.menu_link:hover::after {
    width: 100%;
}

/* Estilos para el botón de contacto */
.contact_btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color_orange);
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 170, 1, 0.3);
}

.contact_btn_icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

/* Mobile menu */
.btn_menu {
    display: none;
    width: 30px;
    height: 30px;
    position: fixed;
    top: 60px;
    left: 20px;
    z-index: 1001;
    cursor: pointer;
}

@media screen and (max-width: 890px) {
    .btn_menu {
        display: block;
    }
    
    .header {
        width: 280px;
        height: 100vh;
        left: -280px;
        top: 0;
        background: #2c3e50;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
    }
    
    .header.translate {
        left: 0;
    }
    
    .logo_container {
        height: 60px;
        margin-bottom: 40px;
    }
    
    .nav_bar {
        margin: 0;
        width: 100%;
    }
    
    .menu {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    .menu_link {
        color: #ffffff;
        padding: 12px 0;
        font-size: 18px;
    }
    
    .contact_btn {
        width: calc(100% - 40px);
        text-align: center;
        margin: 20px;
    }
}

@media screen and (max-width: 1024px) {
    .nav_bar {
        display: none;
    }

    .menu-burger {
        display: flex;
    }
    
    .contact_btn {
        display: none;
    }
}