/* ── Visibilidad progresiva de resultados ───────────────────────────────────── */
.pets-hidden {
  display: none !important;
}

/* ── Candado Búsqueda laboral ──────────────────────────────────────────────── */
.empleos-lock-icon {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-left: 3px;
}

body.is-authenticated .empleos-lock-icon {
  display: none;
}

/* ── Mascotas view ─────────────────────────────────────────────────────────── */

#view-mascotas {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.pets-hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 22px;
}

#view-mascotas .explorar-title {
  color: var(--text, #fff);
  font-size: 1.9rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

#view-mascotas .explorar-sub {
  color: var(--muted, #b9bdc1);
  margin: 0 auto;
  max-width: 720px;
}

.pets-meta {
  margin: 22px auto;
}

.pets-stats,
.pets-region-stats {
  display: grid;
  gap: 12px;
}

.pets-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.pets-region-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pets-stat,
.pets-region-stat {
  min-width: 0;
  background: #1b2949;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  color: var(--text, #fff);
}

.pets-stat--primary {
  background: rgba(248, 79, 118, 0.16);
  border-color: rgba(248, 79, 118, 0.32);
}

.pets-stat span,
.pets-region-stat span {
  display: block;
  color: var(--muted, #b9bdc1);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.pets-stat strong,
.pets-region-stat strong {
  display: block;
  color: var(--text, #fff);
  font-size: 1.35rem;
  line-height: 1;
}

.pets-region-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px auto 24px;
}

.pets-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #1b2949;
  color: var(--text, #fff);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.pets-filter strong {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted, #b9bdc1);
  font-size: 0.75rem;
}

.pets-filter:hover,
.pets-filter.is-active {
  border-color: rgba(248, 79, 118, 0.7);
  background: rgba(248, 79, 118, 0.18);
  color: #fff;
}

.pets-country-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 26px;
}

.pets-selector-label {
  display: block;
  color: var(--muted, #b9bdc1);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-align: center;
}

.pets-selector-wrap {
  width: min(100%, 420px);
}

.pets-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 38px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #1b2949;
  color: var(--text, #fff);
  font-size: 0.95rem;
  cursor: pointer;
}

.pets-select:focus {
  outline: none;
  border-color: rgba(248, 79, 118, 0.7);
  box-shadow: 0 0 0 3px rgba(248, 79, 118, 0.14);
}

.pets-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.pets-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-height: 178px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #1b2949;
  color: var(--text, #fff);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.pets-card:hover,
.pets-card.is-active {
  border-color: rgba(248, 79, 118, 0.55);
  background: #203154;
  transform: translateY(-1px);
}

.pets-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pets-card__flag {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pets-card__title {
  min-width: 0;
}

.pets-card__name {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pets-card__region,
.pets-card__summary,
.pets-card__meta,
.pets-detail__summary,
.pets-inline__summary {
  color: var(--muted, #b9bdc1);
}

.pets-card__region {
  font-size: 0.78rem;
  margin-top: 2px;
}

.pets-card__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pets-status,
.pets-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1;
}

.pets-status--ok,
.pets-badge--ok {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.pets-status--warn,
.pets-badge--warn {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pets-status--neutral,
.pets-badge--neutral {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.pets-status--alert,
.pets-badge--alert {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.13);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.pets-card__summary {
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pets-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.76rem;
}

.pets-detail {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(7, 13, 25, 0.72);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.18s ease;
  overflow-y: auto;
}

.pets-detail[hidden] {
  display: none;
}

body.pets-modal-open {
  overflow: hidden;
}

.pets-detail-card,
.pets-inline {
  background: #1b2949;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 22px;
}

.pets-detail-card {
  position: relative;
  width: min(100%, 980px);
  max-height: min(86vh, 920px);
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.pets-detail-card--loading {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.pets-modal-close {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 1201;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: #1b2949;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.pets-modal-close:hover,
.pets-modal-close:focus {
  outline: none;
  border-color: rgba(248, 79, 118, 0.7);
  background: #203154;
}

.pets-detail__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: left;
  margin-bottom: 16px;
}

.pets-detail__emoji {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 2rem;
  flex-shrink: 0;
}

.pets-detail__kicker {
  color: var(--muted, #b9bdc1);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.pets-detail__name {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 8px;
}

.pets-detail__summary {
  max-width: 850px;
  margin: 0 auto 18px;
  text-align: center;
  line-height: 1.6;
}

.pets-review-box,
.pets-empty-guide {
  max-width: 860px;
  margin: 0 auto 22px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.pets-review-box span {
  display: block;
  color: var(--muted, #b9bdc1);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pets-review-box strong,
.pets-empty-guide__title {
  display: block;
  color: #fff;
  font-weight: 900;
  margin: 4px 0;
}

.pets-review-box p,
.pets-empty-guide p {
  color: var(--muted, #b9bdc1);
  margin: 0;
  line-height: 1.5;
}

.pets-empty-guide__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 14px;
  text-align: center;
}

.pets-empty-guide__grid span {
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
}

.pets-species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.pets-species {
  background: #162541;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 18px;
}

.pets-species__title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pets-species__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pets-req-row {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted, #b9bdc1);
  font-size: 0.86rem;
  line-height: 1.5;
}

.pets-req-row strong {
  display: block;
  color: #fff;
  margin-bottom: 2px;
}

.pets-req-row--ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.pets-req-row--warn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.pets-req-row--alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.24);
}

.pets-source-row {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.pets-official-link,
.pets-source-pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.pets-official-link {
  color: #fff;
  background: var(--accent, #f84f76);
  border: 1px solid var(--accent, #f84f76);
}

.pets-official-link:hover {
  filter: brightness(1.05);
}

.pets-source-pending {
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.12);
}

.pets-error {
  color: var(--muted, #b9bdc1);
  text-align: center;
  padding: 18px 0;
}

.pets-back {
  width: auto;
  margin: 0 auto 14px;
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .pets-stats,
  .pets-region-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #view-mascotas {
    padding: 22px 14px 46px;
  }

  .pets-detail {
    align-items: stretch;
    padding: 14px;
  }

  .pets-detail-card {
    max-height: calc(100vh - 28px);
    padding: 18px;
  }

  .pets-stats,
  .pets-region-stats,
  .pets-overview-grid,
  .pets-species-grid {
    grid-template-columns: 1fr;
  }

  .pets-detail__header {
    flex-direction: column;
    text-align: center;
  }

  .pets-card__meta {
    flex-direction: column;
    gap: 4px;
  }
}

/* ── Empleos ───────────────────────────────────────────────────────────────── */

.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.region-tab {
  padding: 8px 18px;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 999px;
  background: var(--surface, #fff);
  color: var(--text, #111);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.region-tab:hover { border-color: var(--accent, #6366f1); }
.region-tab.active {
  background: var(--accent, #6366f1);
  border-color: var(--accent, #6366f1);
  color: #fff;
}

.jobs-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.jobs-block {
  background: var(--surface, #fff);
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 14px;
  padding: 20px;
}

.jobs-block--full { grid-column: 1 / -1; }

.jobs-block--tips {
  background: #fffbeb;
  border-color: #fde68a;
}

.jobs-block__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.jobs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.jobs-list a {
  color: var(--accent, #6366f1);
  text-decoration: none;
  font-weight: 500;
}

.jobs-list a:hover { text-decoration: underline; }

.jobs-sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.jobs-sector {
  background: var(--surface-alt, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 14px;
}

.jobs-sector__title {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.jobs-sector__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary, #6b7280);
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent, #6366f1);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* =========================================================
   FIX VISUAL MASCOTAS — MQI
   ========================================================= */

/* ── Mascotas: layout limpio tipo ventana ───────────────────────────── */

#view-mascotas {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 80px;
  text-align: center;
}

#view-mascotas .explorar-title,
#view-mascotas .section-title {
  text-align: center;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

#view-mascotas .explorar-sub,
#view-mascotas .section-subtitle {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.7;
}

#view-mascotas .pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 28px auto 36px;
}

#view-mascotas .pets-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top left, rgba(248, 79, 118, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(30, 47, 82, 0.96), rgba(24, 38, 69, 0.96));
  border-radius: 24px;
  padding: 22px;
  color: #ffffff;
  text-align: left;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

#view-mascotas .pets-card__name {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 850;
  margin-bottom: 6px;
}

#view-mascotas .pets-card__difficulty {
  color: #f84f76;
  font-weight: 800;
  margin-bottom: 10px;
}

#view-mascotas .pets-card__summary {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

#view-mascotas .pets-detail {
  margin: 34px auto 0;
  max-width: 980px;
  padding: 28px;
  border-radius: 30px;
  text-align: left;
  background:
    radial-gradient(circle at top right, rgba(248, 79, 118, 0.18), transparent 34%),
    linear-gradient(160deg, rgba(25, 31, 56, 0.98), rgba(24, 38, 69, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

#view-mascotas .pets-detail__header {
  text-align: center;
  margin-bottom: 24px;
}

#view-mascotas .pets-detail__name {
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 8px;
}

#view-mascotas .pets-detail__summary {
  color: rgba(255, 255, 255, 0.72);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.65;
}

#view-mascotas .pets-species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

#view-mascotas .pets-species {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  padding: 22px;
}

#view-mascotas .pets-species__title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 850;
  margin-bottom: 16px;
  text-align: center;
}

#view-mascotas .pets-species__rows {
  display: grid;
  gap: 12px;
}

#view-mascotas .pets-species__rows > div {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

#view-mascotas .pets-species__rows strong {
  color: #ffffff;
}

#view-mascotas a {
  color: #f84f76;
  font-weight: 800;
}

@media (max-width: 760px) {
  #view-mascotas {
    padding: 38px 14px 64px;
  }

  #view-mascotas .pets-detail {
    padding: 20px;
    border-radius: 24px;
  }

  #view-mascotas .pets-card {
    border-radius: 20px;
  }
}

/* ── Mascotas: detalle como ventana flotante ───────────────────────────── */

#view-mascotas .pets-detail {
  position: fixed !important;
  top: 96px !important;
  right: 32px !important;
  bottom: 32px !important;
  left: auto !important;
  width: min(620px, calc(100vw - 40px)) !important;
  max-width: 620px !important;
  margin: 0 !important;
  padding: 28px !important;
  overflow-y: auto !important;
  z-index: 9999 !important;

  background:
    radial-gradient(circle at top right, rgba(248, 79, 118, 0.22), transparent 36%),
    linear-gradient(160deg, rgba(25, 31, 56, 0.98), rgba(24, 38, 69, 0.98)) !important;

  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 28px !important;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55) !important;
}

#view-mascotas .pets-detail:empty {
  display: none !important;
}

#view-mascotas .pets-detail .back-link,
#view-mascotas .pets-detail button,
#view-mascotas .pets-detail [data-action="back"] {
  color: #ffffff !important;
}

#view-mascotas .pets-detail__header {
  text-align: center !important;
}

#view-mascotas .pets-detail__name {
  color: #ffffff !important;
}

#view-mascotas .pets-detail__summary {
  color: rgba(255, 255, 255, 0.76) !important;
  text-align: center !important;
}

#view-mascotas .pets-species-grid {
  grid-template-columns: 1fr !important;
}

#view-mascotas .pets-species {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 22px !important;
}

@media (max-width: 760px) {
  #view-mascotas .pets-detail {
    top: 84px !important;
    right: 14px !important;
    bottom: 14px !important;
    left: 14px !important;
    width: auto !important;
    max-width: none !important;
  }
}

