/* Estilos para el widget de carrusel de videos de YouTube */
.pa-youtube-carousel {
    width: 100%;
    margin: 0 auto 40px;
    position: relative;
}

.pa-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 60px; /* Espacio para los botones */
}

.pa-youtube-video-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
}

.pa-youtube-video-list .pa-youtube-video-item {
    flex: 0 0 calc(33.333% - 14px); /* 3 columnas */
    min-width: 0;
}

.pa-youtube-video-item {
    position: relative;
    transition: transform 0.3s ease;
}

.pa-youtube-video-item a {
    text-decoration: none;
    display: block;
    color: inherit;
}

.pa-video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    overflow: hidden;
    background-color: #000;
}

.pa-video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 16 / 9;
    transition: opacity 0.3s ease;
}

.pa-youtube-video-item:hover .pa-video-thumbnail img {
    opacity: 0.8;
}

.pa-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.pa-youtube-video-item:hover .pa-play-button {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.pa-video-title {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

/* Controles del carrusel */
.pa-carousel-control {
    appearance: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.pa-carousel-control:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.pa-carousel-control:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pa-carousel-control img {
    width: 100%;
    height: auto;
    display: block;
}

.pa-carousel-prev {
    left: 10px;
}

.pa-carousel-next img {
    transform: rotate(180deg);
}

.pa-carousel-next {
    right: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .pa-youtube-video-list .pa-youtube-video-item {
        flex: 0 0 calc(50% - 10px); /* 2 columnas */
    }
    
    .pa-youtube-carousel {
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .pa-youtube-video-list .pa-youtube-video-item {
        flex: 0 0 100%; /* 1 columna */
    }
    
    .pa-carousel-wrapper {
        padding: 0 50px;
    }
    
    .pa-carousel-control {
        width: 35px;
        height: 35px;
    }
    
    .pa-carousel-control img {
        width: 16px;
        height: 16px;
    }
    
    .pa-youtube-carousel {
        margin-bottom: 100px;
    }
    
    .pa-video-title {
        margin-top: 10px;
        font-size: 14px;
    }
}
