/* ========================================
   CARRUSEL DE NOTICIAS - EPOANCI
   ======================================== */

#noticias-recientes {
    background: #f8f9fa;
    overflow: hidden;
}

.noticias-carousel {
    position: relative;
    margin-top: 50px;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

/* Tarjeta de Noticia */
.noticia-card {
    min-width: 320px;
    max-width: 320px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.noticia-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Imagen de la Noticia */
.noticia-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.noticia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.noticia-card:hover .noticia-image img {
    transform: scale(1.1);
}

.noticia-fecha {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(8, 109, 173, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Contenido de la Noticia */
.noticia-content {
    padding: 20px;
}

.noticia-categoria {
    display: inline-block;
    background: #e8f4f8;
    color: #086dad;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.noticia-titulo {
    font-size: 1.2em;
    font-weight: 700;
    color: #2f2f2f;
    margin: 10px 0;
    line-height: 1.4;
    min-height: 56px;
}

.noticia-descripcion {
    font-size: 14px;
    color: #757575;
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 66px;
}

.noticia-link {
    display: inline-flex;
    align-items: center;
    color: #086dad;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.noticia-link:hover {
    color: #2e90ce;
}

/* Botones del Carrusel */
.carousel-btn {
    background: #086dad;
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(8, 109, 173, 0.3);
    flex-shrink: 0;
    z-index: 10;
}

.carousel-btn:hover {
    background: #2e90ce;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(8, 109, 173, 0.4);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn i {
    font-size: 18px;
}

/* Indicadores */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d1d1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: #086dad;
    width: 30px;
    border-radius: 5px;
}

.indicator-dot:hover {
    background: #2e90ce;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media only screen and (max-width: 1200px) {
    .noticia-card {
        min-width: 280px;
        max-width: 280px;
    }
}

@media only screen and (max-width: 768px) {
    .carousel-container {
        gap: 10px;
    }

    .noticia-card {
        min-width: 260px;
        max-width: 260px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn i {
        font-size: 16px;
    }

    .noticia-titulo {
        font-size: 1.1em;
        min-height: auto;
    }

    .noticia-descripcion {
        font-size: 13px;
        min-height: auto;
    }
}

@media only screen and (max-width: 580px) {
    .carousel-btn {
        display: none;
    }

    .carousel-track-container {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .carousel-track-container::-webkit-scrollbar {
        display: none;
    }

    .carousel-track {
        gap: 15px;
        padding: 0 20px;
    }

    .noticia-card {
        min-width: 280px;
        max-width: 280px;
        scroll-snap-align: center;
    }
}