/* ── Mascotas: modal centrado + colores corregidos ─────────────────────── */

#view-mascotas .pets-detail {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;

  width: min(760px, calc(100vw - 40px)) !important;
  max-height: calc(100vh - 120px) !important;
  overflow-y: auto !important;

  padding: 30px !important;
  z-index: 9999 !important;

  background:
    radial-gradient(circle at top right, rgba(248, 79, 118, 0.22), transparent 34%),
    linear-gradient(160deg, #191f38 0%, #182645 58%, #1e2f52 100%) !important;

  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 30px !important;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65) !important;
}

/* Hace que el modal no quede pegado arriba o al lateral */
#view-mascotas .pets-detail:empty {
  display: none !important;
}

/* Títulos y textos principales */
#view-mascotas .pets-detail,
#view-mascotas .pets-detail * {
  color: rgba(255, 255, 255, 0.86) !important;
}

#view-mascotas .pets-detail h2,
#view-mascotas .pets-detail h3,
#view-mascotas .pets-detail strong,
#view-mascotas .pets-detail__name,
#view-mascotas .pets-species__title {
  color: #ffffff !important;
}

/* Cabecera del país */
#view-mascotas .pets-detail__header {
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 20px !important;
}

#view-mascotas .pets-detail__summary {
  text-align: center !important;
  color: rgba(255, 255, 255, 0.74) !important;
  max-width: 620px !important;
  margin: 0 auto 24px !important;
}

