@import url('https://fonts.googleapis.com/css?family=Fira+Sans:400,500,600,700,800');

* {
    box-sizing: border-box;
}

/* body {
    margin: 0;
    padding: 0;
    
    min-height: 100vh;
    font-family: 'Fira Sans', sans-serif;
    display: flex;
} */

.wrapper-slider {
  font-family: 'Fira Sans', sans-serif;
    display: flex;
    justify-content: center;
    width: 100%;
    height: inherit;
    background-color: #5baa59;
    background-image: linear-gradient(147deg, #83a06b 0%, #5f744e 74%);
}

p.blog-slider__section {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    color: #5f744e;
    margin-bottom: 5px;
}

/* CONTENEDOR */
.blog-slider {
    margin: 8px 0;
    width: 95%;
    position: relative;
    max-width: 80%;
    background: #fff;
    /* box-shadow: 0px 14px 80px rgba(34, 35, 58, 0.2); */
    padding: 25px;
    border-radius: 25px;
    height: 400px;
    transition: all 0.3s;
    overflow: visible !important;
    background-image: url(/themes/barrio_blogcc/img/back-slide-blog-cc.jpg);
    background-position: right !important;
}

.blog-slider .swiper-wrapper {
    overflow: visible;
}

/* ITEM */
.blog-slider__item {
    display: flex;
    align-items: center;
}

/* IMAGEN */
.blog-slider__img {
    width: 300px;
    flex-shrink: 0;
    height: 300px;
    /* background-image: linear-gradient(147deg, #83a06b 0%, #566947 74%); */
    /* box-shadow: 10px 7px 11px -1px rgb(72 104 31 / 12%); */
    border-radius: 20px;
    transform: translateX(-80px);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.blog-slider__img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: linear-gradient(147deg, #83a06b 0%, #566947 74%); */
    border-radius: 20px;
    opacity: 1;
    
}

.blog-slider__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    border-radius: 20px;
    transition: all 0.3s;
}

/* MOSTRAR IMAGEN ACTIVA */
.blog-slider__item.swiper-slide-active .blog-slider__img img {
    opacity: 1;
    transition-delay: 0.3s;
}

/* CONTENIDO */
.blog-slider__content {
    padding-right: 25px;
    position: relative;
    z-index: 1;
}

.blog-slider__content > * {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.4s;
}

/* MOSTRAR CONTENIDO ACTIVO */
.blog-slider__item.swiper-slide-active .blog-slider__content > * {
    opacity: 1;
    transform: none;
}

/* Animaciones individuales */
.blog-slider__item.swiper-slide-active .blog-slider__content > *:nth-child(1) {
    transition-delay: 0.3s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content > *:nth-child(2) {
    transition-delay: 0.4s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content > *:nth-child(3) {
    transition-delay: 0.5s;
}

.blog-slider__item.swiper-slide-active .blog-slider__content > *:nth-child(4) {
    transition-delay: 0.6s;
}

/* TEXTO */
.blog-slider__code {
    color: #7b7992;
    margin-bottom: 15px;
    /* display: block; */
    font-weight: 500;
}

.blog-slider__title {
    font-size: 24px;
    font-weight: 700;
    color: #474747;
    margin-bottom: 5px;
    line-height: 29px;
}

.blog-slider__text {
    color: #4e4a67;
    margin: 15px 0 30px 0;
    line-height: 1.5em;
}

.blog-slider__author {
    font-size: 19px;
    color: #353535;
}

/* BOTON */

.blog-slider__button {
    display: inline-flex;
    background-image: linear-gradient(147deg, #83a06b 0%, #566947 74%);
    background-size: 200% 200%;
    background-position: 0% 0%;
    padding: 15px 35px;
    border-radius: 50px;
    color: #fff;
    box-shadow: 0px 14px 80px rgba(53, 100, 34, 0.4);
    text-decoration: none;
    font-weight: 500;
    justify-content: center;
    text-align: center;
    letter-spacing: 1px;
    transition: background-position 0.6s ease, color 0.3s ease, transform 0.3s ease;
}

.blog-slider__button:hover {
    color: #FFF;
    background-position: 100% 100%;
    transform: scale(1.05);
}

/* PAGINACION */
.blog-slider__pagination {
    position: absolute;
    z-index: 21;
    right: 20px;
    width: 11px !important;
    text-align: center;
    left: auto !important;
    top: 50%;
    bottom: auto !important;
    transform: translateY(-50%);
}

.blog-slider__pagination.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 8px 0;
}

.blog-slider__pagination .swiper-pagination-bullet {
    width: 11px;
    height: 11px;
    display: block;
    border-radius: 10px;
    background: #062744;
    opacity: 0.2;
    transition: all 0.3s;
}

.blog-slider__pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #83a06b;
    height: 30px;
    box-shadow: 0px 0px 20px rgba(18, 83, 43, 0.3);
}

/* TABLET */
@media screen and (max-width: 992px) {

    .blog-slider {
        max-width: 680px;
        height: 400px;
    }

}

/* MOVIL */
@media screen and (max-width: 768px) {

    .blog-slider {
        min-height: 500px;
        height: auto;
        margin: 180px auto;
    }

    .blog-slider__item {
        flex-direction: column;
    }

    .blog-slider__img {
        transform: translateY(-50%);
        width: 90%;
    }

    .blog-slider__content {
        margin-top: -80px;
        text-align: center;
        padding: 0 30px;
    }

    .blog-slider__pagination {
        transform: translateX(-50%);
        left: 50% !important;
        top: 205px;
        width: 100% !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .blog-slider__pagination.swiper-pagination-bullets .swiper-pagination-bullet {
        margin: 0 5px;
    }

    .blog-slider__pagination .swiper-pagination-bullet-active {
        height: 11px;
        width: 30px;
    }

}

/* MOVIL PEQUEÑO */
@media screen and (max-width: 576px) {

    .blog-slider__img {
        width: 95%;
    }

    .blog-slider__content {
        padding: 0;
    }

    .blog-slider__button {
        width: 100%;
    }

}

/* PANTALLA BAJA */
@media screen and (max-height: 500px) and (min-width: 992px) {

    .blog-slider {
        height: 350px;
    }

    .blog-slider__img {
        height: 270px;
    }

}