/* CONTENEDOR PRINCIPAL */
.ap-empleos-section {
    padding: 42px 0;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin: 40px 0;
}

.ap-empleos-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ap-empleos-kicker {
    display: inline-block;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    color: #c1121f;
    margin-bottom: 8px;
}

.ap-empleos-title {
    margin: 0 0 6px;
    font-size: 2.8rem; /* Ajustado ligeramente */
    font-weight: 900;
    line-height: 1;
    color: #111;
}

.ap-empleos-subtitle {
    margin: 0;
    font-size: 1.4rem;
    color: #6b7280;
}

.ap-empleos-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
}

/* GRID DE 6 COLUMNAS */
.ap-empleos-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

/* TARJETA INDIVIDUAL */
.ap-empleo-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px; /* Más compacto */
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.ap-empleo-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ap-empleo-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 900;
    flex-shrink: 0;
    background: #f3f4f6;
    font-size: 1rem;
}

.ap-empleo-company {
    font-size: 1rem;
    font-weight: 800;
    color: #9ca3af;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* TÍTULO CON CORTE AUTOMÁTICO (2 LÍNEAS) */
.ap-empleo-job-title {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.2;
    font-weight: 800;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2rem; 
}

.ap-empleo-meta {
    display: flex;
    flex-direction: column; /* Apilados para ahorrar ancho */
    gap: 4px;
    font-size: 0.9rem;
    color: #6b7280;
}

/* DESCRIPCIÓN CON CORTE AUTOMÁTICO (3 LÍNEAS) */
.ap-empleo-desc {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* BOTONES */
.ap-empleo-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.ap-empleo-btn {
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    width: 100%;
}

.ap-empleo-btn--primary {
    background: #111;
    color: #fff;
}

.ap-empleo-btn--secondary {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.ap-empleo-btn--secondary:hover {
    background: #f9fafb;
    color: #111;
}

/* RESPONSIVIDAD */
@media (max-width: 1200px) {
    .ap-empleos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ap-empleos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ap-empleos-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .ap-empleos-grid {
        grid-template-columns: 1fr;
    }
}