/* Sección Video VSL - Diseño Minimalista y Profesional */
.video-vsl-section {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--surface-color) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.video-vsl-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(229, 57, 53, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 152, 0, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.video-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.2),
        0 15px 40px rgba(229, 57, 53, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: var(--card-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    z-index: 3;
}

.video-wrapper:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 
        0 35px 80px rgba(0, 0, 0, 0.3),
        0 25px 60px rgba(229, 57, 53, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* Estilos para iframe de YouTube/Vimeo */
.video-wrapper iframe {
    width: 100%;
    height: 500px;
    display: block;
    border: none;
    background: #000;
}

/* Estilos para video HTML5 nativo */
.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

/* Efecto de carga sutil */
.video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.video-wrapper:hover::after {
    opacity: 1;
}

/* Indicador de reproducción (opcional) */
.video-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(229, 57, 53, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.video-wrapper:hover .video-play-indicator {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-indicator::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(229, 57, 53, 0.5);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Animación para el indicador de reproducción */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animación al aparecer */
.video-container.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-container.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Elementos decorativos flotantes */
.video-vsl-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(15px) rotate(240deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .video-wrapper iframe {
        height: 450px;
    }
}

@media (max-width: 992px) {
    .video-vsl-section {
        padding: 60px 0;
    }
    
    .video-wrapper iframe {
        height: 400px;
    }
    
    .video-wrapper {
        border-radius: 20px;
    }
}

/* VIDEO RESPONSIVE - CORREGIDO */
@media (max-width: 768px) {
    .video-vsl-section {
        padding: 40px 0;
    }
    
    .video-container {
        padding: 0 10px;
    }
    
    .video-wrapper {
        margin: 0;
        border-radius: 16px;
    }
    
    .video-wrapper iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .video-vsl-section {
        padding: 30px 0;
    }
    
    .video-container {
        padding: 0 8px;
    }
    
    .video-wrapper iframe {
        height: 220px;
    }
    
    .video-wrapper {
        border-radius: 12px;
    }
}

@media (max-width: 360px) {
    .video-wrapper iframe {
        height: 180px;
    }
}

/* Modo claro específico */
body.light-mode .video-wrapper {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 15px 40px rgba(229, 57, 53, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

body.light-mode .video-wrapper:hover {
    box-shadow: 
        0 35px 80px rgba(0, 0, 0, 0.2),
        0 25px 60px rgba(229, 57, 53, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

/* Estados de carga */
.video-loading {
    position: relative;
}

.video-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
    z-index: 2;
    border-radius: 24px;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Efecto de enfoque en el video */
.video-wrapper:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

