/* ====================================================================
   LIBERATI · LANDING (page-specific styles)
   Depende de: tokens.css, nav.css
   ==================================================================== */

/* ====================================================================
   HERO
   ==================================================================== */
.hero {
  background: var(--bg-2);
  padding: 30px 0 56px;
  margin-top: -72px;
  padding-top: 108px;
}

.hero-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
}

.hero-copy {
  margin-top: -4rem;
}

.hero-copy h1 {
  font-size: clamp(48px, 11.5vw, 70px);
  line-height: 1;
  letter-spacing: -.03em;
}

.hero-copy h1 .l1 {
  color: var(--brand-500);
  display: block
}

.hero-copy h1 .l2 {
  color: var(--brand-500);
  display: block
}

.hero-copy h1 .l3 {
  color: var(--brand-300);
  display: block
}

.hero-copy h1 .l4 {
  color: var(--coral);
  display: block
}

.hero-copy p {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-3);
  max-width: 560px;
}

.hero-copy .app-badges {
  margin-top: 26px
}

/* Hero illustration · SVG dashboard glassmorphic
   El SVG vive en img/hero-illustration.svg y se carga vía <img>.
   Las animaciones de elementos internos (engranaje, arcos del donut, etc.)
   están definidas dentro del SVG. Aquí solo manejamos el wrapper. */
.hero-illustration {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  perspective: 1400px;
  padding: 0;
}

.hero-illustration-inner {
  width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  animation:
    hi-entrance 1.1s cubic-bezier(.2, .7, .25, 1.05) .2s backwards,
    hi-float 7s ease-in-out 1.3s infinite;
}

.hero-illustration .hero-svg {
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 32px 60px rgba(20, 20, 43, .18)) drop-shadow(0 6px 18px rgba(20, 20, 43, .08));
}

.hero-illustration:hover .hero-illustration-inner {
  animation-play-state: paused;
  transform: translateY(-8px) rotateY(-5deg) rotateX(2deg);
  transition: transform .6s cubic-bezier(.2, .7, .25, 1);
}

