/* LaPasta · web de presentación. Sin librerías: todo a mano para que cargue al instante. */

@font-face {
  font-family: 'Jakarta';
  src: url('/fonts/jakarta-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jakarta';
  src: url('/fonts/jakarta-latin-ext.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #06100c;
  --bg-2: #0a1712;
  --card: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --ink: #ecfdf5;
  --ink-2: #b7c9c0;
  --muted: #8aa197;
  --brand: #10b981;
  --brand-2: #34d399;
  --deep: #047857;
  --gold: #f5b942;
  --red: #f87171;
  --cream: #f3fbf6;
  --cream-ink: #0b1a14;
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1180px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Jakarta', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 3.9rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

em {
  --em-grad: linear-gradient(100deg, var(--brand-2), #a7f3d0 45%, var(--gold));
  font-style: normal;
  background: var(--em-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* En los títulos animados cada palabra lleva su propio degradado (si no, no se pinta) */
[data-split] em {
  background: none;
}

[data-split] em .w > span {
  background: var(--em-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p {
  margin: 0;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.wrap--narrow {
  --wrap: 820px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--brand);
  color: #04130d;
  font-weight: 700;
}

.skip:focus {
  left: 12px;
}

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Barra de progreso de lectura */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--brand), var(--gold));
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.95rem;
}

.btn--lg {
  padding: 18px 30px;
  font-size: 1.1rem;
}

.btn--brand {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #03140d;
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--brand:hover {
  box-shadow: 0 16px 40px -10px rgba(16, 185, 129, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 14px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  padding: 8px 0;
  /* Sin backdrop-filter: en Firefox el desenfoque de una barra fija se recalcula en cada fotograma del scroll */
  background: rgba(6, 16, 12, 0.94);
  border-color: var(--line);
}

.nav__in {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand img {
  border-radius: 10px;
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.25s, background 0.25s;
}

.nav__links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.nav__burger {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 120px 0 80px;
  isolation: isolate;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  /* Sin filter: blur: el degradado radial ya da el difuminado y no cuesta nada animarlo */
  opacity: 0.55;
  animation: float 16s ease-in-out infinite alternate;
}

.orb--a {
  width: 620px;
  height: 620px;
  left: -160px;
  top: -140px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.55), rgba(16, 185, 129, 0.3) 30%, rgba(16, 185, 129, 0.1) 52%, transparent 72%);
}

.orb--b {
  width: 560px;
  height: 560px;
  right: -140px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(181, 139, 31, 0.55), rgba(181, 139, 31, 0.3) 30%, rgba(181, 139, 31, 0.1) 52%, transparent 72%);
  opacity: 0.35;
  animation-delay: -6s;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.5;
}

@keyframes float {
  to {
    transform: translate3d(40px, 30px, 0) scale(1.08);
  }
}

.hero__in {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
  font-size: 0.88rem;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: ping 2s infinite;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(2.7rem, 8.2vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero__lead {
  margin-top: 26px;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
}

.hero__lead strong {
  color: var(--ink);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 16px;
  border-radius: 16px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.35s var(--ease), border-color 0.35s;
  cursor: default;
}

.store:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
}

.store svg {
  width: 26px;
  height: 26px;
}

.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 700;
  font-size: 1.1rem;
}

.store small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-2);
}

.hero__try {
  display: inline-flex;
  gap: 8px;
  margin-top: 20px;
  font-weight: 700;
  color: var(--brand-2);
  border-bottom: 1px solid rgba(52, 211, 153, 0.35);
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease), border-color 0.3s;
}

.hero__try:hover {
  gap: 14px;
  border-color: var(--brand-2);
}

.hero__visual {
  position: relative;
  justify-self: center;
  perspective: 1400px;
}

/* Móviles */
.phone {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 390 / 844;
  border-radius: 48px;
  padding: 10px;
  background: linear-gradient(145deg, #2b3a33, #0d1411 45%, #1f2a25);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 50px 100px -30px rgba(0, 0, 0, 0.8),
    0 30px 80px -40px rgba(16, 185, 129, 0.55),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.phone::after {
  content: '9:41';
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 44px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
}

.phone::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 50%;
  width: 90px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #000;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 38px;
  /* Franja de la barra de estado, como en un móvil de verdad */
  padding-top: 40px;
  background: #0c0a09;
}

.phone--hero {
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg)) rotateZ(1deg);
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease);
}

