/* ============ Fini Landing — live product mockups (Stripe-grade craft) ============ */

/* ---------- Ambient glow (behind hero + featured surfaces) ---------- */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}
.glow.is--lime { background: radial-gradient(circle, rgba(174,255,47,0.55), transparent 70%); }
.glow.is--leaf { background: radial-gradient(circle, rgba(54,181,96,0.4), transparent 70%); }

/* ---------- App window shell ---------- */
.appwin {
  position: relative;
  background: var(--paper-0);
  border: var(--hairline-soft);
  border-radius: var(--radius-xl);
  box-shadow:
    0 1px 2px rgba(20,40,8,0.04),
    0 12px 28px rgba(20,40,8,0.08),
    0 40px 80px rgba(20,40,8,0.06);
  overflow: hidden;
}
.appwin__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: var(--hairline-soft);
  background: var(--paper-50);
}
.appwin__dots { display: flex; gap: 6px; }
.appwin__dots span { width: 9px; height: 9px; border-radius: 50%; background: #e3e6df; display: block; }
.appwin__dots span:first-child { background: #f0d5c8; }
.appwin__url {
  margin-left: 8px;
  flex: 1;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--paper-100);
  border: var(--hairline-soft);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--warm-gray);
  gap: 6px;
}
.appwin__url svg { width: 11px; height: 11px; }
.appwin__body { padding: 22px; }

/* ---------- Hero dashboard ---------- */
.hero-dash { display: flex; flex-direction: column; gap: 18px; }
.hero-dash__top { display: flex; justify-content: space-between; align-items: flex-start; }
.hero-dash__greet { font-size: 13px; color: var(--warm-gray); font-weight: 560; }
.hero-dash__greet strong { display: block; font-size: 19px; color: var(--green-ink); font-weight: 620; margin-top: 2px; letter-spacing: -0.01em; }
.hero-dash__year {
  font-size: 12px;
  font-weight: 640;
  color: var(--green-deep);
  background: var(--lime-100);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}
.hero-dash__saldo-label { font-size: 12.5px; color: var(--warm-gray); font-weight: 560; display: flex; align-items: center; gap: 7px; }
.hero-dash__saldo-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green-success); }
.hero-dash__saldo {
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 640;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--green-ink);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.hero-dash__saldo small { font-size: 0.4em; font-weight: 560; color: var(--warm-gray); }
.hero-dash__delta { font-size: 12.5px; font-weight: 620; color: var(--green-success); margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; }
.hero-dash__delta svg { width: 13px; height: 13px; }

/* ---------- Mini area chart ---------- */
.chart {
  position: relative;
  width: 100%;
}
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__grid line { stroke: var(--paper-200); stroke-width: 1; }
.chart__area { opacity: 0; transition: opacity 600ms var(--ease-out); }
.chart.is-drawn .chart__area { opacity: 1; }
.chart__line {
  fill: none;
  stroke: var(--green-leaf);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--dash, 1000);
  stroke-dashoffset: var(--dash, 1000);
}
.chart.is-drawn .chart__line {
  transition: stroke-dashoffset 1600ms var(--ease-out);
  stroke-dashoffset: 0;
}
.chart__dot {
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-snap);
}
.chart.is-drawn .chart__dot { opacity: 1; transform: scale(1); transition-delay: 1400ms; }
.chart__pin {
  position: absolute;
  transform: translate(-50%, -140%);
  background: var(--green-ink);
  color: var(--lime-bright);
  font-size: 11.5px;
  font-weight: 640;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 400ms var(--ease-out) 1500ms, transform 400ms var(--ease-out) 1500ms;
}
.chart.is-drawn .chart__pin { opacity: 1; }
.chart__pin::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--green-ink);
}

