.card-wrapper {
    z-index: 0;

}

.slide-container {
    max-width: 100vw;
    width: 100%;
    padding: 0;
    overflow: hidden;
    display: inline-block;
}

.slide-content {
    margin: 0;
    overflow: hidden;

}

.card {
    border-radius: 25px;
    background-color: #fff;

    .image-content {
        padding: 0 !important;
        height: 250px;
        overflow: hidden;

        a {
            display: flex;
            height: 100% !important;
            width: 100%;
        }

        img {
            height: 100% !important;
            width: 100%;
            object-fit: cover;
            border-radius: 8px;
        }
    }
}

.image-content,
.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.image-content {
    position: relative;
    row-gap: 5px;
    padding: 25px 0;

    a {
        height: 100%;
        width: 100%;
    }

    img {
        border-radius: 8px;
    }
}

.overlay {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: #4070f4;
    border-radius: 25px 25px 0 25px;
}

.overlay::before,
.overlay::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -40px;
    height: 40px;
    width: 40px;
    background-color: #4070f4;
}

.overlay::after {
    border-radius: 0 25px 0 0;
    background-color: #fff;
}

.card-image {
    position: relative;
    background: #fff;
    padding: 0;
}

.card-image .card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;

}

.name {
    font-size: 16px;
    font-weight: 500;
    color: black;
}

.description {
    font-size: 14px;
    color: #707070;
    text-align: center;
}

.button {
    border: none;
    font-size: 16px;
    color: #fff;
    padding: 8px 16px;
    background-color: #122d7c;
    border-radius: 6px;
    margin: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background: #122d7c;
}

.swiper-navBtn {
    color: #6e93f7;
    transition: color 0.3s ease;
}

.swiper-navBtn:hover {
    color: #122d7c;
}

.swiper-navBtn::before,
.swiper-navBtn::after {
    font-size: 35px;
}

.swiper-button-next {
    right: 0;
}

.swiper-button-prev {
    left: 0;
}

.swiper-pagination-bullet {
    background-color: #6e93f7;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: #4070f4;
}

@media screen and (max-width: 768px) {
    .slide-content {
        margin: 0 10px;
    }

    .swiper-navBtn {
        display: none;
    }
}


/* Modificaciones evoratec */
.card {
    height: 250px;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;

}

.card__content {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    background: #f7f7f7;
    padding: 8px;
    border-radius: 8px;
    height: 90px;

    .fecha__inicio {
        font-size: 14px;
        color: #707070;
    }
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    position: absolute;
    bottom: 0;
    color: white;
    background: rgba(97, 142, 74, 0.71);
    padding: 5px 20px;
    width: 100%;
    height: 145px;

}

.card-content h2 {
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.card-content p {
    color: white;
    text-align: left;
    font-size: 16px;
}

.card-image {
    position: relative;
    height: 400px;
    width: 100%;
    background: #fff;
    /* padding: 3px; */
}

/* Formato blog */
.blog-post {
    padding: 10px;
}

.blog-post .card-content {
    background: #bc0000;
}

.blog-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 15px;
}

.blog-content h2 {
    font-size: 20px;
    font-weight: 600;
}

.blog-content p {
    color: white;
    text-align: left;
}

.swiper-button-next-evo,
.swiper-button-prev-evo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    width: 35px;
    height: 44px;
    margin-top: -22px;
    z-index: 100000;
    cursor: pointer;
    background-size: 27px 44px;
    background: no-repeat 50%;
    background-color: #ffffff8c;
    padding: 5px;
}

.swiper-button-next-evo svg,
.swiper-button-prev-evo svg {
    stroke: black;
}

.swiper-button-prev-evo {
    left: 15px;
}

.swiper-button-next-evo {
    right: 15px;
}


/* Testimonios */

.swiper-button-next-evo {
    right: 0px;
    left: auto;
    padding-right: 12px !important;
}

.swiper-button-prev-evo {
    left: 0px;
    right: auto;
    padding-left: 12px !important;
}

.swiper-button-next-evo, .swiper-button-prev-evo {

    position: absolute;
    top: 40%;
    width: 32px;
    height: 32px;
    margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;

    svg {
        width: 24px;
        height: 24px;
        stroke-width: 3px;
    }
}


.ficha-noticia {

}