.chip {
  position: absolute;
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  white-space: nowrap;
  background: rgba(14, 26, 21, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
  animation: bob 6s ease-in-out infinite;
}

.chip b {
  font-weight: 800;
}

.chip .up {
  color: var(--brand-2);
}

.chip--a {
  top: 18%;
  left: -26%;
}

.chip--b {
  top: 50%;
  right: -24%;
  animation-delay: -2s;
}

.chip--c {
  bottom: 12%;
  left: -18%;
  animation-delay: -4s;
}

@keyframes bob {
  50% {
    transform: translateY(-12px);
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 26px;
  height: 42px;
  transform: translateX(-50%);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--ink);
  animation: cue 1.8s var(--ease) infinite;
}

@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- Cinta ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 56px;
  padding: 22px 28px;
  animation: marquee 38s linear infinite;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Cabeceras de sección ---------- */
section {
  position: relative;
}

.head {
  max-width: 760px;
  margin-bottom: 64px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--brand-2);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sub {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 1.15rem;
  max-width: 40rem;
}

/* ---------- Cómo funciona ---------- */
.story {
  padding: 150px 0 60px;
}

.story__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}

.story__sticky {
  position: sticky;
  top: calc(50vh - 330px);
  align-self: start;
  display: grid;
  justify-items: center;
  gap: 22px;
}

.phone--story img {
  position: absolute;
  inset: 10px;
  box-sizing: border-box;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}

.phone--story img.is-on {
  opacity: 1;
  transform: none;
  filter: none;
}

.story__dots {
  display: flex;
  gap: 8px;
}

.story__dots i {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.5s var(--ease), background 0.5s;
}

.story__dots i.is-on {
  width: 28px;
  background: var(--brand-2);
}

.story__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.28;
  transition: opacity 0.6s var(--ease);
}

.step.is-on {
  opacity: 1;
}

.step__n {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--brand-2);
  letter-spacing: 0.1em;
}

.step h3 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  letter-spacing: -0.04em;
}

.step p {
  margin-top: 18px;
  max-width: 30rem;
  font-size: 1.15rem;
  color: var(--ink-2);
}

.step p strong {
  color: var(--ink);
}

.step__img {
  display: none;
}

/* ---------- Tres apps en una ---------- */
.spaces {
  padding: 120px 0;
}

.spaces__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.space,
.tile,
.plan,
.sim__card {
  position: relative;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}

/* Brillo que sigue al ratón */
[data-glow]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(52, 211, 153, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

[data-glow]:hover::before {
  opacity: 1;
}

.space {
  padding: 34px 30px;
  transition: transform 0.5s var(--ease), border-color 0.5s;
}

.space:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.3);
}

.space--main {
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.2), rgba(4, 120, 87, 0.06) 60%), var(--card);
  border-color: rgba(52, 211, 153, 0.28);
}

.space__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  font-size: 30px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

.space h3 {
  font-size: 1.6rem;
}

.space p {
  margin-top: 12px;
  color: var(--ink-2);
}

.space ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 8px;
}

.space li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.space li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10 3 3 5-6' fill='none' stroke='%2334d399' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Bento ---------- */
.bento {
  padding: 60px 0 140px;
}

.bento__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tile {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  transition: transform 0.5s var(--ease), border-color 0.5s;
}

.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
}

.tile p {
  color: var(--ink-2);
}

.tile--wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  background: linear-gradient(120deg, rgba(29, 78, 168, 0.25), transparent 60%), var(--card);
}

.tile--wide > div {
  flex: 1;
}

.tile--wide h3 {
  font-size: 1.8rem;
}

.tile--wide p {
  margin-top: 12px;
  font-size: 1.05rem;
}

.tile--garage img {
  width: 230px;
  aspect-ratio: 390 / 520;
  object-fit: cover;
  object-position: top;
  border-radius: 22px;
  border: 1px solid var(--line);
  margin-bottom: -60px;
  transform: rotate(4deg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.level {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
}

.level__bar {
  flex: 1;
  height: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.level__bar i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: transform 1.6s var(--ease) 0.2s;
}

.tile__foot b,
.big-num {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.toast {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.35;
  animation: bob 7s ease-in-out infinite;
}

.toast img {
  border-radius: 8px;
  flex: none;
}

.toast b {
  display: block;
}

.toast span {
  color: var(--muted);
}

.badge-big {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fde68a, var(--gold));
  color: #2a1d00;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.badge-big span {
  opacity: 0.6;
}

.subs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.subs li {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}

.tile--subs:hover .subs li:first-child {
  transform: translateX(8px);
  opacity: 0.45;
  text-decoration: line-through;
}

.big-num {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.tile--tax {
  background: linear-gradient(160deg, rgba(245, 185, 66, 0.14), transparent 55%), var(--card);
}

.tile--crypto {
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.2), transparent 55%), var(--card);
  min-height: 200px;
}

/* ---------- Simulador ---------- */
.sim {
  padding: 120px 0;
  background:
    radial-gradient(800px 400px at 80% 50%, rgba(16, 185, 129, 0.14), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.sim__in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.note {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

.sim__card {
  padding: 34px;
  display: grid;
  gap: 24px;
}

.range span {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--ink-2);
}

.range output {
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  margin-top: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--brand) var(--v, 50%), rgba(255, 255, 255, 0.1) var(--v, 50%));
  cursor: pointer;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid var(--brand);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
  transition: transform 0.2s;
}

input[type='range']:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid var(--brand);
}

