/* ==========================================
   VIDEO SECTION - Sección de Video Moderna
   ========================================== */

.video-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);
    position: relative;
    overflow: hidden;
}

.video-section__container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gap-lg);
}

/* Contenido superior */
.video-section__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.video-section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0066CC;
    margin-bottom: 1rem;
    font-style: italic;
    letter-spacing: 1.5px;
}

.video-section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #004A98;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.video-section__description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
}

/* Video Wrapper */
.video-section__video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.video-section__video {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 74, 152, 0.15),
                0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-section__video:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 80px rgba(0, 74, 152, 0.2),
                0 15px 40px rgba(0, 0, 0, 0.12);
}

.video-section__video img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.video-section__video:hover img {
    transform: scale(1.05);
}

/* Play Button */
.video-section__play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    pointer-events: none;
}

.video-section__play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 74, 152, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Efecto de onda pulsante */
.video-section__play-icon::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.video-section__play-icon::after {
    content: '';
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.video-section__video:hover .video-section__play-icon {
    transform: scale(1.15);
    background: #004A98;
}

.video-section__video:hover .video-section__play-icon i {
    color: #ffffff;
}

.video-section__play-icon i {
    font-size: 1.8rem;
    color: #004A98;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.video-section__play-text {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: rgba(0, 74, 152, 0.9);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.video-section__video:hover .video-section__play-text {
    background: rgba(0, 74, 152, 1);
    transform: translateY(5px);
}

/* Video element oculto por defecto */
.video-section__video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

/* Estado: reproduciendo */
.video-section__video.playing img,
.video-section__video.playing .video-section__play-button {
    display: none;
}

.video-section__video.playing video {
    display: block;
    position: relative;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .video-section {
        padding: 3.5rem 0;
    }

    .video-section__content {
        margin-bottom: 2rem;
    }

    .video-section__title {
        font-size: 1.8rem;
    }

    .video-section__description {
        font-size: 0.95rem;
    }

    .video-section__play-icon {
        width: 65px;
        height: 65px;
    }

    .video-section__play-icon i {
        font-size: 1.4rem;
    }

    .video-section__play-text {
        font-size: 0.9rem;
        padding: 0.4rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .video-section {
        padding: 2.5rem 0;
    }

    .video-section__title {
        font-size: 1.5rem;
    }

    .video-section__description {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .video-section__video {
        border-radius: 12px;
    }

    .video-section__play-icon {
        width: 55px;
        height: 55px;
    }

    .video-section__play-icon i {
        font-size: 1.2rem;
    }

    .video-section__play-icon::before,
    .video-section__play-icon::after {
        display: none;
    }
}
