/* =========================================
   7.5 SECCIÓN DE VIDEO TUTORIAL — Dark & Interactiva
   ========================================= */

/* ── Keyframes propios de esta sección ── */
@keyframes videoGlowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.2), 0 20px 60px rgba(0, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 50px rgba(76, 175, 80, 0.5), 0 20px 60px rgba(0, 0, 0, 0.5);
    }
}

@keyframes playBounce {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Sección principal ── */
.video-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #081A0A 0%, #0D2B0F 50%, #0A2010 100%);
    position: relative;
    overflow: hidden;
}

/* Orbe decorativo de fondo */
.video-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -5%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.10) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 10s ease-in-out infinite;
}

.video-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -5%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.08) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 14s ease-in-out infinite reverse;
}

/* ── Grid ── */
.video-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.video-info {
    z-index: 2;
    animation: titleSlideIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

/* ── Título principal: verde oscuro profundo, legible ── */
.video-info h2,
.video-info .section-title {
    font-size: 3rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    margin-bottom: 1.25rem !important;
    /* Verde oscuro bonito, con sombra para legibilidad */
    color: #1B5E20 !important;
    -webkit-text-fill-color: #1B5E20 !important;
    background: none !important;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(76, 175, 80, 0.3) !important;
    /* Borde de texto verde claro muy sutil para glow */
    paint-order: stroke fill;
    position: relative;
    transition: text-shadow 0.4s ease, color 0.4s ease;
}

.video-info h2::after,
.video-info .section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #81C784, #4CAF50);
    border-radius: 2px;
    margin-top: 0.6rem;
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s;
}

.video-info:hover h2::after,
.video-info:hover .section-title::after {
    width: 100%;
}

.video-info h2:hover,
.video-info .section-title:hover {
    color: #2E7D32 !important;
    -webkit-text-fill-color: #2E7D32 !important;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(76, 175, 80, 0.5) !important;
}

/* ── Párrafo descriptivo ── */
.video-info .section-description,
.video-info p {
    color: #A5D6A7 !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    margin-bottom: 2rem !important;
}

/* ── Contenedor del reproductor glassmorphism ── */
.video-player-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(76, 175, 80, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: videoGlowPulse 4s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-player-container:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(76, 175, 80, 0.5);
}

/* ── Frame del video ── */
.video-frame {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background-color: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Overlay Play al pausar */
.video-frame::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(76, 175, 80, 0.7);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    line-height: 70px;
    text-align: center;
    animation: playBounce 2s ease-in-out infinite;
}

.video-frame:hover::after {
    opacity: 1;
}

.main-video {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    transition: filter 0.3s ease;
}

.video-frame:hover .main-video {
    filter: brightness(0.8);
}

/* ── Badge "En Vivo" decorativo ── */
.video-info .section-subtitle {
    animation: subtitleGlow 3s ease-in-out infinite !important;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .video-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .video-info {
        text-align: center;
    }

    .video-info h2,
    .video-info .section-title {
        font-size: 2.2rem !important;
    }

    .video-info h2::after,
    .video-info .section-title::after {
        margin: 0.6rem auto 0;
    }

    .video-info .section-description {
        text-align: center !important;
        margin: 0 auto 2rem auto !important;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}