@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&family=Poppins:wght@400;600;900&display=swap");
.banner_cardioferroa{
    margin-top: 80px;
    margin-bottom: 50px;
}
.container h2{
    font-family: 'Dancing Script', cursive;
    font-size: 8rem;
}
.container p{
    font-size: 1.4rem;
    text-align: justify;
}
.cont_1, .cont_2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 800px;
}
.titulo_about h1{
    font-family: 'Dancing Script', cursive;
    font-size: 8rem;
}
.about_contain{
    margin-top: 80px;
    display: grid;
    align-items: center;
    height: calc(100vh - 80px);
    background-image: url('../img/home/doctor-cruzando-brazos-mientras-sostiene-estetoscopio-bata-blanca.webp');
    background-repeat: no-repeat;
    background-position: left;
    background-size: cover;
}
.img_about{
    height: 650px;
    width: 650px;
    border-radius: 26px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img_about::before{
    content: "";
    position: absolute;
    height: 890px;
    width: 890px;
    border-radius: 26px;
    background: conic-gradient(red 10deg, transparent 90deg);
    animation: rotar 2s linear infinite;
}
.img_about::after{
    content: "";
    position: absolute;
    height: 640px;
    width: 640px;
    background-image: url('../img/home/consultorio_cardiologia_cardiologo_enfermera_corazon.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 25px;
}
.heading{
    text-align: center;
    font-size: 4rem;
    color: var(--black);
    text-transform: uppercase;
    font-weight: bolder;
    margin-bottom: 3rem;
}
.slider{
    height: 250px;
    margin: 90px auto 150px auto;
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
}
.slide-track{
    display: flex;
    width: calc(250px * 18);
    animation: scroll 40s linear infinite;
}
.slide-track:hover{
    animation-play-state: paused;
}
.slide{
    height: 200px;
    width: 250px;
    display: flex;
    align-items: center;
    padding: 15px;
    perspective: 100px;
}

.slide img{
    max-height: 200px;
    max-width: 100%;
    transition: transform 1s;
    cursor: pointer;
}
img:hover{
    transform: translatez(50px);
}
.slider::before,
.slider::after{
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    content: '';
    height: 100%;
    position: absolute;
    width: 25%;
    z-index: 2;
}
.slider:before{
    left: 0;
    top: 0;
}
.slider::after{
    right: 0;
    top: 0;
    transform: rotatez(180deg);
}
@keyframes scroll {
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(calc(-250px * 9));
    }
}
@keyframes rotar {
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}
@media (max-width:1200px) {
    .img_about{
        height: 450px;
        width: 450px;
    }
    .img_about::before{
        height: 690px;
        width: 690px;
    }
    .img_about::after{
        height: 440px;
        width: 440px;
    }
    .cont_2 img{
        width: 350px;
        height: 350px;
    }
}
@media (max-width:990px) {
    .titulo_about h1{
        text-align: center !important;
    }
    .img_about{
        height: 350px;
        width: 350px;
    }
    .img_about::before{
        height: 590px;
        width: 590px;
    }
    .img_about::after{
        height: 340px;
        width: 340px;
    }
    .cont_1, .cont_2{
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
    .cont_1 .mr-5, .cont_2 .mr-5{
        margin: 0px !important;
    }
    .cont_2{
        margin-top: 70px;
    }
}