/* ==============================================
   SC News Carousel v2.9
   ============================================== */

/* Outer: ancho completo, hace el clip solo en los bordes de pantalla */
.sc-news-carousel {
    width: 100%;
    overflow: hidden;
}

/* Inner: limita a 1440px y centra, pero permite que las cards cortadas
   sangren hacia afuera (dentro del outer overflow:hidden) */
.sc-news-carousel .sc-carousel-wrapper {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

@media (min-width: 1441px) {
    .sc-news-carousel .sc-carousel-wrapper {
        max-width: none;
        width: 100%;
    }
}

.sc-news-carousel .owl-stage-outer {
    padding-bottom: 20px;
}

.sc-news-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.sc-news-carousel .owl-item {
    display: flex;
}

/* Dots */
.sc-news-carousel .owl-dots {
    margin-top: 20px;
    text-align: center;
}

.sc-news-carousel .owl-dots .owl-dot span {
    background: #C8CDD6;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
    transition: background 0.3s;
    display: block;
}

.sc-news-carousel .owl-dots .owl-dot.active span,
.sc-news-carousel .owl-dots .owl-dot:hover span {
    background: #414EEF;
}

/* ──────────────────────────────────────────────
   CARD — 496×248, padding 24px
   ────────────────────────────────────────────── */

.sc-news-carousel .sc-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: none;
    /* El ancho lo controla Owl Carousel (items:2 + stagePadding:214 = 496px) */
    width: 100%;
    height: 248px;
    display: flex;
    flex-direction: row;
    padding: 24px;
    gap: 16px;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

@media (min-width: 768px) {
    .sc-news-carousel .sc-card {
        width: 100%;
    }
	
}

.sc-news-carousel .sc-card:hover {
 box-shadow: 0 5px 3px rgba(0, 0, 0, 0.15);
}

/* ── Imagen 164×200 con 4 bordes redondeados ── */
.sc-news-carousel .sc-card__image {
    width: 164px;
    min-width: 164px;
    height: 200px;
    background-color: #D6DCE8;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    flex-shrink: 0;
}

/* ── Contenido derecha ── */
.sc-news-carousel .sc-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── Fecha ── */
.sc-news-carousel .sc-card__date {
    margin: 0;
    font-family: Quicksand, Montserrat, Arial, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: #99A6B7;
}

/* ── Título ── */
.sc-news-carousel .sc-card__title {
    margin: 0;
    font-family: Quicksand, Montserrat, Arial, sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0;
    color: #171669;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Footer: categoría + botón flecha ── */
.sc-news-carousel .sc-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

/* Pastilla categoría */
.sc-news-carousel .sc-card__category {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1.5px solid #C8CDD6;
    font-family: Quicksand, Montserrat, Arial, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: #171669;
    white-space: nowrap;
    background: transparent;
}

/* Botón flecha */
.sc-news-carousel .sc-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sc-news-carousel .sc-card__arrow img {
    width: 40px;
    height: 40px;
    display: block;
}

.sc-news-carousel .sc-card__arrow {
    transition: opacity 0.2s ease;
}

.sc-news-carousel .sc-card__arrow:hover {
    opacity: 0.85;
}

.sc-news-carousel .sc-card:hover .sc-card__arrow img {
    content: url('https://institucional-gsc-sc-resources-dev.s3.amazonaws.com/wp-content/uploads/2026/04/29152906/hover-flecha.avif');
}
/*.sc-news-carousel .sc-card__arrow:hover {
    transform: scale(1.08);
    opacity: 0.85;
}*/

/* ── Sin noticias ── */
.sc-news-carousel .sc-no-news {
    padding: 24px;
    color: #666;
    font-family: Quicksand, sans-serif;
}

/* ──────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────── */

/* Botón "Ver todas" — solo mobile */
.sc-news-carousel .sc-mobile-cta {
    display: none;
    text-align: center;
    background: #414EEF;
    color: #fff;
    font-family: Quicksand, Montserrat, Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-radius: 999px;
    padding: 14px 0;
    margin-top: 16px;
    text-decoration: none;
}

@media (max-width: 767px) {
    /* Owl no se inicializa <768px (ver JS); forzar layout estático */
    .sc-news-carousel .owl-carousel.sc-carousel-inner:not(.owl-loaded) {
        display: flex !important;
        flex-direction: column;
        gap: 16px;
    }
	.sc-carousel-wrapper {
  margin-right: 16px !important;
  margin-left: 16px !important;
}

    /* Solo 2 artículos visibles */
    .sc-news-carousel .sc-carousel-inner:not(.owl-loaded) .sc-card:nth-child(n+3) {
        display: none;
    }

    .sc-news-carousel .sc-mobile-cta {
        display: block;
    }

    .sc-news-carousel .sc-card {
        width: 100%;
        height: auto;
        min-height: 180px;
        padding: 16px;
        gap: 12px;
    }

    .sc-news-carousel .sc-card__image {
      width: 76px;
    min-width: 76px;
    height: 80px;
        border-radius: 8px;
    }

    .sc-news-carousel .sc-card__title {
        font-size: 16px;
        line-height: 20px;
    }
}