/* ---------- Status timeline (declaraciones cell) ---------- */
.mock-timeline { display: flex; flex-direction: column; gap: 0; }
.mock-step {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding-bottom: 18px;
  position: relative;
}
.mock-step:last-child { padding-bottom: 0; }
.mock-step::before {
  content: '';
  position: absolute;
  left: 12px; top: 26px; bottom: -2px;
  width: 2px;
  background: var(--paper-200);
}
.mock-step:last-child::before { display: none; }
.mock-step__dot {
  width: 25px; height: 25px;
  border-radius: 50%;
  border: 2px solid var(--paper-200);
  background: var(--paper-0);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all 400ms var(--ease-snap);
}
.mock-step__dot svg { width: 12px; height: 12px; opacity: 0; transition: opacity 300ms; }
.mock-step__body { padding-top: 2px; }
.mock-step__title { font-size: 14.5px; font-weight: 580; color: var(--green-ink); }
.mock-step__meta { font-size: 12.5px; color: var(--warm-gray); margin-top: 1px; }
.mock-step.is--done .mock-step__dot { background: var(--green-leaf); border-color: var(--green-leaf); }
.mock-step.is--done .mock-step__dot svg { opacity: 1; }
.mock-step.is--done::before { background: var(--green-leaf); }
.mock-step.is--active .mock-step__dot {
  border-color: var(--green-leaf);
  box-shadow: 0 0 0 4px rgba(54,181,96,0.14);
}
.mock-step.is--active .mock-step__spin {
  width: 11px; height: 11px;
  border: 2px solid var(--green-leaf);
  border-top-color: transparent;
  border-radius: 50%;
  animation: mock-spin 0.8s linear infinite;
}
@keyframes mock-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mock-step.is--active .mock-step__spin { animation: none; } }

/* ---------- Factura feed ---------- */
.mock-feed { display: flex; flex-direction: column; gap: 9px; }
.mock-fila {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--paper-50);
  border: var(--hairline-soft);
  opacity: 0;
  transform: translateY(10px);
}
.mock-fila.is--in { opacity: 1; transform: translateY(0); transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out); }
.mock-fila__icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--lime-100);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.mock-fila__icon svg { width: 16px; height: 16px; }
.mock-fila__icon.is--out { background: var(--paper-cream); }
.mock-fila__main { flex: 1; min-width: 0; }
.mock-fila__name { font-size: 13.5px; font-weight: 580; color: var(--green-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-fila__sub { font-size: 11.5px; color: var(--warm-gray); margin-top: 1px; }
.mock-fila__amt { font-size: 13.5px; font-weight: 620; color: var(--green-ink); font-variant-numeric: tabular-nums; flex: none; }
.mock-fila__tag {
  font-size: 10.5px; font-weight: 640;
  padding: 3px 8px; border-radius: var(--radius-pill);
  flex: none;
}
.mock-fila__tag.is--emit { background: var(--lime-200); color: var(--green-ink); }
.mock-fila__tag.is--recv { background: var(--paper-warm); color: var(--green-olive); }

/* ---------- Chat mock (copiloto) ---------- */
.mock-chat { display: flex; flex-direction: column; gap: 10px; }
.mock-msg {
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 88%;
  opacity: 0;
  transform: translateY(8px);
}
.mock-msg.is--in { opacity: 1; transform: translateY(0); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.mock-msg.is--user { align-self: flex-end; background: var(--paper-warm); border-bottom-right-radius: 4px; color: var(--green-ink); }
.mock-msg.is--fini { align-self: flex-start; background: var(--lime-100); border-bottom-left-radius: 4px; color: var(--green-ink); }
.mock-msg.is--fini strong { color: var(--green-deep); font-weight: 640; }
.mock-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 13px 16px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  background: var(--lime-100);
}
.mock-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-leaf);
  animation: mock-bounce 1.2s ease-in-out infinite;
}
.mock-typing span:nth-child(2) { animation-delay: 0.15s; }
.mock-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes mock-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mock-typing span { animation: none; } }

