/* ===============================
   CARRUSEL DE NOTICIAS
   =============================== */

/* Contenedor general */
.carousel-noticias {
    position: relative;
}

/* Forzar ancho completo */
.carousel-noticias .carousel-inner,
.carousel-noticias .carousel-item {
    width: 100%;
}

/* Fila horizontal exclusiva del carrusel */
.carousel-noticias .fila-carrusel {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

/* Columnas */
.carousel-noticias .col-noticia {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 10px;
}

/* Tarjeta */
.noticia-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    height: 100%;
    border: 1px solid #eee;
    transition: 0.3s;
}

.noticia-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Imagen */
.noticia-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Placeholder */
.noticia-card.placeholder {
    background: #f9f9f9;
    border: 1px dashed #ccc;
}

/* Controles flechas */
.carousel-control-prev,
.carousel-control-next {
    background: #1b396a;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: .9;
}

/* Loader */
.loader-carrusel{
    width:100%;
    text-align:center;
    padding:40px;
}

/* ===============================
   RESPONSIVE
   =============================== */

/* Tablet */
@media (max-width: 992px) {
    .carousel-noticias .col-noticia{
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Celular */
@media (max-width: 576px) {
    .carousel-noticias .fila-carrusel{
        flex-wrap: wrap;
    }

    .carousel-noticias .col-noticia{
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* Efecto sutil en hover de tarjetas */
.noticia-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Sombra más elegante en hover */
.noticia-card:hover{
    box-shadow: 0 10px 20px rgba(27,57,106,0.2);
}

/* Indicador de imágenes múltiples */
.noticia-img {
    position: relative;
}
.noticia-img[data-multi="true"]::after {
    content: "📸 +";
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
}