header {
    padding: 20px 0;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

header img {
    height: 50px;
    width: auto;
    z-index: -1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    z-index: 1001;
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

header nav a {
    text-decoration: none;
    color: black;
    font-weight: 200;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

header nav a:hover {
    opacity: 0.7;
}

header nav a.active {
    color: #ca883e;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    header {
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        gap: 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    header nav.active {
        right: 0;
    }

    header nav a {
        width: 100%;
        padding: 20px 30px;
        border-radius: 0;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Overlay escuro quando menu está aberto */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 999;
    }

    body.menu-open::before {
        opacity: 1;
        visibility: visible;
    }
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
}

footer img {
    height: 70px;
    width: auto;
}

footer .line-divisor {
    width: 1px;
    height: 70px;
    background-color: #eee;
}

footer p {
    text-align: start;
    font-size: 0.9em;
    margin-top: 10px;
}

footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 60%;
}

footer nav {
    display: flex;
    gap: 30px;
}

footer nav a {
    text-decoration: none;
    color: #fff;
}

footer nav a:hover {
    opacity: 0.7;
}

footer nav a.active {
    color: #ca883e;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
    }

    footer img {
        width: 100px;
        height: auto;
    }

    footer .line-divisor {
        display: none;
    }

    footer .footer-content {
        width: 100%;
    }

    footer p {
        text-align: center;
    }

    footer nav {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 20px 0;
        gap: 15px;
    }
}