/* Cards Minimalistas con Borde Institucional */
.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.article-card:hover {
    box-shadow: 0 4px 16px rgba(26, 58, 143, 0.12);
    transform: translateY(-2px);
}

.researcher-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.researcher-card:hover {
    box-shadow: 0 4px 16px rgba(196, 164, 74, 0.12);
    transform: translateY(-2px);
}

/* Admin Cards */
.admin-card {
    background: white;
    border-radius: 8px;
    border-top: 3px solid #1a3a8f;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.admin-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Contact Links sin emojis */
.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.contact-link:hover {
    background: #f0f4ff;
    border-left-color: #1a3a8f;
    color: #1a3a8f;
}

.contact-link svg {
    flex-shrink: 0;
}

/* Degrees List sin icono */
.degrees-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.degree-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fafafa;
    border-radius: 6px;
    border-left: 3px solid #c4a44a;
}

.degree-dot {
    width: 12px;
    height: 12px;
    background: #c4a44a;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.degree-year {
    display: inline-block;
    font-size: 12px;
    color: #666;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 8px;
}

/* ============================================
   BOTONES DE CATEGORÍA CON CLIP-PATH DIAGONAL
   ============================================ */

.filter-btn {
    position: relative;
    padding: 12px 24px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--category-color, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.filter-btn.active,
.filter-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-btn.active::before,
.filter-btn:hover::before {
    opacity: 1;
}

/* Botón "Todos" - siempre gris */
.filter-btn[data-filter="all"] {
    --category-color: #6b7280;
}

.filter-btn[data-filter="all"].active {
    background: #6b7280;
    color: white;
}

/* ============================================
   CATEGORÍAS EN TARJETAS DE ARTÍCULOS
   ============================================ */

.article-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: var(--category-color, #3b82f6);
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
    z-index: 2;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ============================================
   BADGES DE CATEGORÍA (para headers, etc)
   ============================================ */

.category-badge {
    display: inline-block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    background: var(--category-color, #3b82f6);
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-badge:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ============================================
   COLORES POR CATEGORÍA (Variables CSS)
   Colores sólidos - Sin gradientes
   ============================================ */

.category-administracion, .filter-btn[data-filter="administracion"] {
    --category-color: #3B82F6;
}

.category-finanzas, .filter-btn[data-filter="finanzas"] {
    --category-color: #10B981;
}

.category-innovacion, .filter-btn[data-filter="innovacion"] {
    --category-color: #8B5CF6;
}

.category-economia, .filter-btn[data-filter="economia"] {
    --category-color: #F59E0B;
}

.category-estrategias, .filter-btn[data-filter="estrategias"] {
    --category-color: #EF4444;
}

.category-emprendimiento, .filter-btn[data-filter="emprendimiento"] {
    --category-color: #06B6D4;
}

.category-crecimiento, .filter-btn[data-filter="crecimiento"] {
    --category-color: #EC4899;
}

.category-politica-fiscal, .filter-btn[data-filter="politica-fiscal"] {
    --category-color: #6366F1;
}

.category-hacienda, .filter-btn[data-filter="hacienda"] {
    --category-color: #14B8A6;
}

.category-metodologias, .filter-btn[data-filter="metodologias"] {
    --category-color: #F97316;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .article-card-category {
        font-size: 11px;
        padding: 5px 12px;
    }
}