/* ---------- Deducible chips pop ---------- */
.mock-dchips { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-dchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--paper-50);
  border: var(--hairline-soft);
  color: var(--warm-gray);
  opacity: 0;
  transform: scale(0.8);
}
.mock-dchip.is--in { opacity: 1; transform: scale(1); transition: opacity 350ms var(--ease-out), transform 400ms var(--ease-snap); }
.mock-dchip.is--found {
  background: var(--lime-100);
  border-color: transparent;
  color: var(--green-deep);
}
.mock-dchip__check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-leaf);
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
}
.mock-dchip.is--found .mock-dchip__check { display: flex; }
.mock-dchip__check svg { width: 10px; height: 10px; }
.mock-dedu-total {
  margin-top: 14px;
  font-size: 13px;
  color: var(--warm-gray);
  font-weight: 560;
}
.mock-dedu-total strong { color: var(--green-deep); font-weight: 640; font-variant-numeric: tabular-nums; }

/* ---------- Bento visual wrappers ---------- */
.bento__mock { margin-top: auto; }
.bento__card.is--saldo .chart { margin-top: 8px; }
.bento__card.is--saldo .chart__line { stroke: var(--green-ink); stroke-width: 2.5; }
.bento__card.is--saldo .chart__dot { stroke: var(--green-ink); }
.bento__card.is--saldo .chart__grid line { stroke: rgba(20,40,8,0.1); }
.bento__card.is--saldo .chart__area { display: none; }
.bento__card.is--saldo { justify-content: flex-start; }
.bento__card.is--saldo .bento__saldo-chart-wrap { margin-top: auto; }
.bento__saldo-chart-wrap { position: relative; }

/* ---------- Hero visual: live version ---------- */
.hero__visual.is--live {
  height: auto;
  border-radius: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__live-stack { position: relative; width: 100%; max-width: 480px; }
.hero__live-stack .glow.is--lime { width: 340px; height: 340px; top: -40px; right: -60px; }
.hero__live-stack .glow.is--leaf { width: 280px; height: 280px; bottom: -50px; left: -50px; opacity: 0.4; }
.hero__live-card { position: relative; z-index: 2; }
.hero__live-mini {
  position: absolute;
  z-index: 3;
  background: var(--paper-0);
  border: var(--hairline-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(20,40,8,0.1);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.hero__live-mini.is--a { bottom: -26px; left: -34px; animation: float-a 7s ease-in-out infinite; }
.hero__live-mini.is--b { top: 40px; right: -30px; animation: float-a 8s 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hero__live-mini.is--a, .hero__live-mini.is--b { animation: none; } }
.hero__live-mini__icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.hero__live-mini__icon svg { width: 18px; height: 18px; }
.hero__live-mini__label { font-size: 11.5px; color: var(--warm-gray); font-weight: 560; }
.hero__live-mini__value { font-size: 15px; font-weight: 640; color: var(--green-ink); margin-top: 1px; }

/* default: show live, hide .slot-fill split. tweaks can flip via data-hero */
.hero__visual.is--split { display: none; }
[data-hero="split"] .hero__visual.is--live { display: flex; }
[data-hero="split"] .hero__visual.is--split { display: none; }

/* ============ Lead-centered hero with background image (Revolut energy) ============ */
.hero--lead {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 0 120px;
  overflow: clip;
}
.hero--lead .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  display: block;
}
.hero--lead .hero__bg .slot-fill { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(247,252,240,0.35) 0%, rgba(247,252,240,0.72) 45%, rgba(247,252,240,0.92) 100%),
    linear-gradient(180deg, rgba(247,252,240,0.5) 0%, rgba(248,249,246,0.86) 78%, rgba(248,249,246,1) 100%);
}
[data-herobg="degradado"] .hero__bg { display: none; }

/* Rotating hero word */
[data-rotating-words] { color: var(--green-leaf); }
.rot-rotator {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  white-space: nowrap;
}
.rot-rotator__word {
  display: block;
  white-space: nowrap;
  position: absolute;
  top: 0; left: 0;
  color: var(--green-leaf);
  will-change: transform, opacity;
}
.rot-rotator__word.is--base { position: relative; }
.hero--lead .hero__lead {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  max-width: 900px;
  will-change: transform, opacity;
}
.hero--lead .h-display { font-size: clamp(48px, 8.2vw, 116px); }
.hero--lead .lede { max-width: 620px; margin: 0 auto; }
.hero--lead .hero__ctas { justify-content: center; margin-top: 4px; }
.hero__trust {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center;
  margin-top: 8px;
}
.hero__trust-item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 560; color: var(--green-olive); }
.hero__trust-item i { width: 20px; height: 20px; display: block; }
.hero__scrollcue {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--warm-gray);
}
.hero__scrollcue svg { width: 18px; height: 18px; animation: cue-bob 1.8s ease-in-out infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .hero__scrollcue svg { animation: none; } }

