/* ═══════════════════════════════════════════════
   MYLOGGIA — Maqueta de dirección visual v1
   Dark premium · oro/ámbar · Clash Display + Satoshi
   ═══════════════════════════════════════════════ */

:root {
  --bg: #08080d;
  --bg-2: #0d0d15;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2efe6;
  --muted: #96919f;
  --gold: #d9a441;
  --gold-2: #f0d08a;
  --gold-3: #8a5f1e;
  --gold-grad: linear-gradient(115deg, #f5dfa4 0%, #d9a441 45%, #b07f2c 100%);
  --radius: 18px;
  --font-display: 'Clash Display', 'Segoe UI', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: rgba(217, 164, 65, 0.35); color: #fff; }

/* ── Fondo aurora ─────────────────────────────── */
.aurora {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(58, 44, 96, 0.35), transparent 60%),
    var(--bg);
}
.aurora__blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5; will-change: transform;
}
.aurora__blob--1 {
  width: 55vw; height: 55vw; left: -12vw; top: -18vw;
  background: radial-gradient(circle, rgba(90, 62, 160, 0.55), transparent 65%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora__blob--2 {
  width: 44vw; height: 44vw; right: -14vw; top: 6vh;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.22), transparent 65%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.aurora__blob--3 {
  width: 50vw; height: 50vw; left: 24vw; bottom: -28vw;
  background: radial-gradient(circle, rgba(38, 80, 115, 0.45), transparent 65%);
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(9vw, 7vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-7vw, 12vh) scale(0.92); } }
@keyframes drift3 { to { transform: translate(-9vw, -9vh) scale(1.08); } }

.aurora__grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-2%); }
  80% { transform: translate(3%,3%); }
}

/* ── Navegación ───────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav--solid {
  padding: 12px clamp(20px, 4vw, 48px);
  background: rgba(8, 8, 13, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
}
.nav__brand {
  display: flex; align-items: baseline; gap: 2px;
  text-decoration: none; color: var(--text);
  font-family: var(--font-display); font-weight: 600; font-size: 24px;
}
.nav__logo {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 700;
}
.nav__by {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  color: var(--muted); margin-left: 8px; letter-spacing: 0.08em;
}
.nav__links {
  display: flex; gap: 26px; margin-left: auto;
}
.nav__links a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--text); }

/* ── Botones ──────────────────────────────────── */
.btn {
  /* touch-action heredado del fix móvil de la dapp anterior:
     elimina el retraso táctil en iOS/Android sin hacks de JS */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn--gold {
  background: var(--gold-grad); color: #1d1405;
  box-shadow: 0 4px 24px rgba(217, 164, 65, 0.28);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 8px 34px rgba(217, 164, 65, 0.42); }
.btn--ghost {
  color: var(--text); border-color: var(--line); background: var(--surface);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.22); background: var(--surface-2); transform: translateY(-2px); }