.enlace__masinfo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #f0f4fc !important;
        color: var(--e-global-color-primary) !important ;
        padding: 8px 16px;
        font-weight: bold;
        border-radius: 24px;
        transition: color 0.3s, background-color 0.3s, border-color 0.3s, border-radius 0.3s;
        border: 2px solid var(--e-global-color-primary) ;
        &:hover {
            background: var(--e-global-color-primary) !important ;
            color: white !important;
        }
        /* Los estados hover se controlan desde el panel Estilo > Botón "Ver más" */

        .evo-btn-icon {
            display: inline-flex;
            align-items: center;
            flex-shrink: 0;

            svg {
                width: 18px;
                height: 18px;
                fill: currentColor;
                stroke: currentColor;
            }

            i {
                line-height: 1;
            }
        }

        .evo-btn-label {
            display: inline;
        }
    }
}
.qhn-slider-widget {
    .qhn-post-item {
        width: auto;
    }
    .qhn-post-principal-slider {
        display: flex;
        height: 430px;
        width: 100%;
        margin-bottom: 16px;
        flex-direction:column ;
        .qhn-post-item {
            height: 100% !important;
            position: relative !important ;
            box-shadow: oklab(0.305603 -0.00622831 -0.0712184 / 0.1) 0px 2px 4px 0px;

            .image-content {
                height: 100% !important;
            }
            .qhn-post-content {
                position : absolute ;
                bottom: 0;
                left: 0;
                right: 0;
                height: auto;
                color: white;
                padding: 8px;
                background-color: transparent;
                background-image: linear-gradient(0deg, #0009 50%, #0000 100%);
                border-radius: 16px;
                .titulo {
                    h3 {
                        a {
                            font-size: 24px;
                            font-weight: bold;
                            margin: 0;
                            color: white ;
                        }
                    }
                }
                .noticia__categorias {
                    margin-top: 30px;
                    .ciudad {
                        a {
                            font-size: 16px;
                            color: white;

                            &:hover {

                            }
                        }
                        .ciudad__icono {
                            svg {
                                margin-right: 4px;
                                width: 18px;
                                height: 18px;
                            }
                        }
                    }

                    .topic {

                        a {
                            color: white;
                            font-size: 16px;
                        }
                        .topic__icono {
                            svg {
                                margin-right: 4px;
                                width: 18px;
                                height: 18px;
                            }
                        }

                    }
                }
            }
        }
    }
}

.slider-widget__negocios {
    position: relative ;

}
.slide-container {
    margin-bottom: 16px;
}
.qhn-slider-widget {


    .header {
        display: flex ;
        flex-direction: column ;
        .titulo {
            margin-bottom: 8px;
            h2 {
                font-size: 24px;
                font-weight: bold;
                margin: 0;
                color: var(--color-azul); /* Sobreescribible desde panel Estilo > Título */
            }

        }
        .subtitulo {
            margin-bottom: 16px;
            h3 {
                font-size: 18px;
                color: #707070; /* Sobreescribible desde panel Estilo > Subtítulo */
                margin:0;
            }

        }
        .categorias {
            margin-bottom: 16px;
        }

    }
}


/* ── MOBILE: scroll CSS nativo (sin Swiper) ────────────────────────────────
   Se activa cuando el JS añade .evo-scroll-mobile al .slide-container.
   Objetivo: mostrar ~1.15 fichas para indicar que hay más contenido.

   IMPORTANTE: usamos vw como referencia para el ancho de cada ficha,
   nunca % — porque % resuelve contra el ancho del track (.card-wrapper)
   que puede ser mucho mayor que el viewport.
   ────────────────────────────────────────────────────────────────────────── */

@media screen and (max-width: 767px) {

    /* Wrapper exterior: recorta el peek */
    .slider-widget__negocios {
        overflow: hidden;
    }

    /* El .slide-container actúa como ventana scrollable */
    .slide-container.evo-scroll-mobile {
        overflow-x: auto;
        overflow-y: hidden;
        /* Padding lateral: el derecho deja ver el inicio de la ficha siguiente */
        padding: 0 16px 12px 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        box-sizing: border-box;
        width: 100%;
        /* No ponemos display:flex aquí — lo hace .card-wrapper */
    }

    .slide-container.evo-scroll-mobile::-webkit-scrollbar {
        display: none;
    }

    /* .card-wrapper es el track flex — neutralizamos lo que Swiper haya podido inyectar */
    .slide-container.evo-scroll-mobile > .card-wrapper {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px;
        transform: none !important;   /* anula translate3d de Swiper */
        width: max-content !important; /* se expande al contenido, no al viewport */
        align-items: stretch;
    }

    /*
     * Cada slide: ancho relativo al VIEWPORT (vw), no al track.
     * 16px padding-left + ficha + 16px que "asoma" = 100vw
     * → ficha = 100vw - 16px(padding-left) - 16px(peek) = ~84vw
     * Usamos 78vw para que el peek sea bien visible (~22vw - gap - padding).
     */
    .slide-container.evo-scroll-mobile > .card-wrapper > * {
        flex: 0 0 78vw !important;
        width: 78vw !important;
        max-width: 78vw !important;
        scroll-snap-align: start;
        box-sizing: border-box;
    }

    /* Ocultar paginación y botones de nav */
    .slide-container.evo-scroll-mobile .swiper-pagination,
    .slider-widget__negocios .swiper-button-prev-evo,
    .slider-widget__negocios .swiper-button-next-evo {
        display: none !important;
    }
}
