/* Estilos elegantes para la sección de Investigación */

/* Título principal con animación */
.investigacion-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    animation: titleSlideIn 0.8s ease-out;
}

.investigacion-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
    animation: underlineGrow 0.8s ease-out 0.3s both;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes underlineGrow {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

/* Sección de coordinador */
.coordinador-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.9) 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.coordinador-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 20px 20px 0 0;
}

.coordinador-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.coordinador-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.coordinador-info {
    flex: 1;
}

.coordinador-nombre {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    position: relative;
}

.coordinador-cargo {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.coordinador-descripcion {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.9;
}

.coordinador-imagen {
    position: relative;
    overflow: hidden;
}

.coordinador-imagen img {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 3px solid var(--secondary-color);
}

.coordinador-imagen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(163, 201, 71, 0.1) 60%);
    border-radius: 15px;
    pointer-events: none;
    z-index: 1;
}

.coordinador-imagen:hover img {
    transform: scale(1.05);
}

/* Contenedor principal de investigación */
.investigacion-wrapper {
    display: flex;
    flex-direction: row;
    min-height: 80vh;
    background: transparent;
    gap: 2rem;
    padding: 0;
    margin-top: 2rem;
}

/* Sidebar mejorado */
.sidebar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004080 100%);
    padding: 2rem 1rem;
    min-width: 320px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(163,201,71,0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: sidebarGlow 3s ease-in-out infinite alternate;
}

@keyframes sidebarGlow {
    0% { opacity: 0.5; }
    100% { opacity: 0.8; }
}

.sidebar-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 2;
}

.sidebar .tab-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid transparent;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(5px);
}

.sidebar .tab-btn::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.sidebar .tab-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateX(5px);
    border-color: var(--accent-color);
}

.sidebar .tab-btn:hover::before {
    opacity: 1;
}

.sidebar .tab-btn.active {
    background: linear-gradient(135deg, var(--accent-color) 0%, #F7D038 100%);
    color: var(--dark-color);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(247, 208, 56, 0.3);
    transform: translateX(8px);
}

.sidebar .tab-btn.active::before {
    opacity: 1;
    background: var(--dark-color);
}

/* Contenido principal */
.tab-content {
    flex: 1;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-height: 600px;
}

.tab-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 20px 20px 0 0;
}

.tab-pane {
    display: none;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
}

.tab-pane.active {
    display: block;
}

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

.tab-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

.tab-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.tab-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.tab-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.tab-content h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 2px;
}

.tab-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.tab-content ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.tab-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 2rem;
}

.tab-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(163, 201, 71, 0.2);
}

/* Cards para contenido especial */
.info-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(248,250,252,0.8) 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--accent-color);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.info-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .investigacion-title {
        font-size: 2.3rem;
    }
    
    .sidebar {
        min-width: 280px;
        max-width: 280px;
    }
    
    .tab-content {
        padding: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .investigacion-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .sidebar {
        min-width: 100%;
        max-width: 100%;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .sidebar-title {
        display: none;
    }
    
    .sidebar .tab-btn {
        min-width: 180px;
        white-space: nowrap;
        text-align: center;
        justify-content: center;
    }
    
    .coordinador-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .coordinador-imagen img {
        width: 180px;
        height: 220px;
    }
    
    .tab-content {
        padding: 2rem;
    }
    
    .tab-content h2 {
        font-size: 1.8rem;
    }
    
    .investigacion-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .coordinador-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .coordinador-nombre {
        font-size: 1.5rem;
    }
    
    .coordinador-cargo {
        font-size: 1rem;
    }
    
    .coordinador-imagen img {
        width: 150px;
        height: 180px;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .tab-content h2 {
        font-size: 1.6rem;
    }
    
    .investigacion-title {
        font-size: 1.8rem;
    }
    
    .sidebar {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .sidebar .tab-btn {
        min-width: 150px;
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .investigacion-wrapper {
        padding: 0;
        gap: 1rem;
    }
    
    .coordinador-section {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .coordinador-imagen img {
        width: 120px;
        height: 150px;
    }
    
    .tab-content {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .tab-content h2 {
        font-size: 1.4rem;
    }
    
    .investigacion-title {
        font-size: 1.6rem;
    }
    
    .sidebar {
        border-radius: 15px;
    }
    
    .sidebar .tab-btn {
        min-width: 140px;
        font-size: 0.8rem;
    }
}

/* Animaciones adicionales */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.tab-btn.active {
    animation: pulse 0.6s ease-in-out;
}

/* Efectos de hover mejorados */
.tab-content:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

/* Smooth scrolling para el sidebar en móvil */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.sidebar::-webkit-scrollbar {
    height: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.info-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* Estilo unificado para encabezados */
table {
    border-collapse: collapse;
    width: 100%;
}

th {
    background-color: #f2f2f2; /* Fondo suave */
    text-align: left; /* Alineación del texto */
    padding: 12px 20px; /* Espaciado interno para que quede más a la derecha */
    font-weight: bold;
}

/* Estilo para las celdas de datos */
td {
    padding: 10px 20px; /* Igual espaciado que el encabezado */
    border-bottom: 1px solid #ddd; /* Línea divisoria */
}

/* Opcional: efecto hover en filas */
tr:hover {
    background-color: #f9f9f9;
}


/* .normativas-table {
    width: 100%;
    border-collapse: collapse;
}

.normativas-table thead {
    background-color: #004085;
    color: white;
}

.normativas-table th,
.normativas-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.normativas-table tbody tr:hover {
    background-color: #f1f1f1;
} */

.link-visualizar {
    color: #007bff;
    text-decoration: none;
}

.link-visualizar:hover {
    text-decoration: underline;
}

.btn-download {
    background-color: #28a745;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.btn-download:hover {
    background-color: #218838;
}

.text-muted {
    color: #6c757d;
}
