header {
    width: 100%;
    font-family: "Poppins", "DM Sans";
    margin-top: 20px;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* Blanco con transparencia */
    border-radius: 10px;
    width: 1400px;
    max-width: 100%;
    position: relative;
    z-index: 10; /* Añadir z-index para estar por encima */
}

.logo-container img {
    width: 200px;
}

.nav-bar ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.nav-bar ul li {
    margin-left: 20px;
}

.nav-bar ul li a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: black;
    margin-bottom: 4px;
    border-radius: 2px;
}

@media (max-width: 1160px) {
    .main-header {
        flex-direction: row;
        justify-content: space-between;
    }

    .nav-bar ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        background: #f1a10c;
        position: absolute;
        top: 100px; /* Ajuste para bajar el menú */
        left: 0;
        border-radius: 10px;
        transition: all 0.3s ease-in-out;
        z-index: 20; /* Asegurar que esté encima de otros elementos */
    }

    .nav-bar ul li a{
        color: #fff;
    }

    .nav-bar ul.active {
        display: flex;
    }

    .nav-bar ul li {
        margin: 10px 0;
    }

    .hamburger {
        display: flex;
    }
}
