/* Zerolimits · web. Sobria: negro, blanco y un solo azul. La tipografía y las capturas hacen el trabajo. */
:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #6e6e73;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #2563ff;
  --sky: #7fb2ff;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ─── Navegación ─────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, 0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 16px; color: var(--ink-2); }
.lang-switch { display: flex; align-items: center; }
.lang-label { display: none; }
.lang-pill { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); }
.lang-opt { min-width: 40px; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-align: center; color: var(--ink-3); transition: color 0.2s, background 0.2s; }
a.lang-opt:hover { color: var(--ink); }
.lang-opt.active { background: rgba(255, 255, 255, 0.14); color: var(--ink); }
.btn-get { padding: 10px 20px; border-radius: 999px; background: var(--ink); color: #000; font-weight: 600; font-size: 15px; transition: opacity 0.2s; }
.btn-get:hover { opacity: 0.88; }

/* ─── Botón de App Store (sustituir por el badge oficial de Apple al lanzar) ─ */
.store { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px 0 18px; border-radius: 14px; background: var(--ink); color: #000; transition: transform 0.2s ease, opacity 0.2s; }
.store:hover { opacity: 0.9; }
.store:active { transform: scale(0.97); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store small { font-size: 11px; font-weight: 500; }
.store strong { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.store[data-soon="true"] { cursor: default; }

/* ─── Portada: a pantalla completa, texto y tres capturas en abanico ──── */
.hero { min-height: calc(100svh - 72px); display: flex; align-items: center; padding: 48px 0; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; right: -10%; top: 50%; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(37, 99, 255, 0.2), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 96px; position: relative; }
.hero-copy { text-align: left; position: relative; z-index: 3; }
.hero h1 { font-size: clamp(44px, 5vw, 72px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; }
.hero h1 .accent { color: var(--ink-3); }
.hero .lead { margin: 24px 0 36px; font-size: clamp(19px, 1.7vw, 22px); color: var(--ink-2); max-width: 28ch; }
.hero-phones { position: relative; height: min(76svh, 680px); display: flex; align-items: center; justify-content: center; }
.hero-phones .phone { position: absolute; height: 78%; width: auto; }
/* Chica (sentadilla) y chico (press de banca) a los lados; el progreso en el centro, delante. */
.hero-phones .mid { z-index: 3; height: 92%; }
.hero-phones .her { z-index: 2; transform: translateX(-50%) rotate(-5deg); }
.hero-phones .him { z-index: 2; transform: translateX(50%) rotate(5deg); }
@media (max-width: 1100px) {
  .hero-grid { gap: 48px; }
  .hero { min-height: auto; padding: 56px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-phones { height: min(62svh, 520px); }
  .hero-phones { height: min(56svh, 460px); }
  .hero-phones .her { transform: translateX(-46%) rotate(-5deg); }
  .hero-phones .him { transform: translateX(46%) rotate(5deg); }
}

/* Móvil: la captura real dentro de un marco sobrio. */
.phone { position: relative; width: min(340px, 78vw); aspect-ratio: 560 / 1100; border-radius: 52px; padding: 9px; background: #1d1d1f; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 100px rgba(0, 0, 0, 0.6); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 44px; background: #111; }

/* ─── Bloques: captura y texto, alternando ───────────────────────────── */
.features { border-top: 1px solid var(--line); position: relative; z-index: 1; background: var(--bg); padding: 40px 0 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; padding: 96px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.reverse .feature-visual { order: 2; }
.feature-visual { display: flex; justify-content: center; }
.feature-visual .phone { width: min(300px, 74vw); border-radius: 48px; padding: 8px; }
.feature-visual .phone img { border-radius: 41px; }
.feature-copy { max-width: 420px; }
.feature-copy h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.feature-copy p { margin-top: 16px; font-size: 19px; color: var(--ink-2); }
.cta-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* ─── Detalles: cuatro en fila, solo texto ───────────────────────────── */
.details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 120px; }
.details-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.detail { padding: 40px 24px 40px 0; display: flex; flex-direction: column; gap: 6px; }
.detail + .detail { padding-left: 24px; border-left: 1px solid var(--line); }
.detail strong { font-size: 17px; font-weight: 600; }
.detail span { font-size: 15px; color: var(--ink-2); }

@media (max-width: 1100px) {
  .feature { grid-template-columns: 1fr; gap: 40px; padding: 72px 0; text-align: center; }
  .feature.reverse .feature-visual { order: 0; }
  .feature-copy { margin: 0 auto; }
  .details-row { grid-template-columns: 1fr 1fr; }
  .detail:nth-child(3) { padding-left: 0; border-left: 0; }
  .detail:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ─── Preguntas ──────────────────────────────────────────────────────── */
.faq-section { padding: 0 0 140px; scroll-margin-top: 88px; }
.faq-section h2, .final h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.faq-section h2 { margin-bottom: 40px; }
.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg) translateY(-4px); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .answer { padding: 0 0 26px; color: var(--ink-2); max-width: 60ch; }

/* ─── Cierre ─────────────────────────────────────────────────────────── */
.final { padding: 120px 0 160px; text-align: center; border-top: 1px solid var(--line); }
.final img.icon { width: 72px; height: 72px; border-radius: 17px; margin: 0 auto 32px; }
.final h2 { margin-bottom: 36px; }

/* ─── Pie ────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--ink-3); }
footer .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a:hover { color: var(--ink); }

/* ─── Páginas legales ────────────────────────────────────────────────── */
.doc { max-width: 720px; margin: 0 auto; padding: 72px 24px 120px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 10px; }
.doc .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 21px; font-weight: 600; margin: 40px 0 10px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.doc a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
.doc .btn-get { display: inline-block; text-decoration: none; margin-top: 28px; }

/* ─── Aparición suave (sin movimiento si el sistema lo pide) ─────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Detalles: en móvil, uno debajo de otro, sin columnas apretadas. */
@media (max-width: 480px) {
  .details-row { grid-template-columns: 1fr; }
  .detail, .detail + .detail { padding: 24px 0; border-left: 0; }
  .detail + .detail { border-top: 1px solid var(--line); }
  .faq summary { font-size: 17px; padding: 22px 0; }
  .feature-copy p { font-size: 17px; }
}
/* Ningún elemento puede crear scroll horizontal. */
html, body { max-width: 100%; overflow-x: hidden; }

@media (max-width: 1100px) {
  /* Apilado: el halo va detrás de los móviles, centrado. */
  .hero::before { right: 50%; top: auto; bottom: -10%; transform: translateX(50%); width: 120vw; height: 120vw; }
  .hero-phones { width: 100%; }
}

/* ─── Navegación: enlaces de sección ─────────────────────────────────── */
.nav-link { color: var(--ink-2); }
.nav-link:hover { color: var(--ink); }
/* Menú hamburguesa en móvil. */
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.3s ease, top 0.3s ease; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav.open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .nav .wrap { height: 64px; }
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 64px 0 0 0; height: calc(100dvh - 64px); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 8px 24px 28px; background: #000; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links .nav-link { padding: 18px 0; font-size: 22px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-links .lang-switch { justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .nav-links .lang-label { display: block; font-size: 22px; font-weight: 600; color: var(--ink); }
  .nav-links .lang-opt { min-width: 52px; padding: 9px 14px; font-size: 15px; }
  .nav-links .btn-get { margin-top: 24px; padding: 15px; text-align: center; font-size: 17px; }
  body.menu-open { overflow: hidden; }
}

/* ─── Páginas de contenido (ejercicios, músculos, blog) ──────────────── */
.page-head { padding: 64px 24px 40px; }
.page-head h1, .ex-head h1, .post-head h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; }
.page-head .lead, .ex-head .lead { margin-top: 14px; font-size: 19px; color: var(--ink-2); max-width: 52ch; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--ink); }

.ex-group { padding: 40px 0; border-top: 1px solid var(--line); }
.ex-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ex-group-head h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.more { font-size: 14px; color: var(--ink-2); }
.more:hover { color: var(--ink); }
.ex-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ex-grid.wide { padding-bottom: 40px; }
.ex-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.ex-card:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.ex-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #dfe6f1; }
.ex-card span { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.ex-card strong { font-size: 16px; font-weight: 600; }
.ex-card small { font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ex-page { padding-top: 64px; padding-bottom: 40px; max-width: 880px; }
.ex-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0 24px; }
.ex-figures.single { grid-template-columns: 1fr; max-width: 440px; }
.ex-figures img { border-radius: 22px; aspect-ratio: 1; object-fit: cover; background: #dfe6f1; width: 100%; height: auto; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 20px 16px 20px 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.facts a { text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ex-figures { grid-template-columns: 1fr; }
}

.prose { max-width: 680px; }
.prose h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 44px 0 14px; }
.prose h3 { font-size: 19px; font-weight: 600; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
.prose .cue { margin-top: 18px; padding: 16px 18px; border-left: 2px solid var(--blue); background: rgba(37, 99, 255, 0.08); border-radius: 0 12px 12px 0; }
.table { overflow-x: auto; margin: 18px 0; }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.table th { color: var(--ink); font-weight: 600; }

.post { padding-top: 64px; padding-bottom: 40px; max-width: 760px; }
.post-head { margin-bottom: 28px; }
.post-head .meta { margin-top: 14px; color: var(--ink-3); font-size: 14px; }
.post .prose > p:first-child { font-size: 21px; color: var(--ink); }
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 40px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; transition: border-color 0.2s; }
.post-card:hover { border-color: rgba(255, 255, 255, 0.3); }
.post-card time { font-size: 13px; color: var(--ink-3); }
.post-card h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.post-card p { color: var(--ink-2); font-size: 16px; }
.related { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.related > h2 { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
@media (max-width: 720px) { .post-list { grid-template-columns: 1fr; } }

.page-cta { padding: 96px 0 120px; text-align: center; border-top: 1px solid var(--line); margin-top: 40px; }
.page-cta .icon { width: 64px; height: 64px; border-radius: 15px; margin: 0 auto 24px; }
.page-cta h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
.page-cta p { margin: 12px auto 28px; color: var(--ink-2); max-width: 40ch; }