/* Entrada: aparece desde abajo + escala */
@keyframes hi-entrance {
  from {
    opacity: 0;
    transform: translateY(40px) scale(.95) rotateX(8deg)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* Idle: flotar muy suave */
@keyframes hi-float {

  0%,
  100% {
    transform: translateY(0) rotate(0)
  }

  50% {
    transform: translateY(-12px) rotate(.4deg)
  }
}

@media (prefers-reduced-motion:reduce) {
  .hero-illustration-inner {
    animation: none !important
  }
}

/* ====================================================================
   CATEGORIES
   ==================================================================== */
.s-categories {
  background: var(--brand-500);
  color: #fff;
  padding: 64px 0
}

.s-categories .center {
  text-align: center
}

.s-categories .h-display {
  font-size: clamp(40px, 8vw, 64px);
  letter-spacing: -.02em;
  color: var(--off-white)
}

.s-categories .h-display .b {
  color: var(--brand-300)
}

.s-categories .lead {
  color: #f5f5f5;
  max-width: 720px;
  margin: 18px auto 0
}

.cat-grid {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: -16px;
  /* Create overlapping rows */
}

.cat-chip {
  width: 100px;
  height: 100px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .2);
  transition: transform .2s ease;
}

.cat-chip svg {
  width: 38px;
  height: 38px;
}

/* Playful staggered rotations */
.cat-item:nth-child(1) .cat-chip {
  transform: rotate(-5deg);
  z-index: 1;
  position: relative;
}

.cat-item:nth-child(2) .cat-chip {
  transform: translateY(4px) rotate(3deg);
  z-index: 1;
  position: relative;
}

.cat-item:nth-child(3) .cat-chip {
  transform: rotate(-4deg);
  z-index: 1;
  position: relative;
}

.cat-item:nth-child(4) .cat-chip {
  transform: rotate(4deg);
  z-index: 2;
  position: relative;
}

.cat-item:nth-child(5) .cat-chip {
  transform: translateY(-4px) rotate(-3deg);
  z-index: 2;
  position: relative;
}

.cat-item:nth-child(6) .cat-chip {
  transform: rotate(5deg);
  z-index: 2;
  position: relative;
}

.cat-item:nth-child(7) .cat-chip {
  transform: rotate(-2deg);
  z-index: 3;
  position: relative;
}

.cat-item:nth-child(1):hover .cat-chip {
  transform: rotate(-5deg) scale(1.05);
}

.cat-item:nth-child(2):hover .cat-chip {
  transform: translateY(4px) rotate(3deg) scale(1.05);
}

.cat-item:nth-child(3):hover .cat-chip {
  transform: rotate(-4deg) scale(1.05);
}

.cat-item:nth-child(4):hover .cat-chip {
  transform: rotate(4deg) scale(1.05);
}

.cat-item:nth-child(5):hover .cat-chip {
  transform: translateY(-4px) rotate(-3deg) scale(1.05);
}

.cat-item:nth-child(6):hover .cat-chip {
  transform: rotate(5deg) scale(1.05);
}

.cat-item:nth-child(7):hover .cat-chip {
  transform: rotate(-2deg) scale(1.05);
}

.cat-label {
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  margin-top: 0;
  line-height: 1;
}

.bg-hogar {
  background: var(--cat-hogar)
}

.bg-alim {
  background: var(--cat-alim)
}

.bg-salud {
  background: var(--cat-salud)
}

.bg-vest {
  background: var(--cat-vest)
}

.bg-turismo {
  background: var(--cat-turismo)
}

.bg-edu {
  background: var(--cat-edu)
}

.bg-varios {
  background: var(--cat-varios)
}

/* ====================================================================
   ONBOARDING (4 pasos)
   ==================================================================== */
.s-onboarding {
  background: var(--brand-700);
  color: #fff;
  padding: 70px 0
}

.s-onboarding .center {
  text-align: center
}

.s-onboarding .h-display {
  font-size: clamp(40px, 8vw, 64px);
  color: #fff;
  letter-spacing: -.04em;
  font-weight: 400
}

.s-onboarding .h-display .accent {
  color: var(--coral);
  font-family: var(--f-jakarta);
  font-style: italic;
  font-weight: 700;
  display: inline-block;
  margin-left: .18em
}

.s-onboarding .sub {
  font-weight: 700;
  font-size: 18px;
  margin-top: 18px;
  color: #fff
}

.s-onboarding .lead {
  color: #b8b8c8;
  margin-top: 8px;
  max-width: 720px;
  margin-inline: auto
}

.steps {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  text-align: left;
}

.step {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  padding: 24px;
  position: relative;
  backdrop-filter: blur(6px);
}

.step.white {
  background: #D3D6FF;
  border-color: transparent
}

.step--02 {
  background: #939AF4;
}

.step--03 {
  background: #656EE0;
}

.step--04 {
  background: #4848C3;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 20%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 14px;
  margin-bottom: 18px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em
}

.step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-family: var(--f-display)
}

.step.white p {
  color: var(--brand-700)
}

.step--01 .step-num {
  background: var(--coral)
}

.step--01 h3 {
  color: var(--coral)
}

.step--02 .step-num {
  background: var(--yellow);
  color: #3a2a00
}

.step--02 h3 {
  color: var(--yellow)
}

.step--02 p {
  color: #fff
}

.step--03 .step-num {
  background: var(--green);
  color: #1b3700
}

.step--03 h3 {
  color: var(--green)
}

.step--03 p {
  color: #fff
}

.step--04 .step-num {
  background: var(--off-white);
  color: var(--brand-700)
}

.step--04 h3 {
  color: var(--off-white)
}

.step--04 p {
  color: #fff
}

/* ====================================================================
   PRESUPUESTO
   ==================================================================== */
.s-presupuesto {
  background: var(--brand-500);
  color: #fff;
  padding: 70px 0
}

