/* ============================================================
   Variables & Reset
   ============================================================ */
:root {
  --primary: #00C897;
  --primary-dark: #00A87A;
  --dark: #1B2E3C;
  --text: #2D3748;
  --text-muted: #718096;
  --bg-light: #F7F9FC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

html, body {
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   Top Bar
   ============================================================ */
.topbar {
  background: var(--dark);
  color: var(--white);
  font-size: 0.82rem;
  padding: 8px 0;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

.topbar-item svg { flex-shrink: 0; }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 44px;
  width: auto;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  color: var(--primary);
  transition: background 0.2s;
}

.nav-icon-btn:hover { background: #f0fdf8; }

.nav-icon-btn .tooltip {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-icon-btn:hover .tooltip { opacity: 1; }

.btn-login {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1.5px solid var(--primary);
  border-radius: 24px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  margin-left: 8px;
  text-decoration: none;
  font-family: inherit;
}

.btn-login:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #1B2E3C 0%, #2D4A5C 60%, #3A5A6E 100%);
  padding: 100px 24px 80px;
  text-align: center;
  color: var(--white);
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ============================================================
   Search Bar
   ============================================================ */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.search-bar input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-size: 0.95rem;
  color: var(--text);
  min-width: 0;
}

.search-bar .divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

.search-bar select {
  border: none;
  outline: none;
  padding: 14px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--white);
  cursor: pointer;
  min-width: 130px;
}

.search-bar .btn-search {
  padding: 14px 28px;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-bar .btn-search:hover { background: var(--primary-dark); }

/* ============================================================
   Stats Bar
   ============================================================ */
.stats-bar {
  background: var(--primary);
  padding: 28px 24px;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  justify-content: center;
  padding: 8px 0;
}

.stat-item + .stat-item {
  border-left: 1px solid rgba(255,255,255,0.3);
}

.stat-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  opacity: 0.9;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-top: 2px;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 64px 24px;
}

.section-bg { background: var(--bg-light); }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   Vacancy Cards
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.cards-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.vacancy-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.vacancy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-body {
  padding: 20px;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 500;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.card-title a:hover { color: var(--primary); }

.card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.card-info-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-info-row svg { color: var(--primary); flex-shrink: 0; }

.card-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.keyword-tag {
  font-size: 0.75rem;
  background: #f0fdf8;
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #c6f6e9;
}

.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.icon-btn:hover { color: var(--primary); background: #f0fdf8; }

.btn-apply {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
}

.btn-apply .apply-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.btn-apply:hover .apply-circle { border-color: var(--primary); }

/* ============================================================
   Advisory Banner
   ============================================================ */
.advisory {
  padding: 72px 0 56px;
  background: transparent;
  overflow: hidden;
}

.advisory-inner {
  position: relative;
  width: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.advisory-inner::before {
  content: "";
  position: absolute;
  top: 52%;
  left: 0;
  width: 100%;
  height: 205px;
  transform: translateY(-50%);
  background: #eceef0;
  z-index: 0;
}

.advisory-content {
  position: relative;
  z-index: 2;
  background: var(--primary);
  clip-path: polygon(0 0, 84% 0, 71% 100%, 0 100%);
  padding: 42px 120px 42px 78px;
  width: min(860px, 76vw);
  min-height: 232px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.advisory-label {
  font-size: 1.3rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 4px;
}

.advisory-title {
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 14px;
}

.advisory-text {
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 18px;
}

.advisory-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
}

.advisory-image-col {
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(620px, 44vw);
  margin-right: 4%;
}

.advisory-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ============================================================
   Ver Más Button
   ============================================================ */
.ver-mas-wrap {
  text-align: center;
  margin-top: 40px;
}

.btn-ver-mas {
  display: inline-block;
  padding: 12px 40px;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-ver-mas:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   Search Section (second)
   ============================================================ */
.search-section {
  margin-bottom: 36px;
}

.search-section .search-bar {
  box-shadow: var(--shadow);
}

.search-section .search-bar input[type="text"],
.search-section .search-bar select {
  color: var(--text);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #F1F3F5;
  padding: 56px 24px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 240px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.2s;
}

.social-icon:hover { background: var(--primary); }

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--primary); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-row svg { flex-shrink: 0; color: var(--primary); margin-top: 2px; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.8rem;
}

/* ============================================================
   Lista de Vacantes (page)
   ============================================================ */
.lista-hero {
  background: var(--dark);
  padding: 48px 24px;
  color: var(--white);
  text-align: center;
}

.lista-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.lista-hero p {
  opacity: 0.8;
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto;
}

.lista-content {
  padding: 48px 24px;
}

/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  opacity: 0.4;
}

.empty-state p { font-size: 0.95rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item + .stat-item { border-left: none; }
  .advisory {
    padding: 48px 0 36px;
  }
  .advisory-inner {
    min-height: auto;
    flex-direction: column;
    gap: 20px;
  }
  .advisory-inner::before {
    height: 58%;
    top: 56%;
  }
  .advisory-content {
    clip-path: none;
    width: calc(100% - 32px);
    margin: 0 16px;
    padding: 30px 24px;
    min-height: auto;
  }
  .advisory-title {
    font-size: 2rem;
  }
  .advisory-text {
    max-width: none;
    font-size: 1rem;
  }
  .advisory-link {
    font-size: 1rem;
  }
  .advisory-image-col {
    width: min(430px, 82vw);
    margin-right: 0;
    align-self: center;
  }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 1.6rem; }
  .search-bar { flex-direction: column; border-radius: var(--radius); }
  .search-bar input, .search-bar select, .search-bar .btn-search { width: 100%; border-radius: 0; }
  .search-bar .divider { display: none; }
  .topbar-inner { gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .navbar-inner { height: 58px; }
  .btn-login span { display: none; }
}

/* ============================================================
   Updated Vacancy Cards
   ============================================================ */
.card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-company-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: var(--bg-light);
  flex-shrink: 0;
  padding: 4px;
}

.card-company-logo--default {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.card-tag svg { color: var(--primary); flex-shrink: 0; }

.card-tag--badge {
  background: #e6f9f4;
  color: var(--primary-dark);
  border-color: #c6f6e9;
  font-weight: 500;
}

.card-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-date svg { color: var(--primary); flex-shrink: 0; }

/* Updated Apply button – solid green */
.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-apply:hover { background: var(--primary-dark); color: var(--white); }

.btn-apply--lg { padding: 11px 22px; font-size: 0.9rem; }

.btn-apply .apply-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

/* Guardar button – green background */
.icon-btn--save {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 6px;
}

.icon-btn--save:hover { background: var(--primary-dark); }

.icon-btn--saved {
  background: var(--primary-dark);
  color: var(--white) !important;
  border-radius: 6px;
}

/* ============================================================
   Lista page – two-column layout
   ============================================================ */
.lista-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* Filtros sidebar */
.filtros-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 84px;
}

.filtros-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.filtro-group {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.filtro-group:last-of-type {
  border-bottom: none;
  margin-bottom: 8px;
  padding-bottom: 0;
}

.filtro-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filtro-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.filtro-item input[type="checkbox"] {
  accent-color: var(--primary);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
}

.filtro-item label {
  font-size: 0.84rem;
  color: var(--text);
  flex: 1;
  cursor: pointer;
}

.filtro-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 1px 7px;
  border-radius: 20px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.salario-range { margin-top: 6px; }

.salario-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.salario-range input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.btn-aplicar-filtros {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 12px;
}

.btn-aplicar-filtros:hover {
  background: var(--primary);
  color: var(--white);
}

/* Main content area */
.lista-main { min-width: 0; }

.resultados-header { margin-bottom: 12px; }

.resultados-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.buscar-vacantes {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  margin-bottom: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.buscar-vacantes:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 200, 151, 0.12);
}

/* ============================================================
   Detalle page
   ============================================================ */
.detalle-hero {
  background: var(--dark);
  padding: 40px 24px;
  color: var(--white);
}

.detalle-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  transition: color 0.2s;
}

.detalle-back:hover { color: var(--white); }

.detalle-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.detalle-logo-wrap { flex-shrink: 0; }

.detalle-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px;
}

.detalle-logo--default {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
}

.detalle-info { flex: 1; min-width: 0; }

.detalle-titulo {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
  line-height: 1.3;
}

.detalle-meta { display: flex; flex-wrap: wrap; gap: 8px; }

.detalle-acciones {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.detalle-btn-guardar {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.detalle-content { padding: 48px 24px; }

.detalle-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.detalle-body { min-width: 0; }

.detalle-salario {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--primary-dark);
  background: #e6f9f4;
  border: 1px solid #c6f6e9;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
}

.detalle-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  margin-top: 28px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.detalle-section-title:first-child { margin-top: 0; }

.detalle-descripcion {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.8;
}

.detalle-aplicar-box {
  margin-top: 36px;
  padding: 28px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.detalle-aside-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 84px;
}

.detalle-aside-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 16px;
}

.detalle-aside-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.detalle-aside-row:last-child { border-bottom: none; }

.detalle-aside-row svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.detalle-aside-row div { display: flex; flex-direction: column; gap: 2px; }

.detalle-aside-row span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.detalle-aside-row strong {
  font-size: 0.85rem;
  color: var(--text);
}

/* ============================================================
   Responsive – lista & detalle
   ============================================================ */
@media (max-width: 900px) {
  .lista-layout { grid-template-columns: 1fr; }
  .filtros-sidebar { position: static; }
  .detalle-layout { grid-template-columns: 1fr; }
  .detalle-aside-card { position: static; }
  .detalle-header { flex-direction: column; }
  .detalle-acciones { width: 100%; }
}

/* ============================================================
   Detalle de vacante – layout tipo prototipo
   ============================================================ */
.det-page {
  background: var(--bg-light);
  padding: 40px 24px 64px;
  min-height: 70vh;
}

.det-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Sidebar ── */
.det-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.det-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, color 0.2s;
  width: fit-content;
}

