/* ============================================================
   Job View — Vista pública / vista previa de vacante
   Diseño Figma: 2 columnas (info izq, aplicar der)
   ============================================================ */

/* ── Header: fondo sólido (no hay hero-image como en home) ─── */
body.jobs-index-view .header-container.header-style-1 {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}

body.jobs-index-view .header-style-1 .header-bottom .header-bottom-content {
    background-color: #1a1a1a !important;
    backdrop-filter: none !important;
    border: none !important;
}

body.jobs-index-view .page-main,
body.jobs-index-view #maincontent.page-main {
    padding-top: 160px !important;
}

/* ── Fondo de página ─────────────────────────────────────────── */
body.jobs-index-view {
    background: #F4F4F6;
    overflow-x: hidden;
}

body.jobs-index-view .page-main,
body.jobs-index-view #maincontent.page-main {
    padding-top: 0 !important;
    max-width: 100% !important;
}

/* ── Banner de vista previa ──────────────────────────────────── */
.job-view-preview-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: #3B1A0E;
    color: var(--jobs-accent, #E6531E);
    font-family: SUSE, sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* ── Wrapper general ─────────────────────────────────────────── */
.job-view-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* ── Layout 2 columnas ───────────────────────────────────────── */
.job-view-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

.job-view-left,
.job-view-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ══════════════════════════════════════════
   COLUMNA IZQUIERDA — Tarjeta principal
══════════════════════════════════════════ */
.job-view-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ── Header con banner ───────────────────── */
.job-view-card-header {
    position: relative;
    height: 140px;
    background-color: var(--jobs-accent, #E6531E);
    background-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 100%);
    background-size: cover;
    background-position: center;
    border-radius: 16px 16px 0 0;
}


.job-view-card-header-bottom {
    position: absolute;
    bottom: 12px;
    left: 16px;
    right: 16px;
}

.job-view-employer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-view-employer-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.9);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    flex-shrink: 0;
}

.job-view-employer-logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.5);
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.job-view-employer-name {
    color: #ffffff;
    font-family: Chillax, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ── Cuerpo de la tarjeta ─────────────────── */
.job-view-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Fila título + acciones ───────────────── */
.job-view-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.job-view-titulo {
    color: #0A0A0A;
    font-family: Chillax, sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    flex: 1;
}

.job-view-title-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-top: 4px;
}

.job-view-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid #E0E0E0;
    border-radius: 8px;
    background: transparent;
    color: #838386;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    padding: 0;
}

