#fh5co-testimonial {
    background: #1F5F8B;
    position: relative;
    padding: 2rem 0;
}

/* #fh5co-testimonial .overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    content: '';
    background: rgba(31, 95, 139, 0.7);
} */

#fh5co-testimonial .testimony-slide {
    text-align: center;
    position: relative;
    color: #fff !important;
}

#fh5co-testimonial .testimony-slide span {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    display: block;
}

#fh5co-testimonial .testimony-slide span small {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 3px;
}

#fh5co-testimonial .testimony-slide .user {
    display: block;
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    margin: 0 auto;
    margin-bottom: 10px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    border-radius: 50%;
}

#fh5co-testimonial .testimony-slide blockquote {
    border: none;
    margin: 30px auto;
    width: 70%;
    position: relative;
    padding: 0;
}

@media screen and (max-width: 768px) {
    #fh5co-testimonial .testimony-slide blockquote {
        width: 85%;
    }
}

#fh5co-testimonial .arrow-thumb {
    position: absolute;
    top: 40%;
    display: block;
    width: 100%;
}

#fh5co-testimonial .arrow-thumb a {
    font-size: 32px;
    color: #dadada;
}

#fh5co-testimonial .arrow-thumb a:hover,
#fh5co-testimonial .arrow-thumb a:focus,
#fh5co-testimonial .arrow-thumb a:active {
    text-decoration: none;
}

#fh5co-testimonial .owl-theme .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.3) !important;
}

#fh5co-testimonial .owl-theme .owl-dots .active span {
    background: white !important;
}

#fh5co-testimonial .fh5co-heading {
    margin-bottom: 3em;
}

#fh5co-testimonial .fh5co-heading h2 {
    color: #fff;
    margin-bottom: 20px !important;
}

#fh5co-testimonial .fh5co-heading h2:after {
    background: transparent !important;
}

#fh5co-testimonial .fh5co-heading p {
    color: rgba(255, 255, 255, 0.5);
}

#fh5co-testimonial .fh5co-heading span {
    padding: 7px 15px;
    position: relative;
}

#fh5co-testimonial .fh5co-heading span:before {
    position: absolute;
    top: 24px;
    left: -40px;
    content: '';
    width: 40px;
    height: 1px;
    background: white;
}

#fh5co-testimonial .fh5co-heading span:after {
    position: absolute;
    top: 24px;
    right: -40px;
    content: '';
    width: 40px;
    height: 1px;
    background: white;
}

.collage {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    height: 30rem;
}

.image-wrapper {
    position: relative;
    width: calc(50% - 5px);
    height: 100%;
    overflow: hidden;
}

.large-image {
    width: 50%;
}

.large-imageCustom {
    width: 100%;
}

