/* =========================================
   PROGRAMAS ESPECIALES - ESTILOS
   ========================================= */

/* Sección de Programas Especiales */
.programas-especiales-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: #999;
    font-size: 1.1rem;
}

/* Grid de Programas */
.programas-especiales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.programa-especial-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.programa-especial-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: #ff6b35;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.programa-icon {
    font-size: 2.5rem;
}

.programa-nombre {
    text-align: center;
    line-height: 1.4;
}

/* =========================================
   REPRODUCTOR DE YOUTUBE
   ========================================= */

.youtube-player-section {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.youtube-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.youtube-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #ff6b35;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.youtube-header p {
    color: #ccc;
    font-size: 1rem;
}

/* Contenedor responsive del iframe */
.youtube-container {
    margin-bottom: 1.5rem;
}

.youtube-responsive {
    position: relative;
    padding-bottom: 56.25%; /* Relación 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.youtube-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Footer del reproductor */
.youtube-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.youtube-footer p {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

.youtube-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.youtube-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
    background: linear-gradient(135deg, #cc0000, #990000);
}

/* =========================================
   DETALLES DEL PROGRAMA
   ========================================= */

.programa-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Redes Sociales */
.programa-social {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.programa-social h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #ff6b35;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #0e5fc7);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.social-btn.facebook:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.5);
}

.social-btn.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.social-btn.youtube:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

.social-btn.x {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.social-btn.x:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.social-btn.disabled {
    background: rgba(100, 100, 100, 0.3);
    color: #666;
    cursor: not-allowed;
    border-color: rgba(100, 100, 100, 0.5);
    box-shadow: none;
}

.social-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

/* Información del Programa */
.programa-info-text {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.info-box {
    line-height: 1.8;
}

.info-es {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-en {
    color: #ccc;
    font-style: italic;
}

/* Botón Volver */
.programa-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-volver:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* Tablets */
@media (max-width: 768px) {
    .programas-especiales-section {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .programas-especiales-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .youtube-player-section {
        padding: 1.5rem;
    }
    
    .youtube-header h3 {
        font-size: 1.5rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .social-btn {
        justify-content: center;
    }
    
    .programa-detail {
        padding: 1rem;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .programas-especiales-grid {
        grid-template-columns: 1fr;
    }
    
    .programa-especial-btn {
        padding: 1.25rem;
    }
    
    .programa-icon {
        font-size: 2rem;
    }
    
    .youtube-player-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .youtube-header h3 {
        font-size: 1.3rem;
    }
    
    .youtube-footer {
        gap: 0.75rem;
    }
    
    .youtube-footer p {
        font-size: 0.85rem;
    }
    
    .youtube-link-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .programa-social,
    .programa-info-text {
        padding: 1.5rem;
    }
    
    .btn-volver {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* =========================================
   ANIMACIONES
   ========================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.youtube-player-section,
.programa-social,
.programa-info-text {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state para el iframe */
.youtube-responsive::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 107, 53, 0.3);
    border-top-color: #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

.youtube-responsive iframe {
    z-index: 2;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ===== Botones Toggle YouTube (Live / Últimos Videos) ===== */
/* Agregar esto al final de tu programas-especiales.css */

.youtube-toggle {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.yt-toggle-btn {
    background: #1a1a1a;
    color: #ccc;
    border: 2px solid #333;
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.yt-toggle-btn:hover {
    border-color: #ff6b35;
    color: #fff;
}

.yt-toggle-btn.active {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    border-color: #ff6b35;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.4);
}

/* =========================================
   COMPARTIR PROGRAMA
   ========================================= */

.compartir-section {
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.compartir-label {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.compartir-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.compartir-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.compartir-btn svg { flex-shrink: 0; }

/* WhatsApp */
.compartir-btn.whatsapp {
    background: #25d366;
    box-shadow: 0 3px 12px rgba(37,211,102,0.35);
}
.compartir-btn.whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(37,211,102,0.5);
}

/* Facebook */
.compartir-btn.facebook {
    background: #1877f2;
    box-shadow: 0 3px 12px rgba(24,119,242,0.35);
}
.compartir-btn.facebook:hover {
    background: #0e65d9;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(24,119,242,0.5);
}

/* X / Twitter */
.compartir-btn.x-twitter {
    background: #000;
    box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}
.compartir-btn.x-twitter:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0,0,0,0.6);
}

/* Copiar link */
.compartir-btn.copiar {
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #ddd;
}
.compartir-btn.copiar:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}
.compartir-btn.copiar.copiado {
    background: rgba(37,211,102,0.2);
    border-color: #25d366;
    color: #25d366;
}

/* Compartir nativo (móvil) */
.compartir-btn.nativo {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    box-shadow: 0 3px 12px rgba(255,107,53,0.35);
}
.compartir-btn.nativo:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(255,107,53,0.5);
}

/* Responsive móvil */
@media (max-width: 480px) {
    .compartir-btns { gap: 0.5rem; }
    .compartir-btn {
        padding: 0.55rem 0.9rem;
        font-size: 0.82rem;
    }
}

/* =========================================
   TOGGLE DE IDIOMA
   ========================================= */

.lang-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.lang-toggle-btn {
    background: #1a1a1a;
    color: #ccc;
    border: 2px solid #333;
    border-radius: 25px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.lang-toggle-btn:hover {
    border-color: #ff6b35;
    color: #fff;
}

.lang-toggle-btn.active {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    border-color: #ff6b35;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.4);
}
