/* Cuarta Rewards — site styles */
:root {
  --ink: #1b1530;
  --ink-soft: #4b4466;
  --muted: #6e6787;
  --bg: #ffffff;
  --bg-soft: #f7f4fd;
  --line: #e7e2f3;
  --night: #170f33;
  --night-2: #241653;
  --violet: #6d3fe0;
  --violet-soft: #ede6ff;
  --gold: #f5b51f;
  --gold-deep: #d97706;
  --coral: #ff5e78;
  --leaf: #3fae49;
  --radius: 20px;
  --shadow: 0 18px 50px -20px rgba(39, 20, 99, 0.35);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 15, 51, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,0.78); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; padding: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, #ffd35a, var(--gold) 55%, var(--gold-deep)); color: #2a1600; box-shadow: 0 10px 30px -10px rgba(245,181,31,.7); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; }
.btn-small { padding: 9px 18px; font-size: .9rem; }
.btn-dark { background: var(--night); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(255, 94, 120, .25), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(109, 63, 224, .55), transparent 60%),
    linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
  padding: 72px 0 96px;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #ffe39a;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; margin: 18px 0 18px; }
.hero h1 .accent { background: linear-gradient(90deg, #ffd35a, #ff9f43 50%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-note { font-size: .88rem; color: rgba(255,255,255,.6); }
.hero-points { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.hero-points div { display: flex; align-items: center; gap: 8px; font-weight: 600; color: rgba(255,255,255,.85); font-size: .95rem; }
.hero-points span.dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(63,174,73,.25); color: #8ff09a; font-size: .75rem; }

/* Phone mockup */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; aspect-ratio: 9 / 19; border-radius: 44px;
  background: #0d0820; padding: 12px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 2px rgba(255,255,255,.08) inset;
}
.screen {
  height: 100%; border-radius: 34px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #2d1a6b 0%, #1d1247 60%, #170f33 100%);
  display: flex; flex-direction: column; align-items: center; padding: 22px 16px;
}
.screen .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #0d0820; border-radius: 999px; }
.balance {
  margin-top: 26px; width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center;
}
.balance small { display: block; color: rgba(255,255,255,.6); font-size: .7rem; }
.balance strong { font-size: 1.25rem; color: #ffd35a; }
.balance .peso { font-size: .78rem; color: #8ff09a; font-weight: 700; background: rgba(63,174,73,.2); padding: 4px 9px; border-radius: 999px; }
.screen .tree { width: 88%; margin-top: 14px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.4)); animation: float 6s ease-in-out infinite; }
.bubble {
  position: absolute; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .7rem; color: #3b2300;
  background: radial-gradient(circle at 35% 30%, #fff6cf, #ffd35a 45%, #f59e0b);
  box-shadow: 0 6px 16px -4px rgba(245,158,11,.8); animation: bob 3.2s ease-in-out infinite;
}
.bubble.b1 { width: 46px; height: 46px; top: 138px; left: 22px; }
.bubble.b2 { width: 40px; height: 40px; top: 120px; right: 24px; animation-delay: .8s; }
.bubble.b3 { width: 50px; height: 50px; top: 236px; right: 14px; animation-delay: 1.6s; }
.screen .timer { margin-top: auto; width: 100%; text-align: center; }
.screen .bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; margin: 6px 0 4px; }
.screen .bar i { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, var(--leaf), #a6f06b); border-radius: 999px; }
.screen .timer small { color: rgba(255,255,255,.65); font-size: .72rem; }
.float-card {
  position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: 10px 14px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700;
}
.float-card img { width: 34px; height: 34px; }
.float-card small { display: block; color: var(--muted); font-weight: 600; font-size: .72rem; }
.float-card.fc1 { left: -24px; top: 52%; animation: float 7s ease-in-out infinite; }
.float-card.fc2 { right: -16px; bottom: 90px; animation: float 8s ease-in-out infinite reverse; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bob { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.04); } }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .tag { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.soft { background: var(--bg-soft); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--violet), #9b6bff); margin-bottom: 18px; font-size: 1.1rem;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; font-size: 1.6rem; }
.feature .icon img { width: 44px; height: 44px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
.i-gold { background: #fff4d6; } .i-green { background: #e3f7e5; } .i-violet { background: var(--violet-soft); }
.i-coral { background: #ffe5ea; } .i-blue { background: #e1f0ff; } .i-amber { background: #fdebd3; }

/* Spotlight */
.spotlight .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.spotlight-art img { max-width: 380px; margin: 0 auto; }
.spotlight-art { background: radial-gradient(circle at 50% 45%, #fff6d8, #f1ecff 70%); border-radius: 32px; padding: 40px; }
.spotlight h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 800; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.checks li b { color: var(--ink); }
.checks .ck { flex: none; width: 26px; height: 26px; border-radius: 8px; background: #e3f7e5; color: var(--leaf); display: grid; place-items: center; font-weight: 800; font-size: .85rem; margin-top: 1px; }

/* Trust band */
.trust { background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); color: #fff; }
.trust .section-head h2 { color: #fff; }
.trust .section-head p { color: rgba(255,255,255,.7); }
.trust .section-head .tag { color: #ffd35a; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 26px 22px; }
.trust-item .big { font-size: 1.7rem; margin-bottom: 10px; }
.trust-item h3 { font-size: 1.05rem; }
.trust-item p { color: rgba(255,255,255,.7); font-size: .93rem; margin: 0; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--violet); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* CTA */
.cta-box {
  border-radius: 32px; padding: 56px 40px; text-align: center; color: #fff;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(255,94,120,.35), transparent 60%),
    linear-gradient(135deg, var(--violet), var(--night-2));
}
.cta-box h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.cta-box p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 26px; }

/* Footer */
footer { background: var(--night); color: rgba(255,255,255,.7); padding: 56px 0 32px; font-size: .93rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; margin: 0 0 14px; font-size: .95rem; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: rgba(255,255,255,.75); }
footer a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---------- Legal pages ---------- */
.legal-hero { background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); color: #fff; padding: 64px 0 56px; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal-hero p { color: rgba(255,255,255,.7); margin: 0; }
.legal { max-width: 820px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: .45em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-soft); }
.note { background: #fff8e6; border: 1px solid #f7dc9a; border-radius: 14px; padding: 16px 18px; color: #6b4a00; }
.card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin: 1.2em 0; }
.table-wrap { overflow-x: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container, .spotlight .container { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 72px; }
  .phone-wrap { margin-top: 12px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .spotlight-art { order: 2; }
}
@media (max-width: 720px) {
  section { padding: 72px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); border-bottom: 1px solid rgba(255,255,255,.1); padding: 8px 20px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; }
  .features, .steps, .trust-grid, .foot { grid-template-columns: 1fr; }
  .float-card.fc1 { left: 0; }
  .float-card.fc2 { right: 0; }
  .phone { width: 260px; }
  .cta-box { padding: 44px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- v2: earn badges, extras, scene, walk ---------- */
.feature { position: relative; }
.feature .icon svg { width: 40px; height: 40px; }
.badge { position: absolute; top: 22px; right: 22px; font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.badge.live { background: #e3f7e5; color: #23802d; }
.badge.soon { background: #eef0ff; color: #4b47c9; }

.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.extra { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px dashed #d8cff0; border-radius: 16px; padding: 16px 18px; }
.extra img { width: 42px; height: 42px; flex: none; }
.extra b { display: block; font-size: .98rem; }
.extra span { color: var(--muted); font-size: .9rem; }

.spotlight-art img, .scene-tree { height: auto; }
.scene {
  position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; margin: 0 auto;
  background: linear-gradient(180deg, #8fd3ff 0%, #c9ecff 45%, #fff2cf 100%);
  box-shadow: var(--shadow);
}
.scene-sun { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; top: -6%; right: -8%;
  background: radial-gradient(circle, #fff7d1 0%, #ffd35a 45%, rgba(255, 211, 90, 0) 70%); }
.scene-cloud { position: absolute; height: 9%; border-radius: 999px; background: #fff; opacity: .9; }
.scene-cloud::before, .scene-cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.scene-cloud::before { width: 45%; aspect-ratio: 1; left: 15%; bottom: 35%; }
.scene-cloud::after { width: 32%; aspect-ratio: 1; right: 15%; bottom: 30%; }
.scene-cloud.c1 { width: 30%; top: 14%; left: 8%; animation: drift 18s ease-in-out infinite; }
.scene-cloud.c2 { width: 20%; top: 30%; right: 10%; opacity: .7; animation: drift 24s ease-in-out infinite reverse; }
.scene-tree { position: absolute; width: 78%; left: 11%; bottom: 3%; filter: drop-shadow(0 22px 26px rgba(40, 60, 20, .28)); animation: float 7s ease-in-out infinite; }
.scene .bubble { font-size: .85rem; }
.scene .sb1 { width: 54px; height: 54px; top: 26%; left: 7%; }
.scene .sb2 { width: 46px; height: 46px; top: 16%; right: 24%; animation-delay: .7s; }
.scene .sb3 { width: 64px; height: 64px; top: 40%; right: 6%; animation-delay: 1.3s; }
.scene .sb4 { width: 44px; height: 44px; top: 50%; left: 4%; animation-delay: 2s; }
.bubble.golden { background: radial-gradient(circle at 35% 30%, #fffbe8, #ffe066 35%, #f59e0b 75%); box-shadow: 0 0 0 4px rgba(255, 224, 102, .45), 0 10px 24px -6px rgba(245, 158, 11, .9); }
.scene-chip { position: absolute; background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 700; font-size: .82rem; padding: 8px 14px; border-radius: 999px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .35); }
.chip-level { top: 5%; left: 5%; }
.chip-boost { bottom: 5%; right: 5%; color: #9a4b00; }
@keyframes drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(18px); } }

.spotlight .container.reverse { grid-template-columns: 1.1fr .9fr; }
.walk-art { background: linear-gradient(160deg, #1e3a8a, #3b82f6); border-radius: 32px; padding: 36px 28px; color: #fff; box-shadow: var(--shadow); max-width: 460px; width: 100%; margin: 0 auto; }
.ring { --p: 60; width: 220px; aspect-ratio: 1; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#a6f06b calc(var(--p) * 1%), rgba(255, 255, 255, .18) 0); }
.ring-inner { width: 78%; aspect-ratio: 1; border-radius: 50%; background: #1e3a8a; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-icon { font-size: 1.6rem; }
.ring-inner strong { font-size: 2rem; line-height: 1.1; }
.ring-inner small { color: rgba(255, 255, 255, .7); }
.milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ms { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 10px; text-align: center; }
.ms b { display: block; }
.ms span { font-size: .8rem; color: rgba(255, 255, 255, .75); }
.ms.done { background: rgba(166, 240, 107, .2); border-color: rgba(166, 240, 107, .5); }
.ms.done span { color: #c8f7a1; }

@media (max-width: 960px) {
  .spotlight .container.reverse { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .scene .sb1 { width: 44px; height: 44px; }
  .scene .sb3 { width: 52px; height: 52px; }
  .ring { width: 190px; }
}
