.estudios-ciudad {
    /* background-image:
        url(../assets/img/ok-anos.png); */
    /* url(../assets/img/lineas_2.png); */
    /* min-height: 85vh; */
    /* background-color: #002F55; */

    /* Definimos tamaños para ambas (pueden ser iguales o diferentes) */
    background-image:
        linear-gradient(90deg, rgba(0, 47, 85, 0.96) 28%, rgba(0, 0, 0, 0.693) 100%),
        url(../assets/img/backgrounds/bg_ciudad.png);
    background-size: cover;
    background-position: 90% 28%;
    background-repeat: no-repeat;
    animation: zoomDesgloseCiudad 15s ease-in-out infinite alternate;

    /* Estado inicial */


    /* La animación ahora mueve ambas a ritmos distintos */
    /* animation: slideLines 3s ease-in-out infinite alternate; */
    /*  */
}

@keyframes zoomDesgloseCiudad {
    0% {
        background-size: 100% 100%;
    }

    50% {
        background-size: 105% 110%;
    }

    100% {
        background-size: 100% 100%;
    }
}

.contenedor-hacemos-ciudad {
    position: relative;
    width: 665px;
    height: 665px;
    border: 12px solid #53758e00;
    border-radius: 50%;
    padding-right: 100px !important;
}


.contenedor-hacemos-ciudad .icon_ciudad {
    position: relative;
    left: -50%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    --base-angle: 0deg;
}

.contenedor-hacemos-ciudad .icon_ciudad .imgBx {
    position: absolute;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #53758E;
    /* -webkit-box-shadow: 1px 5px 5px 1px #000000;
    box-shadow: 10px 1px 5px 1px #002f55; */
    /* outline: 1px solid #011A49; */
    box-shadow: #002F55;
    transition: 0.5s;
    /* transform: rotate(calc(88deg + (150deg / 4) * (var(--i) - 1))); */
    transform-origin: 350px;
    z-index: 100;
    overflow: hidden;
}

.contenedor-hacemos-ciudad .icon_ciudad .imgBx:not(.fijo-no-activo) {
    transform: rotate(calc(67.5deg + 22.5deg * var(--i) + var(--base-angle)));

}

.contenedor-hacemos-ciudad .icon_ciudad .imgBx.fijo-no-activo {
    transform: rotate(calc(67.5deg + 22.5deg * var(--i)));
}

.contenedor-hacemos-ciudad .icon_ciudad .imgBx.fijo-no-activo img {
    transform: rotate(calc(67.5deg + 22.5deg * var(--i)));
    z-index: 999;
}

.contenedor-hacemos-ciudad .icon_ciudad .imgBx img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform:
        rotate(calc(-1 * (67.5deg + 22.5deg * var(--i) + var(--base-angle)))) scale(0.8);
    transition: 0.5s;
}

.contenedor-hacemos-ciudad .icon_ciudad .imgBx.activo {
    background-color: #ffffff;
    outline: 3px solid #53758E;
    /* transition: 0.2s; */
    width: 60px;
    height: 60px;
}

.contenedor-hacemos-ciudad .icon_ciudad .imgBx.activo img {
    filter: brightness(0.2);
    /* fill: #011A49; */
    transform: rotate(calc(-1 * (67.5deg + 22.5deg * var(--i) + var(--base-angle)))) scale(1);
}

@media (max-height:910px) {
    .contenido_ciudad img {
        /* background-color: #53758E !important; */
        width: 58% !important;
    }

    .contenedor-hacemos-ciudad {
        width: 560px;
        height: 560px;
    }

    .contenedor-hacemos-ciudad .icon_ciudad .imgBx {
        transform-origin: 305px;

    }
}

.contenido_ciudad {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}


.btn-contactanos-ciudad {
    background-color: #FF5757 !important;
    border: 1px solid #FF5757;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
}

.btn-contactanos-ciudad:hover {
    background-color: transparent !important;
    color: #ffffff;
    border: 1px solid #D3DAE7;
}

.contenedor_card_ciudad {
    position: relative;
    margin-top: 1em;
    /* height: 475px; */
    overflow: hidden;
}

.contenido_card_ciudad {
    position: relative;
    height: 100%;
}

@media (min-width:320px) and (max-width:991px) {

    .estudios-ciudad {
        /* margin-top: auto; */
        height: 100% !important;
        /* background-image: none; */
        /* background-color: #002F55; */
        background-size: 300% 100% !important;
        background-position: 50% 50%;
    }

    .contenedor-hacemos-ciudad {
        width: 390px;
        height: 390px;
        border: 8px solid #53758e00;
    }

    .contenedor-hacemos-ciudad .icon_ciudad .imgBx {
        width: 50px;
        height: 50px;
        transform-origin: 218px;
    }

    .contenedor-hacemos-ciudad .icon_ciudad .imgBx.activo {
        background-color: #ffffff;
        outline: 4px solid #53758E;
        transition: 0.2s;
    }

    .contenedor-hacemos-ciudad .icon_ciudad .imgBx img {
        padding: 0.8rem !important;
    }

    .cont_contenedor-hacemos-ciudad {
        height: 500px !important;
    }

    .circulo_desglose {
        left: -14vh !important;
        bottom: 8vh !important;
    }

    .cart_titulo_ciudad h5 {
        font-size: 1rem;
    }

    .cart_titulo_ciudad {
        width: 90% !important;
    }

    .card-informacion-actividades {
        font-size: 0.8em;
        padding: 1.5rem !important;
    }

    .s-caso-exito {
        flex-direction: column;
        gap: 10px;
    }

    .s-caso-exito h5 {
        font-size: 0.9rem !important;
    }
}