/* ========================================================
   ESTILOS ULTRA-MODERNOS PARA LA VISTA PROGRAMA
   ======================================================== */

:root {
    --prog-primary: #0284c7;
    --prog-primary-dark: #0369a1;
    --prog-secondary: #012d54;
    --prog-bg-card: rgba(255, 255, 255, 0.95);
    --prog-border: rgba(2, 132, 199, 0.15);
    --prog-text-title: #0f172a;
    --prog-text-body: #334155;
    --prog-text-muted: #64748b;

    /* Categorías */
    --tipo-ponencia: #0284c7;
    --tipo-ponencia-bg: rgba(2, 132, 199, 0.1);
    --tipo-taller: #059669;
    --tipo-taller-bg: rgba(5, 150, 105, 0.1);
    --tipo-panel: #7c3aed;
    --tipo-panel-bg: rgba(124, 58, 237, 0.1);
    --tipo-concurso: #d97706;
    --tipo-concurso-bg: rgba(217, 119, 6, 0.1);
}

/* ========================================================
   CONTENEDOR PRINCIPAL Y HERO
   ======================================================== */
.programa-main-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 20px auto 50px auto;
    padding: 0 15px;
}

.programa-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.92) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 35px 30px 25px 30px;
    box-shadow: 0 20px 45px rgba(1, 45, 84, 0.15), 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.programa-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0284c7, #38bdf8, #818cf8, #059669);
}

.programa-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(2, 132, 199, 0.12);
    border: 1px solid rgba(2, 132, 199, 0.25);
    border-radius: 50px;
    color: #0284c7;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.programa-hero-title {
    font-family: 'visbycf-regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.3rem;
    font-weight: 900;
    color: #012d54;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.programa-hero-subtitle {
    font-family: 'visbycf-light', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    color: var(--prog-text-muted);
    margin-bottom: 25px;
    max-width: 800px;
}

/* Barra de Búsqueda y Filtros */
.programa-controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(2, 132, 199, 0.12);
}

.programa-search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 480px;
}

.programa-search-box i.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #0284c7;
    font-size: 16px;
}

.programa-search-input {
    width: 100%;
    height: 46px;
    padding: 8px 40px 8px 44px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 50px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.programa-search-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.programa-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    display: none;
    padding: 4px;
}

.programa-search-clear:hover {
    color: #ef4444;
}

/* Estadísticas Rápidas */
.programa-stats-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.stat-chip i {
    margin-right: 6px;
    color: #0284c7;
}

/* ========================================================
   PESTAÑAS DE NAVEGACIÓN (TABS MODERNOS)
   ======================================================== */
.programa-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(1, 45, 84, 0.08);
}

.programa-tab-btn {
    flex: 1;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #475569;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    user-select: none;
}

.programa-tab-btn i {
    font-size: 16px;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.programa-tab-btn .tab-badge-count {
    margin-left: 8px;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.programa-tab-btn:hover {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.06);
}

.programa-tab-btn:hover i {
    transform: scale(1.15);
}

.programa-tab-btn.active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.programa-tab-btn.active .tab-badge-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ========================================================
   TARJETAS DE ACTIVIDAD (AGENDA / SCHEDULE CARDS)
   ======================================================== */
.programa-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.actividad-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 22px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: stretch;
    gap: 22px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.actividad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 6px;
    background: #cbd5e1;
    transition: all 0.3s ease;
}

