/*
Theme Name: Superio Child (AgroEnlace)
Template: superio
Description: Personalizaciones de AgroEnlace sobre Superio. Superio se mantiene original para poder actualizarlo.
Author: Webpremium Chile SpA
Version: 1.4.7
Text Domain: superio-child
*/

/* Panel empleador > Postulantes: el h3 global del kit de Elementor (54px) pisaba el título de la oferta */
.job-applicants > .heading .job-title {
    font-size: 22px;
    line-height: 1.3;
    margin: 0;
}

/* Postular > CV ya subido: el hover se veía igual que "seleccionado" */
.list-file-cv .candidate-detail-cv:hover,
.list-file-cv .candidate-detail-cv:focus {
    background-color: var(--superio-theme-color-015);
    color: var(--superio-theme-color);
    box-shadow: inset 0 0 0 1px var(--superio-theme-color);
}
.list-file-cv [type="radio"]:checked + .candidate-detail-cv {
    background-color: var(--superio-theme-color);
    color: #fff;
    box-shadow: none;
}
.list-file-cv [type="radio"]:checked + .candidate-detail-cv::after {
    content: "✓ Seleccionado";
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
}

/* Postular: opciones "CV en archivo" / "CV de AgroEnlace" */
.job-apply-internal-form .apply-cv-intro {
    font-weight: 600;
    margin-bottom: 12px;
}
.job-apply-internal-form .apply-cv-option-title {
    font-weight: 500;
    margin: 8px 0 10px;
}
.job-apply-internal-form .apply-cv-resume-missing {
    margin-bottom: 20px;
}
.job-apply-internal-form .apply-cv-resume-missing p {
    margin: 8px 0 0;
    font-size: 13px;
    color: #777;
}
.job-apply-internal-form .apply-cv-complete-resume,
.job-apply-internal-form .apply-cv-complete-resume:focus {
    background-color: var(--superio-theme-color-015);
    border: 1px solid var(--superio-theme-color);
    color: var(--superio-theme-color);
}
.job-apply-internal-form .apply-cv-complete-resume:hover {
    background-color: var(--superio-theme-color);
    border-color: var(--superio-theme-color);
    color: #fff;
}