.btn--soft {
  color: var(--text); background: var(--surface-2); font-size: 13.5px; padding: 10px 18px;
}
.btn--soft:disabled { opacity: 0.38; cursor: not-allowed; }
.btn--nav { font-size: 13.5px; padding: 10px 20px; }
.btn--big { font-size: 17px; padding: 17px 40px; }
.btn__dot {
  width: 7px; height: 7px; border-radius: 50%; background: #1d1405;
  box-shadow: 0 0 0 3px rgba(29, 20, 5, 0.18);
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  max-width: 1280px; margin: 0 auto;
  padding: 120px clamp(20px, 4vw, 48px) 60px;
  gap: 20px;
  position: relative;
}
.hero__eyebrow { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid rgba(217, 164, 65, 0.35);
  background: rgba(217, 164, 65, 0.07);
  padding: 7px 14px; border-radius: 999px;
}
.tag--chain { color: var(--muted); border-color: var(--line); background: var(--surface); }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.6vw, 88px);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word { display: inline-block; }
.line--gold {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font-size: clamp(16px, 1.5vw, 19px); color: var(--muted);
  max-width: 46ch; margin-bottom: 36px; font-weight: 500;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero__meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.meta { display: flex; flex-direction: column; }
.meta strong {
  font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.1;
}
.meta span { font-size: 13px; color: var(--muted); font-weight: 500; }
.meta__sep { width: 1px; height: 34px; background: var(--line); }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1.5px solid var(--line); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px;
  background: var(--gold); border-radius: 4px; transform: translateX(-50%);
  animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint { 50% { transform: translate(-50%, 14px); opacity: 0.25; } }

/* ── Libro 3D (CSS puro) ──────────────────────── */
.hero__book {
  display: flex; align-items: center; justify-content: center;
  perspective: 1400px; position: relative;
  padding: 20px 0;
}
.book {
  --bw: min(280px, 58vw);
  position: relative;
  width: var(--bw); aspect-ratio: 0.68;
  transform-style: preserve-3d;
  transform: rotateY(-24deg) rotateX(6deg);
  animation: bookfloat 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes bookfloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}
.book__cover, .book__back {
  position: absolute; inset: 0; border-radius: 6px 14px 14px 6px;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, 0.14), transparent 45%),
    linear-gradient(150deg, #1b1626 0%, #14101d 55%, #0e0b15 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}
.book__cover { transform: translateZ(22px); display: flex; padding: 20px; }
.book__back  { transform: translateZ(-22px) rotateY(180deg); }
.book__spine {
  position: absolute; top: 0; bottom: 0; width: 44px;
  left: 50%; margin-left: -22px;
  transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2));
  background: linear-gradient(180deg, #2a2138, #171225);
  border-radius: 6px 0 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.book__pages {
  position: absolute; top: 3px; bottom: 3px; width: 44px;
  left: 50%; margin-left: -22px;
  transform: rotateY(90deg) translateZ(calc(var(--bw) / 2 - 1px));
  background: repeating-linear-gradient(90deg, #e8e2d2 0 2px, #cfc8b4 2px 4px);
  border-radius: 0 3px 3px 0;
}
.book__border {
  flex: 1; border: 1.5px solid rgba(217, 164, 65, 0.55); border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; position: relative;
}
.book__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(56px, 10vw, 84px); line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.book__rule { width: 44px; height: 1.5px; background: rgba(217, 164, 65, 0.55); }
.book__series {
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.32em;
  font-size: 15px; color: var(--text);
}
.book__vol { font-size: 10.5px; letter-spacing: 0.3em; color: var(--muted); font-weight: 700; }
.book__shadow {
  position: absolute; bottom: -12px; width: 62%; height: 30px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(6px);
  animation: shadowpulse 7s ease-in-out infinite;
}
@keyframes shadowpulse { 50% { transform: scale(0.86); opacity: 0.7; } }
.book__glow {
  position: absolute; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.13), transparent 60%);
  z-index: -1;
}

/* ── Secciones genéricas ──────────────────────── */
.section {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(80px, 11vh, 130px) clamp(20px, 4vw, 48px);
}
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vh, 64px); }
.section__eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 600; line-height: 1.06; letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.section__title em {
  font-style: normal;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__sub { color: var(--muted); font-size: 17px; max-width: 56ch; font-weight: 500; }

/* ── Progreso ─────────────────────────────────── */
.progress { max-width: 860px; margin: 0 auto 54px; }
.progress__label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; color: var(--muted); margin-bottom: 12px; font-weight: 500;
}
.progress__label strong { font-family: var(--font-display); font-size: 20px; color: var(--text); }
.progress__track {
  height: 8px; border-radius: 99px; background: var(--surface-2);
  overflow: hidden; border: 1px solid var(--line);
}
.progress__fill {
  height: 100%; width: 0; border-radius: 99px;
  background: var(--gold-grad);
  box-shadow: 0 0 16px rgba(217, 164, 65, 0.5);
}
.progress__miles { position: relative; height: 26px; margin-top: 10px; }
.mile {
  position: absolute; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; color: var(--muted);
  padding-top: 2px;
}
.mile--done { color: var(--gold-2); }

/* ── Estantería / cards ───────────────────────── */
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 12px;
  backdrop-filter: blur(8px);
  transition: transform 0.35s cubic-bezier(0.2, 1, 0.4, 1), border-color 0.35s, background 0.35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.16); background: var(--surface-2); }