/* Acentos por categoría */
.actividad-card.tipo-ponencia::before {
    background: linear-gradient(180deg, #0284c7, #38bdf8);
}

.actividad-card.tipo-taller::before {
    background: linear-gradient(180deg, #059669, #34d399);
}

.actividad-card.tipo-panel::before {
    background: linear-gradient(180deg, #7c3aed, #a78bfa);
}

.actividad-card.tipo-concurso::before {
    background: linear-gradient(180deg, #d97706, #fbbf24);
}

.actividad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(1, 45, 84, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-color: rgba(2, 132, 199, 0.3);
}

.actividad-card:hover::before {
    width: 8px;
}

/* Columna de Horario (Izquierda) */
.actividad-schedule-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    max-width: 140px;
    padding-right: 18px;
    border-right: 1.5px dashed #e2e8f0;
    text-align: center;
    flex-shrink: 0;
}

.actividad-time-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, #012d54 0%, #004b85 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(1, 45, 84, 0.25);
    margin-bottom: 8px;
    width: 100%;
}

.actividad-duracion-chip {
    font-size: 12px;
    font-weight: 700;
    color: #0284c7;
    background: rgba(2, 132, 199, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.actividad-fecha-chip {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Columna de Contenido (Derecha) */
.actividad-content-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.actividad-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.actividad-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.actividad-type-tag.tag-ponencia {
    background: var(--tipo-ponencia-bg);
    color: var(--tipo-ponencia);
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.actividad-type-tag.tag-taller {
    background: var(--tipo-taller-bg);
    color: var(--tipo-taller);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.actividad-type-tag.tag-panel {
    background: var(--tipo-panel-bg);
    color: var(--tipo-panel);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.actividad-type-tag.tag-concurso {
    background: var(--tipo-concurso-bg);
    color: var(--tipo-concurso);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.actividad-title {
    font-family: 'visbycf-regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--prog-text-title);
    line-height: 1.35;
    margin-bottom: 8px;
    word-break: break-word;
}

.actividad-descripcion {
    font-family: 'visbycf-light', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13.5px;
    color: var(--prog-text-body);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sección de Ponentes */
.actividad-ponentes-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 10px;
}

.ponente-avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #012d54);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.ponente-info-text {
    font-size: 13px;
    color: #1e293b;
}

.ponente-label {
    font-weight: 700;
    color: #0284c7;
    margin-right: 4px;
}

.ponente-unconfirmed {
    font-style: italic;
    color: #94a3b8;
    font-size: 12.5px;
}

/* Barra de Metadatos Inferior */
.actividad-meta-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.actividad-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
}

.actividad-meta-pill i {
    color: #0284c7;
}

.actividad-meta-pill.meta-cupo i {
    color: #059669;
}

/* ========================================================
   ESTADO VACÍO (EMPTY STATE)
   ======================================================== */
.programa-empty-state {
    display: none;
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    margin: 20px 0;
}

.programa-empty-state i {
    color: #94a3b8;
    margin-bottom: 15px;
}

.programa-empty-state h4 {
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 6px;
}

.programa-empty-state p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
}

/* ========================================================
   RESPONSIVIDAD Y AJUSTES MÓVILES
   ======================================================== */
@media (max-width: 992px) {
    .programa-hero {
        padding: 25px 20px;
    }

    .programa-hero-title {
        font-size: 1.85rem;
    }

    .actividad-card {
        flex-direction: column;
        gap: 14px;
        padding: 18px 18px 18px 22px;
    }

    .actividad-schedule-col {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        min-width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1.5px dashed #e2e8f0;
        padding-right: 0;
        padding-bottom: 12px;
        gap: 10px;
    }

    .actividad-time-badge {
        width: auto;
        margin-bottom: 0;
    }

    .actividad-duracion-chip,
    .actividad-fecha-chip {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .programa-hero-title {
        font-size: 1.5rem;
    }

    .programa-hero-subtitle {
        font-size: 0.95rem;
    }

    .programa-tabs-nav {
        padding: 4px;
        border-radius: 14px;
    }

    .programa-tab-btn {
        min-width: calc(50% - 6px);
        padding: 10px 12px;
        font-size: 13.5px;
    }

    .actividad-title {
        font-size: 1.1rem;
    }

    .programa-controls-row {
        flex-direction: column;
        align-items: stretch;
    }

    .programa-search-box {
        max-width: 100%;
    }
}