/* Cards internas: perros/gatos */
#view-mascotas .pets-species-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}

#view-mascotas .pets-species {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 22px !important;
  padding: 24px !important;
  box-shadow: none !important;
}

/* Filas internas */
#view-mascotas .pets-species__rows {
  display: grid !important;
  gap: 16px !important;
}

#view-mascotas .pets-species__rows > div {
  color: rgba(255, 255, 255, 0.82) !important;
  line-height: 1.55 !important;
}

/* Contenedores beige/alertas: ahora legibles */
#view-mascotas .pets-species [class*="quarantine"],
#view-mascotas .pets-species [class*="restriction"],
#view-mascotas .pets-species [class*="warning"],
#view-mascotas .pets-species [class*="note"],
#view-mascotas .pets-note,
#view-mascotas .quarantine-box,
#view-mascotas .info-box {
  background: rgba(248, 79, 118, 0.10) !important;
  border: 1px solid rgba(248, 79, 118, 0.34) !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  padding: 16px 18px !important;
}

/* Texto dentro de alertas */
#view-mascotas .pets-species [class*="quarantine"] *,
#view-mascotas .pets-species [class*="restriction"] *,
#view-mascotas .pets-species [class*="warning"] *,
#view-mascotas .pets-species [class*="note"] *,
#view-mascotas .pets-note *,
#view-mascotas .quarantine-box *,
#view-mascotas .info-box * {
  color: #ffffff !important;
}

