header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background-color: white;
    border-top: 5px solid #222;
}


.img-company img {
    height: 100px;
    width: auto;
    transform: scale(2.3);
    transform-origin: center;

}


.menu nav {
    display: flex;
    align-items: center;
    gap: 30px;
}


.menu nav a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu nav a:hover {
    background-color: #000000;
    border-radius: 8px;
    color: white;
}


.menu nav a:last-child {
    background-color: #000000;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.menu nav a:last-child:hover {
    background-color: #474747;
}

.site-footer {
    background-color: #f4f4f4;
    /* Fondo gris claro */
    padding: 60px 50px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-brand img {
    max-height: 100px;
}

.footer-d12 {
    height: 100px;
    width: auto;
    transform: scale(2.3);
    transform-origin: center;

}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    display: inline-block;
    transition: opacity 0.3s ease;
}


.social-icons a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.social-icons a:hover img {
    opacity: 1;
}

/* Columna 2 (Contacto) */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact p {
    margin: 0;
    color: #000000;
    font-size: 14px;
    line-height: 1.6;
}

/* Columna 3 (Legal) */
.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-legal a {
    text-decoration: none;
    color: #000000;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #474747;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #222;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    header {
        padding: 10px 20px;
        position: relative;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    .menu {
        display: none;
        width: 100%;
        order: 3;
    }

    .menu.open {
        display: block;
    }

    .menu nav {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .menu nav a {
        display: block;
        padding: 12px 16px;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .menu nav a:last-child {
        margin-top: 8px;
        border-radius: 8px;
        text-align: center;
        border-bottom: none;
    }
}

@media screen and (max-width: 780px) {
    .site-footer {
        padding: 40px 20px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-legal {
        align-items: center;
    }
}