.s-presupuesto .center {
  text-align: center
}

.s-presupuesto .h-display {
  font-size: clamp(40px, 8vw, 64px);
  color: var(--off-white);
  font-weight: 400
}

.s-presupuesto .h-display .b1 {
  font-family: var(--f-jakarta);
  font-style: italic;
  font-weight: 700;
  color: #fff
}

.s-presupuesto .lead {
  color: #fff;
  opacity: .9;
  max-width: 760px;
  margin: 18px auto 0
}

.presu-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.bars-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bar-card {
  background: #fff;
  border-radius: 22px;
  padding: 16px 20px;
  width: 100%;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 8px 12px;
  align-items: center;
  position: relative;
}

.bar-card.card-1 {
  z-index: 3;
}

.bar-card.card-2 {
  z-index: 2;
  width: 92%;
  margin-top: -16px;
  border-radius: 26.958px;
  background: #F9F9FF;
  box-shadow: 0 11.233px 44.931px 0 rgba(51, 51, 51, 0.06);
  backdrop-filter: blur(11.232654571533203px);
}

.bar-card.card-3 {
  z-index: 1;
  width: 84%;
  margin-top: -16px;
  border-radius: 23.579px;
  background: #F0F1FF;
  box-shadow: 0 9.825px 39.299px 0 rgba(51, 51, 51, 0.06);
  filter: blur(1.291916847229004px);
  backdrop-filter: blur(9.824708938598633px);
}

