header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    height: 80px;
    background: url('../img/capa.png');
    padding: 10px 20px;
    width: 100%;
    z-index: 20;
    transition: padding 0.3s;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/capa.png') no-repeat center center;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1; /* Ensure background stays behind the header content */
}

header.scrolled::before {
    opacity: 1;
}

header .logo {
    height: 60px;
    margin: 0px 10%;
}

header nav ul {
    width: 900px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}

header nav ul li {
    margin: 0px 15px;
}

header nav ul li a {
    color: #183e51;
    font-weight: 600;
    transition: all 0.3s ease;
}

header nav ul li a:hover {
    color: cornflowerblue;
}

.content {
    background: white;
    width: 100%;
    height: 500px;
    display: flex;
    position: relative;

}

header button{
    background: none;
    border-style: none;
    font-size: 25px;
    color: #183e51;
    position: fixed;
    top: 20px;
    right: 20px;
}


#buttonMenu{
    display: none;
}


@keyframes fade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.scrolled {
    padding: 20px 20px;
}


@media (max-width: 1366px){
    header .logo {
        height: 60px;
        margin: 0px 2%;
    }
}

@media (max-width: 992px){
    #buttonMenu{
        display: flex;
        z-index: 200;
    }
    header .logo {
        height: 60px;
        margin: 0px 8%;
    }
    header nav{
        display: none;
        position: fixed;
        background: #dbeafe;
        width: 250px;
        height: 100vh;
        top: 0px;
        right: 0px;
        margin: 0;
        box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
    }
    header nav ul {
        position: absolute;
        width: 150px;
        display: flex;
        flex-direction: column;
        align-items: start;
        padding: 20px 20px;

    }
    header nav ul li{
        width: 100%;
        padding: 10px 0px;
    }
}

@media (max-width: 576px){
    header .logo {
        height: 60px;
        margin: 0px 2%;
    }
    header nav{
        display: none;
        position: fixed;
        background: #dbeafe;
        width: 250px;
        height: 100vh;
        top: 0px;
        right: 0px;
        margin: 0;
        box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
    }
    header nav ul {
        position: absolute;
        width: 150px;
        display: flex;
        flex-direction: column;
        align-items: start;
        padding: 20px 20px;

    }
    header nav ul li{
        width: 100%;
        padding: 10px 0px;
    }
    header button{
        background: flex;
        border-style: none;
        font-size: 25px;
        color: #183e51;
        position: fixed;
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 360px){
    header .logo {
        height: 60px;
        margin: 0px 2%;
    }
    header nav{
        z-index: 20;
        display: none;
        position: fixed;
        background: #dbeafe;
        width: 250px;
        height: 100vh;
        top: 0px;
        right: 0px;
        margin: 0;
        box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
    }
    header nav ul {
        position: absolute;
        width: 150px;
        display: flex;
        flex-direction: column;
        align-items: start;
        padding: 20px 20px;

    }
    header nav ul li{
        width: 100%;
        padding: 10px 0px;
    }
    header button{
        display: flex;
        border-style: none;
        background: transparent;
        font-size: 25px;
        color: #183e51;
        position: fixed;
        top: 20px;
        right: 20px;
    }
}