/* ============================================================
   jobs.css — tema claro/oscuro del template jobs (Bootstrap 5.3)
   Cargado después de Bootstrap (via templates jobs).
   ============================================================ */

:root {
  --bs-link-color: #B04F28;
  --bs-link-color-rgb: 176, 79, 40;
  --bs-link-hover-color: #E039AE;
  --bs-link-hover-color-rgb: 224, 57, 174;
  --bs-heading-color: #1F1EB7;
}

a:visited {
  color: #4a6fa5;
}

/* Reset de :visited en componentes con color propio */
a.badge:visited {
  color: var(--bs-badge-color, #fff);
}

a.btn:visited {
  color: var(--bs-btn-color);
}

.page-link:visited {
  color: var(--bs-pagination-color, #0d6efd);
}

.nav-link:visited {
  color: var(--bs-navbar-color, inherit);
}

.category-cloud nav a:visited {
  color: #555;
}

.footer-nav-inline a:visited {
  color: #0a58ca;
}

/* Contrastes light de bloques DB */
.footer-nav-inline a,
.seo-content a {
  color: #0a58ca;
}

.footer-branding p {
  color: #6c757d;
}

.inner-social-links a {
  color: #6c757d;
}

/* ==================== DARK ==================== */

[data-bs-theme="dark"] {
  --bs-body-bg: #1a1a1a;
  --bs-body-color: #dee2e6;
  --bs-heading-color: #9ec5fe;
  --bs-link-color: #f0a58e;
  --bs-link-color-rgb: 240, 165, 142;
  --bs-link-hover-color: #f2b8a6;
  --bs-link-hover-color-rgb: 242, 184, 166;
}

[data-bs-theme="dark"] a:visited {
  color: #8ab4f8;
}

[data-bs-theme="dark"] .text-primary {
  color: #9ec5fe !important;
}

[data-bs-theme="dark"] .text-dark {
  color: #e9ecef !important;
}

[data-bs-theme="dark"] .bg-light {
  background-color: #2b3035 !important;
}

/* el body no debe quedar más claro que las cards (que usan --bs-body-bg) */
[data-bs-theme="dark"] body.bg-light {
  background-color: var(--bs-body-bg) !important;
}

[data-bs-theme="dark"] .bg-white {
  background-color: #212529 !important;
}

[data-bs-theme="dark"] hr {
  border-color: rgba(255, 255, 255, 0.25);
}

/* Bloques DB */
[data-bs-theme="dark"] .hero-section {
  background: linear-gradient(135deg, #212529 0%, #1a1a1a 100%);
  border-color: #343a40 !important;
}

[data-bs-theme="dark"] .seo-footer-section {
  background-color: #212529;
  border-top-color: #0d6efd;
}

[data-bs-theme="dark"] .seo-content h2 {
  color: #e9ecef;
}

[data-bs-theme="dark"] .seo-content p {
  color: #adb5bd;
}

[data-bs-theme="dark"] .category-cloud span {
  color: #dee2e6;
}

[data-bs-theme="dark"] .category-cloud nav a {
  background-color: #2b3035;
  color: #dee2e6;
}

[data-bs-theme="dark"] .category-cloud nav a:visited {
  color: #dee2e6;
}

[data-bs-theme="dark"] .inner-footer {
  background-color: #212529;
  border-top-color: #343a40;
  color: #adb5bd;
}

[data-bs-theme="dark"] .footer-mission {
  color: #adb5bd;
}

[data-bs-theme="dark"] .footer-branding p {
  color: #adb5bd;
}

[data-bs-theme="dark"] .footer-branding a {
  color: #dee2e6;
}

[data-bs-theme="dark"] .inner-social-links a {
  color: #adb5bd;
}

[data-bs-theme="dark"] .footer-nav-inline a,
[data-bs-theme="dark"] .seo-content a {
  color: #8ab4f8;
}
