/*!
 * CSS Funcional para Carrusel Simple - Carruseles LPR
 * Solo estructura, layout, animaciones y responsive
 */

/* ===== LAYOUT FUNCIONAL SIMPLE ===== */
.swiper {
    margin-bottom: 40px;
    padding-bottom: 40px;
    position: relative;
}

.carrusel-item-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.carrusel-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.carrusel-item:hover {
    transform: translateY(-5px);
}

.carrusel-imagen {
    position: relative;
    overflow: hidden;
}

.carrusel-imagen img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.carrusel-item:hover .carrusel-imagen img {
    transform: scale(1.05);
}

.carrusel-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.carrusel-titulo {
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.carrusel-meta {
    margin-bottom: 10px;
}

.carrusel-excerpt {
    line-height: 1.5;
    margin-top: auto;
}

/* Controles de autoplay - solo funcionalidad */
.swiper-autoplay-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.swiper-play-pause {
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.swiper-play-pause .play-icon {
    display: none;
}

.swiper-play-pause.paused .play-icon {
    display: inline;
}

.swiper-play-pause.paused .pause-icon {
    display: none;
}

/* Responsive estructural */
@media (max-width: 768px) {
    .carrusel-imagen img {
        height: 150px;
    }
    
    .carrusel-content {
        padding: 12px;
    }
    
    .swiper-autoplay-controls {
        top: 8px;
        right: 8px;
    }
    
    .swiper-play-pause {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}