/* NUBO_SOFT_GREEN_UI_V2_START */

:root {
  --nubo-bg: #f7faf8;
  --nubo-surface: #ffffff;
  --nubo-surface-soft: #fbfcfb;

  --nubo-border: rgba(26, 57, 42, 0.08);
  --nubo-border-soft: rgba(26, 57, 42, 0.05);

  --nubo-text: #1f3529;
  --nubo-muted: #6d8174;

  /* Verde más suave y elegante */
  --nubo-green-50: #f3f8f4;
  --nubo-green-100: #e8f1eb;
  --nubo-green-200: #d5e7db;
  --nubo-green-300: #bdd6c6;
  --nubo-green-400: #94bc9f;
  --nubo-green-500: #6ea882;
  --nubo-green-600: #5a9370;
  --nubo-green-700: #49795d;
  --nubo-green-800: #395f49;

  --nubo-red-soft: #de7d69;
  --nubo-red-bg: #fcf3f0;

  --nubo-shadow-sm: 0 6px 18px rgba(19, 37, 27, 0.035);
  --nubo-shadow-md: 0 10px 28px rgba(19, 37, 27, 0.045);
}

/* Fondo */


/* Superficies */


/* Header */


/* Tabs / nav */


/* ACTIVO: ya no verde brillante */


.nav-link.is-active svg,
.nav-link.is-active i,
.nav-link.is-active span {
  color: var(--nubo-green-700) !important;
}

/* Botón principal: verde apagado, sin degradado */
.btn--primary,
button.btn--primary,
a.btn--primary,
.finance-hero__button {
  background: var(--nubo-green-600) !important;
  border: 1px solid var(--nubo-green-600) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(90, 147, 112, 0.16) !important;
}

.btn--primary:hover,
button.btn--primary:hover,
a.btn--primary:hover,
.finance-hero__button:hover {
  background: var(--nubo-green-700) !important;
  border-color: var(--nubo-green-700) !important;
  box-shadow: 0 9px 18px rgba(73, 121, 93, 0.16) !important;
}

/* Secundarios muy suaves */
.btn--secondary,
button.btn--secondary,
a.btn--secondary {
  background: #f5f9f6 !important;
  border: 1px solid var(--nubo-green-200) !important;
  color: var(--nubo-green-700) !important;
  box-shadow: none !important;
}

.btn--secondary:hover,
button.btn--secondary:hover,
a.btn--secondary:hover {
  background: var(--nubo-green-100) !important;
  border-color: var(--nubo-green-300) !important;
}

/* Botones de icono */
.icon-btn,
.action-btn,
.header-tool,
.btn--icon {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #395245 !important;
  box-shadow: none !important;
}

.icon-btn:hover,
.action-btn:hover,
.header-tool:hover,
.btn--icon:hover {
  background: #f4f8f5 !important;
  border-color: var(--nubo-border-soft) !important;
  color: var(--nubo-green-700) !important;
}

/* Buscador */
.search-input,
.header-search input,
input[type="search"] {
  background: #ffffff !important;
  border: 1px solid var(--nubo-border) !important;
  box-shadow: none !important;
}

.search-input:focus,
.header-search input:focus,
input[type="search"]:focus {
  border-color: rgba(90, 147, 112, 0.28) !important;
  box-shadow: 0 0 0 4px rgba(110, 168, 130, 0.10) !important;
}

/* Iconos KPI */
.kpi-icon,
.finance-metric__icon,
.summary-tile__icon,
.mini-icon,
.cell-main__icon {
  background: var(--nubo-green-100) !important;
  color: var(--nubo-green-700) !important;
  box-shadow: none !important;
}

/* Texto positivo */
.is-positive,
.text-success,
.success,
.value-positive {
  color: var(--nubo-green-700) !important;
}

/* Texto negativo */
.is-negative,
.text-danger,
.danger,
.value-negative,
.expense {
  color: var(--nubo-red-soft) !important;
}

/* Chips */
.badge,
.tag,
.pill {
  background: #f6f8f7 !important;
  color: #607367 !important;
  border: 1px solid var(--nubo-border-soft) !important;
  box-shadow: none !important;
}