/* ============ Product reveal (real app UI) + parallax ============ */
.product-reveal {
  padding: 40px 0 120px;
  position: relative;
}
.product-reveal__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pr-stage { position: relative; }
.pr-frame {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: var(--hairline-soft);
  box-shadow:
    0 2px 4px rgba(20,40,8,0.04),
    0 24px 48px rgba(20,40,8,0.1),
    0 60px 120px rgba(20,40,8,0.08);
  will-change: transform;
  background: #fff;
}
.pr-frame__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px;
  border-bottom: var(--hairline-soft);
  background: var(--paper-50);
}
.pr-frame__dots { display: flex; gap: 6px; }
.pr-frame__dots span { width: 9px; height: 9px; border-radius: 50%; background: #e3e6df; display: block; }
.pr-frame__dots span:first-child { background: #f0d5c8; }
.pr-frame__url {
  margin-left: 8px; flex: 1; max-width: 280px;
  height: 24px; border-radius: 999px;
  background: var(--paper-100); border: var(--hairline-soft);
  display: flex; align-items: center; padding: 0 12px; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--warm-gray);
}
.pr-frame__url svg { width: 11px; height: 11px; }
.pr-frame__badge {
  margin-left: auto;
  font-size: 11.5px; font-weight: 640; color: var(--green-deep);
  background: var(--lime-100); padding: 4px 11px; border-radius: 999px;
}
.pr-embed {
  display: block;
  width: 100%;
  height: 640px;
  border: none;
  background: #f7fcf0;
}
@media screen and (max-width: 760px) { .pr-embed { height: 460px; } }
.pr-glow {
  position: absolute;
  z-index: 0;
  width: 60%; height: 60%;
  left: 20%; top: 10%;
  background: radial-gradient(circle, rgba(174,255,47,0.4), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}
/* Parallax floating cards over the frame */
.pr-float {
  position: absolute;
  z-index: 3;
  background: var(--paper-0);
  border: var(--hairline-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(20,40,8,0.12);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  will-change: transform;
}
.pr-float i { width: 30px; height: 30px; display: block; flex: none; }
.pr-float__label { font-size: 11px; color: var(--warm-gray); font-weight: 560; }
.pr-float__value { font-size: 14.5px; font-weight: 640; color: var(--green-ink); margin-top: 1px; }
.pr-float.is--a { top: -26px; right: 6%; }
.pr-float.is--b { bottom: -24px; left: 4%; }
@media screen and (max-width: 760px) {
  .pr-float { display: none; }
  .product-reveal { padding-bottom: 80px; }
}

@media screen and (max-width: 860px) {
  .hero__live-stack { max-width: 420px; margin: 0 auto; }
  .hero__live-mini.is--a { left: -10px; }
  .hero__live-mini.is--b { right: -8px; }
}
@media screen and (max-width: 520px) {
  .hero__live-mini__label, .hero__live-mini.is--b { display: none; }
  .hero__live-mini.is--a { left: 0; bottom: -18px; }
}
