.footer{
    width: 100%;
    height: 10dvh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--grey);
    z-index: 1000;
    padding: 0 5vw;
    box-sizing: border-box;
}

/* Estados animados */
.footer.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer_logo{
    width: 10%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--grey);
    border-left: 1px solid var(--grey);
    transition: 0.3s all ease-in-out;
}

.footer_logo:hover{
    background-color: var(--dark-grey);
}

.footer_logo h1{
    font-family: 'Technor', sans-serif;
    font-size: 0.8rem;
    color: var(--white);
    text-transform: uppercase;
    font-weight: 400;
    cursor: pointer;
}

.footer_content{
    width: 60%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.footer_content p{
    color: var(--grey);
}

.footer_social{
    width: 30%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--grey);
}

.footer_social a {
    display: flex;
    align-items: center;
    gap: 2px;
    border-right: 1px solid var(--grey);
    padding: 0 10px;
    text-decoration: none;
    color: var(--grey);
    font-size: 1rem;
    height: 100%;
    transition: background 0.3s, color 0.3s;
}

.footer_social a i {
    color: var(--grey);
    transition: color 0.3s;
}

.footer_social a:hover,
.footer_social a:hover i {
    color: var(--white);
}

.pre-footer{
    width: 100%;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .pre-footer {
        
        height: 60dvh;
    }
}

#metalModel2{
    position: absolute !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -90%) !important;
    z-index: 1;
    /* PROTECCIÓN: Evitar que el model switcher afecte este modelo */
    contain: none !important;
    isolation: auto !important;
    will-change: auto !important;
    backface-visibility: visible !important;
}

.pre-footer h4{
    text-align: center;
    font-weight: 300;
    font-size: 5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    background-image: linear-gradient(45deg, var(--white) 15%, var(--grey) 82%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 40%;
    z-index: 2;
    position: relative;
    margin-top: 20%;
    padding: 2%;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.pre-footer span{
    color: var(--white);
    background-image: linear-gradient(45deg, var(--primary-color) 15%, var(--secondary-color) 82%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Estilos específicos para contact.php */
.main_contact + .pre-footer {
    height: 60dvh;
    padding: 5% 0;
}

.main_contact + .pre-footer #metalModel2 {
    width: 250px;
    height: 250px;
    top: 30%;
}

.main_contact + .pre-footer h4 {
    font-size: 4rem;
    margin-top: 10%;
    width: 60%;
}

@media (max-width: 1300px) {
    .footer {
        flex-direction: column;
        height: auto;
        padding: 2% 5%;
        gap: 16px;
    }
    .footer_logo,
    .footer_content,
    .footer_social {
        width: 100%;
        height: auto;
        border: none;
        justify-content: center;
        align-items: center;
    }
    .footer_logo {
        justify-content: center;
        align-items: center;
        margin-bottom: 8px;
    }
    .footer_logo img {
        width: 48px;
        height: 48px;
    }
    .footer_content {
        align-items: center;
        text-align: center;
        font-size: 1rem;
        margin-bottom: 8px;
    }
    .footer_social {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        border: none;
        width: 100%;
    }
    .footer_social a {
        border: none;
        padding: 8px 0;
        width: 100%;
        font-size: 1rem;
        height: auto;
        justify-content: center;
    }
    
    .pre-footer h4 {
        font-size: 3.5rem;
        width: 80%;
    }
    
    #metalModel2 {
        width: 200px;
        height: 200px;
    }
    
    .main_contact + .pre-footer {
        height: 50dvh;
    }
    
    .main_contact + .pre-footer h4 {
        font-size: 3rem;
        width: 90%;
    }
    
    .main_contact + .pre-footer #metalModel2 {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 2% 5%;
        gap: 12px;
    }
    .footer_logo img {
        width: 40px;
        height: 40px;
    }
    .footer_content {
        font-size: 0.95rem;
    }

    .footer_social{
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer_social a {
        width: 50%;
        font-size: 0.95rem;
        padding: 8px 0;
        gap: 2px;
    }

    .pre-footer h4 {
        font-size: 2.5rem;
        width: 95%;
    }
    
    #metalModel2 {
        width: 150px;
        height: 150px;
    }
    
    .main_contact + .pre-footer {
        height: 40dvh;
    }
    
    .main_contact + .pre-footer h4 {
        font-size: 2rem;
        width: 95%;
    }
    
    .main_contact + .pre-footer #metalModel2 {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 400px) {
    .footer {
        padding: 2% 5%;
        gap: 8px;
    }
    .footer_logo img {
        width: 32px;
        height: 32px;
    }
    .footer_content {
        font-size: 0.9rem;
    }
    .footer_social a {
        font-size: 0.9rem;
        padding: 6px 0;
    }
    
    .pre-footer h4 {
        font-size: 2rem;
    }
    
    #metalModel2 {
        width: 120px;
        height: 120px;
    }
    
    .main_contact + .pre-footer h4 {
        font-size: 1.5rem;
    }
    
    .main_contact + .pre-footer #metalModel2 {
        width: 100px;
        height: 100px;
    }
}