:root {
  --bg: #f3f6f4;
  --panel: #fff;
  --ink: #1d2b2c;
  --muted: #576766;
  --green: #087d64;
  --blue: #345f79;
  --amber: #e9ad34;
  --line: #d9e3de;
}

html { scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
a, button { transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease; }
a:hover { text-decoration: none; }
button, .btn { border-radius: 8px; background: var(--green); }
button:hover, .btn:hover { background: #076a55; color: #fff; }
.btn.light, button.light { background: #edf3f0; color: #1d3934; border: 1px solid var(--line); }
.btn.light:hover, button.light:hover { background: #dcebe4; color: #173a32; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #cf8620;
  outline-offset: 3px;
}
input, select, textarea { border-color: #cbd9d3; background: #fff; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #6b7977; }
.card, .panel, .client-card, .opportunity-card, .settings-card, .detail-card,
.client-stats article, .profile-panel, .filter-panel { border-radius: 8px; }

/* Public pages */
.site-home, .public-opportunities, .guide-page { background: var(--bg); color: var(--ink); }
.public-nav {
  position: relative;
  z-index: 30;
  min-height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.public-nav .brand, .guide-nav .brand, .auth-brand { color: var(--ink); }
.public-nav .brand span, .guide-nav .brand span, .auth-brand span { color: var(--green); }
.public-nav nav a, .public-actions > a:not(.btn) { color: #415451; }
.public-nav nav a:hover, .public-actions > a:not(.btn):hover { color: var(--green); }
.public-nav nav a[aria-current="page"] { color: var(--green); }
.public-nav nav .mobile-login { display: none; }
.public-nav-toggle { display: none; }

.home-hero {
  display: flex;
  align-items: center;
  max-height: none;
  min-height: clamp(520px, 74svh, 670px);
  padding: 58px max(24px, calc((100vw - 1160px) / 2));
  background: #173b35 url("hero-proveedores-v035.png") center 42% / cover no-repeat;
}
.home-hero::before {
  background: linear-gradient(90deg, rgba(12, 36, 33, .94) 0%, rgba(13, 39, 36, .86) 39%, rgba(12, 34, 31, .20) 100%);
}
.home-hero-content { max-width: 670px; }
.home-hero h1 { max-width: 600px; font-size: clamp(48px, 5vw, 72px); line-height: 1.03; }
.home-lead { color: #f1f6f2; font-size: 19px; }
.home-kicker, .home-heading > span, .benefit-copy > span, .home-cta span { color: #8be0b9; }
.hero-actions .btn, .home-cta .btn { background: #f0b541; color: #22302a; }
.hero-actions .btn:hover, .home-cta .btn:hover { background: #ffd072; color: #22302a; }
.hero-secondary { color: #fff; }
.hero-secondary:hover { color: #a9e9c9; }
.hero-trust { color: #e8f2ed; }
.hero-trust li::before { color: #95dfb9; }
.home-source { padding-top: 20px; }
.source-notice { border-color: #c5dfd1; background: #eaf5ef; }
.source-notice strong { color: var(--green); }
.home-heading h2, .benefit-copy h2, .seo-faq h2 { color: #20312e; }
.home-heading p, .benefit-copy p, .benefit-list p, .steps-grid p { color: #536562; }
.steps-grid b, .home-heading > span, .benefit-copy > span { color: var(--green); }
.home-benefits { background: #fff; }
.home-cta, .public-account-cta { background: #20443b; border-radius: 8px; }
.site-home .site-footer, .public-opportunities .site-footer { background: #fff; }
.seo-faq details, .guide-grid a { border-radius: 8px; }
.seo-faq summary:hover, .guide-grid a:hover { color: var(--green); }

.opportunities-intro { background: #20443b; }
.opportunities-intro p { color: #e0eee6; }
.public-opportunities .filter-panel { box-shadow: 0 12px 32px rgba(21, 54, 43, .08); }
.filter-summary strong { background: #20443b; }
.filter-summary span { color: #4b5d58; }
.filter-summary a { font-weight: 700; }
.opportunity-card { border-color: var(--line); box-shadow: 0 5px 18px rgba(21, 54, 43, .04); }
.opportunity-card:hover { box-shadow: 0 12px 28px rgba(21, 54, 43, .10); }
.opportunity-card h2, .opportunity-card h3 { color: #20312e; }
.opportunity-card dd { color: var(--green); }
.mini-tag, .badge { background: #e5f4ec; color: #126b4e; }
.mini-tag.blue { background: #e8f1f5; color: #305b70; }
.mini-tag.amber { background: #fff2d7; color: #845300; }
.guide-article { border-radius: 8px; box-shadow: 0 10px 28px rgba(21, 54, 43, .07); }

/* Articles */
.home-articles { border-top: 1px solid var(--line); }
.articles-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.articles-heading > div { max-width: 660px; }
.articles-heading span, .article-page-heading > span { color: var(--green); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.articles-heading h2, .article-page-heading h1 { margin: 7px 0 8px; color: #20312e; }
.articles-heading p, .article-page-heading p { margin: 0; color: var(--muted); }
.articles-heading > a, .article-read, .article-back { color: var(--green); font-weight: 750; }
.articles-heading > a:hover, .article-read:hover, .article-back:hover { text-decoration: underline; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.article-card { display: flex; flex-direction: column; min-width: 0; padding: 23px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.article-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: #65736e; font-size: 12px; }
.article-card-meta span { color: #126b4e; font-weight: 800; }
.article-card h3 { margin: 14px 0 10px; font-size: 21px; line-height: 1.3; }
.article-card h3 a { color: #20312e; }
.article-card h3 a:hover { color: var(--green); }
.article-card p { margin: 0 0 20px; color: var(--muted); line-height: 1.55; }
.article-card .article-read { margin-top: auto; }
.article-site { background: var(--bg); color: var(--ink); min-height: 100vh; }
.article-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px max(24px, calc((100vw - 1160px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.article-nav .brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; }
.article-nav .brand img { width: 34px; height: 34px; object-fit: contain; }
.article-nav .brand span { color: var(--green); }
.article-nav nav { display: flex; gap: 20px; }
.article-nav nav a { color: #415451; font-weight: 700; }
.article-nav nav a:hover { color: var(--green); }
.article-listing { max-width: 1160px; margin: 0 auto; padding: 60px 24px 80px; }
.article-page-heading { max-width: 700px; margin-bottom: 32px; }
.article-page-heading h1 { font-size: 40px; line-height: 1.15; }
.article-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 30px; }
.article-pagination a { color: var(--green); font-weight: 700; }
.article-detail { max-width: 780px; margin: 0 auto; padding: 48px 24px 80px; }
.article-back { display: inline-block; margin-bottom: 30px; }
.article-detail h1 { margin: 16px 0; font-size: 42px; line-height: 1.16; color: #20312e; }
.article-deck { margin: 0 0 32px; padding-bottom: 27px; border-bottom: 1px solid var(--line); color: #495d56; font-size: 20px; line-height: 1.5; }
.article-prose { max-width: 70ch; font-size: 17px; line-height: 1.75; }
.article-prose h2 { margin: 36px 0 10px; color: #20312e; font-size: 25px; line-height: 1.25; }
.article-prose p, .article-prose ul { margin: 0 0 22px; }
.article-prose ul { padding-left: 24px; }
.article-prose li { margin-bottom: 9px; }
.article-sources { margin: 36px 0 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-sources h2 { font-size: 19px; }
.article-sources ul { padding-left: 20px; }
.article-sources a { color: var(--green); overflow-wrap: anywhere; }
.article-disclaimer { margin: 24px 0; padding: 15px 18px; background: #e5f1ea; border-left: 3px solid var(--green); color: #314b40; }
.article-site .site-footer { background: #fff; }
.article-admin-editor { max-width: 980px; }
.article-admin-editor form { display: grid; gap: 8px; }
.article-admin-editor input, .article-admin-editor textarea, .article-admin-editor select { width: 100%; max-width: none; }
.article-admin-editor textarea { resize: vertical; }
.article-admin-editor small { color: var(--muted); }
.article-admin-row { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.article-admin-row > div { min-width: 0; }
.article-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.article-admin-list { margin-top: 20px; }
.article-admin-list .table-scroll { max-width: 100%; overflow-x: auto; }
.article-admin-list table { width: 100%; min-width: 600px; }

/* Member pages */
.client { background: var(--bg); }
.client-nav { background: #20332f; box-shadow: 0 4px 16px rgba(10, 35, 28, .12); }
.client-nav .brand span { color: #8ce0b7; }
.client-nav a:hover { color: #fff; }
.client-nav .nav-exit { background: var(--green); }
.client-hero { background: #245449; border-radius: 0; padding-top: 32px; }
.client-hero::after { display: none; }
.client-profile h1 { line-height: 1.18; }
.upgrade { color: #17644c; }
.client-content { margin-top: -34px; }
.client-stats article, .client-card, .profile-panel, .tool-grid .tool-link {
  border-color: var(--line);
  box-shadow: 0 7px 22px rgba(21, 54, 43, .06);
}
.client-stats strong, .tool-grid strong, .profile-grid strong { color: #20312e; }
.section-head h2 { border-left-color: var(--green); }
.section-head a { color: var(--green); }
.section-head a:hover { text-decoration: underline; }
.filter-panel { border-color: var(--line); box-shadow: 0 6px 22px rgba(21, 54, 43, .05); }
.filter-panel label { color: #324d44; }
.tool-grid .tool-link {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px;
  min-height: 170px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}
.tool-grid .tool-link strong { margin: 0; }
.tool-grid .tool-link p { margin: 0; color: var(--muted); line-height: 1.45; }
.tool-grid .tool-link span { margin-top: auto; color: var(--green); font-size: 13px; font-weight: 800; }
.tool-grid .tool-link:hover, .tool-grid .tool-link:focus-visible {
  border-color: #81bea0;
  box-shadow: 0 12px 28px rgba(21, 54, 43, .12);
}
.tool-grid .tool-link:hover span { text-decoration: underline; }
.auth { background: #eef4f0; }
.auth-card { border-top-color: var(--green); }
.registration-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.app aside { background: #20332f; color: #e3efe8; }
.app aside a { color: #e3efe8; }
.app aside a:hover, .app aside a:focus-visible { background: #315246; color: #fff; }
.app section { min-width: 0; }
.user-security-form { margin-top: 18px; }
.user-security-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.user-security-actions button.danger { background: #a53b32; color: #fff; }
.user-security-actions button.danger:hover { background: #842d27; }
.user-security-form .table-scroll { max-width: 100%; overflow-x: auto; }
.user-security-form table { min-width: 820px; }
.user-security-form td:first-child, .user-security-form th:first-child { width: 44px; text-align: center; }
.user-security-form input[type="checkbox"] { width: 18px; height: 18px; margin: 0; }
.suspect-user { background: #fff8e8; }
.spam-flag { display: inline-block; margin-top: 4px; padding: 3px 7px; border-radius: 999px; background: #ffe6ad; color: #714700; font-size: 11px; font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-nav { height: auto; min-height: 70px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 18px; }
  .public-nav .brand { flex: 1; min-width: 0; }
  .public-nav .public-actions { display: none; }
  .public-nav .public-nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #e8f1eb;
    border: 1px solid #cbded1;
    color: #174b38;
    font-size: 25px;
    line-height: 1;
  }
  .public-nav nav, .public-nav:not(.has-toggle) nav, .public-nav.has-toggle.is-open nav {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .public-nav.has-toggle nav { display: none; }
  .public-nav nav a { display: block; padding: 11px 8px; border-radius: 6px; }
  .public-nav nav a:hover { background: #edf5ef; }
  .public-nav nav .mobile-login { display: block; }
  .home-hero { min-height: 570px; padding: 48px 26px; background-position: 60% center; }
  .home-hero::before { background: rgba(12, 36, 33, .72); }
  .client-nav { background: #20332f; }
}

@media (max-width: 680px) {
  .articles-heading { align-items: start; flex-direction: column; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card { padding: 20px; }
  .article-nav { flex-wrap: wrap; padding: 12px 20px; }
  .article-nav nav { width: 100%; gap: 16px; }
  .article-listing { padding: 38px 20px 60px; }
  .article-page-heading h1, .article-detail h1 { font-size: 32px; }
  .article-detail { padding: 36px 20px 60px; }
  .article-deck { font-size: 18px; }
  .article-admin-row { grid-template-columns: 1fr; }
  .public-nav .brand { font-size: 17px; }
  .public-nav .brand img { flex: 0 0 34px; }
  .home-hero { min-height: min(610px, calc(100svh - 72px)); padding: 42px 20px 46px; background-position: 68% center; }
  .home-hero::before { background: rgba(12, 36, 33, .76); }
  .home-hero h1 { font-size: 44px; }
  .home-lead { font-size: 17px; }
  .hero-actions { gap: 12px; margin-top: 22px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-trust { gap: 8px 14px; font-size: 12px; }
  .home-section { padding-top: 50px; padding-bottom: 50px; }
  .filter-panel { gap: 10px; }
  .filter-panel button { width: 100%; }
  .tool-grid .tool-link { min-height: 140px; }
  .guide-nav { flex-wrap: wrap; }
  .guide-nav > div { align-items: flex-start; }
}

@media (max-width: 400px) and (max-height: 700px) {
  .home-hero { padding: 30px 18px 32px; }
  .home-hero h1 { font-size: 38px; }
  .home-lead { font-size: 15px; }
  .hero-actions { margin-top: 16px; }
  .hero-trust { margin-top: 18px; }
}

.home-opportunities-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.home-opportunities-heading > div { min-width: 0; }
.home-opportunities-heading span { color: var(--green); font-weight: 700; }
.home-opportunities-heading h2 { margin: 8px 0 10px; font-size: 32px; line-height: 1.2; }
.home-opportunities-heading p { margin: 0; color: var(--muted); }
.home-opportunities-heading > a { flex-shrink: 0; text-align: center; }
.home-opportunities-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.home-opportunity-card { display: flex; flex-direction: column; min-width: 0; box-shadow: none; overflow-wrap: anywhere; }
.home-opportunity-tags { min-height: 32px; }
.home-opportunity-tags .mini-tag { max-width: 100%; white-space: normal; }
.home-opportunity-card h3 { font-size: 16px; text-transform: none; line-height: 1.45; margin: 14px 0 10px; }
.home-opportunity-card h3 a { color: var(--ink); }
.home-opportunity-card h3 a:hover { color: var(--green); text-decoration: underline; }
.home-opportunity-card .home-opportunity-entity { font-size: 14px; margin: 0 0 auto; min-height: 0; }
.home-opportunity-card dl { margin: 18px 0 12px; grid-template-columns: minmax(0, 1fr) auto; }
.home-opportunity-card dd { font-size: 15px; }
.home-opportunity-dates { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.home-opportunity-card small { display: block; margin: 10px 0 16px; color: var(--muted); }
.home-opportunity-link { width: 100%; text-align: center; }
.home-opportunities-empty { border-top: 1px solid var(--line); padding: 24px 0; }
.home-opportunities-empty p { color: var(--muted); }
@media (max-width: 1100px) {
  .home-opportunities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .home-opportunities-heading { flex-direction: column; align-items: stretch; gap: 18px; }
  .home-opportunities-heading h2 { font-size: 28px; }
  .home-opportunities-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
