body.page-template-page-contacto .header-nav a,
body.page-template-page-contacto .header-lang a,
body.page-template-page-contacto .btn-color,
body.page-template-page-contacto footer,
body.page-template-page-contacto footer a {
    color: var(--color-texto);
    transition: color 0.2s ease;
}

body.page-template-page-contacto .header-logo #lottie-logo svg {
    filter: brightness(0) invert(1) !important;
}

body.page-template-page-contacto .btn-hamburger {
    filter: brightness(0) saturate(100%) invert(11%) sepia(5%) saturate(6200%) hue-rotate(314deg) brightness(100%) contrast(81%);
    transition: filter 0.2s ease;
}

[data-theme="tema-2"] body.page-template-page-contacto .btn-hamburger,
[data-theme="tema-4"] body.page-template-page-contacto .btn-hamburger,
[data-theme="tema-2"] body.page-template-page-contacto .page-contacto .img-contacto,
[data-theme="tema-4"] body.page-template-page-contacto .page-contacto .img-contacto {
    filter: brightness(0) invert(1) !important;
}

[data-theme="tema-1"] body.page-template-page-contacto .header-logo #lottie-logo svg,
[data-theme="tema-3"] body.page-template-page-contacto .header-logo #lottie-logo svg {
    filter: brightness(0) saturate(100%) invert(11%) sepia(5%) saturate(6200%) hue-rotate(314deg) brightness(100%) contrast(81%) !important;
}

.page-contacto {
    position: relative;
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    box-sizing: border-box;
    font-family: 'OverusedGrotesk', sans-serif;
    font-size: 16px;
    overflow: hidden;
}

.page-contacto a:hover {
    opacity: 0.5;
}

.contacto-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacto-block p {
    color: var(--color-texto);
    margin: 0;
}

.contacto-block ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.contacto-block a {
    text-decoration: none;
    color: var(--color-texto);
}

/* DIRECCIÓN */

.contacto-direccion-corte {
    width: 170px;
    text-align: center;
}

/* GALERIA BOTIJO */

.contacto-gif-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 200px;
    height: 300px;
    margin: 0;
}

.contacto-gif-container img {
    position: absolute;
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

.contacto-gif-container .gif-frame.is-active {
    display: block;
}

/* ANIMACIÓN APERTURA */

.contacto-block,
.contacto-gif-container {
    opacity: 0;
    animation: fadeInContent 0.8s ease 1.0s both; 
}

.page-contacto .img-contacto {
    position: relative;
    z-index: 2;
    will-change: transform;
}

.page-contacto .img-contacto:first-child {
    animation: abrirIzquierda 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.4s both;
}

.page-contacto .img-contacto:last-child {
    animation: abrirDerecha 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.4s both;
}

/* KEYFRAMES */

@keyframes abrirIzquierda {
    0% {
        transform: translateX(calc(50vw - 50% - 79px)); 
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes abrirDerecha {
    0% {
        transform: translateX(calc(-50vw + 50% + 124px));
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes fadeInContent {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 1000px) {

    .page-contacto {
        flex-direction: column;
        justify-content: space-evenly;
        padding: 50px;
        height: 100dvh;
    }

    .page-contacto .img-contacto:first-child {
        order: 1;
        animation: abrirArriba 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.4s both !important;
    }

    .contacto-block,
    .contacto-gif-container {
        order: 2;
    }

    .page-contacto .img-contacto:last-child {
        order: 3;
        animation: abrirAbajo 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.4s both !important;
    }

    .contacto-gif-container {
        height: 150px;
    }

}

@keyframes abrirArriba {
    0% {
        transform: translateY(calc(37dvh - 50%)); 
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes abrirAbajo {
    0% {
        transform: translateY(calc(-37dvh + 50%));
    }
    100% {
        transform: translateY(0);
    }
}