.column-wrapper {
    width: calc(50% - 5px);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.row-wrapper {
    display: flex;
    gap: 10px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo semitransparente */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    opacity: 0;
    /* Inicialmente invisible */
    transition: opacity 0.3s ease;
    /* Transición suave */
}

.overlay h4,
.overlay p {
    margin: 0;
    padding: 5px;
    text-align: left;
    justify-content: flex-end;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    /* display: block; */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-wrapper:hover img {
    transform: scale(1.1);
}

.image-wrapper:hover .overlay {
    opacity: 1;
}

.row-wrapper {
    height: 45%;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10rem;
    justify-items: center;
}

.custom-box {
    height: 26rem !important;
}

.containerPart-custom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Cards moviles Cursos */
#fh5co-course .card {
    width: 20rem;
    height: 26rem;
}

.content {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 300ms;
    box-shadow: 0px 0px 10px 1px #000000ee;
    border-radius: 5px;
}

.front,
.back {
    background-color: #151515;
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 5px;
    overflow: hidden;
}

.back-content {
    position: absolute;
    width: 98.5%;
    height: 99%;
    background-color: #003973;
    border-radius: 5px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    object-fit: cover;
    /* gap: 1rem; */
}

.back-content img {
    width: 99.7%;
    height: 23.81625rem;
    border-radius: 5px;
}

.back {
    width: 100%;
    height: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.back::before {
    position: absolute;
    content: " ";
    display: block;
    width: 160px;
    height: 160%;
    background: linear-gradient(90deg,
            transparent,
            #06a566,
            #06a566,
            #06a566,
            #06a566,
            transparent);
    animation: rotation_481 5000ms infinite linear;
    /* animation-play-state: paused; */
}



.card:hover .content {
    transform: rotateY(180deg);
}

@keyframes rotation_481 {
    0% {
        transform: rotateZ(0deg);
    }

    0% {
        transform: rotateZ(360deg);
    }
}

.front {
    transform: rotateY(180deg);
    color: white;
}

.front .front-content {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #003973;
}

.front-content .badge {
    background-color: #00000055;
    padding: 2px 10px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
    width: fit-content;
}

.description {
    box-shadow: 0px 0px 10px 5px #00000088;
    width: 100%;
    height: 100%;
    padding: 10px;
    background-color: #00000099;
    backdrop-filter: blur(5px);
    border-radius: 5px;
    z-index: 10;
}

.description-front {
    position: relative;
}

.title {
    font-size: 16px;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
}

.title p {
    width: 100%;
    margin-bottom: 0;
}

.card-body p {
    font-size: 13px;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.card-body p strong {
    font-size: 15px;
}

.card-footer {
    color: #ffffff88;
    margin-top: 5px;
    font-size: 8px;
}

.front .img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #06a566;
    position: relative;
    filter: blur(15px);
    animation: floating 2600ms infinite linear;
    z-index: 2;
}

.circle-second {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #06a566;
    position: relative;
    top: 260px;
    left: 200px;
    filter: blur(15px);
    animation: floating 2600ms infinite linear;
    z-index: 2;
}

#bottom {
    background-color: #a219ce;
    position: relative;
    left: 50px;
    top: -70px;
    width: 150px;
    height: 150px;
    animation-delay: -800ms;
    z-index: 2;
}

#right {
    background-color: #58faeb;
    left: 160px;
    top: -80px;
    width: 30px;
    height: 30px;
    animation-delay: -1800ms;
    z-index: 2;
}

#right-second {
    background-color: #58faeb;
    left: 60px;
    top: 220px;
    width: 30px;
    height: 30px;
    animation-delay: -1800ms;
    z-index: 2;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0px);
    }
}


#fh5co-course div div.content-grid div div div div.front div.front-content div p {
    font-size: 13px;
}

/* Media Queries INDEX*/
@media screen and (min-width: 1024px) {
    html,
    body {
        width: 100%;
    }

    /*1024px*/
    .mobile-navbar {
        display: none !important;
    }

    .nav-custom {
        display: block !important;
    }
}

/* Media queries para móviles INDEX */
@media screen and (max-width: 667px) {
    html,
    body {
        width: 100%;
    }
    .top,
    .nav-custom {
        display: none !important;
    }

    .mobile-navbar {
        position: relative;
        top: 0;
    }

    #fh5co-hero1 {
        position: relative;
        top: 0;
        left: 0;
        height: 17rem;
    }

    #fh5co-hero1 .mySwiper swiper-slide .content-mainSlides h2 {
        font-size: 20px;
        top: 25%;
    }

    #fh5co-hero1 .mySwiper swiper-slide .content-mainSlides h3 {
        top: 38%;
    }

    #fh5co-hero1 .mySwiper swiper-slide .content-mainSlides h3,
    #fh5co-hero1 .mySwiper swiper-slide .content-mainSlides p a {
        font-size: 14px;
    }

    #fh5co-hero1 .mySwiper swiper-slide p {
        width: 80%;
        height: fit-content;
    }

    #fh5co-hero1 .mySwiper swiper-slide h2 {
        top: 35%;
    }

    #fh5co-hero1 .mySwiper swiper-slide h3 {
        top: 43%;
        width: 90%;
    }

    #fh5co-hero1 .mySwiper swiper-slide p {
        top: 55%;
    }

    #fh5co-hero1 .mySwiper swiper-slide h3.text {
        top: 50%;
    }
    #mySwiper swiper-slide  div  p {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #mySwiper swiper-slide  div  p  a {
        width: 80%;
        height: 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    /* .custom-btnPrin {
        width: 80%;
        background-color: #06A566;
        padding: 0.5rem !important;
    } */

    #fh5co-course-categories1 {
        margin-top: 3rem;
    }

    .grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
    }

    #fh5co-course-categories1 div.container div.content-services div.grid-container div.services:nth-child(7),
    #fh5co-course-categories1 div.container div.content-services div.grid-container div.services:nth-child(8) {
        display: none;
    }

    
    .services {
        margin-bottom: 20px;
    }

    #fh5co-counter .containerPart-custom .row-custom {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        justify-content: center;
        align-items: center;
    }

    .fh5co-counters {
        width: auto;
        padding: 1rem 
    }

    .fh5co-counters .fh5co-counter {
        font-size: 30px;
    }

    .fh5co-counters .fh5co-counter-label {
        margin: 0;
    }

    .collage {
        height: 18rem;
    }
    .content-course {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }
    .image-wrapper .overlay {
        opacity: 1;
    }
    .overlay h4 {
        font-size: 12px;
    }
    .overlay p {
        font-size: 9px;
    }
    .pricing {
        margin: 0 auto;
        display: grid;
        align-items: center;       
        grid-template-columns: repeat(3, 1fr);      
        gap: 1rem;
        overflow-x: auto;
    }
    #fh5co-course .courses-grid {
        gap: 1rem;
        overflow-x: auto;
    }
    /* .custom-servicesS {
        width: 23rem;
    } */
    
    #fh5co-footer {
        margin-top: 0;
        padding: 2rem 0;
    }
    /* .simply-countdown>.simply-section {
        width: 85px;
        height: 85px;
    } */
   
}