.card__state {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #79c98e;
}
.card--locked .card__state { color: var(--muted); }
.card__state--next { color: var(--gold-2); }
.card__mini {
  align-self: flex-start;
  width: 64px; aspect-ratio: 0.7; border-radius: 5px 9px 9px 5px;
  background: linear-gradient(150deg, #1b1626, #0e0b15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  box-shadow: -4px 6px 14px rgba(0, 0, 0, 0.4);
}
.card__mini span {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text);
  opacity: 0.85;
}
.card__mini--gold { border-color: rgba(217, 164, 65, 0.6); box-shadow: -4px 6px 18px rgba(217, 164, 65, 0.18); }
.card__mini--gold span {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.card__desc { font-size: 13.5px; color: var(--muted); flex: 1; }
.card--next {
  border-color: rgba(217, 164, 65, 0.45);
  background: linear-gradient(170deg, rgba(217, 164, 65, 0.08), var(--surface) 55%);
  box-shadow: 0 10px 44px rgba(217, 164, 65, 0.1);
}
.card--locked { opacity: 0.6; }
.card--locked .card__mini { filter: grayscale(0.4) brightness(0.8); }
.shelf__hint {
  text-align: center; color: var(--muted); font-size: 14px; margin-top: 34px;
  letter-spacing: 0.04em; font-weight: 500;
}

/* ── Metodología ──────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px;
}
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px;
  position: relative; overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 1, 0.4, 1), border-color 0.35s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(217, 164, 65, 0.35); }
.step__num {
  font-family: var(--font-display); font-weight: 700; font-size: 60px; line-height: 1;
  display: block; margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(217, 164, 65, 0.85), rgba(217, 164, 65, 0.12));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ── Tecnología ───────────────────────────────── */
.grid-tech {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px;
}
.tech {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
  backdrop-filter: blur(8px);
  transition: transform 0.35s cubic-bezier(0.2, 1, 0.4, 1), border-color 0.35s, background 0.35s;
}
.tech:hover { transform: translateY(-6px); background: var(--surface-2); border-color: rgba(255, 255, 255, 0.16); }
.tech__icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: var(--gold-2);
  background: rgba(217, 164, 65, 0.09);
  border: 1px solid rgba(217, 164, 65, 0.28);
  margin-bottom: 18px;
}
.tech h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.tech p { font-size: 14px; color: var(--muted); }

