/*tarjeta ofertas*/
<style>
    /* Loader (sin cambios) */
    .loader-container {
        text-align: center;
        padding: 60px 20px;
        color: #555;
    }
    .spinner {
        border: 6px solid #f3f3f3;
        border-top: 6px solid #3498db;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        animation: spin 1s linear infinite;
        margin: 0 auto 20px;
    }
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Grid y tarjetas */
    .ofertas-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 24px;
        padding: 20px 0;
    }

    .oferta-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        padding: 24px;
        transition: all 0.25s ease;
        border: 1px solid #e8ecef;
        display: flex;
        flex-direction: column;
    }

    .oferta-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    }

    .oferta-card h3 {
        margin: 0 0 16px;
        font-size: 1.3rem;
        color: #1a3c5e;
        line-height: 1.3;
    }

    .oferta-card .info-item {
        margin: 10px 0;
        font-size: 0.97rem;
        color: #444;
    }

    .oferta-card .info-item strong {
        color: #2c5282;
        font-weight: 600;
    }

    .oferta-card .salario {
        font-weight: bold;
        color: #27ae60;
        font-size: 1.1rem;
    }

    /* Botones al final de la tarjeta */
    .card-actions {
        margin-top: auto;           /* Empuja los botones al fondo */
        display: flex;
        gap: 12px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }

    .btn {
        flex: 1;
        padding: 12px 16px;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        text-align: center;
        text-decoration: none;
        display: inline-block;
    }

    .btn-ver-mas {
        background: #3498db;
        color: white;
    }

    .btn-ver-mas:hover {
        background: #2980b9;
    }

    .btn-aplicar {
        background: #27ae60;
        color: white;
    }

    .btn-aplicar:hover {
        background: #219653;
    }

    /* Mensajes */
    .mensaje-vacio, .mensaje-error {
        text-align: center;
        padding: 80px 20px;
        background: #f9fafb;
        border-radius: 12px;
        color: #555;
        max-width: 600px;
        margin: 40px auto;
    }

    .mensaje-error {
        background: #fff5f5;
        color: #c53030;
    }

    @media (max-width: 768px) {
        .ofertas-grid {
            grid-template-columns: 1fr;
        }
        .card-actions {
            flex-direction: column;
        }
    }

    /*lo nuevo*/

.ofertas-titulo {
    color: #263b53;
    font-size: 22px;
    font-weight: 600;
    margin: 15px 0 20px;
}

.ofertas-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: 0 0 25px;
}

.oferta-card {
    background: #fff;
    border: 1px solid #e0e3e8;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.oferta-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.11);
}

.oferta-imagen-container {
    width: 100%;
    height: 155px;
    overflow: hidden;
}

.oferta-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.oferta-contenido {
    padding: 12px 18px;
    flex: 1;
}

.oferta-fila {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #263b53;
}

.oferta-label {
    min-width: 105px;
    white-space: nowrap;
}

.oferta-label i {
    width: 17px;
    color: #64788d;
}

.oferta-valor {
    text-align: right;
    flex: 1;
    overflow-wrap: anywhere;
}

.salario {
    font-weight: 600;
}

.oferta-fecha {
    border-top: 1px solid #e5e7eb;
    padding: 14px 19px;
    color: #8290a1;
    font-size: 12px;
}

.oferta-fecha i {
    margin-right: 6px;
}

.oferta-acciones {
    display: flex;
    gap: 8px;
    padding: 0 18px 18px;
    margin-top: auto;
}

.oferta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 5px;
    border-radius: 5px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none !important;
}

.oferta-btn-ver {
    background: white;
    color: #337ab7;
    border: 1px solid #337ab7;
}

.oferta-btn-aplicar {
    background: #337ab7;
    color: white;
    border: 1px solid #337ab7;
}

.oferta-btn-aplicar:hover {
    background: #286090;
    color: white;
}

@media(max-width: 991px) {
    .ofertas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 600px) {
    .ofertas-grid {
        grid-template-columns: 1fr;
    }
}

