/* ========================================
   NEWS & INSIGHTS SLIDER
   ======================================== */

.section_slider_news > .et_pb_row  {
    display: flex;
    align-items: stretch;
}

.section_slider_news .left-column {
    padding-right: var(--padding-int);
    border-right: 1px solid var(--primary-03);
    margin-right: 0;
    display: flex;
    flex-direction: column;
}

.section_slider_news .right-column {
    margin-left: 0;
    flex: 1;
    padding-left: var(--padding-int);
}

.section_slider_news .left-column .et_pb_code {
    margin-bottom: 0;
    margin-top: auto;
}

.news_slider {
    position: relative;
}

/* Track */
.news_slider .splide__track {
    overflow: hidden;
}

/* Slide */
.news_slider .splide__slide {
    height: auto;
    padding-right: var(--padding-int);
    border-right: 1px solid var(--primary-03);
    
}

/* Card */
.news_card {
    background-color: var(--blanco);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news_card > a {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Imagen */
.news_card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news_card__image {
    width: 100%;
    aspect-ratio: 107 / 171;
    background-color: var(--gris);
    overflow: hidden;
    border-radius: 12.816px;
}

/* Contenido */
.news_card__content {
    display: flex;
    flex-direction: column;
    gap: var(--padding-int);
    flex: 1;
}

.news_card__date.text-small {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: var(--size-16);
    letter-spacing: -0.33px;
    color: var(--text-color);
}

.news_card__content .title-news {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: var(--size-18);
    letter-spacing: -0.33px;
    color: var(--primary);
}

/* Empujar CTA abajo */

.news_card__content .link-arrow {
    margin-top: auto;
    margin-bottom: 0;
    width: fit-content;
}

/* Categoría */
.news_card__category {
    display: flex;
    flex-wrap: wrap;
    gap: var(--padding-small);
    padding-top: var(--padding-small);
    padding-bottom: var(--padding-int);
}

.news_card__category .news_card__category_item {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: var(--size-13);
    letter-spacing: -0.33px;
    text-align: center;
    color: var(--text-color);
    border: 1px solid var(--primary);
    border-radius: 5px;
    padding: 3px 5px;
    text-transform: capitalize;
    height: fit-content;
}

/* Flechas Splide (reutilizando icono existente) */
.news_slider_controls {
    display: flex;
    flex-direction: column;
    gap: var(--margin-section);
    margin-top: var(--padding-int);
    position: relative;
}

.news_slider_controls .splide__arrow:disabled {
    opacity: 1;
}

.news_slider_controls .news_slider_status {
    width: 60%;
}

/* Línea superior: texto + flechas */
.news_slider_nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.news_slider_status {
    font-family: Inter;
    font-size: var(--size-18);
    color: var(--text-color);
    font-weight: 400;
    letter-spacing: -0.334px;
}

/* Flechas */
.news_slider_controls .splide__arrows, .news_slider .splide__arrows {
    display: flex;
    gap: 5px;
    position: absolute;
    top: var(--padding-int);
    right: 0;
    width: 40%;
}

/* Flecha base */
.news_slider_controls .splide__arrow, .news_slider .splide__arrow {
    width: 38px;
    height: 38px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

/* Ocultar SVG interno de Splide */
.news_slider_controls .splide__arrow svg, .news_slider .splide__arrow svg {
    display: none;
}

/* Flecha anterior (gris) */
.news_slider_controls .splide__arrow--prev,
.news_slider .splide__arrow--prev {
    background-image: url(../images/flecha_atras_gris.svg);
}

/* Flecha siguiente (azul) */
.news_slider_controls .splide__arrow--next,
.news_slider .splide__arrow--next {
    background-image: url(../images/flecha_next_azul.svg);
}

/* Paginación abajo */
.news_slider_controls .splide__pagination, .news_slider .splide__pagination {
    position: static;
    display: flex;
    gap: 8px;
    padding: 0;
}

/* Circulitos */
.news_slider_controls .splide__pagination__page {
    width: 6px;
    height: 6px;
    background-color: var(--primary-05);
    opacity: 1;
    border-radius: 50%;
}

.news_slider_controls .splide__pagination__page.is-active {
    width: 24px;
    border-radius: 20px;
    background-color: var(--primary);
}

.news_slider  .splide__arrows, .news_slider .splide__pagination {
    display: none;
}

@media screen and (max-width: 1200px) {
    .news_slider_controls .splide__arrow--prev{
        left: auto;
    } 

    .news_slider_controls .splide__arrow--next { 
        right: 0;
    }
}

@media screen and (max-width: 980px) {
    .section_slider_news .et_pb_row   {
        flex-direction: column;
        display: flex;
    }

    .news_slider .splide__arrows:first-child {
        display: none;
    }

    .section_slider_news .title-section, 
    .section_slider_news .et_pb_text_inner,
    .section_slider_news .et_pb_button_module_wrapper  {
        text-align: center;
    }

    .section_slider_news .title-section::after {
        margin: 10px auto 0;
    }

    .section_slider_news .et_pb_column {
        border: none;
        padding-left: 0;
        padding-right: 0;
    }

    .news_card__image {
        aspect-ratio: 16 / 9;
    }

    .news_card__category {
        min-height: 0;
    }

    .news_slider .splide__slide {
        padding-right: 0;
        border-right: 0;
    }

    .news_card__content {
        gap: var(--padding-small);
    }

    .news_card__content .link-arrow {
        margin-top: 0;
    }

    .news_slider_controls {
        display: none;
    }

    .news_slider .splide__arrows button {
        position: relative;
        left: inherit;
        right: inherit;
    }

    .news_slider .splide__arrows {
        display: flex;
        gap: var(--padding-int);
        position: relative;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
    }

}

