/* === Fondo General === */
.job-board-section {
    background: linear-gradient(to bottom, #23295a, #1b204c);
    color: #e0e0f0;
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
}

/* === Títulos === */
.job-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.job-subtitle {
    font-size: 1.2rem;
    color: #a7c7e7;
    margin-top: 0.5rem;
}

/* === Contenedor === */
.jobs-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    max-width: 1200px;
    
    margin: 0 auto;
    padding: 1rem 0;
}

/* === Lista de Vacantes === */
.job-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    padding-right: 1rem;
    max-height: 65vh;
}

/* === Tarjeta de Vacante === */
.job-card {
     height: 100px;
    background: #2a2f63;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
     display: block; /* importante para que <a> actúe como contenedor */
    text-decoration: none; /* elimina subrayado */
    color: inherit; /* hereda colores */
    
}

.job-card:hover {
    transform: translateY(-5px);
    background: #3a3f85;
    box-shadow: 0 10px 25px rgba(167, 199, 231, 0.2);
    text-decoration: none;
    color: #ffffff;
}

.job-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.job-card p {
    font-size: 0.95rem;
    margin-top: 0.5rem;
    color: #c9c9d4;
}

/* === Panel de Detalle === */
.job-detail-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(70, 89, 169, 0.3);
    overflow-y: auto;
    max-height: 200vh;
    color: #f0f0f5;
}

.job-detail-panel h3 {
    color: #a7c7e7;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.job-detail-panel p {
    margin-bottom: 0.6rem;
    font-size: 1rem;
    color: #ffffff;
}

.job-detail-panel strong {
    color: #a7c7e7;
}

.placeholder-text {
    text-align: center;
    color: #aaa;
    font-style: italic;
}
.list-group-item.active {
    background-color:#a7c7e7 ;
    border-color: #a7c7e7;
    color: #ffffff;
    z-index: 2;
}

/* === Responsive Layout === */
@media (max-width: 768px) {
    .jobs-wrapper {
        flex-direction: column;
    }

    .job-list,
    .job-detail-panel {
        max-height: none;
    }
}