/* Fuente oficial */
#view-mascotas .pets-source-link,
#view-mascotas .source-link,
#view-mascotas a[href*="gov"],
#view-mascotas a[href*="government"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  width: fit-content !important;
  margin: 24px auto 0 !important;
  padding: 14px 22px !important;

  color: #ff5a82 !important;
  background: rgba(248, 79, 118, 0.08) !important;
  border: 1px solid #f84f76 !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

/* Mobile */
@media (max-width: 760px) {
  #view-mascotas .pets-detail {
    width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 90px) !important;
    padding: 22px !important;
    border-radius: 24px !important;
  }
}
/* Corrige alertas de requisitos en mascotas */
#view-mascotas .pets-req-row--alert {
  background: rgba(248, 79, 118, 0.12) !important;
  border: 1px solid rgba(248, 79, 118, 0.42) !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  padding: 16px 18px !important;
  box-shadow: none !important;
}

#view-mascotas .pets-req-row--alert,
#view-mascotas .pets-req-row--alert * {
  color: #ffffff !important;
}

#view-mascotas .pets-req-row--alert strong {
  color: #ffffff !important;
}

/* MQI — corregir bloques OK que quedaban beige */
#view-mascotas .pets-req-row--ok {
  background: rgba(39, 174, 96, 0.14) !important;
  border: 1px solid rgba(39, 174, 96, 0.45) !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  padding: 16px 18px !important;
  box-shadow: none !important;
}

