:root {
  --bg: #0f172a;
  --card: #1e293b;
  --card-top: #233248;
  --accent: #6366f1;
  --accent-strong: #4f46e5;
  --accent-text: #a5b4fc;
  --text: #f8fafc;
  --muted: #94a3b8;
  --switch-idle: #a8b3c7;
  --line: rgba(148, 163, 184, 0.22);
  --hair: rgba(148, 163, 184, 0.12);
  --radius: 20px;
  --max: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; accent-color: var(--accent); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--accent-strong); color: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 9vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; color: var(--muted); text-wrap: pretty; max-width: 62ch; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 64px 20px; }
.center { text-align: center; }
.center p, p.center { margin-left: auto; margin-right: auto; }
.head { margin-bottom: 36px; }
.head h2 { max-width: 20ch; margin-bottom: 0.4em; }
.head.center h2, .head.center .sub { margin-left: auto; margin-right: auto; }
.sub { font-size: 1.05rem; max-width: 58ch; margin-bottom: 0; }

.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 23, 42, 0.6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.top.scrolled { background: rgba(15, 23, 42, 0.9); border-bottom-color: var(--line); }
.top-in { max-width: var(--max); margin: 0 auto; padding: 10px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.top .brand { font-size: 1.15rem; margin-right: auto; }
.top-links { order: 3; flex: 0 0 100%; display: flex; flex-wrap: wrap; gap: 0 2px; margin: 0 -8px; }
.top-links a { color: var(--muted); font-size: 0.88rem; font-weight: 600; text-decoration: none; padding: 6px 8px; border-radius: 999px; transition: color 0.2s; }
.top-links a:hover { color: var(--text); }
.top .cta { margin: 0; padding: 9px 18px; font-size: 0.92rem; box-shadow: none; }
.top .cta:hover { box-shadow: none; transform: none; }
section[id] { scroll-margin-top: 96px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.brand img { border-radius: 9px; }

.cta {
  display: inline-block;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  margin: 8px 0 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
  transition: background-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.cta:hover { background: #4338ca; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(99, 102, 241, 0.32); }
.cta:active { transform: translateY(0); }
.cta:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }

.lead { color: var(--text); font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
.chips { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; color: var(--muted); }
.chips li { display: inline; }
.chips li:not(:last-child)::after { content: ' ·'; margin-right: 0.35em; }

/* Device frame + stage */
.stage { position: relative; display: grid; place-items: center; padding: 28px 0; isolation: isolate; }
.stage::before {
  content: ''; position: absolute; inset: 4% 6%; z-index: -1; border-radius: 40px;
  background: radial-gradient(60% 55% at 50% 45%, rgba(99, 102, 241, 0.34), rgba(99, 102, 241, 0) 72%);
}
.device {
  margin: 0; width: min(290px, 74vw); padding: 9px; border-radius: 46px;
  background: linear-gradient(160deg, #3b4a63, #1e293b 55%, #151e30);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.28), 0 30px 50px -18px rgba(2, 6, 23, 0.85), 0 12px 20px -12px rgba(2, 6, 23, 0.6);
}
.panel { aspect-ratio: 480 / 980; overflow: hidden; border-radius: 37px; background: #f8fafc; color: #0f172a; padding: 5.5% 5% 0; font-size: 13px; line-height: 1.25; display: flex; flex-direction: column; gap: 10px; }
.panel b { font-weight: 700; }
.panel-head { display: flex; align-items: center; gap: 10px; }
.panel-head > span:last-child { display: grid; }
.panel-head small { font-size: 0.62em; font-weight: 700; letter-spacing: 0.1em; color: #64748b; }
.panel-head b { font-size: 1.45em; }
.logo-sq { width: 38px; height: 38px; border-radius: 12px; background: #e0e7ff; color: #6366f1; flex: none; display: grid; place-items: center; }
.logo-sq svg { width: 20px; height: 20px; }
.panel-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel-tabs span { text-align: center; padding: 9px 0; border-radius: 12px; background: #e2e8f0; color: #334155; font-weight: 700; }
.panel-tabs .on { background: #e0e7ff; color: #4338ca; box-shadow: inset 0 0 0 1px #c7d2fe; }
.panel-chips { display: flex; gap: 6px; }
.panel-chips span { padding: 4px 10px; border-radius: 999px; background: #e2e8f0; color: #334155; font-size: 0.92em; }
.panel-chips .c-act { background: #e0e7ff; color: #4338ca; }
.panel-chips .c-hoy { background: #fef3c7; color: #b45309; }
.panel-search { padding: 11px 14px; border-radius: 12px; background: #e2e8f0; color: #64748b; }
.panel-list { list-style: none; margin: 0; padding: 4px 10px; background: #fff; border-radius: 16px 16px 0 0; flex: 1; min-height: 0; overflow: hidden; }
.panel-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e2e8f0; }
.av { width: 34px; height: 34px; border-radius: 50%; background: #eef2ff; color: #6366f1; display: grid; place-items: center; font-weight: 700; font-size: 0.9em; flex: none; }
.who { display: grid; flex: 1; min-width: 0; }
.who b { font-size: 1.05em; }
.who small { color: #475569; font-size: 0.92em; }
.pill { font-size: 0.7em; font-weight: 800; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px; }
.pill.ok { background: #dcfce7; color: #15803d; box-shadow: inset 0 0 0 1px #bbf7d0; }
.pill.manual, .pill.off { background: #e2e8f0; color: #475569; }
.shot { display: block; width: 100%; border-radius: 37px; background: var(--card); }

.hero { display: grid; gap: 24px; align-items: start; padding-top: 24px; padding-bottom: 40px; }
.hero h1 { max-width: 13ch; }
.hero .lead { max-width: 40ch; }

.band { background: linear-gradient(180deg, var(--card) 0%, #19243a 100%); border-block: 1px solid var(--hair); }
.dolor { display: grid; gap: 32px; }
.audience { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.audience li { color: var(--muted); background: rgba(15, 23, 42, 0.55); border: 1px solid var(--hair); border-radius: 16px; padding: 16px 18px; line-height: 1.5; }
.audience strong { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 2px; }

/* Steps: vertical timeline on mobile, connected row on desktop */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 28px; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 28px 64px; --d: calc(var(--n, 0) * 230ms); }
.steps li:nth-child(2) { --n: 1; } .steps li:nth-child(3) { --n: 2; } .steps li:nth-child(4) { --n: 3; }
.steps li:last-child { padding-bottom: 8px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-strong); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px var(--bg);
}
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: linear-gradient(var(--accent), var(--hair)); transform-origin: top; }
.steps h3 { margin: 10px 0 6px; }
.steps p { margin: 0; }

.split { display: grid; gap: 20px; align-items: center; }
.copy h2 { max-width: 16ch; }
.copy h3 { margin-top: 1.4em; }
.stats { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.stats li { background: var(--card); border: 1px solid var(--hair); border-radius: 16px; padding: 12px; display: grid; gap: 2px; min-width: 0; flex: 1 1 0; max-width: 200px; }
.stats strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text); }
.stats li > span { color: var(--muted); font-size: 0.85rem; line-height: 1.3; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { color: var(--muted); padding-left: 30px; position: relative; max-width: 56ch; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.4em; width: 14px; height: 8px; border-left: 3px solid #22c55e; border-bottom: 3px solid #22c55e; transform: rotate(-45deg); }

/* Differentials: one lead card + two supporting, no icon grid */
.cards { display: grid; gap: 14px; }
.cards article { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); padding: 24px 24px 10px; transition: transform 0.25s var(--ease), border-color 0.25s; }
.cards article:hover { transform: translateY(-3px); border-color: rgba(165, 180, 252, 0.4); }
.cards article:first-child { background: linear-gradient(160deg, var(--card-top), var(--card)); padding-top: 28px; }
.cards article:first-child h3 { font-size: 1.5rem; }
.cards article:first-child p { font-size: 1.05rem; }

.plans { display: grid; gap: 18px; margin: 0 0 28px; align-items: stretch; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; transition: transform 0.25s var(--ease), border-color 0.25s; }
.plan:hover { transform: translateY(-3px); border-color: rgba(165, 180, 252, 0.5); }
.plan.featured { background: linear-gradient(165deg, #2a2f78, #1b2150 70%); border: 2px solid var(--accent); box-shadow: 0 24px 40px -20px rgba(79, 70, 229, 0.6); padding-top: 34px; }
.plan.featured .seats, .plan.featured .alt { color: #dbe2ff; }
.plan h3 { margin-bottom: 4px; }
.seats { color: var(--text); font-weight: 600; margin-bottom: 16px; }
.price { color: var(--text); font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.price span { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan.featured .price span { color: #c7d2fe; }
.alt { font-size: 0.95rem; margin: 0; }
.badge { position: absolute; top: -14px; left: 22px; margin: 0; background: var(--accent-strong); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; }
.note { max-width: 56ch; }

.closing { max-width: var(--max); }
.closing-card { text-align: center; padding: 48px 22px 28px; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(80% 120% at 50% 0%, rgba(99, 102, 241, 0.3), rgba(99, 102, 241, 0) 70%), var(--card); }
.closing-card h2 { max-width: 20ch; margin-inline: auto; }
.closing-card p { margin-inline: auto; }

.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.foot .brand { font-size: 1rem; }
.foot nav { color: var(--muted); font-size: 0.9rem; }
.foot .credit { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 0.8rem; }
.foot .credit a { color: var(--accent-text, #a5b4fc); font-weight: 600; }

@media (min-width: 860px) {
  .wrap { padding: 104px 32px; }
  .top-in { padding: 12px 32px; flex-wrap: nowrap; gap: 28px; }
  .top-links { order: 0; flex: 0 0 auto; margin: 0; gap: 8px; }
  .top .brand { margin-right: 0; }
  .top .cta { margin-left: auto; }
  section[id] { scroll-margin-top: 72px; }
  .hero { grid-template-columns: 1.2fr 1fr; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
  .hero h1 { max-width: 12ch; font-size: clamp(2.6rem, 4.4vw, 3.5rem); }
  .device { width: 300px; }
  .hero-stage .device { width: 330px; }
  .dolor { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
  .audience { grid-template-columns: 1fr 1fr; }
  .audience li { padding: 20px; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }
  .steps li { padding: 64px 0 0; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:not(:last-child)::after { left: 52px; right: -24px; top: 21px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--accent), var(--hair)); transform-origin: left; }
  .steps h3 { margin-top: 0; }

  .split { grid-template-columns: 1fr 1.05fr; gap: 80px; padding-top: 72px; padding-bottom: 72px; }
  .split.reverse { grid-template-columns: 1.05fr 1fr; }
  .split.reverse .stage { order: 2; }
  .stage { padding: 40px 0; }
  .stage::before { inset: 0 4%; }

  .cards { grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; }
  .cards article:first-child { grid-row: span 2; padding: 40px 36px 20px; display: flex; flex-direction: column; justify-content: center; }
  .cards article:first-child h3 { font-size: 1.9rem; }

  .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: center; }
  .plan { padding: 32px 28px; }
  .plan.featured { padding-top: 48px; padding-bottom: 44px; }
  .plan.featured .price { font-size: 2.8rem; }
  .closing-card { padding: 80px 48px 56px; }
}

/* Motion: hero rows list in one by one (CSS only, visible by default); steps and counters are driven by motion.js. */
@media (prefers-reduced-motion: no-preference) {
  .hero-stage .device { animation: settle 0.7s var(--ease) both; }
  @keyframes settle { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
  .panel-list li { animation: row 0.5s var(--ease) both; animation-delay: calc(0.35s + var(--i) * 90ms); }
  @keyframes row { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @supports (animation-timeline: view()) {
    .split .device, .plan, .closing-card {
      animation: rise linear backwards; animation-timeline: view(); animation-range: entry 0% entry 45%;
    }
    @keyframes rise { from { opacity: 0.001; transform: translateY(32px); } to { opacity: 1; transform: none; } }
  }
  .m .steps li::before { background: var(--card); color: var(--muted); box-shadow: 0 0 0 6px var(--bg), inset 0 0 0 2px var(--line); transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease); transition-delay: var(--d); }
  .m .steps li:not(:last-child)::after { transform: scaleY(0); transition: transform 0.5s var(--ease); transition-delay: calc(var(--d) + 120ms); }
  .m .steps.in li::before { background: var(--accent-strong); color: #fff; box-shadow: 0 0 0 6px var(--bg); }
  .m .steps.in li:not(:last-child)::after { transform: none; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 860px) {
  .m .steps li:not(:last-child)::after { transform: scaleX(0); }
  .m .steps.in li:not(:last-child)::after { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .cards article, .plan, .top { transition: none; }
}

/* Audience switch (/ <-> /entrenar): a quiet segmented control above the H1, clearly secondary to the CTA.
   The link keeps a 44px hit area on touch; the visible track is 34px and the hit area collapses to it on desktop. */
.audience-switch { --h: 44px; position: relative; isolation: isolate; display: inline-flex; max-width: 100%; margin-bottom: 28px; padding: 0 3px; }
.audience-switch::before { content: ''; position: absolute; z-index: -1; inset: calc((var(--h) - 34px) / 2) 0; border-radius: 999px; background: rgba(30, 41, 59, 0.6); border: 1px solid var(--line); }
.audience-switch a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: var(--h); padding: 0 14px; color: var(--switch-idle); font-size: 0.875rem; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; transition: color 0.18s var(--ease); }
.audience-switch a::before { content: ''; position: absolute; z-index: -1; inset: calc((var(--h) - 28px) / 2) 0; border-radius: 999px; background: transparent; transition: background-color 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.audience-switch a:hover { color: var(--text); }
.audience-switch a:hover::before { background: rgba(148, 163, 184, 0.1); }
.audience-switch a[aria-current='page'] { color: var(--text); }
.audience-switch a[aria-current='page']::before { background: var(--card-top); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(2, 6, 23, 0.5); }
.audience-switch a:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 1px; border-radius: 999px; }
@media (min-width: 860px) { .audience-switch { --h: 34px; } }
@media (max-width: 380px) { .audience-switch a { padding: 0 11px; font-size: 0.84rem; } }
@media (prefers-reduced-motion: reduce) { .audience-switch a, .audience-switch a::before { transition: none; } }
.cross { border-top: 1px solid var(--line); }
.cross .wrap { display: grid; gap: 16px; padding-top: 40px; padding-bottom: 48px; }
.cross h2 { font-size: 1.5rem; margin-bottom: 0.2em; }
.cross p { margin: 0; }
.cross-link { justify-self: start; color: var(--text); font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); transition: border-color 0.2s, background-color 0.2s; }
.cross-link:hover { border-color: var(--accent-text); background: rgba(99, 102, 241, 0.12); }
@media (min-width: 860px) {
  .cross .wrap { grid-template-columns: 1fr auto; align-items: center; gap: 48px; padding-top: 48px; padding-bottom: 56px; }
}
@media (max-width: 599px) { .top-links { display: none; } }