/* Segment controls */
.segmented,
.segmented-control {
  background: #f6f9f7 !important;
  border: 1px solid var(--nubo-border-soft) !important;
  box-shadow: none !important;
}

.segmented button,
.segmented-control button {
  color: #708377 !important;
}

.segmented button.is-active,
.segmented-control button.is-active {
  background: #ffffff !important;
  color: var(--nubo-green-700) !important;
  border: 1px solid var(--nubo-green-200) !important;
  box-shadow: 0 4px 10px rgba(19, 37, 27, 0.035) !important;
}

/* Progress */
.progress {
  background: #edf3ef !important;
}

.progress span {
  background: var(--nubo-green-500) !important;
}

/* Donut / ring */
.summary-ring {
  background: conic-gradient(
    var(--nubo-green-500) var(--ring, 0%),
    #e8efea 0
  ) !important;
}

.finance-wallet__ring {
  background: conic-gradient(
    var(--nubo-green-500) 0 72%,
    #e8efea 72% 100%
  ) !important;
  box-shadow: none !important;
}

.finance-wallet__ring::before {
  background: #ffffff !important;
}

/* Insights */
.insight,
.nubo-ai-insight-card {
  border: 1px solid var(--nubo-border-soft) !important;
  box-shadow: none !important;
}

.insight.is-trend,
.nubo-ai-insight-card.is-trend {
  background: #f4f8f5 !important;
  color: var(--nubo-green-700) !important;
}

/* Avatar */
.avatar {
  background: var(--nubo-green-100) !important;
  color: var(--nubo-green-700) !important;
  box-shadow: none !important;
}

/* Scrollbar discreto */
* {
  scrollbar-color: #d4e2d9 transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background: #d4e2d9;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #c2d7ca;
}

/* NUBO_SOFT_GREEN_UI_V2_END */


/* NUBO_FINANCE_HERO_V4_START */

.finance-hero {
  position: relative;
  min-height: 252px;
  margin: 18px 0;
  display: grid;
  grid-template-columns:
    minmax(0, 1.12fr)
    minmax(370px, .88fr);
  overflow: hidden;
  border: 1px solid #dfe8e1;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 12px 34px
    rgba(33, 58, 44, .045);
}

.finance-hero::before {
  content: "";
  position: absolute;
  top: -185px;
  left: 34%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background:
    rgba(220, 234, 224, .32);
  pointer-events: none;
}

.finance-hero__left {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 32px 18px 28px 38px;
  display: grid;
  grid-template-columns:
    minmax(225px, .72fr)
    minmax(280px, 1.28fr);
  align-items: center;
  gap: 18px;
}

.finance-hero__content {
  position: relative;
  z-index: 2;
}

.finance-hero__eyebrow {
  display: block;
  color: #304b3a;
  font-size: 13px;
  font-weight: 750;
}

.finance-hero__amount {
  display: block;
  margin-top: 11px;
  color: #20352a;
  font-size:
    clamp(34px, 3vw, 47px);
  font-weight: 840;
  line-height: 1;
  letter-spacing: -.045em;
}

.finance-hero__trend {
  width: max-content;
  max-width: 100%;
  margin-top: 16px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #edf4ef;
  color: #4f795d;
  font-size: 10.5px;
  font-weight: 730;
}

.finance-hero__trend.is-negative {
  background: #fbefec;
  color: #b96757;
}

.finance-hero__trend.is-neutral {
  background: #f2f5f3;
  color: #718277;
}

.finance-hero__description {
  max-width: 270px;
  margin: 16px 0 0;
  color: #718277;
  font-size: 11.5px;
  line-height: 1.55;
}

