/* 
 * investigacion.css
 * Estilos específicos para la sección de Investigación (Proyectos, Grupos y Publicaciones)
 * UTN Facultad Regional Villa María
 */


/* Caja de Búsqueda y Filtros */
.investigacion-search-box {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.investigacion-search-input {
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.investigacion-search-input:focus {
    border-color: #F5A800;
    box-shadow: 0 0 0 0.2rem rgba(245, 168, 0, 0.15);
}

.investigacion-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* Tarjetas de Proyectos, Grupos y Publicaciones */
.investigacion-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.investigacion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
}

.investigacion-card-body {
    padding: 1.5rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.investigacion-card-title {
    font-family: var(--font-family-title, 'Montserrat', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.investigacion-card-code {
    font-family: monospace;
    font-size: 0.825rem;
    color: #475569;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    display: inline-block;
    margin-bottom: 0.75rem;
}

/* Badges e Indicadores */
.badge-status-ejecucion {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-weight: 600;
}

.badge-status-finalizado {
    background-color: rgba(100, 116, 139, 0.1);
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.2);
    font-weight: 600;
}

.badge-origen-utn {
    background-color: rgba(245, 168, 0, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 168, 0, 0.3);
    font-weight: 600;
}

.badge-origen-facultad {
    background-color: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-weight: 600;
}

.badge-pub-revista {
    background-color: rgba(147, 51, 234, 0.1);
    color: #7e22ce;
    border: 1px solid rgba(147, 51, 234, 0.2);
    font-weight: 600;
}

.badge-pub-congreso {
    background-color: rgba(14, 165, 233, 0.1);
    color: #0369a1;
    border: 1px solid rgba(14, 165, 233, 0.2);
    font-weight: 600;
}

.badge-pub-informe {
    background-color: rgba(234, 88, 12, 0.1);
    color: #c2410c;
    border: 1px solid rgba(234, 88, 12, 0.2);
    font-weight: 600;
}

/* Modales */
.investigacion-modal .modal-content {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.investigacion-modal .modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1.5rem 1.75rem;
    background-color: #f8fafc;
    border-top-left-radius: 1.25rem;
    border-top-right-radius: 1.25rem;
}

.investigacion-modal .modal-body {
    padding: 1.75rem;
}

.investigacion-modal-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

/* Tabla de integrantes */
.integrantes-table {
    font-size: 0.9rem;
}

.integrantes-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    border-bottom-width: 1px;
}

/* Contador de resultados vacíos */
.no-results-box {
    background-color: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #64748b;
}

/* Tarjetas Horizontales de Recursos (Bibliotecas electrónicas, etc.) */
.recurso-card-horizontal {
    background: #fcfcfd;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.recurso-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.recurso-card-category {
    color: #d97706;
    font-size: 0.85rem;
    font-weight: 600;
}

.recurso-card-badge {
    font-size: 0.75rem;
    color: #475569;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 0.2rem 0.75rem;
    font-weight: 500;
}

.recurso-card-title-gold {
    color: #b45309;
    font-family: var(--font-family-title, 'Montserrat', sans-serif);
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.35rem;
    margin-bottom: 1rem;
}

.recurso-img-box {
    width: 220px;
    min-width: 180px;
    height: 130px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
}

.recurso-img-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.recurso-img-placeholder {
    color: #94a3b8;
    font-size: 0.8rem;
    text-align: center;
}

.btn-acceder-recurso {
    background-color: #f59e0b;
    color: #ffffff;
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.45rem 1.5rem;
    font-size: 0.9rem;
    border: none;
    transition: background-color 0.2s ease;
}

.btn-acceder-recurso:hover {
    background-color: #d97706;
    color: #ffffff;
}

/* Custom Paginación Minimalista (Estilo SCTyP / UTN) */
.investigacion-pagination-wrapper {
    margin-top: 2.5rem !important;
}

.investigacion-pagination-wrapper .pagination {
    gap: 4px;
    align-items: center;
}

.investigacion-pagination-wrapper .page-item .page-link {
    border: none !important;
    background-color: transparent !important;
    color: #475569 !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    transition: all 0.15s ease-in-out !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.investigacion-pagination-wrapper .page-item .page-link:hover {
    color: #b45309 !important;
    background-color: rgba(245, 168, 0, 0.08) !important;
}

/* Recuadro Dorado de Página Activa */
.investigacion-pagination-wrapper .page-item.active .page-link {
    background-color: #ffffff !important;
    border: 2px solid #F5A800 !important;
    color: #b45309 !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(245, 168, 0, 0.25) !important;
}

.investigacion-pagination-wrapper .page-item.disabled .page-link {
    background-color: transparent !important;
    color: #94a3b8 !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 0.6;
}