/* --- CONTENEDOR PRINCIPAL --- */
#programs-section {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 20; 
    padding: 100px 40px 180px 100px;
    overflow-y: auto;
    
    /* TU NUEVO FONDO RADIAL */
    background: radial-gradient(#b61943, black);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    
    opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}

#programs-section.active-section {
    opacity: 1; pointer-events: auto;
}

/* --- HEADER --- */
.programs-header {
    text-align: center; margin-bottom: 60px; max-width: 800px; margin-left: auto; margin-right: auto;
}
.programs-header h2 {
    font-size: 2.5rem; color: #fff; text-transform: uppercase; font-weight: 800; margin-bottom: 10px; letter-spacing: 1px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.programs-header p { font-size: 1.1rem; color: #ccc; }

/* --- GRID --- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px; max-width: 1400px; margin: 0 auto;
}

/* --- TARJETA --- */
.blog-card {
    background: #2b2d35; 
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex; flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.5); 
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
}

/* Cabecera Imagen */
.card-header-img {
    height: 180px; width: 100%; position: relative;
    background: #222; display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.card-header-img img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.blog-card:hover .card-header-img img { transform: scale(1.05); }
.fallback-icon { font-size: 3rem; color: rgba(255,255,255,0.2); }

/* Cuerpo */
.card-body { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.4rem; color: #fff; margin-bottom: 12px; font-weight: 700; line-height: 1.3; }
.card-body .desc { font-size: 0.95rem; color: #ccc; line-height: 1.6; margin-bottom: 25px; }

/* Horarios */
.schedule-box {
    margin-top: auto;
    background: rgba(0,0,0,0.2);
    border-radius: 10px; padding: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}
.schedule-box h4 {
    font-size: 0.8rem; color: #9575CE; text-transform: uppercase; margin-bottom: 10px; font-weight: 700;
}
.time-table { width: 100%; font-size: 0.9rem; border-collapse: collapse; }
.time-table td { padding: 6px 0; color: #bbb; border-bottom: 1px solid rgba(255,255,255,0.05); }
.time-table tr:last-child td { border-bottom: none; }
.time-table td:last-child { text-align: right; font-weight: 600; color: #fff; }
.flag { margin-right: 8px; font-size: 1.1rem; }

/* RESPONSIVE */
@media (max-width: 480px) {
    #programs-section { padding: 90px 20px 180px 20px; }
    .programs-header h2 { font-size: 1.8rem; }
}