.finance-hero__button {
  min-height: 39px;
  margin-top: 17px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #5f8f6e;
  border-radius: 999px;
  background: #5f8f6e;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 740;
  box-shadow:
    0 7px 17px
    rgba(76, 121, 89, .14);
  cursor: pointer;
  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.finance-hero__button:hover {
  border-color: #4f795d;
  background: #4f795d;
  transform: translateY(-1px);
}

.finance-hero-chart {
  align-self: end;
  min-width: 0;
  height: 178px;
}

.finance-hero-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.finance-hero-chart__area {
  fill:
    rgba(95, 143, 110, .09);
}

.finance-hero-chart__line {
  stroke: #5f8f6e;
  stroke-width: 3.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-hero-chart__point {
  fill: #ffffff;
  stroke: #5f8f6e;
  stroke-width: 3.25;
}

.finance-hero__right {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 32px 36px 28px;
  display: grid;
  grid-template-columns:
    minmax(210px, 1fr)
    138px;
  align-items: center;
  gap: 24px;
  border-left:
    1px solid #e2eae4;
  background:
    rgba(249, 252, 250, .58);
}

.finance-net-worth__caption {
  display: block;
  margin-top: 12px;
  color: #718277;
  font-size: 10.5px;
  line-height: 1.45;
}

.finance-net-worth__details {
  margin-top: 27px;
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.finance-net-worth__details > div + div {
  padding-left: 18px;
  border-left:
    1px solid #e1e9e3;
}

.finance-net-worth__details span {
  display: block;
  color: #718277;
  font-size: 10.5px;
}

.finance-net-worth__details strong {
  display: block;
  margin-top: 7px;
  color: #304b3a;
  font-size: 14px;
  font-weight: 800;
}

.finance-net-worth__details .is-income {
  color: #4f795d;
}

.finance-net-worth__details .is-expense {
  color: #b96757;
}

.finance-wallet-ring {
  position: relative;
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(
      #6f9d7c 0 72%,
      #e7eee9 72% 100%
    );
}

.finance-wallet-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px #e0e8e2;
}

.finance-wallet-ring span {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: #5f8f6e;
  color: #ffffff;
}

.finance-wallet-ring .icon {
  width: 27px;
  height: 27px;
}


/* Cuatro métricas */

.finance-metrics {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.finance-metric {
  min-width: 0;
  min-height: 104px;
  padding: 17px 19px;
  display: grid;
  grid-template-columns:
    52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid #e0e8e2;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 7px 22px
    rgba(33, 58, 44, .035);
}

.finance-metric__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf4ef;
  color: #4f795d;
}

.finance-metric__icon.is-expense {
  background: #fbefec;
  color: #b96757;
}

.finance-metric__icon.is-goals {
  background: #f0f3ee;
  color: #687c6c;
}

.finance-metric__icon .icon {
  width: 23px;
  height: 23px;
}

.finance-metric__copy {
  min-width: 0;
}

.finance-metric__label {
  display: block;
  color: #304b3a;
  font-size: 11.5px;
  font-weight: 710;
}

.finance-metric__value {
  min-width: 0;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.finance-metric__value strong {
  min-width: 0;
  overflow: hidden;
  color: #20352a;
  font-size:
    clamp(18px, 1.5vw, 23px);
  font-weight: 820;
  letter-spacing: -.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-metric__value span {
  color: #4f795d;
  font-size: 11px;
  font-weight: 800;
}

.finance-metric__value span.is-negative {
  color: #b96757;
}

.finance-metric__copy small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #718277;
  font-size: 9.8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}


@media (max-width: 1180px) {
  .finance-hero {
    grid-template-columns: 1fr;
  }

  .finance-hero__right {
    border-top:
      1px solid #e2eae4;
    border-left: 0;
  }

  .finance-metrics {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .finance-hero {
    border-radius: 20px;
  }

  .finance-hero__left {
    padding: 26px 21px;
    grid-template-columns: 1fr;
  }

  .finance-hero-chart {
    height: 140px;
  }

  .finance-hero__right {
    padding: 26px 21px;
    grid-template-columns: 1fr;
  }

  .finance-wallet-ring {
    display: none;
  }

  .finance-metrics {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .finance-metrics::-webkit-scrollbar {
    display: none;
  }

  .finance-metric {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }
}

/* NUBO_FINANCE_HERO_V4_END */
