/* ========= BASE ========= */
.job-page { }
.page-header { padding:20px 0 6px; margin:0 0 14px; border-bottom:none; }
.job-card { background:#fff; border:1px solid #e9edf1; border-radius:8px; padding:22px; box-shadow:0 1px 0 rgba(16,18,23,0.02); margin-bottom: 20px; }
.meta { color:#6b7280; font-size:14px; margin-top:4px; }
.helper { font-size:13px; color:#6b7280; }

/* Employer profile */
.employer-profile { display:flex; align-items:center; gap:12px; }
.company-logo-header { width:32px; height:32px; flex-shrink:0; border-radius:6px; background:#f5f8fb; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.company-logo-header img { width:100%; height:100%; object-fit:cover; border-radius:4px; box-shadow:0 1px 1px rgba(0,0,0,0.15); }
.company-placeholder { font-weight:700; color:#7b8794; }

/* Title / job info */
.employer-name .employer-title { margin:0; font-size:18px; font-weight:500; color:#101217; }
.job-info h1 { font-size: 36px; margin-top: 8px; }

/* Pills (fechas) */
.pill { align-items:center; gap:6px; padding:6px 12px; border-radius:12px; background:#f3f6fa; font-size:13px; color:#101217; margin-right:8px; }

/* Buttons: primary */
.btn-apply { background:#0b5cff; color:#fff; border:none; border-radius:8px; padding:12px 18px; font-weight:600; box-shadow:0 4px 8px rgba(11,92,255,0.18); display:inline-flex; align-items:center; justify-content:center; transition:all .15s ease; }
.btn-apply:hover { background:#0056cc; transform:translateY(-2px); color: #fff; }

/* Header action group: 80/20 split */
.header-action-group { display:flex; gap:8px; align-items:center; width: 100%; }
.header-action-group .btn-apply { flex:0 0 90%; height:54px; font-size: 18px; gap: 8px; }
.kebab-wrapper { flex:0 0 10%; position:relative; }
.kebab-btn { width:100%; height:54px; display:flex; align-items:center; justify-content:center; border-radius:8px; border:1px solid #d0d7de; background:#f8fafc; color:#475569; cursor:pointer; transition:all .12s ease; }
.kebab-btn:hover { background:#eef2f6; border-color:#c1c9d1; transform:translateY(-1px); }

/* Dropdown */
.kebab-dropdown { position:absolute; right:0; margin-top:6px; min-width:190px; background:#fff; border:1px solid #e6edf3; border-radius:8px; box-shadow:0 8px 20px rgba(16,24,40,0.08); z-index:1200; padding:6px; display:none; }
.kebab-dropdown.show { display:block; }
.kebab-item { display:flex; gap:10px; align-items:center; padding:9px 10px; font-size:14px; color:#0b2540; border-radius:6px; text-decoration:none; }
.kebab-item:hover { background:#f3f7fb; }
.kebab-wrapper svg.icon {
  width: 18px;
  height: 18px;
}

.job-card .field--name-body img {
  width: 100%;
  height: auto;
}

.page-node-type-anuncio-empleo-interno .header-action-group {
  flex-direction: row-reverse;
}

.label-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.label-success { background-color: #28a745; color: #fff; }
.label-warning { background-color: #ffc107; color: #212529; }
.label-danger  { background-color: #dc3545; color: #fff; }
.label-default { background-color: #adb5bd; color: #fff; }

/* Sticky aside */
.sticky-apply { position:relative; }
@media(min-width:992px){
  .sticky-apply { position:sticky; top:22px; }
  .job-header-row { display:flex; align-items:stretch; }
  .job-header .company-logo { flex:0 0 85px; margin-right:12px; display:flex; align-items:center; justify-content:center; }
  .job-header .job-info { flex:1; display:flex; flex-direction:column; justify-content:center; }
  .job-page .col-sm-4 { display:flex; align-items:center; justify-content:center; }
}

/* Mobile tweaks */
@media(max-width:991px){
  #apply-mobile { display:block; position:fixed; bottom:0; left:0; width:100%; z-index:1000; padding:12px; background:#0b5cff; color:#fff; text-align:center; font-size:16px; border-radius:0; }
  .mobile-kebab { position:fixed; right:12px; bottom:72px; z-index:1200; }
  .mobile-kebab .kebab-btn { width:44px; height:44px; border-radius:50%; border:1px solid #e2e8f0; background:#fff; box-shadow:0 6px 14px rgba(16,24,40,0.08); }
  .header-action-group { align-items:center; }
}

/* Logo size on mobile */
@media(max-width:767px){
  .company-logo-header { width:24px; height:24px; }
  .employer-name .employer-title { font-size:16px; }
  .job-info h1 { font-size:30px; }
  .header-action-group {
    gap: 6px;
  }
  .header-action-group .btn-apply { height:40px; }
  .kebab-btn { height:40px; }
  .job-header {
    margin-bottom: 14px;
  }

  .mobile-floating-actions {
    position: fixed;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    z-index: 1200;
  }

  .mobile-floating-actions .btn-share {
    flex: 0 0 90%;
    height: 48px;
    background: #0b5cff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 6px 14px rgba(16, 24, 40, 0.08);
  }

  .mobile-floating-actions .btn-share:hover {
    background: #0056cc;
  }

  .mobile-floating-actions .mobile-kebab {
    flex: 0 0 10%;
    position: relative;
    display: flex;
    justify-content: flex-end;
  }

  .mobile-floating-actions .mobile-kebab .kebab-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(16, 24, 40, 0.08);
  }

  .mobile-floating-actions .mobile-kebab .kebab-dropdown {
    position: absolute;
    bottom: 50px;
    right: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
    padding: 6px;
    display: none;
  }

  .mobile-floating-actions .mobile-kebab .kebab-dropdown.show {
    display: block;
  }

}