#view-mascotas .pets-req-row--ok *,
#view-mascotas .pets-req-row--alert * {
  color: #ffffff !important;
}

#view-mascotas .pets-req-row--alert {
  background: rgba(248, 79, 118, 0.14) !important;
  border: 1px solid rgba(248, 79, 118, 0.48) !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  padding: 16px 18px !important;
}

/* ── Mascotas: comportamiento modal igual que Trabajo ───────────────────── */
#view-mascotas .pets-detail {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  overflow-y: auto !important;
  background: rgba(7, 13, 25, 0.72) !important;
  backdrop-filter: blur(6px);
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  z-index: 9999 !important;
}

#view-mascotas .pets-detail[hidden] {
  display: none !important;
}

#view-mascotas .pets-detail-card {
  width: min(100%, 980px) !important;
  max-width: 980px !important;
  max-height: min(86vh, 920px) !important;
  margin: 0 !important;
  padding: 24px !important;
  overflow-y: auto !important;
  background:
    radial-gradient(circle at top right, rgba(248, 79, 118, 0.18), transparent 34%),
    linear-gradient(160deg, #191f38 0%, #182645 58%, #1e2f52 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42) !important;
}

@media (max-width: 760px) {
  #view-mascotas .pets-detail {
    align-items: stretch !important;
    padding: 14px !important;
  }

  #view-mascotas .pets-detail-card {
    max-height: calc(100vh - 28px) !important;
    padding: 18px !important;
  }
}

/* ── Mascotas: buscador compacto tipo Conectividad ─────────────────────── */
#view-mascotas {
  max-width: 1080px !important;
  padding: 22px 16px 56px !important;
  text-align: left !important;
}

#view-mascotas .pets-hero {
  max-width: none !important;
  margin: 0 0 12px !important;
  padding: 18px 20px !important;
  text-align: left !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  background: var(--card, #1b2949);
}

#view-mascotas .explorar-title {
  margin: 0 !important;
  color: var(--text, #fff) !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

#view-mascotas .explorar-sub {
  max-width: 68ch !important;
  margin: 10px 0 0 !important;
  color: var(--muted, #b9bdc1) !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  text-align: left !important;
}

.pets-search-panel {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  background: rgba(24, 38, 69, 0.72);
}

.pets-search-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(132px, 0.8fr));
  gap: 8px;
  align-items: end;
}

.pets-search-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pets-search-field label,
.pets-selector-label {
  color: var(--muted, #b9bdc1) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

.pets-search-input,
.pets-search-panel .pets-select,
.pets-country-selector .pets-select {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.32);
  color: var(--text, #fff);
  font-size: 0.88rem;
}

.pets-search-input:focus,
.pets-search-panel .pets-select:focus,
.pets-country-selector .pets-select:focus {
  outline: none;
  border-color: rgba(248, 79, 118, 0.62);
  box-shadow: 0 0 0 3px rgba(248, 79, 118, 0.12);
}

.pets-search-help {
  margin: 9px 0 0;
  color: var(--muted, #b9bdc1);
  font-size: 0.82rem;
  line-height: 1.4;
}

.pets-need-filters,
.pets-region-filters {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 7px !important;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.pets-need-filters {
  margin-top: 10px;
}

.pets-region-filters {
  margin: 0 0 12px !important;
}

.pets-need-filters::-webkit-scrollbar,
.pets-region-filters::-webkit-scrollbar {
  display: none;
}

.pets-need-chip,
.pets-filter {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  width: auto !important;
  padding: 0 11px !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12)) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.045) !important;
  color: var(--muted, #b9bdc1) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer;
}

.pets-need-chip.is-active,
.pets-filter.is-active,
.pets-filter:hover {
  color: #fff !important;
  border-color: rgba(248, 79, 118, 0.5) !important;
  background: rgba(248, 79, 118, 0.18) !important;
}

.pets-filter strong {
  min-width: auto !important;
  padding: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
}

.pets-meta {
  margin: 0 0 10px !important;
}

.pets-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
}

.pets-stat {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  width: auto !important;
  padding: 8px 11px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  text-align: left !important;
}

.pets-stat span,
.pets-stat strong {
  margin: 0 !important;
  line-height: 1 !important;
}

.pets-stat span {
  font-size: 0.76rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.pets-stat strong {
  order: -1;
  font-size: 0.98rem !important;
}

.pets-country-selector {
  align-items: flex-start !important;
  max-width: 360px;
  margin: 0 0 12px !important;
}

.pets-selector-wrap {
  width: 100% !important;
}

.pets-results-meta {
  margin: 0 0 12px;
  color: var(--muted, #b9bdc1);
  font-size: 0.9rem;
}

.pets-overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)) !important;
  gap: 12px !important;
}

