/* Estilos base del tablón */
.tablon-oposiciones {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* NUEVO: Header con botón de exportación */
.tablon-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.btn-exportar-pdf {
    background: white;
    color: #667eea;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-exportar-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: #f8f9fa;
}

.btn-exportar-pdf:active {
    transform: translateY(0);
}

/* Tabs */
.tablon-tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.tablon-tab {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.tablon-tab:hover {
    background: #e8e8e8;
    color: #333;
}

.tablon-tab.active {
    background: #fff;
    color: #0073aa;
    border-bottom: 3px solid #0073aa;
}

.tablon-content {
    padding: 20px;
}

.tablon-panel {
    display: none;
}

.tablon-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Anuncios */
.lista-anuncios {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.anuncio-item {
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    padding: 20px;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.anuncio-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.anuncio-importante {
    background: #fff3cd;
    border-left-color: #ff6b6b;
    border-left-width: 6px;
}

.anuncio-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.anuncio-icono {
    font-size: 24px;
}

.anuncio-titulo {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.anuncio-importante .anuncio-titulo {
    color: #d63031;
    font-weight: 700;
}

.anuncio-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.badge-permanente {
    background: #28a745;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.anuncio-contenido {
    color: #555;
    line-height: 1.6;
}

.anuncio-contenido p:last-child {
    margin-bottom: 0;
}

/* NUEVO: Estilos para múltiples feeds */
.lista-feed-multiple {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feed-filtros {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.feed-filtro {
    background: #f5f5f5;
    border: 2px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.feed-filtro:hover {
    background: #e8e8e8;
    border-color: #bbb;
}

.feed-filtro.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.feed-items-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feed-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #28a745;
    transition: all 0.3s ease;
    position: relative;
}

.feed-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.feed-item.hidden {
    display: none;
}

.feed-fuente-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.feed-titulo {
    margin: 0 0 8px 0;
    font-size: 18px;
    padding-right: 100px;
}

.feed-titulo a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.feed-titulo a:hover {
    color: #005177;
    text-decoration: underline;
}

.feed-fecha {
    font-size: 13px;
    color: #666;
    display: block;
    margin-bottom: 10px;
}

.feed-descripcion {
    color: #555;
    margin: 10px 0 0 0;
    line-height: 1.5;
}

/* Mensajes de estado */
.no-anuncios,
.error-feed,
.no-items-feed {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* NUEVO: Modal de carga para PDF */
.pdf-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.pdf-loading-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.pdf-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .tablon-header {
        padding: 12px 15px;
    }
    
    .btn-exportar-pdf {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .tablon-tab {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .anuncio-titulo {
        font-size: 18px;
    }
    
    .tablon-content {
        padding: 15px;
    }
    
    .feed-filtros {
        gap: 8px;
    }
    
    .feed-filtro {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .feed-fuente-badge {
        position: static;
        display: inline-block;
        margin-bottom: 8px;
    }
    
    .feed-titulo {
        padding-right: 0;
    }
}
/* Estilos para overlay de carga PDF */
.pdf-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.pdf-loading-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
}

.pdf-loading-content h3 {
    margin: 20px 0 10px 0;
    color: #333;
    font-size: 24px;
}

.pdf-loading-content p {
    color: #666;
    margin: 0;
}

.pdf-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Botón de exportación a PDF */
.btn-exportar-pdf {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
}

.btn-exportar-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white !important;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-exportar-pdf:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.btn-exportar-pdf:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    color: white !important;
}

.btn-exportar-pdf:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    color: white !important;
}
