/* ── KRAVO landing — tokens del design system de la app ── */
:root {
  --bg: #0A0A0B;
  --surface: #121215;
  --card: #1A1A1F;
  --card-elevated: #222228;
  --border: #26262D;
  --border-light: #3A3A42;
  --text: #FAFAFA;
  --text-2: #9B9BA4;
  --muted: #64646E;
  --accent: #CEFF1A;
  --accent-soft: rgba(206, 255, 26, 0.12);
  --accent-on: #0A0A0B;
  --success: #7CE38B;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-stat: 'Bebas Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: var(--accent-on); }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Nav ── */
.nav-bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav-bar.scrolled { border-bottom-color: var(--border); }
.nav-bar nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  letter-spacing: -0.5px; color: var(--text);
}
.wordmark:hover { text-decoration: none; }
.wordmark span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-weight: 500; font-size: 14px; color: var(--text-2);
  padding: 8px 14px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav-links a.pill {
  color: var(--text); border: 1px solid var(--border);
  margin-left: 8px; padding: 9px 18px;
  transition: border-color .2s, color .2s;
}
.nav-links a.pill:hover { border-color: var(--border-light); background: none; }

/* ── Hero ── */
header.hero {
  position: relative;
  display: grid; grid-template-columns: 1.05fr auto; gap: 64px;
  align-items: center; padding: 72px 0 96px;
}
.hero-bg {
  position: absolute; inset: -120px 0 0;
  background-image: radial-gradient(rgba(250,250,250,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 70% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}
.kicker {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: 3px; color: var(--accent); text-transform: uppercase;
  margin-bottom: 22px;
}
h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 6.4vw, 64px); line-height: 1.02;
  letter-spacing: -2px; text-wrap: balance; margin-bottom: 22px;
}
h1 em { font-style: normal; color: var(--accent); }
.hero .lead {
  font-size: 17px; color: var(--text-2); max-width: 470px;
  text-wrap: pretty; margin-bottom: 34px;
}
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store-pill {
  display: flex; align-items: center; gap: 12px; padding: 11px 22px 11px 18px;
  border: 1px solid var(--border-light); border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .25s, transform .25s;
}
.store-pill:hover { border-color: var(--muted); transform: translateY(-2px); }
.store-pill svg { width: 22px; height: 22px; fill: var(--text); flex-shrink: 0; }
.store-pill .soon {
  display: block;
  font-family: var(--font-display); font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent);
  line-height: 1.4;
}
.store-pill .store {
  display: block;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--text); line-height: 1.3;
}
.hero-note { margin-top: 20px; font-size: 13px; color: var(--text-2); }

/* ── Phone mock ── */
.phone-col { position: relative; }
.phone-glow {
  position: absolute; inset: -60px;
  background: radial-gradient(ellipse 55% 50% at 50% 45%, rgba(206,255,26,.09), transparent 70%);
  pointer-events: none;
}
.phone {
  position: relative;
  width: 318px; border: 1px solid var(--border-light);
  border-radius: 44px; background: var(--surface);
  padding: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.6);
}
.screen {
  background: var(--bg); border-radius: 34px; padding: 16px 18px 20px;
  display: flex; flex-direction: column; gap: 13px;
  border: 1px solid var(--border);
}
.statusbar {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  color: var(--text-2); padding: 0 6px 2px;
}
.statusbar .sb-right { display: flex; gap: 5px; align-items: center; }
.statusbar .sb-right i {
  display: inline-block; width: 14px; height: 8px;
  border: 1px solid var(--muted); border-radius: 2px; position: relative;
}
.statusbar .sb-right i::after {
  content: ''; position: absolute; inset: 1px 4px 1px 1px;
  background: var(--success); border-radius: 1px;
}
.mock-top { display: flex; justify-content: space-between; align-items: baseline; }
.mock-routine { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.mock-timer {
  font-family: var(--font-stat); font-size: 23px; color: var(--accent);
  letter-spacing: .5px; font-variant-numeric: tabular-nums;
}
.mock-sub { font-size: 12px; color: var(--muted); margin-top: -10px; }
.mock-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px;
}
.mock-exercise { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.set-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.set-table th {
  text-align: left; font-family: var(--font-display); font-weight: 600;
  font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--muted); padding-bottom: 8px;
}
.set-table td { padding: 7px 0; border-top: 1px solid var(--border); color: var(--text-2); }
.set-table .num { font-family: var(--font-stat); font-size: 16px; letter-spacing: .5px; color: var(--text); }
.set-table .check { color: var(--success); }
.set-table tr.current td { color: var(--text); }
.set-table tr.current .set-no {
  color: var(--accent-on); background: var(--accent); border-radius: 6px;
  display: inline-block; min-width: 18px; text-align: center;
  font-weight: 600; font-family: var(--font-display); font-size: 11px;
}
.mock-rest {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--accent-soft); border-radius: var(--r-md); padding: 10px 14px;
}
.mock-rest .label { font-size: 11px; color: var(--text-2); }
.mock-rest .time {
  font-family: var(--font-stat); font-size: 20px; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.mock-pr {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; color: var(--muted); padding: 0 4px;
}
.mock-pr .val { font-family: var(--font-stat); font-size: 16px; color: var(--text); }

/* ── Marquee categorías ── */
.marquee {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 18px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-half { display: flex; gap: 56px; padding-right: 56px; }
.marquee-half span {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 56px; white-space: nowrap;
}
.marquee-half span::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ── Secciones ── */
section { padding: 104px 0 0; }
.section-head { max-width: 560px; margin-bottom: 48px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.1;
  letter-spacing: -1.2px; text-wrap: balance; margin-bottom: 14px;
}
.section-head p { color: var(--text-2); font-size: 16px; text-wrap: pretty; }

/* ── Bento ── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .3s, transform .3s;
}
.card:hover { border-color: var(--border-light); transform: translateY(-3px); }
.card.span2 { grid-column: span 2; }
.card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: -.2px;
}
.card > p { font-size: 14px; color: var(--text-2); text-wrap: pretty; }
.card .visual { margin-top: auto; padding-top: 18px; }

/* Gráfica de progresión */
.chart-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--text-2); margin-bottom: 6px;
}
.chart-meta .delta {
  font-family: var(--font-stat); font-size: 22px; color: var(--accent); letter-spacing: .5px;
}
.chart svg { width: 100%; height: auto; display: block; }