.bar-ic {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.bar-ic svg {
  width: 24px;
  height: 24px;
}

.bar-meta {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.bar-meta .nm {
  font-weight: 700;
  color: var(--brand-900);
  font-size: 16px;
}

.bar-meta .lm {
  font-size: 13px;
  color: var(--muted);
}

.bar-amt {
  grid-column: 3;
  grid-row: 1;
  font-weight: 800;
  font-size: 18px;
  text-align: right;
}

.bar-amt.coral {
  color: var(--coral);
}

.bar-amt.brand-500 {
  color: var(--brand-500);
}

.bar-card .pct {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 11px;
}

.bar-card .pct.coral {
  color: var(--coral);
}

.bar-card .pct.brand-500 {
  color: var(--brand-500);
}

.bar-line {
  grid-column: 2 / 4;
  grid-row: 2;
  height: 8px;
  background: #eef0f8;
  border-radius: 8px;
  overflow: hidden;
}

.bar-line i {
  display: block;
  height: 100%;
  border-radius: 8px;
}

.presu-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gauge-card {
  background: linear-gradient(135deg, #f9a8a1 0%, #f9564f 100%);
  border-radius: 22px;
  padding: 12px 24px;
  color: #fff;
  box-shadow: var(--shadow-card);
}

.gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-svg {
  width: 180px;
  height: auto;
  flex: 0 0 180px;
}

.gauge-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: -1rem;
  margin-bottom: 20px;
}

.gauge-info .row-wrap {
  display: flex;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.gauge-info .row {
  display: flex;
  flex-direction: column;
  position: relative;
}

.gauge-info .row+.row::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.gauge-info .lbl {
  font-family: var(--f-manrope);
  font-size: 12px;
  opacity: .9;
}

.gauge-info .val {
  font-family: var(--f-jakarta);
  font-weight: 800;
  font-size: 26px;
}

.alerts-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.alerts-head {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.alerts-head .badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
}

.alerts-head h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.alerts-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.alert-card {
  background: #f4f5f9;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.alert-logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.alert-content {
  flex: 1;
  min-width: 0;
}

.alert-content .row1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.alert-content .title {
  font-family: var(--f-poppins);
  font-weight: 600;
  font-size: 13px;
  color: var(--brand-900);
}

.alert-content .when {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
}

.alert-content p {
  margin: 0;
  font-family: var(--f-poppins);
  font-size: 12px;
  color: #555;
  line-height: 1.4;
}

/* ====================================================================
   METAS
   ==================================================================== */
.s-metas {
  background: var(--bg);
  padding: 72px 0;
  position: relative
}

.s-metas::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, #dcdcfc 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.s-metas .center {
  position: relative;
  z-index: 1;
  text-align: center
}

.s-metas .h-display {
  font-size: clamp(40px, 8vw, 64px);
  color: var(--text);
  font-weight: 800;
  letter-spacing: -.02em
}

.s-metas .h-display .b {
  color: var(--mint);
  font-family: var(--f-jakarta);
  font-style: italic;
  font-weight: 700
}

.s-metas .lead {
  color: var(--text-3);
  max-width: 680px;
  margin: 14px auto 0
}

.metas-grid {
  margin-top: 46px;
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 1;
  overflow-x: auto;
  padding-bottom: 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.metas-grid::-webkit-scrollbar {
  display: none;
}

.meta-card {
  flex: 0 0 85%;
  scroll-snap-align: center;
  border-radius: 16.154px;
  border: 2.692px solid #FFF;
  background: rgba(255, 255, 255, 0.50);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.meta-emoji {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #fff;
}

.meta-emoji.mint {
  background: #EEEEEE;
}

.meta-emoji.purple {
  background: #EEEEEE;
}

.meta-emoji.coral {
  background: #EEEEEE;
}

.meta-status {
  font-weight: 700;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px
}

.meta-status.mint {
  color: var(--mint);
  background: rgba(110, 201, 168, .14)
}

.meta-status.purple {
  color: var(--brand-400);
  background: rgba(124, 123, 232, .14)
}

.meta-status.coral {
  color: var(--coral-2);
  background: rgba(255, 87, 87, .14)
}

.meta-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-2);
  margin: 0
}

.meta-amt {
  display: flex;
  align-items: baseline;
  gap: 8px
}

.meta-amt b {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.01em
}

.meta-amt b.mint {
  color: var(--mint)
}

.meta-amt b.purple {
  color: var(--brand-400)
}

.meta-amt b.coral {
  color: var(--coral-2)
}

.meta-amt span {
  font-size: 14px;
  color: var(--muted)
}

.meta-progress {
  height: 6px;
  background: #eef0f8;
  border-radius: 6px;
  overflow: hidden
}

.meta-progress i {
  display: block;
  height: 100%;
  border-radius: 6px
}

.meta-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  align-items: center
}

.meta-foot .pct {
  color: var(--muted-2);
  font-weight: 600
}

.meta-foot a {
  color: var(--brand-300);
  font-weight: 700
}

/* ====================================================================
   DASHBOARD
   ==================================================================== */
.s-dashboard {
  background: var(--brand-700);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden
}

.s-dashboard::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 123, 232, .55) 0%, transparent 65%);
  left: -100px;
  bottom: -150px;
  pointer-events: none;
}

.s-dashboard .inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center
}

.s-dashboard .h-display {
  font-size: clamp(40px, 8vw, 64px);
  color: var(--off-white);
  line-height: 1;
  letter-spacing: -.02em
}

.s-dashboard .h-display .b {
  color: var(--brand-300)
}

.s-dashboard .lead {
  color: #b8b8c8;
  margin-top: 18px;
  max-width: 560px
}

.score-pill {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(20, 20, 43, .45);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  padding: 14px 16px;
  max-width: 520px;
}

.score-pill .ic {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: grid;
  place-items: center
}

.score-pill h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fafafc
}

.score-pill p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #dfdfe8;
  line-height: 1.4
}

.score-pill b {
  font-family: var(--f-manrope);
  font-weight: 700;
  color: var(--brand-100);
  font-size: 18px
}

.chart-card {
  background: rgba(20, 20, 43, .45);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 22px;
  padding: 22px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px
}

.chart-head .col label {
  font-family: var(--f-manrope);
  font-size: 12px;
  color: #dadaec;
  display: block;
  margin-bottom: 4px
}

.chart-head .col .val {
  font-family: var(--f-jakarta);
  font-weight: 800;
  font-size: 22px
}