/* Media queries para tablets INDEX */
@media screen and (min-width: 768px) and (max-width: 1023px){
    html,
    body {
        width: 100%;
    }
    div.top, .nav-custom {
        display: none !important;
    }

    .mobile-navbar {
        position: relative;
        top: 0;
    }

    #fh5co-hero1 {
        position: relative;
        top: 0;
        left: 0;
        height: 17rem;
    }

    #fh5co-hero1 .mySwiper swiper-slide .content-mainSlides h2 {
        font-size: 20px;
        top: 25%;
    }

    #fh5co-hero1 .mySwiper swiper-slide .content-mainSlides h3 {
        top: 38%;
    }

    #fh5co-hero1 .mySwiper swiper-slide .content-mainSlides h3,
    #fh5co-hero1 .mySwiper swiper-slide .content-mainSlides p a {
        font-size: 14px;
    }

    #fh5co-hero1 .mySwiper swiper-slide p {
        width: 80%;
        height: fit-content;
    }

    #fh5co-hero1 .mySwiper swiper-slide h2 {
        top: 35%;
    }

    #fh5co-hero1 .mySwiper swiper-slide h3 {
        top: 43%;
        width: 90%;
    }

    #fh5co-hero1 .mySwiper swiper-slide p {
        top: 55%;
    }

    #fh5co-hero1 .mySwiper swiper-slide h3.text {
        top: 50%;
    }


    .custom-header {
        margin: 0 0 1rem 0;
    }

    #fh5co-course-categories1 {
        margin-top: 3rem;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    

    #courses-grid .course:nth-child(3) {
        display: none;
    }
    #fh5co-course-categories1 div.container div.content-services div.grid-container div.services:nth-child(7),
    #fh5co-course-categories1 div.container div.content-services div.grid-container div.services:nth-child(8) {
        display: none;
    }

    .collage {
        height: 27rem;
    }
    .image-wrapper .overlay {
        opacity: 1;
    }
    .overlay h4 {
        font-size: 20px;
    }
    .overlay p {
        font-size: 14px;
    }
    .pricing {
        margin: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .service-sample:nth-child(3) {
        display: none;
    }
    #fh5co-pricing {
        padding: 1rem;
        margin: 0 0 2rem 0;
    }
    /* .custom-servicesS{
        width: 22rem;
    } */
    #fh5co-pricing {
        margin-bottom: 2 rem;
        padding: 1rem 0;
    }
    #fh5co-register {
        padding: 1rem 0;
        margin-top: 1rem;
    }
    #fh5co-footer {
        margin-top: 0 !important;
        padding: 2rem 0;
    }
}