/* PRs */
.pr-list { display: flex; flex-direction: column; }
.pr-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; padding: 11px 0; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-2);
}
.pr-row:first-child { border-top: none; }
.pr-row .pr-val {
  font-family: var(--font-stat); font-size: 22px; color: var(--text);
  letter-spacing: .5px; margin-left: auto;
}
.pr-row .pr-delta {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}

/* IA */
.ia-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.ia-chips span {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  color: var(--text-2); border: 1px solid var(--border-light);
  border-radius: 999px; padding: 4px 12px;
}
.ia-arrow { color: var(--accent); font-size: 14px; line-height: 1; margin-bottom: 10px; }
.ia-plan { display: flex; flex-direction: column; gap: 7px; }
.ia-plan div {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 12px; font-size: 12px; color: var(--text);
  font-family: var(--font-display); font-weight: 600;
}
.ia-plan div small { color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: 11px; }

/* 273 ejercicios */
.big-stat {
  font-family: var(--font-stat); font-size: 92px; line-height: .95;
  color: var(--accent); letter-spacing: -1px;
}
.muscle-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.muscle-pills span {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  color: var(--text-2); border: 1px solid var(--border-light);
  border-radius: 999px; padding: 6px 14px;
}
.muscle-pills span.on {
  color: var(--accent-on); background: var(--accent); border-color: var(--accent);
}

/* Constancia: heatmap */
.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 200px; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); }
.heat i.l1 { background: rgba(206,255,26,.22); border-color: transparent; }
.heat i.l2 { background: rgba(206,255,26,.5); border-color: transparent; }
.heat i.l3 { background: var(--accent); border-color: transparent; }
.streak { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; }
.streak b {
  font-family: var(--font-stat); font-size: 34px; font-weight: 400;
  color: var(--text); letter-spacing: .5px;
}
.streak small { font-size: 12px; color: var(--text-2); }

/* Fotos / Strava */
.lock-row { display: flex; align-items: center; gap: 12px; }
.lock-ic {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: var(--accent-soft); display: grid; place-items: center;
}
.lock-ic svg { width: 17px; height: 17px; stroke: var(--accent); fill: none; stroke-width: 2; }
.lock-row p { font-size: 13px; color: var(--text-2); }
.strava-word {
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  color: #FC4C02; letter-spacing: -.3px;
}

/* ── Temas ── */
.themes-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.theme-card { text-align: center; }
.theme-swatch {
  border-radius: var(--r-md); border: 1px solid var(--border-light);
  padding: 14px 12px; height: 116px;
  display: flex; flex-direction: column; gap: 7px;
  transition: transform .25s;
}
.theme-card:hover .theme-swatch { transform: translateY(-4px); }
.theme-swatch i { display: block; height: 7px; border-radius: 4px; }
.theme-swatch .t-title { width: 70%; }
.theme-swatch .t-line { width: 100%; opacity: .45; }
.theme-swatch .t-line2 { width: 55%; opacity: .45; }
.theme-swatch .t-btn { width: 46%; height: 14px; margin-top: auto; border-radius: 7px; }
.theme-card figcaption {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  color: var(--text-2); margin-top: 10px;
}
.accents-note {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin-top: 28px; font-size: 13px; color: var(--text-2);
}
.accents-note i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }

/* ── CTA final ── */
section.cta { text-align: center; padding-bottom: 8px; }
section.cta .cta-box {
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--surface); padding: 72px 32px;
  position: relative; overflow: hidden;
}
section.cta .cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(206,255,26,.07), transparent 70%);
  pointer-events: none;
}
section.cta h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 4.5vw, 42px);
  letter-spacing: -1.2px; margin-bottom: 12px; text-wrap: balance;
}
section.cta p { color: var(--text-2); font-size: 15px; margin-bottom: 30px; }
.cta .stores { justify-content: center; position: relative; }
.cta-note { position: relative; margin-top: 26px !important; margin-bottom: 0 !important; font-size: 14px !important; }
.cta-note a { font-weight: 600; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border); margin-top: 96px; padding: 34px 0 48px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
footer .legal { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--text-2); font-size: 13px; }
footer a:hover { color: var(--text); }
footer .copy { font-size: 13px; color: var(--text-2); }

/* ── Responsive ── */
@media (max-width: 980px) {
  .themes-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  header.hero { grid-template-columns: 1fr; padding: 40px 0 64px; gap: 48px; }
  .phone-col { display: flex; justify-content: center; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card.span2 { grid-column: span 2; }
  .nav-links a:not(.pill) { display: none; }
  section { padding-top: 80px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .card.span2 { grid-column: span 1; }
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .big-stat { font-size: 76px; }
  .phone { width: 296px; }
}
