/* ============================================
   VIDEOCLASES GRATUITAS - ESTILOS
   ============================================ */

/* Hero Específico */
.hero-videoclases {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.video-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse-video 2s ease-in-out infinite;
}

@keyframes pulse-video {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ============================================
   PREMIUM NOTICE
   ============================================ */
.premium-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 3px solid #e74c3c;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
}

.premium-notice-icon {
    font-size: 4rem;
    color: #e74c3c;
    flex-shrink: 0;
}

.premium-notice-content h3 {
    color: #c0392b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-notice-content h3 i {
    color: #F39C12;
}

.premium-notice-content p {
    color: #856404;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.btn-premium {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.6);
}

/* ============================================
   VIDEOCLASES GRID
   ============================================ */
.videoclases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.video-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.video-card:hover .video-thumbnail::before {
    background: rgba(0,0,0,0.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.play-button i {
    color: #e74c3c;
    font-size: 2rem;
    margin-left: 5px; /* Centrar visualmente el icono de play */
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.15);
    background: white;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.video-duration i {
    font-size: 0.9rem;
}

/* Video Body */
.video-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.badge-rcf {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.badge-ley {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

.badge-declaracion {
    background: linear-gradient(135deg, #16a085 0%, #0e7a5f 100%);
    color: white;
}

.badge-estatuto {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.badge-orden {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
}

.video-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
}

.video-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-watch {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-watch:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-watch i {
    font-size: 1.3rem;
}

/* ============================================
   MODAL DE VIDEO
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-video {
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    max-height: 750px;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    z-index: 10001;
}

.modal-header {
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.modal-body {
    flex-grow: 1;
    padding: 0;
    overflow: hidden;
    background: #000;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    margin-top: 4rem;
    text-align: center;
    color: white;
}

.final-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.final-cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.final-cta-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
}

.cta-feature i {
    font-size: 1.5rem;
    color: #52ff88;
}

.btn-cta {
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .videoclases-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .premium-notice {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .video-thumbnail {
        height: 180px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button i {
        font-size: 1.8rem;
    }
    
    .modal-video {
        width: 98%;
        height: 85vh;
    }
    
    .final-cta {
        padding: 3rem 1.5rem;
    }
    
    .final-cta-title {
        font-size: 2rem;
    }
    
    .cta-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .video-title {
        font-size: 1.15rem;
    }
    
    .video-thumbnail {
        height: 160px;
    }
    
    .play-button {
        width: 55px;
        height: 55px;
    }
    
    .play-button i {
        font-size: 1.6rem;
    }
    
    .final-cta-title {
        font-size: 1.8rem;
    }
    
    .final-cta-description {
        font-size: 1rem;
    }
}