/* ===== CV de AgroEnlace: botón "Generar PDF" en /my-resume/ y Turnstile en "Crear CV" ===== */
.agro-cv-pdf-toolbar { display: flex; justify-content: flex-end; margin: -5px 0 25px; }
.agro-cv-pdf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--ae-r-md); background: var(--superio-theme-color, #93bc20); color: #fff !important; font-weight: 600; text-decoration: none !important; transition: all .2s ease; }
.agro-cv-pdf-btn:hover { background: var(--superio-theme-hover-color, #57ad1d); color: #fff !important; transform: translateY(-1px); }
.agro-cv-public-form .agro-submit-row { align-items: center; flex-wrap: wrap; gap: 12px; }
@media (max-width: 767px) {
    .agro-cv-pdf-toolbar { justify-content: stretch; }
    .agro-cv-pdf-btn { width: 100%; }
}

/* ===== Postulantes (panel del empleador) ===== */
.agro-applicants .agro-app-toolbar { margin-bottom: 20px; }
.agro-applicants .agro-app-jobselect select,
.agro-applicants .agro-app-filters select { height: 44px; border: 1px solid #e5e7eb; border-radius: 6px; padding: 0 12px; background: #fff; max-width: 100%; }
.agro-applicants .agro-app-jobselect select { min-width: 320px; }
.agro-app-head { margin-bottom: 14px; }
.agro-back { display: inline-block; margin-bottom: 6px; font-size: 14px; }
.agro-applicants .agro-app-jobtitle { font-size: 20px; line-height: 1.3; margin: 0; }
.agro-job-status { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 10px; background: #f1f3f5; color: #666; font-size: 12px; font-weight: 500; vertical-align: middle; font-family: inherit; }

.agro-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #e5e7eb; margin-bottom: 14px; }
.agro-tab { padding: 8px 14px; color: #555; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.agro-tab.active { color: var(--superio-theme-color); border-bottom-color: var(--superio-theme-color); }
.agro-tab-count { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 10px; background: #f1f3f5; font-size: 12px; text-align: center; margin-left: 4px; }
.agro-tab.active .agro-tab-count { background: var(--superio-theme-color-015); color: var(--superio-theme-color); }

.agro-app-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.agro-app-filters input[type="search"] { flex: 1 1 220px; height: 44px; }

.agro-table-wrap { border: 1px solid #edf0f2; border-radius: 8px; overflow: hidden; background: #fff; }
.agro-table { width: 100%; border-collapse: collapse; margin: 0; }
.agro-table th { background: #f8f9fa; font-size: 13px; font-weight: 600; color: #555; padding: 10px 14px; text-align: left; white-space: nowrap; }
.agro-table td { padding: 10px 14px; border-top: 1px solid #f0f2f4; vertical-align: middle; font-size: 14px; }
.agro-table tbody tr:hover { background: #fbfcf7; }
.agro-job-name { font-weight: 600; }
.agro-jobs-table .agro-count:not(.agro-badge) { display: inline-block; min-width: 28px; padding: 2px 6px; border-radius: 6px; text-align: center; color: var(--superio-theme-color); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.agro-jobs-table .agro-count:not(.agro-badge):hover { background: var(--superio-theme-color-015); }
.agro-jobs-table a.agro-badge-new:hover { color: #fff; opacity: .85; }
.agro-count-zero { color: #bbb; }
.agro-badge-new { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 10px; background: var(--superio-theme-color); color: #fff; font-size: 12px; font-weight: 600; text-align: center; }

.agro-applicant.is-current { background: var(--superio-theme-color-015); }
.agro-cell-name { position: relative; padding-left: 26px !important; }
.agro-new-dot { position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--superio-theme-color); display: none; }
.agro-applicant.is-new .agro-new-dot { display: block; }
.agro-applicant.is-new .agro-name { font-weight: 700; }
.agro-name { background: none; border: 0; padding: 0; font-weight: 600; color: #1a1a1a; text-align: left; cursor: pointer; }
.agro-name:hover { color: var(--superio-theme-color); }
.agro-detail { display: block; font-size: 13px; color: #777; }

.agro-status { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.agro-status-pendiente { background: #fff4e0; color: #b26a00; }
.agro-status-aprobado { background: #e8f5d8; color: #4b7a00; }
.agro-status-rechazado { background: #fdecec; color: #c0392b; }

.agro-icon { display: inline-flex; align-items: center; gap: 4px; height: 32px; min-width: 32px; justify-content: center; padding: 0 8px; border: 0; border-radius: 6px; background: var(--superio-theme-color-015); color: var(--superio-theme-color); font-size: 13px; cursor: pointer; vertical-align: middle; }
.agro-icon:hover, .agro-icon:focus { background: var(--superio-theme-color); color: #fff; }
.agro-icon.loading { opacity: .5; pointer-events: none; }
.agro-icon--incompleto { background: #f3f4f6; color: #6b7280; }
.agro-icon--incompleto:hover, .agro-icon--incompleto:focus { background: #e5e7eb; color: #374151; }
/* Postular: nombre real (inc/nombre-candidato.php). */
.apply-nombre { margin-bottom: 20px; }
.apply-nombre-ayuda { margin: 6px 0 0; font-size: 13px; color: #6b7280; }
.agro-cell-actions { white-space: nowrap; text-align: right; }
.agro-table th.agro-th-actions { text-align: right; }
.agro-act-approve.is-on { background: var(--superio-theme-color); color: #fff; }
.agro-act-reject.is-on { background: #c0392b; color: #fff; }

.agro-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.agro-pagination .page-numbers { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 6px; background: #fff; border: 1px solid #e5e7eb; color: #333; }
.agro-pagination .page-numbers.current { background: var(--superio-theme-color); border-color: var(--superio-theme-color); color: #fff; }
.agro-pagination-info { margin-left: auto; color: #777; font-size: 13px; }

/* Panel de revisión */
body.agro-review-open { overflow: hidden; }
.agro-review[hidden] { display: none !important; }
.agro-review { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; }
.agro-review-backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, .55); }
.agro-review-dialog { position: absolute; top: 3vh; bottom: 3vh; left: 3vw; right: 3vw; max-width: 1360px; margin: 0 auto; background: #fff; border-radius: 10px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.agro-review-cv { display: flex; flex-direction: column; min-height: 0; background: #f4f5f7; }
.agro-review-cvtabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.agro-cvtab { border: 1px solid #e5e7eb; background: #fff; border-radius: 6px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.agro-cvtab.active { background: var(--superio-theme-color); border-color: var(--superio-theme-color); color: #fff; }
.agro-cv-newtab { margin-left: auto; font-size: 13px; }
.agro-review-frame { position: relative; flex: 1; min-height: 0; }
.agro-review-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.agro-review-nofile { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.agro-review-nofile[hidden] { display: none; }
.agro-review-info { position: relative; padding: 22px 20px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.agro-review-info h3 { font-size: 22px; margin: 0 30px 0 0; line-height: 1.25; }
.agro-review-info > .agro-status { align-self: flex-start; }
.agro-review-close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; color: #888; cursor: pointer; }
.agro-review-data { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 6px 0 0; font-size: 14px; }
.agro-review-data dt { color: #888; font-weight: 400; }
.agro-review-data dd { margin: 0; font-weight: 500; word-break: break-word; }
.agro-review-msg { background: #f8f9fa; border-radius: 6px; padding: 10px 12px; font-size: 14px; }
.agro-review-msg[hidden] { display: none; }
.agro-review-msg p { margin: 4px 0 0; }
.agro-review-ficha { font-size: 14px; }
.agro-review-actions { display: grid; gap: 8px; margin-top: auto; padding-top: 10px; }
.agro-review-actions .btn { width: 100%; }
.agro-btn-outline { background: #fff; border: 1px solid var(--superio-theme-color); color: var(--superio-theme-color); }
.agro-btn-outline:hover { background: var(--superio-theme-color); color: #fff; }
.agro-review-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #eee; padding-top: 10px; }
.agro-review-nav button { border: 0; background: none; color: var(--superio-theme-color); font-weight: 600; cursor: pointer; padding: 6px 4px; }
.agro-review-nav button:disabled { color: #ccc; cursor: default; }
.agro-review-pos { font-size: 13px; color: #777; }

.agro-toast { position: fixed; right: 20px; bottom: 20px; z-index: 1100; padding: 12px 18px; border-radius: 8px; color: #fff; background: #4b7a00; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); transition: opacity .4s; }
.agro-toast.error { background: #c0392b; }
.agro-toast.out { opacity: 0; }

@media (max-width: 991px) {
    .agro-review-dialog { top: 0; bottom: 0; left: 0; right: 0; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: 60vh auto; overflow-y: auto; }
}
@media (max-width: 767px) {
    .agro-applicants .agro-app-jobselect select { min-width: 0; width: 100%; }
    .agro-table thead { display: none; }
    .agro-table, .agro-table tbody, .agro-table tr, .agro-table td { display: block; width: 100%; }
    .agro-table tr { border-top: 1px solid #f0f2f4; padding: 8px 0; }
    .agro-table td { border: 0; padding: 4px 14px; }
    .agro-table td[data-label]:not(.agro-cell-name):before { content: attr(data-label) ": "; color: #888; font-size: 13px; }
    .agro-cell-actions { text-align: left; }

    /* Postulantes: tarjeta compacta de 3 líneas (nombre / fecha + estado / CV + acciones) */
    .agro-applicants-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px; }
    .agro-applicants-table td { width: auto; padding: 0; }
    .agro-applicants-table td.agro-cell-name { width: 100%; padding-left: 16px !important; }
    .agro-applicants-table .agro-new-dot { left: 2px; }
    .agro-applicants-table td[data-label]:not(.agro-cell-name):before { content: none; }
    .agro-applicants-table td[data-label="Postuló"] { color: #777; font-size: 13px; }
    .agro-applicants-table td.agro-cell-actions { order: 4; margin-left: auto; }
    .agro-applicants-table td[data-label="CV"] { order: 5; flex-basis: 100%; display: flex; align-items: center; gap: 6px; }
}

/* Prestadores de servicio: no publican ofertas (inc/prestadores.php bloquea también la página) */
body.agroenlace-prestador .widget-submit-btn,
body.agroenlace-prestador .header-mobile-bottom .submit-job {
    display: none !important;
}

/* =========================================================================
   SISTEMA DE DISEÑO (etapa 1) – usa las variables de assets/css/tokens.css
   ========================================================================= */

/* Texto base: Superio usa #77838f (3,9:1 sobre blanco). */
body {
    color: var(--ae-ink-600);
    font-family: var(--ae-font-body);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    color: var(--ae-ink-900);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Foco visible y consistente para teclado. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.select2-selection:focus-visible {
    outline: none;
    box-shadow: var(--ae-focus);
}

/* Botón principal: lima con texto tinta (6,6:1). Hover: verde hoja con texto blanco (5,1:1). */
.btn-theme:not(.btn-outline):not(.btn-inverse),
.btn.btn-submit,
.btn-submit.btn-theme.btn-inverse,
.btn-apply,
.btn-apply-job,
.btn-download-cv,
.button.btn-theme {
    background-color: var(--ae-lime-500);
    border-color: var(--ae-lime-500);
    color: var(--ae-ink-900);
    font-weight: 600;
}
.btn-theme:not(.btn-outline):not(.btn-inverse):hover,
.btn-theme:not(.btn-outline):not(.btn-inverse):focus,
.btn.btn-submit:hover,
.btn-submit.btn-theme.btn-inverse:hover,
.btn.btn-submit:focus,
.btn-apply:hover,
.btn-apply:focus,
.btn-download-cv:hover,
.btn-apply-job:hover,
.btn-apply-job:focus,
.button.btn-theme:hover {
    background-color: var(--ae-green-600);
    border-color: var(--ae-green-600);
    color: #fff;
}
.btn-theme:not(.btn-outline):not(.btn-inverse) i,
.btn-apply i,
.btn-apply-job i {
    color: inherit;
}

/* Botón suave (lima claro con texto verde): "Ver perfil", "Login / Register", "Explorar". */
.btn-theme-lighten,
.btn-login {
    background-color: var(--ae-lime-100);
    border-color: var(--ae-lime-100);
    color: var(--ae-green-700);
}
.btn-theme-lighten:hover,
.btn-theme-lighten:focus,
.btn-login:hover,
.btn-login:focus {
    background-color: var(--ae-green-700);
    border-color: var(--ae-green-700);
    color: #fff;
}
.btn-login span,
.btn-login a {
    color: inherit;
}

/* Campos de formulario. */
.form-control,
form.cmb-form input[type="text"],
form.cmb-form input[type="email"],
form.cmb-form input[type="url"],
form.cmb-form input[type="tel"],
form.cmb-form input[type="number"],
form.cmb-form input[type="password"],
form.cmb-form textarea,
.select2-container.select2-container--default .select2-selection--single,
.select2-container.select2-container--default .select2-selection--multiple {
    border: 1px solid var(--ae-line);
    border-radius: var(--ae-r-md);
    background-color: var(--ae-surface);
    color: var(--ae-ink-900);
}
/* Campos en blanco con borde cálido (Superio: gris azulado #f0f5f7 sin borde). */
form.cmb-form input[type="text"],
form.cmb-form input[type="email"],
form.cmb-form input[type="url"],
form.cmb-form input[type="tel"],
form.cmb-form input[type="number"],
form.cmb-form input[type="password"],
form.cmb-form textarea,
.select2-container .select2-selection--single .select2-selection__rendered {
    background-color: var(--ae-surface);
}
.form-control::placeholder,
form.cmb-form input::placeholder,
form.cmb-form textarea::placeholder {
    color: var(--ae-ink-500);
    opacity: 1;
}
.form-control:focus,
form.cmb-form input:focus,
form.cmb-form textarea:focus,
.select2-container--focus .select2-selection,
.select2-container--open .select2-selection {
    border-color: var(--ae-green-700) !important;
    box-shadow: var(--ae-focus);
}
form.cmb-form label,
form.cmb-form .cmb-th label,
form.cmb-form .cmb2-checkbox-list label {
    color: var(--ae-ink-900);
}
@media (max-width: 767px) {
    .form-control,
    form.cmb-form input[type="text"],
    form.cmb-form input[type="email"],
    form.cmb-form input[type="tel"],
    form.cmb-form input[type="password"],
    .select2-container--default .select2-selection--single,
    .btn {
        min-height: var(--ae-tap);
    }
}

/* Contador de notificaciones: naranja con blanco (1,9:1) -> rojo con blanco (6,5:1). */
.unread-count {
    background-color: var(--ae-danger);
    color: #fff;
}

/* Etiquetas de estado (postulaciones, ofertas): colores de la paleta, todos >= 4,5:1. */
.label,
.application-status-label {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--ae-r-pill);
    font-size: var(--ae-fs-xs);
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0;
}
.label.label-info,
.label.pending,
.application-status-label.pending {
    background-color: var(--ae-warn-bg);
    color: var(--ae-warn);
}
.label.label-success,
.label.approved,
.application-status-label.approved {
    background-color: var(--ae-ok-bg);
    color: var(--ae-ok);
}
.label.label-default,
.label.rejected,
.application-status-label.rejected {
    background-color: #ecebe6;
    color: var(--ae-ink-600);
}
.label.label-danger,
.label.cancel {
    background-color: var(--ae-danger-bg);
    color: var(--ae-danger) !important;
}
.job-table-actions-inner,
.job-table .publish,
.application-status-label.success,
.application-status-label {
    color: var(--ae-ok);
}
.featured-text {
    color: var(--ae-green-700);
    font-weight: 600;
}
.urgent,
span.urgent {
    background-color: var(--ae-warn-bg);
    color: var(--ae-warn);
}
.select2-container.select2-container--default .select2-selection__placeholder {
    color: var(--ae-ink-500);
}
.text-danger,
.wp-job-board-pro-remove-uploaded-file {
    color: var(--ae-danger) !important;
}

/* Antes en "CSS adicional" del Personalizador (base de datos). Ahora en Git.
   .em: palabra destacada en títulos ("talento agrícola"); Fraunces itálica en vez de Instrument Serif. */
.em {
    font-family: var(--ae-font-head);
    font-style: italic;
    font-weight: 400 !important;
    color: var(--ae-lime-500) !important;
    line-height: 1.02 !important;
    letter-spacing: -.02em !important;
}
.job-single-v6 .list-content-job .job-detail-header.v6,
.form-superio-ppp .select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered,
.my-jobs-ordering .select2-container--default .select2-selection--single .select2-selection__rendered,
.jobs-ordering .select2-container--default .select2-selection--single .select2-selection__rendered,
.sidebar-job .widget.has-content,
.job-single-v4,
.form-control,
.sidebar,
.apus-sidebar,
.layout-job-sidebar-v2 .sidebar .widget,
.results-filter-wrapper .inner {
    background-color: var(--ae-surface) !important;
}

/* =========================================================================
   PANELES (etapa 2): empresa, candidato y prestador
   ========================================================================= */

/* Mismo fondo crema que el sitio público (antes gris azulado #f5f7fc). */
body.page-template-page-dashboard {
    background-color: var(--ae-cream);
}

/* Menú lateral (escritorio): fijo bajo el encabezado con scroll propio. Ítems compactos para que
   el menú completo quepa en una pantalla de 900px; barra de scroll visible si no cabe. */
@media (min-width: 992px) {
    .page-template-page-dashboard .sidebar-left {
        border-right: 1px solid var(--ae-line);
        box-shadow: none;
    }
    .menu_short_profile > li > a {
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: var(--ae-fs-sm);
    }
    .menu_short_profile > li {
        margin-bottom: 2px;
    }
    .page-template-page-dashboard .sidebar-left .ps-scrollbar-y-rail {
        opacity: .6 !important;
    }
    .menu_short_profile > li > a > i,
    .menu_short_profile > li > a > img,
    .menu_short_profile > li > a > svg {
        font-size: 18px;
        line-height: 1;
        width: 22px;
        height: auto;
        margin-right: 12px;
        vertical-align: middle;
    }
}
.menu_short_profile > li > a {
    border-radius: var(--ae-r-md);
    color: var(--ae-ink-600);
}
.menu_short_profile > li.active > a,
.menu_short_profile > li.current-menu-item > a,
.menu_short_profile > li > a:hover {
    background-color: var(--ae-lime-100);
    color: var(--ae-green-700);
}
.menu_short_profile > li.active > a,
.menu_short_profile > li.current-menu-item > a {
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--ae-lime-500);
}

/* Menú lateral (móvil y tablet): siempre visible sobre el contenido, como fila de pestañas
   deslizable. Reemplaza el panel oculto tras "Mostrar barra lateral". */
@media (max-width: 991px) {
    .page-template-page-dashboard .mobile-sidebar-btn,
    .page-template-page-dashboard .mobile-sidebar-panel-overlay,
    .page-template-page-dashboard .sidebar-left .close-sidebar-btn,
    .page-template-page-dashboard .sidebar-left .user-short-profile-top {
        display: none !important;
    }
    .page-template-page-dashboard .sidebar-left {
        position: static !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .page-template-page-dashboard .sidebar-left .ps-scrollbar-x-rail,
    .page-template-page-dashboard .sidebar-left .ps-scrollbar-y-rail {
        display: none !important;
    }
    .page-template-page-dashboard .sidebar-left .widget {
        margin: 0;
        padding: 0;
    }
    .page-template-page-dashboard .sidebar-wrapper {
        position: sticky;
        top: 0;
        z-index: 5;
        padding-top: var(--ae-sp-3);
        padding-bottom: var(--ae-sp-2);
        background: var(--ae-cream);
    }
    .menu_short_profile {
        display: flex;
        gap: var(--ae-sp-2);
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        margin: 0;
        padding: 2px 2px var(--ae-sp-1);
    }
    .menu_short_profile::-webkit-scrollbar {
        display: none;
    }
    .menu_short_profile > li {
        flex: 0 0 auto;
        margin: 0;
        scroll-snap-align: start;
    }
    .menu_short_profile > li > a {
        display: flex;
        align-items: center;
        gap: 6px;
        min-height: var(--ae-tap);
        padding: 0 14px !important;
        border: 1px solid var(--ae-line);
        border-radius: var(--ae-r-pill);
        background: var(--ae-surface);
        white-space: nowrap;
        font-size: var(--ae-fs-sm);
    }
    .menu_short_profile > li.active > a,
    .menu_short_profile > li.current-menu-item > a {
        border-color: var(--ae-lime-500);
        box-shadow: none;
    }
    .menu_short_profile > li > a i,
    .menu_short_profile > li > a img,
    .menu_short_profile > li > a svg {
        margin: 0 !important;
    }
}

/* Contenido del panel en móvil: márgenes más justos. */
@media (max-width: 767px) {
    .page-template-page-dashboard .box-dashboard-wrapper {
        padding: var(--ae-sp-5) var(--ae-sp-4) 0;
    }
}

/* Tarjetas de estadísticas: una sola paleta (antes azul, rojo, naranja y verde). */
.page-template-page-dashboard .inner-header {
    border: 1px solid var(--ae-line);
    border-radius: var(--ae-r-lg);
    box-shadow: var(--ae-shadow-sm);
}
.page-template-page-dashboard .list-item.flex-middle .icon {
    width: 52px;
    height: 52px;
    line-height: 52px;
    border-radius: var(--ae-r-md);
    background-color: var(--ae-lime-100) !important;
    color: var(--ae-green-700) !important;
    font-size: 22px;
}
.page-template-page-dashboard .list-item.flex-middle .icon i,
.page-template-page-dashboard .list-item.flex-middle .icon i:before {
    color: var(--ae-green-700) !important;
}
.page-template-page-dashboard .list-item.flex-middle > .inner {
    min-width: 0;
    flex: 1;
    padding-left: var(--ae-sp-3);
}
.page-template-page-dashboard .list-item.flex-middle .number-count {
    color: var(--ae-ink-900) !important;
    font-family: var(--ae-font-head);
    font-weight: 600;
}
.page-template-page-dashboard .list-item.flex-middle > .inner > span {
    display: block;
    color: var(--ae-ink-600);
    font-size: var(--ae-fs-xs);
    line-height: 1.3;
    hyphens: auto;
}
@media (min-width: 1200px) {
    .page-template-page-dashboard .list-item.flex-middle .icon {
        width: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 19px;
    }
}
/* Móvil: estadísticas en 2×2, compactas y alineadas a la izquierda. */
@media (max-width: 767px) {
    .page-template-page-dashboard .row > .col-xs-12.col-lg-3.col-sm-6:has(> .inner-header) {
        width: 50%;
        float: left;
        padding-left: 6px;
        padding-right: 6px;
    }
    .page-template-page-dashboard .row:has(> .col-lg-3 > .inner-header) {
        margin-left: -6px;
        margin-right: -6px;
    }
    .page-template-page-dashboard .inner-header {
        margin-bottom: 12px;
        padding: 14px;
    }
    .page-template-page-dashboard .list-item.flex-middle {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 8px;
    }
    .page-template-page-dashboard .list-item.flex-middle > .inner {
        padding-left: 0;
    }
    .page-template-page-dashboard .list-item.flex-middle .icon {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 18px;
    }
    /* Mis ofertas: el título tenía max-width: 120px. */
    .job-table .job-table-info-content {
        max-width: none;
        width: auto;
    }
}
/* Las reseñas están desactivadas para empresas y candidatos: fuera la tarjeta "0 Reseña";
   las otras tres ocupan la fila. */
[class*="col-"]:has(> .inner-header > .review-count-wrapper) {
    display: none;
}
@media (min-width: 1200px) {
    .row:has(> [class*="col-"] > .inner-header > .review-count-wrapper) > .col-lg-3 {
        width: 33.3333%;
    }
}

/* Estados vacíos: antes, una línea gris pequeña. */
.not-found {
    padding: var(--ae-sp-8) var(--ae-sp-6);
    border: 1px dashed var(--ae-line-strong);
    border-radius: var(--ae-r-lg);
    background: var(--ae-lime-50);
    color: var(--ae-ink-600);
    font-size: var(--ae-fs-base);
    text-align: center;
}

/* Tablas del panel (Mis ofertas, Mis planes): tarjetas en móvil en vez de columnas recortadas. */
.job-table th {
    color: var(--ae-ink-600);
    font-weight: 600;
}
@media (max-width: 767px) {
    .table-responsive {
        border: 0;
        overflow: visible;
    }
    .job-table,
    .job-table tbody,
    .job-table tr,
    .job-table td {
        display: block;
        width: 100% !important;
    }
    .job-table thead {
        display: none;
    }
    .job-table tr {
        margin-bottom: var(--ae-sp-3);
        padding: var(--ae-sp-3) var(--ae-sp-4);
        border: 1px solid var(--ae-line);
        border-radius: var(--ae-r-lg);
        background: var(--ae-surface);
    }
    .job-table td {
        padding: 4px 0 !important;
        border: 0 !important;
        text-align: left !important;
    }
    /* Mis planes: "#" e "ID" no dicen nada solos; el resto con su etiqueta. */
    .widget-content.table-responsive .job-table td:nth-child(1),
    .widget-content.table-responsive .job-table td:nth-child(2) {
        display: none;
    }
    .widget-content.table-responsive .job-table td:nth-child(4)::before { content: "Tipo: "; color: var(--ae-ink-500); }
    .widget-content.table-responsive .job-table td:nth-child(6)::before { content: "Estado: "; color: var(--ae-ink-500); }
}

/* Notificaciones: el desplegable (oculto) medía lo mismo que todas las notificaciones juntas y
   estiraba la página (23.584px con 163 avisos). Alto máximo con scroll propio. */
.notifications-wrapper {
    max-height: min(70vh, 520px);
    overflow-y: auto;
}

/* Foto por defecto (imagen rota de Superio): silueta sobre lima suave. */
img[src$="/superio/images/placeholder.png"] {
    object-position: -99999px 0;
    background: var(--ae-lime-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233d6b12'%3E%3Ccircle cx='12' cy='8.5' r='4'/%3E%3Cpath d='M4 20.5c0-4 3.6-6.5 8-6.5s8 2.5 8 6.5z'/%3E%3C/svg%3E") center / 60% no-repeat;
    border-radius: var(--ae-r-md);
}

/* "Candidatos" del panel: tarjetas compactas (antes 150px de alto solo con el nombre). */
.page-template-page-dashboard .candidate-archive-layout {
    padding: var(--ae-sp-4) var(--ae-sp-6);
    border: 1px solid var(--ae-line);
    border-radius: var(--ae-r-lg);
    box-shadow: none;
}
.page-template-page-dashboard .candidate-card {
    margin-bottom: var(--ae-sp-3);
}

/* =========================================================================
   LISTADOS Y FICHAS (etapa 3)
   ========================================================================= */

/* Listado de ofertas: grilla de tarjetas de al menos 280px (antes 4 columnas de 200px con el
   título en 3 líneas). La fila de Bootstrap pasa a CSS grid; sus pseudo-elementos clearfix fuera. */
.row.items-wrapper-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--ae-sp-6);
    margin-left: 0;
    margin-right: 0;
}
.row.items-wrapper-grid-v2::before,
.row.items-wrapper-grid-v2::after {
    display: none;
}
.row.items-wrapper-grid-v2 > .item-job {
    width: auto;
    float: none;
    padding: 0;
    margin: 0;
}
.row.items-wrapper-grid-v2 > .item-job > article {
    height: 100%;
    margin: 0;
}
article.job-grid-v2,
article.job_listing.map-item {
    border: 1px solid var(--ae-line);
    border-radius: var(--ae-r-lg);
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
article.job-grid-v2:hover,
article.job_listing.map-item:hover {
    border-color: var(--ae-line-strong);
    box-shadow: var(--ae-shadow-md);
}
.job-grid-v2 .job-title {
    font-size: var(--ae-fs-md);
    line-height: 1.3;
}

/* Filtro de radio (jQuery UI): barra en la paleta en vez de azul. */
.search-distance-slider.ui-slider {
    height: 4px;
    border: 0;
    border-radius: var(--ae-r-pill);
    background: var(--ae-line);
}
.search-distance-slider .ui-slider-range {
    background: var(--ae-lime-500);
}
.search-distance-slider .ui-slider-handle {
    border: 2px solid var(--ae-green-700) !important;
    background: var(--ae-surface) !important;
}

/* Ficha de oferta: descripción legible (antes gris claro, línea de 110+ caracteres). */
.job-detail-description {
    max-width: 72ch;
    color: var(--ae-ink-600);
    font-size: var(--ae-fs-base);
    line-height: 1.75;
}
.job-detail-description p {
    margin-bottom: var(--ae-sp-4);
}
.job-detail-description strong,
.job-detail-description b {
    color: var(--ae-ink-900);
}

/* Ficha de oferta en móvil: "Postular" fijo abajo (antes quedaba después de toda la descripción). */
@media (max-width: 767px) {
    body.single-job_listing .sidebar-job .widget_apus_job_buttons .btn-apply {
        position: fixed;
        left: var(--ae-sp-4);
        right: var(--ae-sp-4);
        bottom: var(--ae-sp-4);
        z-index: 90;
        width: auto;
        min-height: 52px;
        box-shadow: var(--ae-shadow-lg);
    }
    body.single-job_listing {
        padding-bottom: 84px;
    }
}

/* Fichas de empresa, prestador y candidato: cabecera en lima suave (antes imagen azulada).
   Si la empresa subió "Foto de portada" (llega como style="background-image"), se muestra. */
.employer-detail-header:not([style*="background-image"]),
.candidate-detail-header:not([style*="background-image"]) {
    background-image: none !important;
    background-color: var(--ae-lime-50) !important;
    border-bottom: 1px solid var(--ae-line);
}
/* Con portada: la foto de fondo y un velo claro detrás del texto para que se lea (contraste AA). */
.employer-detail-header[style*="background-image"] {
    position: relative;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--ae-line);
}
.employer-detail-header[style*="background-image"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(255 255 255 / .9);
}
.employer-detail-header[style*="background-image"] > .container {
    position: relative;
}
@media (min-width: 768px) {
    .employer-detail-header[style*="background-image"] {
        min-height: 300px;
        display: flex;
        align-items: center;
    }
    .employer-detail-header[style*="background-image"]::before {
        background: linear-gradient(90deg, rgb(255 255 255 / .94) 0%, rgb(255 255 255 / .86) 50%, rgb(255 255 255 / .2) 100%);
    }
}

/* Bloques vacíos: mapa sin ubicación y "Redes sociales:" sin enlaces. */
.widget_apus_employer_maps:has(.single-job-map[style*="display: none"]),
.widget_apus_candidate_maps:has(.single-job-map[style*="display: none"]),
.social-employer:not(:has(a)),
.social-candidate:not(:has(a)) {
    display: none;
}

/* "Mensaje privado" aparecía dos veces: se deja el botón de la cabecera. */
.sidebar-job .send-private-wrapper {
    display: none;
}

/* Prestadores: sin conteo de empleos (no publican ofertas). */
.agroenlace-ficha-prestador .nb-job,
.agroenlace-ficha-prestador .widget-open-jobs,
.agroenlace-listado-prestadores .nb-job,
.agroenlace-listado-prestadores .wrapper-open-job {
    display: none;
}

/* Etiquetas de tipo de empleo y ubicación en tarjetas y fichas. */
.type-job,
.job-type {
    border-radius: var(--ae-r-pill);
    font-weight: 500;
}

/* Pie: logo legible sobre el verde oscuro (versión blanca por filtro). */
.apus-footer .elementor-widget-image img[src*="logo"],
.apus-footer .elementor-widget-image img[src*="Logo"] {
    filter: brightness(0) invert(1);
}

/* Selectores de orden y filtros: Superio fuerza fondo gris azulado con !important. */
.form-superio-ppp .select2-container--default .select2-selection--single,
.select2-wrapper .select2-container--default .select2-selection--single,
.my-jobs-ordering .select2-container--default .select2-selection--single,
.jobs-ordering .select2-container--default .select2-selection--single {
    border-color: var(--ae-line) !important;
    background: var(--ae-surface) !important;
}
.form-superio-ppp .select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    background: var(--ae-surface);
    color: var(--ae-ink-900);
}

/* =========================================================================
   PORTADA Y ENCABEZADOS (etapa 4)
   ========================================================================= */

/* .em sobre fondo claro (p. ej. "talento real." sobre beige): verde hoja en vez de lima. */
.em.em-oscuro {
    color: var(--ae-green-700) !important;
}

/* Encabezado de la portada (Header 10, sobre la foto): menú, ingreso y "Publicar" en una fila
   (antes "Publicar" caía debajo) y logo en blanco para que se lea sobre la imagen. */
@media (min-width: 1200px) {
    .elementor-2336 .elementor-element-e5d1b0e > .elementor-widget-wrap {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
    }
}
.elementor-2336 .elementor-element-067e60b img {
    filter: brightness(0) invert(1);
}

/* "Publicar" (ofertas) solo para quien puede publicar: oculto a candidatos (prestadores en inc/prestadores.php). */
body.agroenlace-rol-candidato .widget-submit-btn,
body.agroenlace-rol-candidato .header-mobile-bottom .submit-job {
    display: none !important;
}
@media (min-width: 1200px) {
    .elementor-2336 .megamenu > li {
        margin-right: 14px;
    }
    .elementor-2336 .megamenu {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
}

/* Portada: franja de categorías legible (antes texto blanco sobre gris claro o sobre la foto). */
.elementor-30 .elementor-element-11e0c86 {
    background: rgb(15 46 18 / .86);
    border-radius: var(--ae-r-lg);
    padding: var(--ae-sp-6) 0;
    backdrop-filter: blur(4px);
}
@media (max-width: 767px) {
    .elementor-30 .elementor-element-11e0c86 > .elementor-container {
        flex-wrap: wrap;
    }
    .elementor-30 .elementor-element-11e0c86 > .elementor-container > .elementor-column {
        width: 50%;
    }
}

/* Ajustes finales de contraste. */
.elementor-heading-title a {
    color: inherit;          /* p. ej. teléfono del pie: Bootstrap lo dejaba gris oscuro sobre verde oscuro */
}
.skill-percents h4 span,
a.wp-job-board-pro-remove-uploaded-file {
    color: var(--ae-danger) !important;
}
.select2-container .select2-selection__placeholder {
    color: var(--ae-ink-500) !important;
}

/* Forma única de botón: redondeado (10px, igual que los campos). La píldora queda para chips,
   etiquetas y pestañas. Superio no tiene opción de radio; los botones de Elementor de la portada
   se ajustan en scripts/diseno/etapa6-botones.php. */
.btn:not(.btn-action-icon),
.button,
input[type="submit"],
button[type="submit"],
.job-alert-form .button {
    border-radius: var(--ae-r-md);
}

/* Tiempo de las notificaciones: el tema escribía "1 día hace". El texto "ago" se deja vacío
   (inc/textos.php) y aquí se antepone "hace". */
.dashboard-notifications .time::before,
.notifications-wrapper .time::before,
.statistic-item .number::before {
    content: "hace ";
}

/* Reuniones: "miércoles - Nov" no cabía en el recuadro de 115px. */
@media (min-width: 768px) {
    .meeting-wrapper .date {
        width: 140px;
    }
    .meeting-wrapper .date + .righ-inner {
        width: calc(100% - 140px);
    }
}
.meeting-wrapper .bottom-date {
    font-size: var(--ae-fs-xs);
}

/* Mensajes: la lista de conversaciones (3 de 12 columnas) dejaba los nombres en tres líneas. */
@media (min-width: 992px) {
    .message-section-wrapper .message-inner > .col-sm-3 {
        width: 36%;
    }
    .message-section-wrapper .message-inner > .col-sm-9 {
        width: 64%;
    }
}
@media (min-width: 1200px) {
    .message-section-wrapper .list-message-wrapper {
        padding: var(--ae-sp-5);
    }
}

/* Indicaciones bajo los campos de foto (medida ideal en px, inc/imagenes.php). */
.cmb2-metabox-description,
.cmb-td .cmb2-metabox-description {
    display: block;
    margin-top: var(--ae-sp-2);
    color: var(--ae-ink-600);
    font-size: var(--ae-fs-sm);
    font-style: normal;
    line-height: 1.5;
}

/* "Ofertas publicadas - 4": el tema lo pasaba a mayúscula inicial en cada palabra. */
.open-job,
.nb-job .text {
    text-transform: none;
}

/* Precio en UF (inc/precio-uf.php): «(2 UF + IVA)» bajo el precio en pesos. */
.ae-uf {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 500;
	opacity: .75;
}