#view-mascotas .pets-card {
  display: grid !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 15px !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12)) !important;
  border-radius: 8px !important;
  background: var(--card, #1b2949) !important;
  box-shadow: none !important;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease !important;
}

#view-mascotas .pets-card:hover,
#view-mascotas .pets-card:focus-visible,
#view-mascotas .pets-card.is-active {
  border-color: var(--accent, #f84f76) !important;
  background: rgba(74, 154, 168, 0.08) !important;
  outline: none;
  transform: translateY(-1px) !important;
}

#view-mascotas .pets-card__top {
  justify-content: space-between;
}

#view-mascotas .pets-card__flag {
  width: 42px !important;
  height: 42px !important;
  border-radius: 8px !important;
}

#view-mascotas .pets-card__summary {
  font-size: 0.86rem !important;
  line-height: 1.48 !important;
  -webkit-line-clamp: 2 !important;
}

.pets-card__requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pets-card__requirements span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 700;
}

#view-mascotas .pets-card__meta {
  padding-top: 8px !important;
  font-size: 0.74rem !important;
}

.pets-card__cta {
  display: inline-flex;
  width: fit-content;
  color: var(--accent, #f84f76);
  font-size: 0.82rem;
  font-weight: 850;
}

@media (max-width: 820px) {
  .pets-search-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pets-search-field--main {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  #view-mascotas {
    padding: 18px 12px 46px !important;
  }

  #view-mascotas .pets-hero {
    padding: 16px !important;
  }

  .pets-search-grid {
    grid-template-columns: 1fr;
  }

  .pets-country-selector {
    max-width: none;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   EMPLEOS — Búsqueda laboral (rediseño completo)
   ═══════════════════════════════════════════════════════════════════════════ */

#view-empleos {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 56px;
}

/* ── Login wall ─────────────────────────────────────────────────────────── */
.jobs-login-wall {
  max-width: 440px;
  margin: 40px auto;
  padding: 48px 28px;
  background: #1b2949;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  text-align: center;
}

.jobs-login-wall__icon   { font-size: 2.5rem; margin-bottom: 16px; }
.jobs-login-wall__title  { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.jobs-login-wall__copy   { color: var(--muted,#b9bdc1); margin-bottom: 24px; font-size: 0.9rem; line-height: 1.5; }
.jobs-login-wall__alt    { margin-top: 12px; font-size: 0.85rem; color: var(--muted,#b9bdc1); }

/* ── Stats bar ──────────────────────────────────────────────────────────── */
.jobs-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.jobs-region-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px,1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.jobs-stat, .jobs-region-stat {
  background: #1b2949;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}

.jobs-stat strong, .jobs-region-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.jobs-stat span, .jobs-region-stat span {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted,#b9bdc1);
  margin-top: 4px;
}

.jobs-stat--total  { background: rgba(248,79,118,0.12); border-color: rgba(248,79,118,0.25); }
.jobs-stat--total strong { color: #f84f76; }
.jobs-stat--ok     { background: rgba(34,197,94,0.10); border-color: rgba(34,197,94,0.22); }
.jobs-stat--ok strong { color: #86efac; }
.jobs-stat--warn   { background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.22); }
.jobs-stat--warn strong { color: #fbbf24; }
.jobs-stat--verify { background: rgba(99,102,241,0.10); border-color: rgba(99,102,241,0.22); }
.jobs-stat--verify strong { color: #a5b4fc; }

/* ── Region tabs ────────────────────────────────────────────────────────── */
.jobs-region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.jobs-region-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: #1b2949;
  color: var(--text,#fff);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.jobs-region-tab strong {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--muted,#b9bdc1);
  font-size: 0.72rem;
}

.jobs-region-tab:hover,
.jobs-region-tab.is-active {
  border-color: rgba(248,79,118,0.6);
  background: rgba(248,79,118,0.15);
}

/* ── Country grid ───────────────────────────────────────────────────────── */
.jobs-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 14px;
}

.jobs-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: #1b2949;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  color: var(--text,#fff);
}

.jobs-card:hover { border-color: rgba(248,79,118,0.5); background: #203154; transform: translateY(-2px); }
.jobs-card--pending { opacity: 0.75; }
.jobs-card--pending:hover { opacity: 1; }

.jobs-card__top   { display: flex; align-items: center; gap: 10px; }
.jobs-card__flag  { font-size: 1.8rem; flex-shrink: 0; }
.jobs-card__name  { font-weight: 800; font-size: 1rem; line-height: 1.2; }
.jobs-card__lang  { font-size: 0.78rem; color: var(--muted,#b9bdc1); margin-top: 2px; }

.jobs-card__badges { display: flex; flex-wrap: wrap; gap: 5px; }
.jobs-card__overview {
  font-size: 0.82rem;
  color: var(--muted,#b9bdc1);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jobs-card__sectors { display: flex; flex-wrap: wrap; gap: 5px; }

.jobs-sector-chip {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: var(--muted,#b9bdc1);
  white-space: nowrap;
}

.jobs-card__footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  color: var(--muted,#b9bdc1);
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}

.jobs-card__pending-note { color: rgba(251,191,36,0.7); font-style: italic; }

/* ── Status badges ──────────────────────────────────────────────────────── */
.jobs-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.jobs-status--ok     { color: #86efac; background: rgba(34,197,94,0.14); border: 1px solid rgba(34,197,94,0.28); }
.jobs-status--warn   { color: #fbbf24; background: rgba(245,158,11,0.14); border: 1px solid rgba(245,158,11,0.28); }
.jobs-status--verify { color: #a5b4fc; background: rgba(99,102,241,0.14); border: 1px solid rgba(99,102,241,0.28); }

/* ── Visa badges ────────────────────────────────────────────────────────── */
.jobs-visa-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.jobs-visa-badge--whv   { background: rgba(248,79,118,0.18); color: #f9a8c9; border: 1px solid rgba(248,79,118,0.3); }
.jobs-visa-badge--study { background: rgba(99,102,241,0.18); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }
.jobs-visa-badge--work  { background: rgba(34,197,94,0.18); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.jobs-visa-badge--nomad { background: rgba(245,158,11,0.18); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }

/* ── Detail view ────────────────────────────────────────────────────────── */
.jobs-detail { animation: fadeIn 0.2s ease; }

.jobs-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--muted,#b9bdc1);
  font-size: 0.875rem;
  padding: 8px 14px;
  cursor: pointer;
  margin-bottom: 24px;
  transition: border-color 0.15s, color 0.15s;
}
.jobs-back-btn:hover { border-color: rgba(248,79,118,0.5); color: #fff; }

.jobs-detail-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.jobs-detail-flag   { font-size: 3rem; line-height: 1; flex-shrink: 0; }
.jobs-detail-kicker { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted,#b9bdc1); margin-bottom: 4px; }
.jobs-detail-name   { font-size: 1.7rem; font-weight: 900; color: #fff; margin: 0 0 8px; line-height: 1.1; }
.jobs-detail-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.jobs-detail-overview {
  color: var(--muted,#b9bdc1);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 860px;
}

.jobs-pending-notice {
  background: rgba(245,158,11,0.10);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text,#fff);
}
.jobs-pending-notice p { color: var(--muted,#b9bdc1); margin: 6px 0 12px; }

.jobs-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.jobs-detail-block {
  background: #1b2949;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px;
}

.jobs-detail-block--full  { grid-column: 1 / -1; }
.jobs-detail-block--warn  { background: rgba(239,68,68,0.07); border-color: rgba(239,68,68,0.2); }
.jobs-detail-block--tips  { background: rgba(245,158,11,0.07); border-color: rgba(245,158,11,0.2); }

.jobs-detail-block__title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.jobs-detail-text { font-size: 0.875rem; color: var(--muted,#b9bdc1); line-height: 1.55; }

/* Salary */
.jobs-salary-rows  { display: flex; flex-direction: column; gap: 8px; }
.jobs-salary-row   { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85rem; }
.jobs-salary-row span { color: var(--muted,#b9bdc1); }
.jobs-salary-row strong { color: #fff; font-weight: 700; }

/* Visa rows */
.jobs-visa-rows    { display: flex; flex-direction: column; gap: 8px; }
.jobs-visa-row     { font-size: 0.83rem; line-height: 1.5; padding: 6px 10px; border-radius: 7px; }
.jobs-visa-row--ok { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.18); color: var(--text,#fff); }
.jobs-visa-row--no { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--muted,#b9bdc1); }

/* Jobs chips */
.jobs-jobs-list { display: flex; flex-wrap: wrap; gap: 6px; }
.jobs-job-chip {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: var(--muted,#b9bdc1);
  border: 1px solid rgba(255,255,255,0.10);
}
.jobs-job-chip--qual { background: rgba(99,102,241,0.12); color: #a5b4fc; border-color: rgba(99,102,241,0.22); }

/* Links list */
.jobs-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted,#b9bdc1);
}
.jobs-links-list a { color: #f84f76; text-decoration: none; font-weight: 600; }
.jobs-links-list a:hover { text-decoration: underline; }

/* Sectors grid (detail) */
.jobs-sectors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; }
.jobs-sector-block { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 9px; padding: 12px; }
.jobs-sector-block__title { font-weight: 700; font-size: 0.82rem; color: #fff; margin-bottom: 8px; }
.jobs-sector-block__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; color: var(--muted,#b9bdc1); }

/* Official source button */
.jobs-official-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1.5px solid rgba(248,79,118,0.4);
  border-radius: 9px;
  color: #f84f76;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
  margin-top: 8px;
}
.jobs-official-source-btn:hover { background: rgba(248,79,118,0.10); }

.jobs-muted { color: var(--muted,#b9bdc1); font-size: 0.8rem; }
.jobs-empty { color: var(--muted,#b9bdc1); font-style: italic; padding: 20px 0; }

@media (max-width: 600px) {
  .jobs-stats-bar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .jobs-overview-grid { grid-template-columns: 1fr; }
  .jobs-detail-grid { grid-template-columns: 1fr; }
  .jobs-detail-block--full { grid-column: auto; }
}

/* ── Modal flotante empleos ────────────────────────────────────────────────── */
.jobs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.18s ease;
}

.jobs-modal-overlay.hidden {
  display: none;
}

.jobs-modal {
  position: relative;
  background: #182645;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  width: min(860px, 100%);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  animation: modalSlideUp 0.22s ease;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.jobs-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted, #b9bdc1);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s, color 0.15s;
}

.jobs-modal__close:hover {
  background: rgba(248, 79, 118, 0.20);
  color: #fff;
  border-color: rgba(248, 79, 118, 0.4);
}

.jobs-modal__body {
  overflow-y: auto;
  padding: 28px 28px 32px;
  flex: 1;
  overscroll-behavior: contain;
}

/* Ocultar el botón "← Volver" dentro del modal — no tiene sentido ahí */
.jobs-modal__body .jobs-back-btn {
  display: none;
}

@media (max-width: 600px) {
  .jobs-modal-overlay { align-items: flex-end; padding: 0; }
  .jobs-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    animation: modalSlideUpMobile 0.24s ease;
  }
  .jobs-modal__body { padding: 20px 16px 28px; }
}

@keyframes modalSlideUpMobile {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
