.home-page {
  --home-ink: #18233a;
  --home-muted: #4c5b73;
  --home-blue: #2049dc;
  --home-line: #dce4f1;
  --home-wash: #f3f6fd;
  margin: 0;
  background: #fff;
  color: var(--home-ink);
  font: 1rem/1.55 Roboto, system-ui, sans-serif;
}

.home-page *, .home-page *::before, .home-page *::after { box-sizing: border-box; }
.home-page :is(h1, h2, h3, p) { margin: 0; }
.home-page :focus-visible { outline: 2px solid var(--home-blue); outline-offset: 4px; }
.home-page section[id] { scroll-margin-top: 92px; }

.home-frame {
  width: min(1200px, calc(100% - 56px));
  margin-inline: auto;
}

.home-skip {
  position: absolute;
  z-index: 40;
  top: .75rem;
  left: .75rem;
  padding: .5rem 1rem;
  background: #fff;
  color: var(--home-blue);
  transform: translateY(-160%);
}

.home-skip:focus { transform: none; }

.home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--home-line);
  background: #fff;
}

.home-header-inner {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.home-header .home-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  text-decoration: none;
}

.home-brand img { display: block; border-radius: 9px; }

.home-header .header-nav,
.home-account-links {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 1.75rem);
}

.home-account-links {
  padding-left: clamp(.9rem, 2vw, 1.75rem);
  border-left: 1px solid var(--home-line);
}

.home-header .header-nav a:not(.home-button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--home-muted);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.home-header .header-nav a:not(.home-button):hover,
.home-text-link:hover { text-decoration: underline; }

.home-header .header-menu-toggle { display: none; }

.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 4.8vw, 4.65rem);
}

.home-kicker {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--home-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-kicker span {
  width: .72rem;
  height: .72rem;
  flex: 0 0 .72rem;
  border-radius: 4px;
  background: #d4e77b;
  transform: rotate(-12deg);
}

.home-hero h1 {
  margin-block: .8rem 1rem;
  font-size: clamp(2.8rem, 5.2vw, 4.95rem);
  font-weight: 900;
  line-height: .99;
  letter-spacing: -.064em;
  text-wrap: balance;
}

.home-hero h1 em {
  display: block;
  color: var(--home-blue);
  font-style: normal;
}

.home-hero-text {
  max-width: 32ch;
  color: var(--home-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}

.home-hero-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5%;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-block: 1.75rem .95rem;
}

.home-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .72rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.home-button--small { min-height: 44px; padding: .55rem .9rem; }
.home-button--primary { background: var(--home-blue); color: #fff; }
.home-button--primary:hover { background: #1536b4; color: #fff; }
.home-button--outline { border-color: #b5c5ed; background: #fff; color: var(--home-blue); }
.home-button--outline:hover { background: var(--home-wash); }

.home-hero-note { color: var(--home-muted); font-size: .86rem; }
.home-hero-note i { margin-right: .25rem; color: var(--home-blue); }

.home-rubros {
  border-block: 1px solid var(--home-line);
  background: var(--home-wash);
}

.home-rubros-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem 1.35rem;
  padding-block: 1.1rem;
}

.home-rubros h2 { flex-shrink: 0; font-size: 1rem; }
.home-rubros .home-text-link { margin-left: auto; }

.home-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.home-chips a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .42rem .75rem;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: #fff;
  color: var(--home-ink);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}

.home-chips i { color: var(--home-blue); }
.home-chips a:hover { border-color: var(--home-blue); color: var(--home-blue); }

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  color: var(--home-blue);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}

.home-section { padding-block: clamp(2.75rem, 6vw, 5.4rem); }
.home-section h2 {
  margin-top: .28rem;
  font-size: clamp(1.85rem, 3.3vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -.043em;
  font-weight: 800;
}

.home-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-bottom: 1.25rem;
}

.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: .9rem;
}

.opportunity-card, .home-empty, .opportunities-loading {
  border: 1px solid var(--home-line);
  border-radius: 14px;
  padding: 1.15rem;
  background: #fff;
}

.opportunity-card {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  color: var(--home-ink);
  text-decoration: none;
}

.opportunity-card:hover { border-color: var(--home-blue); }
.opportunity-top, .opportunity-cta { display: flex; align-items: center; gap: .5rem; }
.opportunity-top { flex-wrap: wrap; }
.opportunity-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--home-wash); color: var(--home-blue); }
.opportunity-tag { color: var(--home-blue); font-size: .82rem; font-weight: 700; overflow-wrap: anywhere; }
.opportunity-card h3 { font-size: 1.12rem; overflow-wrap: anywhere; }
.opportunity-card p, .opportunities-loading { color: var(--home-muted); font-size: .92rem; }
.opportunity-card p { overflow-wrap: anywhere; }
.opportunity-cta { margin-top: auto; color: var(--home-blue); font-size: .88rem; font-weight: 700; }

.home-empty {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--home-muted);
  background: var(--home-wash);
}

.home-empty i { color: var(--home-blue); }
.home-how { background: #eef3ff; }

.home-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.home-paths article {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--home-line);
  border-radius: 16px;
  background: #fff;
}

.home-path-icon {
  display: inline-grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin-bottom: .8rem;
  border-radius: 11px;
  background: #e7efff;
  color: var(--home-blue);
}

.home-paths article:nth-child(2) .home-path-icon { background: #e4f0ab; color: var(--home-ink); }
.home-paths h3 { font-size: 1.25rem; line-height: 1.3; }
.home-paths p { margin: .5rem 0; color: var(--home-muted); }

.home-faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 1.5rem;
}

.home-questions { border-top: 1px solid var(--home-line); }
.home-questions details { border-bottom: 1px solid var(--home-line); }
.home-questions summary { min-height: 52px; padding: .8rem 0; font-weight: 700; cursor: pointer; }
.home-questions p { margin-bottom: 1rem; color: var(--home-muted); }
.home-questions a { color: var(--home-blue); }

@media (max-width: 900px) {
  .home-header-inner { min-height: 64px; }
  .home-header .header-menu-toggle {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--home-line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
  }

  .home-header .header-menu-toggle span { width: 19px; height: 2px; border-radius: 2px; background: var(--home-ink); }
  .home-header .header-nav {
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    display: none;
    width: min(21rem, 100%);
    padding: .6rem;
    border: 1px solid var(--home-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px #18233a20;
  }

  .home-header .header-nav.active, .home-account-links { display: grid; gap: 0; }
  .home-header .header-nav a:not(.home-button) { padding-inline: .6rem; }
  .home-account-links { margin-top: .4rem; padding: .4rem 0 0; border: 0; border-top: 1px solid var(--home-line); }
  .home-rubros .home-text-link { margin-left: 0; }
}

@media (max-width: 650px) {
  .home-frame { width: calc(100% - 32px); }
  .home-hero { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2rem; }
  .home-hero h1 { font-size: clamp(2.55rem, 9.2vw, 3.8rem); }
  .home-hero-art { aspect-ratio: 1.42; object-fit: cover; }
  .home-actions { margin-top: 1.3rem; }
  .home-actions a { flex: 1 1 9rem; }
  .home-rubros-inner { display: grid; gap: .65rem; }
  .home-paths, .home-faq { grid-template-columns: 1fr; }
}
