:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #e4e7eb;
  --text: #1a1d23;
  --text-muted: #5b6270;
  --text-faint: #8890a0;
  --accent: #0d7d6f;
  --accent-dark: #0a5f54;
  --accent-soft: #e6f4f2;
  --whatsapp: #25d366;
  --whatsapp-dark: #1fb356;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,20,30,.04), 0 6px 20px rgba(20,20,30,.05);
  --shadow-hover: 0 4px 10px rgba(20,20,30,.06), 0 12px 30px rgba(20,20,30,.09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  flex-shrink: 0;
}

.brand-mark-emoji {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 14px;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 16px;
}

.brand-text span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-cta {
  flex-shrink: 0;
  font-size: 14px;
  padding: 9px 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-whatsapp::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2.05 22l5.25-1.38a9.9 9.9 0 0 0 4.74 1.21h.01c5.46 0 9.9-4.45 9.9-9.91 0-2.65-1.03-5.14-2.9-7.01A9.87 9.87 0 0 0 12.04 2zm5.8 14.14c-.24.68-1.4 1.32-1.93 1.37-.5.05-1 .24-3.4-.71-2.88-1.15-4.71-4.06-4.85-4.25-.14-.19-1.15-1.53-1.15-2.92 0-1.39.73-2.07.99-2.35.26-.28.57-.35.76-.35.19 0 .38 0 .55.01.18.01.42-.07.65.5.24.58.81 2.02.88 2.16.07.15.12.32.02.51-.1.19-.15.31-.3.48-.15.17-.31.37-.44.5-.15.15-.3.31-.13.6.17.29.76 1.26 1.64 2.04 1.12 1 2.07 1.31 2.36 1.46.29.15.46.13.63-.08.17-.2.72-.85.92-1.14.19-.29.38-.24.64-.14.26.1 1.68.8 1.97.94.29.15.48.22.55.34.07.13.07.72-.17 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2.05 22l5.25-1.38a9.9 9.9 0 0 0 4.74 1.21h.01c5.46 0 9.9-4.45 9.9-9.91 0-2.65-1.03-5.14-2.9-7.01A9.87 9.87 0 0 0 12.04 2zm5.8 14.14c-.24.68-1.4 1.32-1.93 1.37-.5.05-1 .24-3.4-.71-2.88-1.15-4.71-4.06-4.85-4.25-.14-.19-1.15-1.53-1.15-2.92 0-1.39.73-2.07.99-2.35.26-.28.57-.35.76-.35.19 0 .38 0 .55.01.18.01.42-.07.65.5.24.58.81 2.02.88 2.16.07.15.12.32.02.51-.1.19-.15.31-.3.48-.15.17-.31.37-.44.5-.15.15-.3.31-.13.6.17.29.76 1.26 1.64 2.04 1.12 1 2.07 1.31 2.36 1.46.29.15.46.13.63-.08.17-.2.72-.85.92-1.14.19-.29.38-.24.64-.14.26.1 1.68.8 1.97.94.29.15.48.22.55.34.07.13.07.72-.17 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.btn-call {
  background: var(--accent);
  color: #fff;
}
.btn-call:hover { background: var(--accent-dark); }

.btn-call::before {
  content: "";
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); border-color: #c9cdd4; color: var(--text); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 28px;
}
.hero h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 10px;
  max-width: 640px;
}
.hero p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0;
  font-size: 15px;
}

/* ---------- Share row ---------- */
.share-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.share-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-share {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-share-wa {
  background: var(--whatsapp);
  color: #fff;
}
.btn-share-wa:hover { background: var(--whatsapp-dark); }

.btn-share-more {
  background: #0084ff;
  color: #fff;
}
.btn-share-more:hover { background: #006fd6; }

.share-dropdown {
  position: relative;
  display: inline-block;
}

.share-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-hover);
  padding: 6px;
  min-width: 180px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.share-menu[hidden] { display: none; }

.share-menu-item {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.share-menu-item:hover { background: var(--bg); }

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  max-width: 90vw;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 200;
}
.share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Filters hint ---------- */
.filters-hint {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  margin: 18px 0;
  line-height: 1.5;
}

/* ---------- Filters ---------- */
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
}

.filters-row + .filters-row {
  margin-top: 12px;
}

.search-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
}
.search-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  align-items: end;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.filter-field select {
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 400;
}

#resetFilters {
  align-self: end;
  height: 38px;
  padding: 0 14px;
}

/* ---------- Results ---------- */
.results-bar {
  margin: 4px 2px 14px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  padding-bottom: 40px;
}

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: box-shadow .15s ease, transform .15s ease;
  cursor: pointer;
}
.job-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.job-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.job-code {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--text-faint);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 999px;
}

.modal-code {
  margin-bottom: 8px;
}

.job-rate {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.job-title {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
  line-height: 1.35;
}

.job-meta {
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.tag {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.job-card-footer {
  margin-top: auto;
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

.job-card-footer .btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 13.5px;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 4px 2px 40px;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.page-btn:hover { border-color: #c9cdd4; }
.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.page-btn[disabled] {
  opacity: .4;
  cursor: default;
}

.page-ellipsis {
  color: var(--text-faint);
  padding: 0 4px;
  font-size: 13.5px;
}

.page-size-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.page-size-field select {
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 400;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 20px;
  font-size: 15px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  margin-top: 20px;
}
.footer-inner p {
  font-size: 12.5px;
  color: var(--text-faint);
  max-width: 760px;
  margin: 0 0 10px;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 28, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 100;
}
.modal-backdrop[hidden] { display: none; }

.modal {
  background: var(--surface);
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
}
.modal-close:hover { color: var(--text); }

.modal h2 {
  font-size: 20px;
  margin: 0 12px 6px 0;
  padding-right: 30px;
}

.modal .job-meta {
  margin-bottom: 14px;
}

.modal-section-title {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-faint);
  font-weight: 700;
  margin: 18px 0 6px;
}

.modal-desc {
  white-space: pre-line;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.6;
}

.modal-reqs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 8px 16px;
  font-size: 13.5px;
}
.modal-reqs div strong {
  display: block;
  font-size: 11.5px;
  color: var(--text-faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 2px;
}

.modal-cta {
  margin-top: 22px;
  display: flex;
}
.modal-cta .btn { width: 100%; padding: 13px; font-size: 15px; }

@media (max-width: 560px) {
  .hero h1 { font-size: 23px; }
  .header-cta span { display: none; }
  .modal { padding: 22px; }
}