.sim__result {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.sim__result > p:first-child {
  color: var(--ink-2);
}

.sim__total {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #fff, #a7f3d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sim__bar {
  display: flex;
  height: 14px;
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.sim__bar i {
  height: 100%;
  transition: width 0.6s var(--ease);
}

.sim__bar i:first-child,
.k1 {
  background: #64748b;
}

.sim__bar i:last-child,
.k2 {
  background: linear-gradient(90deg, var(--brand), var(--gold));
}

.sim__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.sim__legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 8px;
}

.sim__legend b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- Privacidad (sección clara) ---------- */
.privacy {
  padding: 150px 0;
  background: var(--cream);
  color: var(--cream-ink);
  text-align: center;
  color-scheme: light;
}

.privacy em {
  --em-grad: linear-gradient(100deg, #047857, #10b981);
}

.privacy__lock {
  width: 84px;
  height: 84px;
  margin: 0 auto 30px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: linear-gradient(145deg, #10b981, #047857);
  box-shadow: 0 20px 50px -18px rgba(4, 120, 87, 0.8);
}

.privacy__lock svg {
  width: 44px;
  fill: none;
  stroke: #ecfdf5;
  stroke-width: 4;
  stroke-linecap: round;
}

.privacy__lock path {
  transition: transform 0.8s var(--ease);
  transform-origin: 44px 21px;
}

.privacy__lock.in path {
  animation: lock 1.2s var(--ease) 0.4s both;
}

@keyframes lock {
  0% {
    transform: translateY(-6px);
  }
  100% {
    transform: none;
  }
}

.privacy__title {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
}

.privacy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 70px;
  text-align: left;
}

.privacy__grid > div {
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #dcefe5;
  box-shadow: 0 20px 50px -35px rgba(4, 60, 40, 0.5);
}

.privacy__grid p {
  margin-top: 10px;
  color: #3d5a4d;
}

/* ---------- Precios ---------- */
.pricing {
  padding: 140px 0;
}

.pricing .head {
  margin-inline: auto;
  text-align: center;
}

.pricing .sub {
  margin-inline: auto;
}

.billing {
  display: flex;
  width: max-content;
  margin: -24px auto 44px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.billing button {
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s;
}

.billing button[aria-checked='true'] {
  background: var(--ink);
  color: var(--bg);
}

.billing span {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #2a1d00;
  font-size: 0.75rem;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}

.plan {
  padding: 38px 34px;
}

.plan h3 {
  font-size: 1.4rem;
}

.plan__price {
  margin: 18px 0 24px;
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.plan__price span:last-child {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.plan li {
  display: flex;
  gap: 12px;
  color: var(--ink-2);
}

.plan li::before {
  content: '✓';
  flex: none;
  color: var(--brand-2);
  font-weight: 800;
}

.plan--pro {
  background: linear-gradient(170deg, rgba(245, 185, 66, 0.16), rgba(16, 185, 129, 0.08) 50%, transparent), var(--card);
  border-color: rgba(245, 185, 66, 0.35);
}

.plan--pro li::before {
  content: '✦';
  color: var(--gold);
}

.plan__ribbon {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #2a1d00;
  font-size: 0.8rem;
  font-weight: 800;
}

.plan__note {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

[data-price] {
  display: inline-block;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}

[data-price].is-swap {
  transform: translateY(-10px);
  opacity: 0;
}

/* ---------- Preguntas ---------- */
.faq {
  padding: 60px 0 140px;
}

.faq__list {
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}

.faq details[open] {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(16, 185, 129, 0.06);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brand-2);
  transition: transform 0.4s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}

.faq details > div > p {
  overflow: hidden;
  padding: 0 26px;
  color: var(--ink-2);
}

.faq details.is-open > div {
  grid-template-rows: 1fr;
}

.faq details.is-open > div > p {
  padding-bottom: 22px;
}

/* ---------- CTA final ---------- */
.final {
  position: relative;
  padding: 160px 0;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(900px 500px at 50% 100%, rgba(16, 185, 129, 0.28), transparent 70%);
}

.final__coin {
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  opacity: 0.18;
  filter: blur(1px);
}

.final__coin img {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  animation: spin 14s linear infinite;
}

@keyframes spin {
  to {
    transform: rotateY(360deg);
  }
}

.final h2 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.final__ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

.final__small {
  margin-top: 22px;
  color: var(--muted);
}

/* ---------- Pie ---------- */
.foot {
  padding: 50px 0 40px;
  border-top: 1px solid var(--line);
  background: #040a08;
}

.foot__in {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.foot__brand p {
  margin-top: 10px;
  color: var(--muted);
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  font-weight: 600;
  color: var(--ink-2);
}

.foot__links a:hover {
  color: var(--ink);
}

.foot__legal {
  margin-top: 34px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Animaciones al aparecer ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 1s var(--ease) var(--d, 0s),
    transform 1.1s var(--ease) var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

[data-split] .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease) var(--wd, 0s);
}

[data-split].in .w > span {
  transform: none;
}

/* Sin JavaScript todo se ve */
.no-js .reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Móvil y tablet ---------- */
@media (max-width: 980px) {
  .hero__in,
  .sim__in {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 110px;
    text-align: center;
  }

  .hero__lead,
  .pill {
    margin-inline: auto;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__visual {
    margin-top: 20px;
  }

  .chip--a {
    left: -8%;
  }

  .chip--b {
    right: -8%;
  }

  .chip--c {
    left: -4%;
  }

  .story__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .story__sticky {
    display: none;
  }

  .step {
    min-height: auto;
    opacity: 1;
    padding: 40px 0;
  }

  .step__img {
    display: block;
    width: min(290px, 74vw);
    margin: 34px auto 0;
    border-radius: 36px;
    border: 8px solid #1a2520;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 30px 70px -45px rgba(16, 185, 129, 0.6);
  }

  .spaces__grid,
  .bento__grid,
  .privacy__grid,
  .plans {
    grid-template-columns: 1fr;
  }

  .tile--wide {
    grid-column: auto;
  }

  .tile--wide {
    flex-direction: column;
    align-items: stretch;
  }

  .tile--garage img {
    width: 100%;
    aspect-ratio: 16 / 12;
    margin-bottom: -40px;
    transform: none;
  }
}

@media (max-width: 820px) {
  .nav__links {
    position: fixed;
    inset: 64px 12px auto;
    flex-direction: column;
    padding: 12px;
    border-radius: 22px;
    background: rgba(10, 23, 18, 0.98);
    border: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }

  .nav__links a {
    padding: 14px 16px;
    font-size: 1.05rem;
  }

  .nav.is-open .nav__links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav.is-open {
    background: rgba(6, 16, 12, 0.9);
  }

  .nav__cta {
    margin-left: auto;
  }

  /* En las páginas legales no hay botón "Descargar": el menú va a la derecha */
  .nav__links + .nav__burger {
    margin-left: auto;
  }

  .nav__burger {
    display: grid;
    gap: 6px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
  }

  .nav__burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.35s var(--ease);
  }

  .nav.is-open .nav__burger span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav.is-open .nav__burger span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  body {
    font-size: 16px;
  }

  .head {
    margin-bottom: 44px;
  }

  .story,
  .spaces,
  .pricing,
  .privacy,
  .final {
    padding-block: 100px;
  }

  .bento {
    padding-bottom: 100px;
  }

  .sim {
    padding-block: 90px;
  }

  .chip {
    font-size: 0.82rem;
    padding: 8px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal,
  [data-split] .w > span {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---------- Páginas legales ---------- */
.legal-page {
  padding: 140px 0 100px;
}

.legal-page .wrap {
  --wrap: 760px;
}

.legal-page h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

.legal-page .updated {
  margin-top: 14px;
  color: var(--muted);
}

.legal-page .tldr {
  margin-top: 36px;
  padding: 24px 26px;
  border-radius: 22px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  font-size: 1.1rem;
}

.legal-page h2 {
  margin-top: 48px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.legal-page p,
.legal-page li {
  color: var(--ink-2);
}

.legal-page p {
  margin-top: 14px;
}

.legal-page ul {
  margin: 14px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}

.legal-page strong {
  color: var(--ink);
}

.legal-page a {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Página "Probar": pasos numerados con su botón */
.join-steps {
  list-style: none;
  counter-reset: step;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.join-steps li {
  counter-increment: step;
  position: relative;
  padding: 24px 24px 24px 76px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
}

.join-steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--bg);
  font-weight: 800;
}

.join-steps h2 {
  margin: 4px 0 0;
  font-size: 1.25rem;
}

.join-steps .btn {
  margin-top: 16px;
  text-decoration: none;
  color: inherit;
}

.join-steps .btn--brand,
.legal-page .btn--brand {
  color: #03140d;
}

.legal-page .btn--brand {
  text-decoration: none;
}

.join-steps .btn--ghost {
  color: var(--ink);
}

.legal-page .back {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
}
