/**
 * Estilos para la sección de videos
 * Incluye el botón de play y efectos hover
 */

/* Contenedor de video */
.video-container {
    position: relative;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Thumbnail del video */
.video-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 302px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

/* Botón de play */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 0, 0, 1);
}

.video-play-button i {
    color: white;
    font-size: 30px;
    margin-left: 5px; /* Para centrar visualmente el icono de play */
}

/* Título del video en overlay */
.video-thumbnail > div:last-child {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.video-thumbnail:hover > div:last-child {
    background: rgba(0, 0, 0, 0.85);
}

/* Iframe del video */
.video-iframe {
    display: none;
    border-radius: 8px;
}

/* Sección de videos */
.videos {
    padding: 60px 0;
}

.videos .section-title {
    text-align: center;
    padding-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .video-container {
        margin-bottom: 20px;
    }
    
    .video-thumbnail img,
    .video-iframe {
        height: 220px;
    }
    
    .video-play-button {
        width: 60px;
        height: 60px;
    }
    
    .video-play-button i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .video-thumbnail img,
    .video-iframe {
        height: 180px;
    }
    
    .video-play-button {
        width: 50px;
        height: 50px;
    }
    
    .video-play-button i {
        font-size: 20px;
    }
    
    .video-thumbnail > div:last-child {
        font-size: 12px;
        padding: 8px;
    }
}