.job-view-action-btn:hover {
    border-color: var(--jobs-accent, #E6531E);
    color: var(--jobs-accent, #E6531E);
}

/* ── Chips de categoría ───────────────────── */
.job-view-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.job-view-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    background: #F0F0F0;
    color: #3D3D3D;
    font-family: SUSE, sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.job-view-chip--time {
    background: #FBE3DA;
    color: #C0390A;
}

/* ── About section ────────────────────────── */
.job-view-about {
    margin-bottom: 16px;
}

.job-view-section-label {
    color: #838386;
    font-family: SUSE, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.job-view-about-text {
    color: #3D3D3D;
    font-family: SUSE, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    margin: 0 0 6px;
}

.job-view-vermás-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    color: var(--jobs-accent, #E6531E);
    font-family: SUSE, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Mejor estilo para botón Postularse */
.job-view-apply-btn {
    width: 100%;
    height: 48px;
    background: var(--jobs-accent, #E6531E);
    border: none;
    color: #fff;
    border-radius: 14px;
    font-family: SUSE, sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(230,83,30,0.18);
    transition: background 0.15s ease, transform 0.08s ease;
}
.job-view-apply-btn:hover { background: #d04a18; transform: translateY(-1px); }

/* Botón 'Continuar a estilos' habilitado */
.jobs-general-continue-btn {
    height: 52px;
    padding: 0 20px;
    background: transparent;
    border: none;
    border-radius: 14px;
    color: #838386;
    font-family: SUSE, sans-serif;
    font-weight: 600;
    cursor: pointer;
}
.jobs-general-continue-btn.enabled {
    background: var(--jobs-accent, #E6531E);
    color: #fff;
    box-shadow: 0 3px 8px rgba(230,83,30,0.18);
}

/* =========================================================
   PUBLIC JOB LISTING
========================================================= */
.jobs-public-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.jobs-public-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 26px;
}

.jobs-public-eyebrow {
    margin: 0;
    color: #E6531E;
    font-family: SUSE, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.jobs-public-title {
    margin: 0;
    font-family: Chillax, sans-serif;
    font-size: 36px;
    line-height: 1.1;
    color: #0A0A0A;
}

.jobs-public-description {
    margin: 0;
    color: #4D4D4D;
    font-family: SUSE, sans-serif;
    font-size: 15px;
    max-width: 760px;
}

.jobs-public-empty {
    padding: 36px 28px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #F0F0F0;
    text-align: center;
    color: #4D4D4D;
    font-family: SUSE, sans-serif;
    font-size: 15px;
}

.jobs-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.jobs-public-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    overflow: hidden;
    min-height: 280px;
}

.jobs-public-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.jobs-public-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.jobs-public-card-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    overflow: hidden;
    background: #F0F0F0;
    flex-shrink: 0;
}

.jobs-public-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jobs-public-card-logo-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #E6531E;
    font-family: Chillax, sans-serif;
    font-size: 22px;
}

.jobs-public-card-company {
    margin: 0 0 4px;
    color: #838386;
    font-family: SUSE, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 2;
}

.jobs-public-card-subtitle {
    margin: 0;
    color: #333333;
    font-family: SUSE, sans-serif;
    font-size: 14px;
}

.jobs-public-card-title {
    margin: 0 0 12px;
    color: #0A0A0A;
    font-family: Chillax, sans-serif;
    font-size: 22px;
    line-height: 1.15;
    position: relative;
    z-index: 2;
}

.jobs-public-card-copy {
    margin: 0 0 18px;
    color: #4D4D4D;
    font-family: SUSE, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.jobs-public-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.jobs-public-card-meta span {
    color: #5C5C5C;
    font-family: SUSE, sans-serif;
    font-size: 13px;
}

.jobs-public-card-salary {
    font-weight: 700;
    color: #0A0A0A;
}

.jobs-public-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.jobs-public-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #FEEFEA;
    color: #C0390A;
    font-family: SUSE, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.jobs-public-cta {
    display: inline-flex;
    align-items: center;
    color: var(--jobs-accent, #E6531E);
    font-family: SUSE, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.jobs-public-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.jobs-public-card {
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

/* =========================================================
   JOB VIEW ACCORDIONS
========================================================= */

.job-view-accordion {
    border: 1px solid #F0F0F0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #FFFFFF;
}

/* HEADER BUTTON */
button.job-view-accordion-btn,
button.job-view-accordion-btn:focus,
button.job-view-accordion-btn:active {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 12px 16px;

    background: #FAFAFA !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    cursor: pointer;

    font-family: "SUSE", sans-serif;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: left;

    color: #1C1C1C !important;

    transition: background 0.2s ease;
}

/* Hover */
button.job-view-accordion-btn:hover {
    background: #F5F5F5 !important;
    color: #1C1C1C !important;
}

/* Chevron */
.job-view-acc-chevron {
    flex-shrink: 0;
    color: #838386;
    transition: transform 0.25s ease;
}

/* Rotate */
button.job-view-accordion-btn[aria-expanded="true"] .job-view-acc-chevron {
    transform: rotate(180deg);
}

/* BODY */
.job-view-accordion-body {
    padding: 0 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;

    background: #FFFFFF;
}

/* ITEMS */
.job-view-acc-item {
    display: flex;
    flex-direction: column;
    gap: 4px;

    padding: 8px 0;

    border-bottom: 1px solid #F0F0F0;
}

.job-view-acc-item:last-child {
    border-bottom: none;
}

/* LABELS */
.job-view-acc-label {
    font-family: "SUSE", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #838386;
    text-transform: uppercase;
}

/* VALUES */
.job-view-acc-value {
    font-family: "SUSE", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1C1C1C;
}

/* Skills */
.job-view-skills-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.job-view-skills-pills span {
    display: block;
    width: 100%;

    font-family: "SUSE", sans-serif;
    font-size: 12px;
    color: #1C1C1C;
}

/* ── Grid de requisitos ───────────────────── */
.job-view-req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    margin-bottom: 12px;
}

.job-view-req-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.job-view-req-label {
    color: #838386;
    font-family: SUSE, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-view-req-value {
    color: #0A0A0A;
    font-family: SUSE, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

/* ── Fila de jornada ──────────────────────── */
.job-view-jornada-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #FBF4F1;
    border-radius: 8px;
    color: #3D3D3D;
    font-family: SUSE, sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.job-view-jornada-row svg {
    flex-shrink: 0;
    color: var(--jobs-accent, #E6531E);
}

/* ── Competencias / tags ──────────────────── */
.job-view-skills-group {
    margin-bottom: 14px;
}

.job-view-skills-group:last-child {
    margin-bottom: 0;
}

.job-view-skills-label {
    color: #838386;
    font-family: SUSE, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}

.job-view-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.job-view-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: SUSE, sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.job-view-tag--hard {
    background: #EEF0FF;
    color: #3B3BC4;
}

.job-view-tag--soft {
    background: #F0F0F0;
    color: #3D3D3D;
}

.job-view-tag--benefit {
    background: #E8F5E9;
    color: #2E7D32;
}

.job-view-aditional-text {
    color: #3D3D3D;
    font-family: SUSE, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ══════════════════════════════════════════
   COLUMNA DERECHA
══════════════════════════════════════════ */

/* ── Tarjeta Postularse ───────────────────── */
.job-view-apply-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.job-view-apply-title {
    color: #0A0A0A;
    font-family: Chillax, sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.job-view-apply-sub {
    color: #838386;
    font-family: SUSE, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Dropzone de CV */
.job-view-cv-label {
    display: block;
    color: #838386;
    font-family: SUSE, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.job-view-cv-section {
    display: flex;
    flex-direction: column;
}

.job-view-cv-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 16px;
    border: 1.5px dashed var(--jobs-accent, #E6531E);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    text-align: center;
    min-height: 100px;
    color: var(--jobs-accent, #E6531E);
}

.job-view-cv-dropzone:hover,
.job-view-cv-dropzone.drag-over {
    background: #FBE3DA;
}

/* Estado: archivo seleccionado */
.job-view-cv-dropzone.has-file {
    background: #F0FFF4;
    border-color: #2E7D32;
    border-style: solid;
    color: #2E7D32;
}

.job-view-cv-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.job-view-cv-drop-text {
    color: #3D3D3D;
    font-family: SUSE, sans-serif;
    font-size: 13px;
    font-weight: 400;
    margin: 0;
}

.job-view-cv-link {
    color: var(--jobs-accent, #E6531E);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.job-view-cv-drop-hint {
    color: #B0B0B3;
    font-family: SUSE, sans-serif;
    font-size: 12px;
    margin: 0;
}

.job-view-cv-filename {
    color: #3D3D3D;
    font-family: SUSE, sans-serif;
    font-size: 12px;
    margin: 6px 0 0;
    text-align: center;
}

/* Botón postularse */
.job-view-apply-btn {
    display: flex;
    width: 100%;
    padding: 14px 20px;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: var(--jobs-accent, #E6531E);
    color: #ffffff;
    font-family: Chillax, sans-serif;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(230,83,30,0.25);
    transition: background 0.2s;
}

.job-view-apply-btn:hover {
    background: #c94418;
}

.job-view-apply-btn:disabled {
    background: #E0B39F;
    cursor: not-allowed;
    box-shadow: none;
}

/* Legal */
.job-view-apply-legal {
    color: #838386;
    font-family: SUSE, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.job-view-apply-link {
    color: var(--jobs-accent, #E6531E);
    text-decoration: underline;
}

/* Placeholder vista previa */
.job-view-apply-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 0 4px;
    text-align: center;
}

.job-view-apply-preview-title {
    color: #0A0A0A;
    font-family: Chillax, sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.job-view-apply-preview-sub {
    color: #838386;
    font-family: SUSE, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* ── Tarjeta de éxito ─────────────────────── */
.job-view-success-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.job-view-success-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.job-view-success-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FBE3DA;
    border: 1px solid var(--jobs-accent, #E6531E);
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-view-success-title {
    color: #0A0A0A;
    font-family: SUSE, sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
}

.job-view-success-sub {
    color: #838386;
    font-family: SUSE, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* ── Tarjeta de mapa ──────────────────────── */
.job-view-map-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.job-view-map-embed {
    display: block;
    line-height: 0;
}

.job-view-map-embed iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 16px 16px 0 0;
}

.job-view-location-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.job-view-location-label {
    color: #838386;
    font-family: SUSE, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0;
}

.job-view-location-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #3D3D3D;
    font-family: SUSE, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.job-view-location-row svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.job-view-maps-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: #0A0A0A;
    color: #ffffff !important;
    font-family: Chillax, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    border-radius: 10px;
    transition: background 0.2s;
    margin-top: 4px;
}

.job-view-maps-btn:hover {
    background: #2A2A2A;
}

/* ── Footer de página ─────────────────────── */
.job-view-page-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 32px;
}

.job-view-page-footer p {
    color: #B0B0B3;
    font-family: SUSE, sans-serif;
    font-size: 12px;
    margin: 0;
    text-align: center;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
    .job-view-layout {
        grid-template-columns: 1fr;
    }
    .job-view-right {
        order: -1; /* La tarjeta de aplicar va primero en mobile */
    }
    .job-view-titulo {
        font-size: 22px;
    }
    .job-view-req-grid {
        grid-template-columns: 1fr 1fr;
    }
    .job-view-preview-banner {
        font-size: 12px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .job-view-page {
        padding: 12px 12px 32px;
    }
    .job-view-req-grid {
        grid-template-columns: 1fr;
    }
}
