/* =============================================
   SECCIÓN VIDEOS
   ============================================= */
.seccion-videos {
    background: #f4f4f4;
    padding: 56px 0 48px;
    position: relative;
    overflow: hidden;
}

/* Línea superior decorativa */
.seccion-videos::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, #e74c3c 30%, #f39c12 70%, transparent);
}

/* =============================================
   HEADER
   ============================================= */
.videos-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
}

.linea-roja-videos {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #e74c3c 50%, transparent 100%);
    border-radius: 2px;
}

.titulo-videos {
    font-family: 'Barlow Condensed', 'Oswald', 'Impact', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #111;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* =============================================
   WRAPPER
   ============================================= */
.videos-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* =============================================
   BOTONES
   ============================================= */
.slider-btn-videos {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
    transition: background 0.25s ease, transform 0.2s ease, opacity 0.25s ease;
    z-index: 5;
}

.slider-btn-videos:hover {
    background: #e74c3c;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(231,76,60,0.4);
}

.slider-btn-videos:active { transform: scale(0.94); }

.slider-btn-videos.disabled {
    opacity: 0.25;
    pointer-events: none;
}

.slider-btn-videos svg {
    width: 22px;
    height: 22px;
}

/* =============================================
   TRACK EXTERNO (clip) + CONTENEDOR DESLIZANTE
   ============================================= */
.videos-track-outer {
    flex: 1;
    overflow: hidden;
}

.videos-container {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    padding: 8px 4px 16px;
    align-items: flex-start;
}

/* =============================================
   CARD DE VIDEO — estilo TikTok vertical
   ============================================= */
.video-card {
    flex-shrink: 0;
    width: calc((100%) / 4 - 15px); /* 4 por fila en desktop */
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}

/* =============================================
   PLAYER — ratio 9:16 (vertical TikTok)
   ============================================= */
.video-player {
    position: relative;
    width: 100%;
    padding-top: 177.78%; /* 9:16 ratio */
    background: #000;
    overflow: hidden;
}

.video-player iframe,
.video-player video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: cover;
}

/* =============================================
   INFO DEL VIDEO
   ============================================= */
.video-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    background: #1a1a1a;
}

.video-titulo {
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0;
    line-height: 1.25;
}

.video-descripcion {
    font-size: 12px;
    color: #aaa;
    line-height: 1.5;
    margin: 0;
}

/* =============================================
   DOTS INDICADORES
   ============================================= */
.videos-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
}

.videos-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.videos-dot.active {
    width: 22px;
    border-radius: 4px;
    background: #e74c3c;
    box-shadow: 0 0 8px rgba(231,76,60,0.4);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* 3 columnas en tablet grande */
@media (max-width: 1200px) {
    .video-card {
        width: calc((100%) / 3 - 14px);
    }
}

/* 2 columnas en tablet */
@media (max-width: 900px) {
    .video-card {
        width: calc(50% - 10px);
    }
}

/* 1 columna en móvil, scroll nativo */
@media (max-width: 560px) {
    .slider-btn-videos { display: none; }
    .videos-wrapper { gap: 0; }

    .video-card {
        width: 72vw;
        flex-shrink: 0;
    }

    .videos-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 14px;
        padding: 8px 16px 16px;
    }

    .videos-container::-webkit-scrollbar { display: none; }

    .video-card {
        scroll-snap-align: center;
    }

    .titulo-videos { font-size: 20px; }
}