/* ── CTA final ────────────────────────────────── */
.section--cta { text-align: center; padding-bottom: 140px; }
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 600; line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.cta__title em {
  font-style: normal;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta__sub { color: var(--muted); font-size: 17px; margin-bottom: 38px; font-weight: 500; }

/* ── Footer ───────────────────────────────────── */
.footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.footer__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 34px clamp(20px, 4vw, 48px);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer__brand { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.footer__brand em { font-style: normal; font-size: 12px; color: var(--muted); font-family: var(--font-body); }
.footer__links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: 13.5px; text-decoration: none; transition: color 0.25s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { width: 100%; font-size: 12.5px; color: var(--muted); opacity: 0.7; }

/* ── Cómo funciona ────────────────────────────── */
.explain { display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.explain__row {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px;
  backdrop-filter: blur(8px);
}
.explain__num {
  font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1;
  width: 56px; height: 56px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-2);
  background: rgba(217, 164, 65, 0.09);
  border: 1px solid rgba(217, 164, 65, 0.28);
}
.explain__body h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.explain__body p { font-size: 15px; color: var(--muted); }
.explain__body p + p { margin-top: 10px; }
.explain__note {
  font-size: 13.5px !important;
  border-left: 2px solid rgba(217, 164, 65, 0.5);
  padding-left: 12px; margin-top: 14px !important;
}
.explain__list { margin: 12px 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.explain__list li { font-size: 14.5px; color: var(--muted); }
.explain__list strong { color: var(--text); }

.prices { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.price {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 18px; min-width: 104px;
}
.price span { font-size: 12px; color: var(--muted); font-weight: 500; }
.price strong { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.price--total { border-color: rgba(217, 164, 65, 0.45); background: rgba(217, 164, 65, 0.07); }
.price--total strong {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.split { margin-top: 16px; }
.split__bar {
  display: flex; height: 42px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); margin-bottom: 16px;
}
.split__seg {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
}
.split__seg--a { background: linear-gradient(160deg, rgba(217,164,65,0.85), rgba(176,127,44,0.85)); color: #1d1405; }
.split__seg--b { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.split__seg--c { background: rgba(90, 62, 160, 0.55); color: var(--text); }
.split__legend { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.split__legend li { font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
.split__legend strong { color: var(--text); }
.dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; transform: translateY(1px); }
.dot--a { background: var(--gold); }
.dot--b { background: rgba(255, 255, 255, 0.35); }
.dot--c { background: rgba(122, 90, 200, 0.9); }

/* ── Mi cuenta ────────────────────────────────── */
.section--account {
  border: 1px solid rgba(217, 164, 65, 0.25);
  border-radius: 26px;
  background: linear-gradient(175deg, rgba(217, 164, 65, 0.05), transparent 40%);
  margin-top: -20px;
}
.tag--demo {
  color: #e8b659; border-color: rgba(232, 150, 90, 0.4);
  background: rgba(232, 150, 90, 0.08);
  text-transform: none; letter-spacing: 0.03em; margin-left: 10px;
}
.acct-card {
  max-width: 560px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
}
.acct-card__title { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.acct-card__sub { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.acct-card__form { display: flex; gap: 12px; flex-wrap: wrap; }
.input {
  flex: 1; min-width: 200px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
  color: var(--text); font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 13px 22px; outline: none;
  transition: border-color 0.25s, background 0.25s;
}
.input:focus { border-color: rgba(217, 164, 65, 0.6); background: rgba(255, 255, 255, 0.06); }
.input::placeholder { color: var(--muted); opacity: 0.7; }
.acct-card__error { color: #e8837a; font-size: 13.5px; margin-top: 12px; }
.acct-grid { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.acct-stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; display: flex; flex-direction: column; gap: 8px;
}
.acct-stat--wide { flex: 1; min-width: 260px; }
.acct-stat__label { font-size: 13px; color: var(--muted); font-weight: 500; }
.acct-stat__value {
  font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.acct-next {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(170deg, rgba(217, 164, 65, 0.09), var(--surface) 60%);
  border: 1px solid rgba(217, 164, 65, 0.45); border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px;
  box-shadow: 0 10px 44px rgba(217, 164, 65, 0.08);
}
.acct-next__info { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.acct-next__title { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.acct-next__price { font-size: 15px; color: var(--muted); font-weight: 700; }
.acct__done { font-family: var(--font-display); font-size: 22px; }
.acct__subhead { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.owned-list { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.owned {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  padding: 11px 16px;
}
.owned__num {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--gold-2); width: 30px;
}
.owned__title { flex: 1; font-size: 14.5px; font-weight: 500; }
.owned__dl { padding: 8px 15px; font-size: 12.5px; }

/* ── Mi cuenta: código, pools y demo ──────────── */
.acct-stat--code { border-color: rgba(217, 164, 65, 0.45); background: rgba(217, 164, 65, 0.06); }
.acct-stat__row { display: flex; align-items: center; gap: 14px; }
.acct-stat__hint { font-size: 12px; color: var(--muted); max-width: 30ch; }
.acct-pools-wrap { margin-bottom: 26px; }
.acct-pools-head {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 14px;
}
.acct-pools-head .acct__subhead { margin-bottom: 0; }
.epoch { font-size: 13.5px; color: var(--muted); }
.epoch strong {
  font-family: var(--font-display); color: var(--gold-2); font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.pool--acct { gap: 8px; }
.pool--active { border-color: rgba(121, 201, 142, 0.45); }
.pool__badge {
  font-size: 12px; color: var(--muted); font-weight: 500;
  padding: 5px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.pool__badge--on {
  color: #79c98e; border-color: rgba(121, 201, 142, 0.35);
  background: rgba(121, 201, 142, 0.08);
}
.pool__claim {
  display: flex; flex-direction: column; gap: 2px; margin: 6px 0 4px;
}
.pool__claim span { font-size: 11.5px; color: var(--muted); }
.pool__claim strong {
  font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--text);
}
.pool__claim--off { opacity: 0.45; }
.pool__btn { width: 100%; font-size: 13.5px; padding: 11px 16px; }
.pools__key--acct { margin-top: 14px !important; }
.demo-controls {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 30px; padding: 16px 18px;
  border: 1px dashed rgba(232, 150, 90, 0.4); border-radius: 14px;
}
.demo-controls__label { font-size: 12.5px; color: #e8b659; font-weight: 700; }
.demo-controls .btn { font-size: 12px; padding: 8px 14px; }

/* ── Pools de cashback ────────────────────────── */
.pools {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px; margin-top: 16px;
}
.pool {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.3s cubic-bezier(0.2, 1, 0.4, 1), border-color 0.3s;
}
.pool:hover { transform: translateY(-4px); border-color: rgba(217, 164, 65, 0.4); }
.pool--top {
  border-color: rgba(217, 164, 65, 0.5);
  background: linear-gradient(170deg, rgba(217, 164, 65, 0.1), var(--surface-2) 60%);
}
.pool__tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-2);
}
.pool__req { font-size: 14px; color: var(--muted); font-weight: 500; }
.pool__req strong { color: var(--text); }
.pool__share {
  font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 4px 0 2px;
}
.pool p { font-size: 12.5px; color: var(--muted); }
.pools__key {
  font-size: 14px !important; color: var(--muted);
  background: rgba(217, 164, 65, 0.06);
  border: 1px solid rgba(217, 164, 65, 0.28);
  border-radius: 12px; padding: 14px 16px;
  margin-top: 14px !important;
}
.pools__key strong { color: var(--gold-2); }

/* ── FAQ (acordeón) ───────────────────────────── */
.faq { max-width: 820px; display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color 0.3s, background 0.3s;
}
.faq__item[open] { border-color: rgba(217, 164, 65, 0.4); background: var(--surface-2); }
.faq__item summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 500; font-size: 17px;
  padding: 18px 52px 18px 22px;
  position: relative; user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px; color: var(--gold); font-weight: 400;
  transition: transform 0.3s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p {
  padding: 0 22px 20px; font-size: 14.5px; color: var(--muted);
}

/* ── Modal de términos ────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 4, 8, 0.78);
  backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative; width: min(600px, 100%); max-height: 88svh;
  display: flex; flex-direction: column;
  background: #101018;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 30px 28px 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  animation: modalin 0.35s cubic-bezier(0.2, 1.2, 0.4, 1);
}
@keyframes modalin { from { opacity: 0; transform: translateY(22px) scale(0.97); } }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 14px; cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.modal__close:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }
.modal__title { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-bottom: 6px; }
.modal__sub { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.modal__scroll {
  overflow-y: auto; flex: 1; min-height: 0;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 18px 20px; margin-bottom: 18px;
  max-height: 34svh;
}
.modal__scroll h3 {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-2);
  margin-bottom: 12px;
}
.modal__list { margin-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.modal__list li { font-size: 13.5px; color: var(--muted); }
.modal__link { margin-top: 14px; }
.modal__link a { color: var(--gold-2); font-size: 14px; font-weight: 700; text-decoration: none; }
.modal__link a:hover { text-decoration: underline; }
.modal__checks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.check input {
  appearance: none; width: 19px; height: 19px; flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.25); border-radius: 6px;
  background: var(--surface); cursor: pointer; position: relative;
  transition: background 0.2s, border-color 0.2s;
  margin-top: 1px;
}
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #1d1405; font-size: 13px; font-weight: 700;
}
.check span { font-size: 13.5px; color: var(--muted); }
.modal__actions { display: flex; gap: 12px; justify-content: flex-end; }
.modal__actions .btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Reveal (estado inicial para GSAP) ────────── */
[data-reveal], [data-shelf] { opacity: 0; }
.no-js [data-reveal], .no-js [data-shelf] { opacity: 1; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 130px;
    gap: 56px;
  }
  .hero__eyebrow, .hero__cta, .hero__meta { justify-content: center; }
  .hero__sub { margin-inline: auto; }
  .hero__book { order: -1; }
  .book { --bw: min(200px, 46vw); }
  .nav__links { display: none; }
  .section__head { text-align: center; margin-inline: auto; }
  .section__sub { margin-inline: auto; }
  .explain__row { grid-template-columns: 1fr; gap: 14px; }
  .split__seg { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal], [data-shelf] { opacity: 1; }
}