.chart-head .col .val.orange {
  color: var(--brand-500)
}

.chart-head .col .val.purple {

  color: var(--orange-2)
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Interactive Chart Elements */
.chart-img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 16px;
}

.balance-card {
  background: var(--brand-500);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 16px;
}

.bc-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.bc-lbl {
  font-family: var(--f-jakarta);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.bc-pill {
  background: #effbe1;
  color: #4d9e00;
  font-family: var(--f-manrope);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
}

.bc-right .bc-val {
  font-family: var(--f-jakarta);
  font-weight: 800;
  font-size: 38px;
  color: #fff;
  line-height: 1;
}

.bc-right .bc-val small {
  font-size: 20px;
}

/* ====================================================================
   WIDGETS (Tu balance en un vistazo)
   ==================================================================== */
.s-widgets {
  background: var(--brand-200);
  padding: 80px 0;
  position: relative;
  overflow: hidden
}

.s-widgets .inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center
}

.s-widgets .h-display {
  font-size: clamp(48px, 10vw, 80px);
  color: var(--off-white);
  letter-spacing: -.03em
}

.s-widgets .h-display .b {
  color: #fff
}

.s-widgets .lead {
  color: var(--ink-800);
  margin-top: 18px;
  max-width: 560px
}

.widgets-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  perspective: 800px;
  margin-top: 24px;
}

.w-balance {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
}

.w-balance.blue {
  z-index: 1;
}

.w-balance.red {
  z-index: 2;
  margin-top: -60px;
  transform: rotate(-5deg);
}

