/* KinearFit — kinearfit.com */

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dmsans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080A12;
  --surface: #0D1019;
  --line: #1C2131;
  --line-2: #2A3145;
  --text: #F2F4F8;
  --body: #C9CFDB;
  --muted: #8E97A9;
  --orange: #FF4500;
  --cyan: #00D4FF;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
img, video { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Barra superior ---------- */
.top { padding-top: env(safe-area-inset-top, 0px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.langs { display: flex; gap: 2px; margin-left: auto; }
.langs a { color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 7px; border-radius: 6px; }
.langs a:hover { color: var(--text); text-decoration: none; }
.langs a[aria-current="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }

/* ---------- Logotipo ---------- */
.wordmark { font-weight: 900; letter-spacing: -2px; line-height: 1; color: var(--text); white-space: nowrap; }
.wordmark .fit { color: var(--orange); }
a.wordmark:hover { text-decoration: none; }
.wordmark.small { font-size: 24px; letter-spacing: -1px; }

/* ---------- Portada ---------- */
.hero { padding: 28px 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero .wordmark { font-size: clamp(60px, 18.5vw, 112px); }
.tagline { margin-top: 12px; color: var(--muted); font-weight: 500; font-size: clamp(16px, 4.4vw, 20px); }
.hero h1 { margin-top: 36px; max-width: 16em; font-size: clamp(27px, 7.4vw, 44px); font-weight: 750; letter-spacing: -0.02em; line-height: 1.12; }
.sub { margin-top: 14px; color: var(--muted); font-size: 18px; }
.cta { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.free-note { color: var(--muted); font-size: 15px; }
.soon { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 18px; font-weight: 600; font-size: 16px; color: var(--text); }
.soon svg { width: 20px; height: 20px; color: var(--orange); flex: none; }
.play-badge { display: inline-block; }
.play-badge img { height: 58px; width: auto; }

/* ---------- Clip y capturas ----------
   Cada .media aparece sola cuando su archivo existe en el servidor.
   Con ?preview en la URL se ven los espacios vacíos. */
.media { display: none; }
.media.ready, .preview .media { display: block; }
.demo { width: min(300px, 76vw); justify-self: center; }
.frame { position: relative; aspect-ratio: 9 / 16; border: 1px solid var(--line-2); border-radius: 28px; overflow: hidden; background: var(--surface); }
.frame.square { aspect-ratio: 1; border: 0; border-radius: 22%; }
.ph { position: absolute; inset: 10px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; border: 1px dashed var(--line-2); border-radius: 20px; color: var(--muted); font-size: 13px; }
.frame.square .ph { border-radius: 22%; inset: 0; }
.m { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.m.is-loaded { opacity: 1; }

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(26px, 6.6vw, 40px); font-weight: 750; letter-spacing: -0.02em; line-height: 1.12; max-width: 18em; }
.section .intro { margin-top: 12px; color: var(--muted); max-width: 34em; }

/* Pasos: una secuencia real, por eso van numerados */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 32px; counter-reset: step; }
.step { counter-increment: step; }
.step .media { margin-bottom: 20px; width: min(260px, 70vw); }
.step h3 { display: flex; align-items: baseline; gap: 12px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.step h3::before { content: counter(step); color: var(--orange); font-weight: 800; font-size: 21px; font-variant-numeric: tabular-nums; min-width: 14px; }
.step p { margin-top: 6px; color: var(--muted); padding-left: 26px; }
/* Con capturas, en celular los pasos se deslizan de lado */
.steps:has(.media.ready), .preview .steps {
  grid-auto-flow: column; grid-auto-columns: 62%; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none;
}
.steps:has(.media.ready)::-webkit-scrollbar, .preview .steps::-webkit-scrollbar { display: none; }
.steps:has(.media.ready) .step, .preview .steps .step { scroll-snap-align: start; }
.steps:has(.media.ready) .step .media, .preview .steps .step .media { width: 100%; }

/* Privacidad: la franja que se distingue */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feats { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 28px; }
.feat { display: grid; grid-template-columns: 30px 1fr; gap: 16px; align-items: start; }
.feat svg { width: 28px; height: 28px; color: var(--cyan); margin-top: 1px; }
.feat h3 { font-size: 18px; font-weight: 700; line-height: 1.35; }
.feat p { margin-top: 4px; color: var(--muted); font-size: 16px; }
.more { display: inline-block; margin-top: 32px; font-weight: 600; }

/* Precio */
.plans { display: grid; gap: 16px; margin-top: 36px; }
.plan { border: 1px solid var(--line-2); border-radius: 18px; padding: 26px 24px; }
.plan.prem { border-color: var(--orange); background: var(--surface); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font-size: 19px; font-weight: 700; }
.tag { font-size: 13px; font-weight: 700; color: var(--orange); border: 1px solid var(--orange); border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.price { margin-top: 16px; display: flex; align-items: baseline; gap: 4px; }
.amount { font-size: 48px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.per { color: var(--muted); font-size: 17px; font-weight: 600; }
.billed { margin-top: 8px; color: var(--muted); font-size: 15px; }
.alt { margin-top: 2px; font-size: 15px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.checks svg { width: 20px; height: 20px; color: var(--cyan); margin-top: 3px; }
.price-note { margin-top: 22px; color: var(--muted); font-size: 14px; max-width: 40em; }

/* ---------- Pie ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 44px; }
.closing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-bottom: 56px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.closing .media { width: 112px; }
.closing .tagline { margin-top: 0; color: var(--text); font-weight: 600; font-size: 20px; }
.closing .cta { margin-top: 4px; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot-links a { color: var(--text); font-weight: 600; }
.foot-note { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 40em; }
.foot-copy { margin-top: 12px; color: var(--muted); font-size: 13px; }

/* ---------- Páginas de texto ---------- */
.doc { max-width: 720px; padding-top: 32px; padding-bottom: 72px; }
.doc h1 { hyphens: auto; overflow-wrap: break-word; font-size: clamp(30px, 7vw, 42px); font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.updated { margin-top: 10px; color: var(--muted); font-size: 14px; }
.note { margin-top: 20px; border-left: 2px solid var(--cyan); padding: 10px 14px; background: var(--surface); color: var(--muted); font-size: 15px; }
.summary { margin-top: 28px; border: 1px solid var(--line-2); border-radius: 14px; padding: 20px 22px; background: var(--surface); }
.summary-title { font-weight: 700; color: var(--text); }
.doc h2 { margin-top: 44px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.doc h3 { margin-top: 26px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.doc p, .doc ul { margin-top: 12px; }
.doc p, .doc li { color: var(--body); }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--orange); }
.doc strong { color: var(--text); font-weight: 700; }
.doc .lead { margin-top: 20px; font-size: 18px; color: var(--text); }
.doc .summary ul { margin-top: 10px; }
.doc .wordmark + h1 { margin-top: 40px; }
.doc .foot-links { margin-top: 20px; }

/* ---------- Pantallas grandes ---------- */
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step .media, .steps:has(.media.ready) .step .media, .preview .steps .step .media { width: 100%; max-width: 230px; }
  .steps:has(.media.ready), .preview .steps { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
  .feats { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .feats.four { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
  .plans { grid-template-columns: 1fr 1fr; max-width: 820px; }
}
@media (min-width: 960px) {
  .hero { padding: 56px 0 104px; }
  .hero-grid { grid-template-columns: 1.25fr .75fr; }
  .section { padding: 96px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