/* Detalle de la vacante */
.detalle-oferta {
    background: #fff;
    border: 1px solid #e0e3e8;
    border-radius: 13px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.detalle-oferta h2 {
    color: #263b53;
    margin-top: 0;
    margin-bottom: 20px;
}

.detalle-seccion {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.detalle-seccion h3 {
    color: #337ab7;
    font-size: 18px;
    margin-bottom: 15px;
}

.detalle-campo {
    margin-bottom: 12px;
    color: #444;
    overflow-wrap: anywhere;
}

.detalle-campo strong {
    color: #263b53;
}

.detalle-descripcion {
    white-space: pre-line;
    line-height: 1.6;
    color: #444;
}

.detalle-acciones {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.detalle-imagen {
    max-width: 180px;
    max-height: 130px;
    object-fit: contain;
    margin-bottom: 15px;
}

@media(max-width: 600px) {
    .detalle-oferta {
        padding: 16px;
    }

    .detalle-acciones {
        flex-direction: column;
    }
}

/* Encabezado del detalle */

.detalle-foto {
    width: 155px;
    height: 125px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    background: #eef1f5;
}

@media(max-width: 600px) {
    .detalle-foto {
        width: 105px;
        height: 100px;
    }
}

.detalle-oferta {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 14px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
    color: #344054;
    font-size: 14px;
}

.detalle-encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.detalle-titulo {
    color: #263b53;
    font-size: 25px;
    font-weight: 700;
    margin: 15px 0;
}

.detalle-fecha {
    color: #8290a1;
    font-size: 12px;
}

.detalle-badge {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 20px;
    background: #e8f5ed;
    color: #21834a;
    font-weight: 600;
    font-size: 12px;
}

/* Pestañas */
.detalle-tabs {
    display: flex;
    gap: 25px;
    border-bottom: 1px solid #e5e9ef;
    margin: 20px 0;
}

.detalle-tab {
    background: none;
    border: none;
    padding: 13px 4px;
    color: #7b8794;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.detalle-tab.active {
    color: #337ab7;
    border-bottom-color: #337ab7;
}

.detalle-panel {
    display: none;
}

.detalle-panel.active {
    display: block;
}

/* Resumen */
.detalle-resumen {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 22px;
}

.detalle-resumen-info {
    flex: 1;
}

.detalle-resumen-info h2 {
    color: #263b53;
    font-size: 21px;
    margin: 0 0 8px;
    font-weight: 700;
}

.detalle-subtitulo {
    color: #667085;
    margin-bottom: 10px;
}

/* Campos */
.detalle-seccion {
    margin-top: 25px;
}

.detalle-seccion h3 {
    color: #263b53;
    font-size: 17px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf0f3;
    margin-bottom: 15px;
}

.detalle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detalle-item {
    padding: 12px 14px;
    background: #fafbfc;
    border: 1px solid #edf0f3;
    border-radius: 9px;
    min-width: 0;
}

.detalle-item strong {
    display: block;
    color: #667085;
    font-size: 12px;
    margin-bottom: 5px;
}

.detalle-item span {
    color: #263b53;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.detalle-texto {
    white-space: pre-line;
    line-height: 1.7;
    color: #475467;
    overflow-wrap: anywhere;
}

.detalle-acciones {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #edf0f3;
}

.detalle-empresa {
    background: #fafbfc;
    padding: 20px;
    border-radius: 10px;
}

@media(max-width: 600px) {
    .detalle-oferta {
        padding: 16px;
    }

    .detalle-grid {
        grid-template-columns: 1fr;
    }

    .detalle-resumen {
        align-items: flex-start;
    }

    .detalle-titulo {
        font-size: 21px;
    }

    .detalle-tabs {
        gap: 15px;
    }

    .detalle-acciones {
        flex-direction: column;
    }
}

/* =====================================
   AJUSTE COMPACTO DEL DETALLE DE OFERTA
===================================== */

.detalle-oferta {
    max-width: 1180px;
    margin: 15px auto;
    padding: 20px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    font-size: 13px;
}

/* Encabezado */
.detalle-encabezado {
    margin-bottom: 8px;
}

.detalle-fecha {
    margin: 8px 0 12px;
    font-size: 12px;
}

/* Pestañas */
.detalle-tabs {
    margin: 10px 0 16px;
    gap: 25px;
}

.detalle-tab {
    padding: 10px 5px;
    font-size: 14px;
}

/* Resumen */
.detalle-resumen {
    padding: 13px 16px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.detalle-resumen-info h2 {
    font-size: 19px;
    margin-bottom: 5px;
}

/* Secciones */
.detalle-seccion {
    margin-top: 17px;
}

.detalle-seccion h3 {
    font-size: 15px;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

/* Datos: tres columnas en escritorio */
.detalle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.detalle-item {
    padding: 9px 11px;
    border-radius: 6px;
    background: #fff;
}

.detalle-item strong {
    font-size: 11px;
    margin-bottom: 3px;
}

.detalle-item span {
    font-size: 13px;
    font-weight: 500;
}

/* Descripción y requisitos */
.detalle-texto {
    line-height: 1.55;
    font-size: 13px;
}

/* Empresa */
.detalle-empresa {
    padding: 15px;
}

/* Acciones */
.detalle-acciones {
    margin-top: 18px;
    padding-top: 13px;
}

/* Pantallas medianas */
@media(max-width: 900px) {
    .detalle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Celulares */
@media(max-width: 600px) {
    .detalle-oferta {
        padding: 13px;
        margin: 10px auto;
    }

    .detalle-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .detalle-resumen {
        padding: 12px;
    }

    .detalle-tabs {
        gap: 12px;
    }

    .detalle-tab {
        font-size: 12px;
    }
}

</style>

/*detalle ofertas*/