.det-back-btn:hover { border-color: var(--primary); color: var(--primary); }

.det-explorar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.det-explorar {
  display: flex;
  flex-direction: column;
}

.det-rel-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
  color: var(--text);
}

.det-rel-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.det-rel-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.det-rel-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: var(--bg-light);
  padding: 3px;
  flex-shrink: 0;
}

.det-rel-logo--default {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.det-rel-names { display: flex; flex-direction: column; gap: 2px; }

.det-rel-titulo {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.det-rel-compania { font-size: 0.78rem; color: var(--text-muted); }

.det-rel-industria {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.det-rel-chips { display: flex; flex-wrap: wrap; gap: 5px; }

.det-rel-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.det-rel-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2px;
}

/* ── Chips compartidos ── */
.det-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.det-chip svg { color: var(--primary); flex-shrink: 0; }

.det-chip--green {
  background: #e6f9f4;
  color: var(--primary-dark);
  border-color: #c6f6e9;
  font-weight: 500;
}

.det-chip--info {
  font-size: 0.82rem;
  padding: 5px 12px;
}

/* ── Main content ── */
.det-main {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.det-titulo {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 20px;
}

/* Tarjeta empresa */
.det-company-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.det-company-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 6px;
  flex-shrink: 0;
}

.det-company-logo--default {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.det-company-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.det-confidencial {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Chips de info */
.det-info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

/* Secciones */
.det-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.det-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

/* Keywords */
.det-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.det-keyword-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text);
}

.det-keyword-tag--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Descripción */
.det-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.85;
}

/* Barra de acciones */
.det-actions-bar {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.det-actions-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.det-action-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.det-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.det-btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.det-btn-outline--active {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0fdf8;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .det-layout { grid-template-columns: 1fr; }
  .det-sidebar { flex-direction: row; flex-wrap: wrap; }
  .det-explorar { width: 100%; }
  .det-rel-card { margin-bottom: 0; }
}

@media (max-width: 600px) {
  .det-page { padding: 20px 16px 48px; }
  .det-main { padding: 20px; }
  .det-titulo { font-size: 1.35rem; }
  .det-actions-bar { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Vacancy-card modals (tips & share)
   ============================================================ */
.vc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.vc-modal-overlay.active { display: flex; }

.vc-modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 32px 32px;
  max-width: 420px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.vc-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  line-height: 1;
}
.vc-modal-close:hover { color: var(--dark); }

.vc-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

/* Tips */
.vc-tips-content { display: flex; flex-direction: column; gap: 12px; }

.vc-tip-item {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

/* lightbulb color hint */
.icon-btn--tips:hover { color: #f59e0b; background: #fffbeb; }

/* Share */
.vc-share-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vc-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--white);
}

.vc-share-btn:hover { background: var(--bg-light); border-color: var(--primary); color: var(--primary); }

/* ============================================================
   Detalle vacante – modal de tips
   ============================================================ */
.det-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.det-modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 620px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.det-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.det-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.det-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.det-modal-close:hover { color: var(--dark); background: var(--bg-light); }

.det-modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.85;
}

/* Estilos para contenido HTML enriquecido */
.det-richtext h1, .det-richtext h2, .det-richtext h3,
.det-richtext h4, .det-richtext h5, .det-richtext h6 {
  color: var(--dark);
  margin: 1em 0 0.4em;
  font-weight: 700;
}
.det-richtext h1 { font-size: 1.3rem; }
.det-richtext h2 { font-size: 1.15rem; }
.det-richtext h3 { font-size: 1rem; }
.det-richtext p  { margin: 0 0 0.8em; }
.det-richtext ul, .det-richtext ol { padding-left: 1.4em; margin: 0 0 0.8em; }
.det-richtext li { margin-bottom: 0.35em; }
.det-richtext strong { font-weight: 700; color: var(--dark); }
.det-richtext a { color: var(--primary); text-decoration: underline; }

.det-btn-tips {
  color: #92400e;
  border-color: #fbbf24;
  background: #fffbeb;
}
.det-btn-tips:hover { background: #fef3c7; border-color: #f59e0b; color: #78350f; }

@media (max-width: 600px) {
  .det-modal { max-height: 90vh; }
  .det-modal-body { padding: 16px; }
}

.vc-share-btn--copy { border: none; background: var(--bg-light); }
