/* =========================================================
   Home — We Don't Just Build. We Invest In You. (tabs)
   ========================================================= */

.home-invest {
  background-color: #ffffff;
  padding: 70px 40px;
}

.home-invest__container {
  max-width: 1280px;
  margin: 0 auto;
}

.home-invest__head {
  text-align: center;
  margin: 0 auto 48px;
}

.home-invest__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2-desktop);
  font-weight: 700;
  color: var(--base-cod-gray-90);
  margin-bottom: 16px;
}

.home-invest__subtitle {
  font-family: "Nunito", sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--color-text-body);
  line-height: 1;
}

/* Tab nav */
.home-invest__nav-wrap {
  position: relative;
}

.home-invest__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 40px;
}

.home-invest__nav-btn {
  font-size: var(--body-sm);
  color: #9c9c9c;
  background-color: #fff;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 7px 25px;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base);
  font-family: "Oxygen", sans-serif;
}

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

.home-invest__nav-btn.is-active {
  background-color: var(--primary-royal-blue-20);
  color: var(--color-primary);
  font-weight: 700;
}

/* Panels */
.home-invest__panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
  background-color: var(--base-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.home-invest__panel[hidden] {
  display: none;
}

.home-invest__panel-info {
  background-color: var(--base-white);
  padding: 48px;
}

.home-invest__panel-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
}

.home-invest__panel-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-invest__panel-number-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.home-invest__panel-number {
  flex: 0 0 auto;
  font-family: "Nunito", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #404040;
}

.home-invest__panel-number-line {
  flex: 1 1 auto;
  height: 1px;
  background-color: var(--color-border-subtle);
}

.home-invest__panel-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3-desktop);
  font-weight: 700;
  color: var(--base-cod-gray-80);
  margin-bottom: 16px;
}

.home-invest__panel-desc {
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #404040;
  line-height: 1.6;
  margin-bottom: 24px;
}

.home-invest__panel-list {
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #404040;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-invest__panel-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-invest__check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--base-cod-gray-90);
  display: inline-flex;
}

/* Stat panel */
.home-invest__panel-stat {
  background-color: #f2f2f2;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.home-invest__stat-headline {
  font-family: "Oxygen", sans-serif;
  font-size: 100px;
  font-weight: 700;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  color: #554fe0;
  line-height: 1;
}

.home-invest__stat-subheadline {
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: #404040;
  margin-top: 25px;
  margin-bottom: 28px;
}

.home-invest__stat-rows {
  display: flex;
  flex-direction: column;
  width: 319px;
  margin: 0 auto;
  gap: 0;
  background-color: var(--base-white);
  border-radius: var(--radius-md);
}

.home-invest__stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--base-white);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--body-sm);
}

.home-invest__stat-row.home-invest__stat-row--2 {
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.home-invest__stat-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--base-cod-gray-90);
  font-weight: 600;
}

.home-invest__stat-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.home-invest__stat-value {
  font-family: "Oxygen", sans-serif;
  font-weight: 700;
  color: var(--base-cod-gray-90);
  background-color: var(--primary-royal-blue-70);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: var(--body-xs);
}

/* Colores por fila: 1 = azul, 2 = rosa, 3 = naranja */
.home-invest__stat-row--2 .home-invest__stat-dot {
  background-color: var(--primary-brilliant-rose-100);
}

.home-invest__stat-row--2 .home-invest__stat-value {
  background-color: var(--primary-brilliant-rose-80);
}

.home-invest__stat-row--3 .home-invest__stat-dot {
  background-color: var(--primary-apricot-110);
}

.home-invest__stat-row--3 .home-invest__stat-value {
  background-color: var(--primary-apricot-80);
}

/* Footer: CTA */
.home-invest__footer {
  text-align: center;
  margin-top: 48px;
}

.home-invest__cta {
  /* position/overflow/hover-fill (::before) del efecto de relleno circular
     viven centralizados en design-system.css (sección 4. COMPONENTES) */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 48px;
  line-height: 1;
  text-decoration: none;
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: "Nunito", sans-serif;
  font-size: 20px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-invest__cta:hover {
  color: var(--base-white);
  transform: scale(1.05);
  opacity: 0.9;
}

.home-invest__faq {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: var(--body-xs);
  color: var(--color-text-muted);
}

.home-invest__faq a {
  color: var(--color-primary);
  font-weight: 700;
}

/* ── Tablet ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .home-invest {
    padding: 72px 24px;
  }

  .home-invest__title {
    font-size: 44px;
  }

  .home-invest__panel-title {
    font-size: 24px;
  }

  .home-invest__panel {
    grid-template-columns: 1fr;
  }

  .home-invest__panel-info,
  .home-invest__panel-stat {
    padding: 32px;
  }
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .home-invest {
    padding: 30px 20px;
  }

  .home-invest__head {
    text-align: center;
    margin-bottom: 32px;
  }

  .home-invest__title {
    font-size: 30px;
  }

  .home-invest__subtitle {
    font-size: 20px;
  }

  .home-invest__panel-title {
    font-size: 20px;
  }

  .home-invest__nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    margin: 0 -20px 24px;
    padding-left: 20px;
    padding-right: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .home-invest__nav::-webkit-scrollbar {
    display: none;
  }

  .home-invest__nav-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .home-invest__panel-info,
  .home-invest__panel-stat {
    padding: 24px;
  }

  .home-invest__stat-headline {
    font-size: 80px;
  }

  .home-invest__stat-rows {
    width: 100%;
  }

  .home-invest__cta {
    width: 100%;
  }
}