.w-balance .top {
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 20px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.w-balance.blue .top {
  background: var(--brand-500);
}

.w-balance.red .top {
  background: var(--coral);
}

.w-balance .left-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.w-balance .left-col label {
  font-family: var(--f-jakarta);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.w-balance .pill {
  font-family: var(--f-jakarta);
  font-weight: 700;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  line-height: 1;
  display: inline-block;
  width: fit-content;
}

.w-balance .pill.positive {
  background: #e6f7ec;
  color: #4d9e00;
}

.w-balance .pill.negative {
  background: #fce8eb;
  color: #be123c;
}

.w-balance .right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.w-balance .amt {
  font-family: var(--f-jakarta);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}

.w-balance .amt .cents {
  font-size: 20px;
}

.w-balance .brand-mini {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.w-balance .brand-mini svg {
  width: 14px;
  height: 14px;
}

.w-tx {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.w-tx .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.w-tx .nm {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.w-tx .nm b {
  font-family: var(--f-jakarta);
  font-size: 14px;
  color: var(--ink-900);
}

.w-tx .nm small {
  font-size: 12px;
  color: var(--muted);
}

.w-tx .val {
  font-family: var(--f-jakarta);
  font-weight: 700;
  font-size: 15px;
  color: var(--coral);
}

/* ====================================================================
   FOOTER / FINAL CTA del landing
   ==================================================================== */
.s-footer {
  background: var(--ink-900);
  color: #fff;
  padding: 80px 0 28px;
  position: relative;
  overflow: hidden
}

.s-footer::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 123, 232, .35) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.s-footer .center {
  text-align: center;
  position: relative;
  z-index: 1
}

.s-footer .h-display {
  font-size: clamp(48px, 12vw, 96px);
  color: var(--off-white);
  letter-spacing: -.03em;
  line-height: 1
}

.s-footer .h-display .b {
  color: var(--brand-300);
  display: block
}

.s-footer .lead {
  color: #b8b8c8;
  margin: 22px auto 0;
  max-width: 640px
}

.s-footer .app-badges {
  justify-content: center;
  margin: 30px auto 0
}

.trust {
  margin: 38px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.foot-row {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  position: relative;
  z-index: 1;
}

/* ====================================================================
   DESKTOP (≥ 1000px)
   ==================================================================== */
@media (min-width:1000px) {
  .hero {
    padding: 140px 0 100px
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center
  }

  .hero-copy h1 {
    font-size: clamp(72px, 7vw, 92px)
  }

  .hero-copy {
    margin-top: 0;
  }

  .hero-copy p {
    font-size: 19px;
    line-height: 1.6
  }

  .hero-illustration {
    max-width: 620px;
    padding: 10px 4px 30px;
  }

  .s-categories {
    padding: 100px 0
  }

  .s-categories .h-display {
    font-size: 64px
  }

  .cat-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 64px;
  }

  .cat-item {
    margin-bottom: 0;
  }

  .cat-chip {
    width: 116px;
    height: 116px;
    border-radius: 28px;
    gap: 10px;
  }

  .cat-chip svg {
    width: 50px;
    height: 50px;
  }

  .cat-label {
    font-size: 14px;
  }

  .s-onboarding {
    padding: 120px 0
  }

  .s-onboarding .h-display {
    font-size: 64px
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 60px
  }

  .s-presupuesto {
    padding: 120px 0
  }

  .s-presupuesto .h-display {
    font-size: 64px
  }

  .presu-grid {
    grid-template-columns: 1fr 1.25fr;
    gap: 40px;
    margin-top: 60px;
    align-items: center;
  }

  .bar-card {
    padding: 24px 32px;
    gap: 8px 16px;
  }

  .bar-meta .nm {
    font-size: 18px
  }

  .bar-amt {
    font-size: 24px
  }

  .gauge-wrap {
    flex-direction: row;
    gap: 32px;
  }

  .gauge-info {
    align-items: flex-start;
    margin: 0;
  }

  .gauge-info .row-wrap {
    justify-content: flex-start;
  }

  .alerts-row {
    grid-template-columns: 1fr 1fr;
  }

  .s-metas {
    padding: 120px 0
  }

  .s-metas .h-display {
    font-size: 64px
  }

  .metas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .meta-card {
    flex: auto;
  }

  .s-dashboard {
    padding: 120px 0
  }

  .s-dashboard .inner {
    grid-template-columns: 1fr 1fr;
    gap: 60px
  }

  .s-dashboard .h-display {
    font-size: 64px
  }

  .chart-card {
    padding: 30px
  }

  .chart-svg {
    height: 280px
  }

  .balance-card {
    position: absolute;
    left: 10rem;
    top: 17rem;
  }

  .s-widgets {
    padding: 120px 0
  }

  .s-widgets .inner {
    grid-template-columns: 1fr 1fr;
    gap: 60px
  }

  .s-widgets .h-display {
    font-size: 80px
  }

  .widgets-stack {
    margin-top: 0;
  }

  .widgets-stack .w-balance {
    max-width: 400px;
  }

  .widgets-stack .w-balance.red {
    position: relative;
    left: 3rem;
    rotate: 353deg;
  }

  .s-footer {
    padding: 140px 0 30px
  }
}

@media (min-width:1200px) {

  .s-presupuesto .lead,
  .s-onboarding .lead {
    font-size: 18px
  }
}

/* === entrance polish (otras secciones, no aplica al hero) === */
@media (prefers-reduced-motion:no-preference) {

  .step,
  .cat-item,
  .meta-card,
  .bar,
  .bars-card,
  .gauge-card,
  .alerts-card,
  .chart-card,
  .score-pill,
  .w-balance {
    opacity: 0;
    transform: translateY(14px);
    animation: rise .6s ease forwards;
  }

  .reveal-on .step,
  .reveal-on .cat-item,
  .reveal-on .meta-card,
  .reveal-on .bar,
  .reveal-on .bars-card,
  .reveal-on .gauge-card,
  .reveal-on .alerts-card,
  .reveal-on .chart-card,
  .reveal-on .score-pill,
  .reveal-on .w-balance {
    animation-delay: var(--d, 0ms);
  }

  @keyframes rise {
    to {
      opacity: 1;
      transform: none
    }
  }
}

.brand img {
  width: 120px;
  margin: 10px 40px;
}