.main-equipo {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: #e0e4cc;
    overflow: hidden;
}

.fondo-equipo img {
    width: 60%;
    height: 100%;
    position: absolute;
    top: 0;
}

.equipo-btn-slide {
    width: 65px;
    height: 65px;
    background-color: var(--color-pri);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    position: absolute;
    z-index: 32;
    cursor: pointer;
    transition: all 0.4s ease;
}

.equipo-btn-slide:hover {
    background-color: var(--color-pri-2);
    transform: scale(1.1);
}

.equipo-btn-slide svg {
    width: 65px;
    height: 65px;
}

.equipo-flecha-derecha {
    top: 50%;
    right: 8%;
}

.equipo-flecha-izquierda {
    top: 50%;
    left: 8%;
}

.in-equipo {
    width: 100%;
    /*margin-top: 2em;*/
    height: 90vh;
    position: relative;
}

.equipo-titulo {
    text-align: center;
    margin: 2em 0;
}

.equipo-roles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 700px;
    position: relative;
}

.equipo-rol {
    display: none;
    align-items: center;
}

.equipo-rol.rol-activo {
    display: flex;
}

/* Contenedor Imagen */
.imagen-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Imagen */
.imagen-wrapper img {
    width: 50%;
    object-fit: cover;
    transition: all .5s ease-in-out;
    border: 10px solid snow;
    z-index: 31;
}

/* Animación para la imagen */
.imagen-wrapper img.salida {
    transform: translateY(-150%);
    transition: transform 0.5s ease;
}

.imagen-wrapper img.entrada {
    transform: translateY(-150%);
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    to {
        transform: translateY(0);
    }
}

/* Fondo verde detrás de la imagen */
.imagen-wrapper::after {
    content: '';
    position: absolute;
    right: 275px;
    width: 25%;
    height: 100%;
    background-color: var(--color-pri-2);
    z-index: 30;
    transition: transform 0.5s ease;
}

/* Animación para el ::after */
.imagen-wrapper.salida::after {
    transform: translateX(180%);
}

.imagen-wrapper.entrada::after {
    transform: translateX(180%);
    animation: slideInAfter 0.5s forwards;
}

@keyframes slideInAfter {
    to {
        transform: translateX(0);
    }
}

.info-wrapper-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.info-wrapper {
    display: flex;
    flex-direction: column;
    width: 65%;
    background-color: transparent;
    padding: 1rem;
    z-index: 1;
    font-size: 1.2em;
    gap: .5em
}

/* Animación de salida para el contenedor */
.info-wrapper.info-salida {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* Animación de entrada para el contenedor */
.info-wrapper.info-entrada {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.info-wrapper h3 {
    margin: 0;
    font-size: 2em;
    color: var(--color-pri);
}

.info-wrapper p {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--color-gray);
}

.info-wrapper ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-weight: 400;
    color: var(--color-gray);
}

.container-btn-turno {
    display: flex;
    justify-content: flex-start;
}

.btn-turno {
    background-color: #28a745;
    border: 1px solid #28a745;
    color: white;
    margin-top: 1em;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 50%;
    text-decoration: none;
}

.btn-turno:hover {
    background-color: #fff;
    color: #28a745;
}

@media (max-width: 1440px) {
    .equipo-roles {
        height: 415px;
    }

    .info-wrapper {
        font-size: .9em;
        width: 60%;
    }

    .info-wrapper h3 {
        margin: 0;
        font-size: 2.5em;
    }

    .imagen-wrapper img {
        width: 45%;
    }

    .imagen-wrapper::after {
        width: 25%;
        right: 280px;
        height: 110%;
    }

    .info-wrapper p {
        font-size: 1rem;
    }

    .info-wrapper ul li {
        font-size: .9rem;
    }

    .btn-turno {
        font-size: .95rem;
        width: 60%;
    }
}

@media (max-width: 1024px) {
    .page-id-65 .wp-site-blocks{
        /*flex: 1;*/
    }
    
    .page-id-65 .wp-site-blocks footer{
        min-height: 60%;
    }
    
    .in-equipo{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1em;
        height: 120%;
        background-image: url('https://centronutricionfc.com/wp-content/uploads/2024/12/Home_Introduction_Background.jpg');
    }
    
    .imagen-wrapper img {
        width: 50%;
    }
    
    .info-wrapper h3 {
        font-size: 2.5em;
    }

    .imagen-wrapper::after {
        width: 25%;
        right: 200px;
        height: 100%;
    }

    .info-wrapper p {
        font-size: 1.1rem;
    }

    .info-wrapper ul li {
        font-size: 1.05rem;
    }

    .btn-turno {
        font-size: 1rem;
        width: 65%;
    }
    .equipo-roles{
        gap: 7em;
    }
}

@media (max-width: 768px) {
    .equipo-roles {
        height: 335px;
    }

    .equipo-btn-slide svg {
        width: 45px;
        height: 45px;
    }

    .equipo-btn-slide {
        width: 45px;
        height: 45px;
    }

    .equipo-flecha-derecha {
        top: 35%;
        right: 6%;
    }

    .equipo-flecha-izquierda {
        top: 35%;
        left: 6%;
    }

    .info-wrapper {
        font-size: .9em;
        width: 75%;
    }

    .imagen-wrapper img {
        width: 50%;
    }

    .imagen-wrapper::after {
        width: 25%;
        right: 150px;
        height: 100%;
    }

    .info-wrapper p {
        font-size: 1rem;
    }

    .info-wrapper ul li {
        font-size: .8rem;
    }

    .btn-turno {
        font-size: .8rem;
        width: 65%;
    }
}

@media (max-width: 500px) {
    .equipo-roles {
        height: 280px;
    }

    .equipo-rol {
        flex-direction: row;
    }

    .equipo-btn-slide svg {
        width: 35px;
        height: 35px;
    }

    .equipo-btn-slide {
        width: 35px;
        height: 35px;
    }

    .equipo-flecha-derecha {
        top: 100%;
        right: 35%;
    }

    .equipo-flecha-izquierda {
        top: 100%;
        left: 35%;
    }

    .info-wrapper {
        width: 90%;
    }

    .imagen-wrapper img {
        width: 85%;
    }

    .imagen-wrapper::after {
        width: 35%;
        right: 0;
        height: 100%;
    }

    .info-wrapper p {
        font-size: .7rem;
    }

    .info-wrapper ul li {
        font-size: .7rem;
    }

    .btn-turno {
        font-size: .65rem;
        width: 100%;
    }
}