/* Gymovo · landing
   Tokens copiados de diseno-app/tokens/theme.ts (claro y oscuro). Fuentes oficiales: Bricolage Grotesque (títulos) y Onest (texto). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/BricolageGrotesque-Variable-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("assets/fonts/Onest-Variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --text: #111827;
  --text-2: #475569;
  --text-3: #64748b;
  --text-brand: #2864f0;
  --brand: #2864f0;
  --brand-pressed: #1f55d6;
  --brand-tint: #eef4ff;
  --brand-tint-strong: #dce8ff;
  --brand-tint-text: #17458e;
  --deep: #17458e;
  --border: #e5e7eb;
  --border-strong: #7d8ba2;
  --divider: #eef1f5;
  --success: #15803d;
  --success-tint: #ecf8f0;
  --warning: #b45309;
  --focus: #2864f0;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 2px 8px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 6px 20px rgba(17, 24, 39, 0.08);
  --shadow-floating: 0 14px 40px rgba(17, 24, 39, 0.16);
  --phone-shadow: 0 0 0 2px #2a3140, 0 40px 80px rgba(17, 24, 39, 0.28), 0 10px 24px rgba(17, 24, 39, 0.16);

  --font-display: "Bricolage Grotesque", "SF Pro Display", system-ui, sans-serif;
  --font-body: "Onest", "SF Pro Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 28px;

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-enter: cubic-bezier(0.05, 0.7, 0.1, 1);

  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1240px;
  --nav-h: 76px;

  --z-sticky: 10;
  --z-nav: 50;
  --z-progress: 60;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1220;
    --surface: #111c2e;
    --surface-subtle: #0f1828;
    --text: #f8fafc;
    --text-2: #cbd5e1;
    --text-3: #94a3b8;
    --text-brand: #8db0ff;
    --brand-tint: #16274a;
    --brand-tint-strong: #1c3260;
    --brand-tint-text: #dce8ff;
    --border: #304056;
    --border-strong: #6b7f99;
    --divider: #22324a;
    --success: #3dd68c;
    --success-tint: #12301f;
    --warning: #fbbf24;
    --focus: #8db0ff;
    --shadow-sm: 0 0 0 1px #304056;
    --shadow-md: 0 0 0 1px #304056, 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-floating: 0 0 0 1px #304056, 0 18px 50px rgba(0, 0, 0, 0.5);
    --phone-shadow: 0 0 0 2px #3a4659, 0 40px 90px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #111c2e;
  --surface-subtle: #0f1828;
  --text: #f8fafc;
  --text-2: #cbd5e1;
  --text-3: #94a3b8;
  --text-brand: #8db0ff;
  --brand-tint: #16274a;
  --brand-tint-strong: #1c3260;
  --brand-tint-text: #dce8ff;
  --border: #304056;
  --border-strong: #6b7f99;
  --divider: #22324a;
  --success: #3dd68c;
  --success-tint: #12301f;
  --warning: #fbbf24;
  --focus: #8db0ff;
  --shadow-sm: 0 0 0 1px #304056;
  --shadow-md: 0 0 0 1px #304056, 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-floating: 0 0 0 1px #304056, 0 18px 50px rgba(0, 0, 0, 0.5);
  --phone-shadow: 0 0 0 2px #3a4659, 0 40px 90px rgba(0, 0, 0, 0.6);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 1.2rem + 5.4vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
h2 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem);
  font-weight: 800;
}
h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.15;
}
p {
  text-wrap: pretty;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 600;
}
.skip:focus {
  top: 16px;
}
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nb {
  white-space: nowrap;
}
svg.i {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Logo oficial (PNG maestro encuadrado sin tocar sus píxeles) ---------- */
.logo {
  display: block;
  position: relative;
  overflow: hidden;
  width: var(--lw, 96px);
  aspect-ratio: 1229 / 842;
  flex: none;
}
.logo img {
  position: absolute;
  left: -12.29%;
  top: -14.01%;
  width: 124.98%;
  max-width: none;
  height: auto;
}
.logo--iso {
  aspect-ratio: 1162 / 549;
}
.logo--iso img {
  left: -15.66%;
  top: -21.49%;
  width: 132.18%;
}
.logo .on-dark {
  display: none;
}
:root[data-theme="dark"] .logo--adaptive .on-light {
  display: none;
}
:root[data-theme="dark"] .logo--adaptive .on-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo--adaptive .on-light {
    display: none;
  }
  :root:not([data-theme="light"]) .logo--adaptive .on-dark {
    display: block;
  }
}
.logo--ondark .on-light {
  display: none;
}
.logo--ondark .on-dark {
  display: block;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--r-lg);
  font-weight: 650;
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms var(--ease-standard), background-color 200ms var(--ease-standard), box-shadow 200ms var(--ease-standard);
  -webkit-tap-highlight-color: transparent;
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-pressed);
}
.btn--white {
  background: #fff;
  color: var(--deep);
}
.btn--white:hover {
  background: var(--brand-tint-strong);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}
.btn--small {
  min-height: 48px;
  padding: 0 22px;
  font-size: 1rem;
}
.btn .i {
  transition: transform 200ms var(--ease-standard);
}
.btn:hover .i-arrow {
  transform: translateX(3px);
}

/* ---------- Navegación flotante ---------- */
.nav {
  position: fixed;
  z-index: var(--z-nav);
  top: 14px;
  left: 50%;
  translate: -50% 0;
  width: min(1120px, calc(100% - 24px));
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 22px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow-floating);
  transition: translate 360ms var(--ease-standard), box-shadow 200ms var(--ease-standard);
}
.nav.is-hidden {
  translate: -50% -140%;
}
.nav__links {
  display: flex;
  gap: 2px;
  margin-left: auto;
  margin-right: 8px;
}
.nav__links a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 550;
  font-size: 0.97rem;
  color: var(--text-2);
  transition: background-color 200ms var(--ease-standard), color 200ms var(--ease-standard);
}
.nav__links a:hover {
  background: var(--surface-subtle);
  color: var(--text);
}
.nav__links a.is-current {
  background: var(--brand-tint);
  color: var(--brand-tint-text);
}
.nav .logo--iso {
  display: none;
}
.theme-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: var(--text-2);
  transition: background-color 200ms var(--ease-standard);
}
.theme-btn:hover {
  background: var(--surface-subtle);
}
.theme-btn .i {
  width: 22px;
  height: 22px;
}
.theme-btn .sun {
  display: none;
}
:root[data-theme="dark"] .theme-btn .sun {
  display: block;
}
:root[data-theme="dark"] .theme-btn .moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-btn .moon {
    display: none;
  }
}
.progress {
  position: fixed;
  z-index: var(--z-progress);
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--brand);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Teléfono ---------- */
.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.024);
  background: #0b0f17;
  border-radius: calc(var(--w) * 0.168);
  box-shadow: var(--phone-shadow);
  flex: none;
}
.phone .scr {
  position: relative;
  aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--w) * 0.146);
  overflow: hidden;
  container-type: inline-size;
  background: #0b0f17;
}
.shot {
  position: absolute;
  inset: 0;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot .vid {
  position: absolute;
  left: 4.75%;
  top: 18.5%;
  width: 90.5%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4.4cqw 4.4cqw 0 0;
  background: #eef4ff;
}
.stack .shot {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 420ms var(--ease-standard), transform 600ms var(--ease-enter);
}
.stack .shot.is-active {
  opacity: 1;
  transform: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 12px;
  border-radius: var(--r-2xl);
  background: linear-gradient(158deg, #2864f0 0%, #1f55d6 38%, #17458e 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(120, 170, 255, 0.55), transparent 70%),
    radial-gradient(40% 40% at 8% 100%, rgba(11, 18, 32, 0.45), transparent 70%);
}
.hero__rings {
  position: absolute;
  z-index: -1;
  right: -8%;
  top: 50%;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  translate: 0 -50%;
  opacity: 0.5;
}
.hero__rings circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.5;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: min(860px, calc(100svh - 24px));
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 64px;
}
.hero__copy {
  max-width: 40rem;
}
.hero h1 .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero h1 .ln > span {
  display: inline-block;
}
.hero h1 .swash {
  position: relative;
  display: inline-block;
}
.hero h1 .swash svg {
  position: absolute;
  left: 0;
  bottom: -0.16em;
  width: 100%;
  height: 0.3em;
  overflow: visible;
}
.hero h1 .swash path {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: 0.85;
}
.hero__lead {
  margin-top: 28px;
  max-width: 34rem;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  list-style: none;
  padding: 0;
}
.stores li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  font-size: 0.95rem;
  font-weight: 550;
}
.stores b {
  font-weight: 700;
}
.stores .soon {
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  font-size: 0.8rem;
  font-weight: 700;
}
.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}
.hero .phone {
  --w: min(330px, 62vw);
}
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-floating);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.25;
  white-space: nowrap;
}
.chip small {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
}
.chip .ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand-tint-text);
}
.chip .ico.ok {
  background: var(--success-tint);
  color: var(--success);
}
.chip--a {
  left: -2%;
  top: 14%;
}
.chip--b {
  right: -4%;
  top: 46%;
}
.chip--c {
  left: 2%;
  bottom: 9%;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  translate: -50% 0;
  color: rgba(255, 255, 255, 0.8);
  display: none;
}

/* ---------- Franja de confianza ---------- */
.facts {
  padding-block: 44px 8px;
}
.facts ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 550;
  color: var(--text-2);
}
.facts .i {
  color: var(--text-brand);
  width: 24px;
  height: 24px;
}

/* ---------- Secciones ---------- */
.sec {
  padding-block: clamp(80px, 11vw, 150px);
}
.sec--tight {
  padding-block: clamp(64px, 8vw, 110px);
}
.sec__head {
  max-width: 46rem;
}
.sec__head p {
  margin-top: 20px;
  font-size: 1.2rem;
  color: var(--text-2);
  max-width: 38rem;
}
.sec--sub {
  background: var(--surface-subtle);
}
.sec--surface {
  background: var(--surface);
}

/* Cómo funciona */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 88px);
  counter-reset: s;
  list-style: none;
  padding: 0;
}
.steps::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 28px;
  height: 2px;
  background: var(--border);
}
.steps__line {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 28px;
  height: 2px;
  background: var(--brand);
  transform-origin: 0 50%;
  transform: scaleX(1);
}
.steps li {
  position: relative;
  counter-increment: s;
}
.steps .n {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: 0 0 0 8px var(--bg);
}
.steps h3 {
  margin-top: 28px;
}
.steps p {
  margin-top: 12px;
  color: var(--text-2);
  max-width: 22rem;
}

/* Historia de entrenamiento */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(32px, 5vw, 64px);
}
.story__steps {
  display: flex;
  flex-direction: column;
}
.story__step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 40px;
  opacity: 0.38;
  transition: opacity 360ms var(--ease-standard);
}
.story__step.is-active {
  opacity: 1;
}
.story__step h3 {
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.05;
}
.story__step p {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 30rem;
}
.story__step ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--text-2);
}
.story__step li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.story__step li .i {
  color: var(--text-brand);
  margin-top: 3px;
}
.story__phone {
  position: sticky;
  top: max(110px, calc(50vh - 340px));
  align-self: start;
  display: grid;
  place-items: center;
  height: min(720px, calc(100vh - 140px));
}
.story__phone .phone {
  --w: min(310px, 40vw, calc((100vh - 170px) * 0.46));
}
.story__phone::before {
  content: "";
  position: absolute;
  inset: 4% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--brand-tint-strong), transparent 72%);
  z-index: -1;
}
.phone--inline {
  display: none;
}

/* Galería de ejercicios */
.gallery {
  padding-block: clamp(80px, 11vw, 150px);
  overflow: hidden;
}
.rows {
  display: grid;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 72px);
}
.row {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.ex {
  width: clamp(250px, 27vw, 360px);
  flex: none;
}
.ex__media {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #eef4ff;
  box-shadow: var(--shadow-sm);
}
.ex video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ex__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-inline: 4px;
}
.ex__name {
  font-weight: 650;
  line-height: 1.25;
}
.tag {
  flex: none;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-tint-text);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Nutrición y Progreso: dos columnas */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 110px);
}
.duo--flip .duo__media {
  order: -1;
}
.duo__copy p.lead {
  margin-top: 22px;
  font-size: 1.2rem;
  color: var(--text-2);
  max-width: 34rem;
}
.duo__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
}
.duo__media .phone {
  --w: min(310px, 66vw);
}
.glow {
  position: absolute;
  inset: 6% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--brand-tint-strong), transparent 74%);
  z-index: 0;
}
.duo__media .phone {
  z-index: 1;
}
.duo__media .chip {
  z-index: 2;
}
.feat {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.feat li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.feat .i {
  width: 26px;
  height: 26px;
  color: var(--text-brand);
  margin-top: 2px;
}
.feat strong {
  display: block;
  font-weight: 650;
}
.feat span {
  color: var(--text-2);
  font-size: 1rem;
}
.note {
  margin-top: 22px;
  font-size: 0.95rem;
  color: var(--text-3);
}
.bar {
  display: block;
  width: 168px;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--brand-tint-strong);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: var(--p, 60%);
  background: var(--brand);
  border-radius: 999px;
  transform-origin: 0 50%;
}
.nut-a {
  right: -2%;
  top: 8%;
}
.nut-b {
  left: -2%;
  bottom: 14%;
}

/* Progreso, sección entera en azul profundo */
.sec--deep {
  background: var(--deep);
  color: #fff;
}
.sec--deep .sec__head p,
.sec--deep .duo__copy p.lead {
  color: rgba(255, 255, 255, 0.92);
}
.sec--deep .glow {
  background: radial-gradient(closest-side, rgba(120, 170, 255, 0.42), transparent 74%);
}
.sec--deep .feat {
  border-color: rgba(255, 255, 255, 0.25);
}
.sec--deep .feat li {
  border-color: rgba(255, 255, 255, 0.25);
}
.sec--deep .feat .i {
  color: #cfe0ff;
}
.sec--deep .feat span {
  color: rgba(255, 255, 255, 0.88);
}
.sec--deep .note {
  color: rgba(255, 255, 255, 0.82);
}
.pro-a {
  left: -2%;
  top: 10%;
}
.pro-b {
  right: -2%;
  bottom: 16%;
}
@media (min-width: 1100px) {
  .nut-a { right: -14%; }
  .nut-b { left: -12%; }
  .pro-a { left: -14%; }
  .pro-b { right: -12%; }
  .hero .chip--a { left: -6%; }
  .hero .chip--b { right: -10%; }
}
:root[data-theme="dark"] .chip,
:root[data-theme="dark"] .chip small {
  color: var(--text);
}
:root[data-theme="dark"] .chip small {
  color: var(--text-2);
}

/* Claro y oscuro */
.cmp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 110px);
}
.cmp__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
}
.cmp__stage .phone {
  --w: min(310px, 66vw);
  z-index: 1;
}
.cmp .shot--dark {
  clip-path: inset(0 0 0 var(--pos, 50%));
}
.cmp__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.2);
  pointer-events: none;
}
.cmp__knob {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--deep);
  box-shadow: var(--shadow-floating);
  pointer-events: none;
}
.cmp__knob .i {
  width: 24px;
  height: 24px;
}
.cmp input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.cmp input[type="range"]:focus-visible ~ .cmp__knob {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.seg {
  display: inline-flex;
  gap: 4px;
  margin-top: 28px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-subtle);
  box-shadow: inset 0 0 0 1px var(--border);
}
.seg button {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 200ms var(--ease-standard), color 200ms var(--ease-standard);
}
.seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Privacidad */
.priv {
  background: var(--brand-tint);
}
.priv__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: start;
}
.priv h2 {
  color: var(--brand-tint-text);
}
.priv .lead {
  margin-top: 22px;
  font-size: 1.2rem;
  color: var(--text-2);
  max-width: 32rem;
}
.priv__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}
.priv__list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-tint-text) 22%, transparent);
}
.priv__list li:first-child {
  padding-top: 0;
}
.priv__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.priv__list .ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-brand);
  box-shadow: var(--shadow-sm);
}
.priv__list .ico .i {
  width: 26px;
  height: 26px;
}
.priv__list h3 {
  font-size: 1.35rem;
}
.priv__list p {
  margin-top: 6px;
  color: var(--text-2);
}

/* Preguntas */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 7vw, 110px);
}
.faq__list details {
  border-bottom: 1px solid var(--border);
}
.faq__list details:first-child {
  border-top: 1px solid var(--border);
}
.faq__list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.faq__list summary::-webkit-details-marker {
  display: none;
}
.faq__list summary .i {
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-tint-text);
  transition: transform 300ms var(--ease-standard), background-color 200ms var(--ease-standard);
}
.faq__list details[open] summary .i {
  transform: rotate(180deg);
  background: var(--brand);
  color: #fff;
}
.faq__list .ans {
  padding: 0 48px 26px 0;
  color: var(--text-2);
  animation: ans 360ms var(--ease-enter);
}
@keyframes ans {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Cierre + pie */
.end {
  position: relative;
  margin: 12px;
  border-radius: var(--r-2xl);
  background: linear-gradient(158deg, #2864f0 0%, #1f55d6 40%, #17458e 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.end::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 60% at 85% 20%, rgba(120, 170, 255, 0.5), transparent 70%);
}
.end__cta {
  padding-block: clamp(80px, 10vw, 140px) clamp(56px, 7vw, 96px);
  text-align: center;
}
.end__cta h2 {
  max-width: 16ch;
  margin-inline: auto;
}
.end__cta p {
  margin: 22px auto 0;
  max-width: 34rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.94);
}
.wait {
  display: flex;
  gap: 10px;
  max-width: 34rem;
  margin: 36px auto 0;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}
.wait input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-lg);
  background: #fff;
  color: #111827;
}
.wait input::placeholder {
  color: #475569;
}
.wait input:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.wait__msg {
  min-height: 1.6em;
  margin-top: 16px !important;
  font-size: 1rem !important;
  font-weight: 550;
}
.end .stores {
  justify-content: center;
}
.foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px 48px;
  padding-block: 36px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}
.foot p + p {
  margin-top: 6px;
}
.foot .logo {
  --lw: 110px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav__links a:nth-child(n + 4) {
    display: none;
  }
}
@media (max-width: 900px) {
  :root {
    --nav-h: 68px;
  }
  .nav {
    padding-left: 14px;
  }
  .nav__links {
    display: none;
  }
  .nav .theme-btn {
    margin-left: auto;
  }
  .nav .logo--full {
    display: none;
  }
  .nav .logo--iso {
    display: block;
    --lw: 70px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 44px);
    padding-bottom: 48px;
    min-height: 0;
  }
  .hero__stage {
    min-height: 500px;
    margin-top: 8px;
  }
  .chip--a {
    left: 0;
  }
  .chip--b {
    right: 0;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .steps::before,
  .steps__line {
    left: 27px;
    right: auto;
    top: 28px;
    bottom: 28px;
    width: 2px;
    height: auto;
  }
  .steps__line {
    transform-origin: 50% 0;
  }
  .steps li {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 20px;
  }
  .steps h3 {
    margin-top: 0;
    align-self: center;
  }
  .steps p {
    grid-column: 2;
  }
  .story {
    grid-template-columns: 1fr;
  }
  .story__phone {
    display: none;
  }
  .story__step {
    min-height: 0;
    opacity: 1;
    padding-block: 36px 52px;
    gap: 0;
  }
  .phone--inline {
    display: block;
    --w: min(270px, 68vw);
    margin: 36px auto 0;
  }
  .duo,
  .cmp,
  .priv__grid,
  .faq {
    grid-template-columns: 1fr;
  }
  .duo--flip .duo__media {
    order: 0;
  }
  .duo__media,
  .cmp__stage {
    min-height: 560px;
  }
  .foot {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .btn {
    width: 100%;
  }
  .wait {
    flex-direction: column;
  }
  .wait .btn {
    width: 100%;
  }
  .chip {
    font-size: 0.88rem;
    padding: 9px 14px 9px 10px;
  }
  .chip .ico {
    width: 34px;
    height: 34px;
  }
  .chip--c {
    left: -2%;
    bottom: 4%;
  }
  .nut-a,
  .pro-b {
    right: -2%;
  }
  .faq__list .ans {
    padding-right: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Galería sin movimiento (Reducir movimiento o sin JavaScript): se recorre con el dedo */
.rows.is-static {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
}
.rows.is-static .ex {
  scroll-snap-align: start;
}
.row {
  padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  padding-right: var(--gutter);
}

/* ---------- Ajustes 2026-11-17 ---------- */

/* Barra superior con más aire */
:root {
  --nav-h: 92px;
}
.nav {
  width: min(1180px, calc(100% - 24px));
  padding: 0 16px 0 38px;
  gap: 14px;
}
.nav__links {
  gap: 6px;
  margin-right: 14px;
}
.nav__links a {
  padding: 12px 18px;
}
.nav .btn--small {
  min-height: 56px;
  padding: 0 32px;
}
@media (max-width: 900px) {
  :root {
    --nav-h: 76px;
  }
  .nav {
    padding: 0 12px 0 24px;
  }
  .nav .btn--small {
    min-height: 52px;
    padding: 0 22px;
  }
}

/* Hero: el teléfono se ve completo en la primera pantalla */
.hero__grid {
  padding-top: calc(var(--nav-h) + 34px);
  padding-bottom: 40px;
}
@media (min-width: 901px) {
  .hero .phone {
    --w: min(330px, calc((100svh - 200px) / 2.12));
  }
  .hero__stage {
    min-height: 0;
  }
}
.scr--raw .vid {
  left: 5%;
  top: 18.6%;
  width: 90%;
  border-radius: 3.9cqw 3.9cqw 0 0;
}

/* Entrenar: teléfono más arriba y toques como en la app */
.story__phone {
  top: 104px;
  height: calc(100vh - 128px);
}
.story__phone .phone {
  --w: min(310px, 40vw, calc((100vh - 170px) / 2.12));
}
.stack .shot {
  opacity: 0;
  visibility: hidden;
  transform: none;
  transition: none;
}
.stack .shot.is-active {
  opacity: 1;
  visibility: visible;
}
.press {
  position: absolute;
  z-index: 5;
  opacity: 0;
  border-radius: 999px;
  background: #c6d9e3;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.touch {
  position: absolute;
  z-index: 6;
  width: 12cqw;
  height: 12cqw;
  margin: -6cqw 0 0 -6cqw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 0 0.5cqw rgba(15, 23, 42, 0.38),
    0 1cqw 3cqw rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
}
.phone--inline .press,
.phone--inline .touch {
  display: none;
}

/* Pie: panel con contraste para el logo */
.foot {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px 36px;
  margin-bottom: 20px;
  padding: 22px 30px;
  border-top: 0;
  border-radius: var(--r-xl);
  background: var(--surface);
  color: var(--text);
}
.foot__copy {
  color: var(--text-2);
  font-size: 0.97rem;
}
.btn--tint {
  background: var(--brand-tint);
  color: var(--brand-tint-text);
}
.btn--tint:hover {
  background: var(--brand-tint-strong);
}
@media (max-width: 900px) {
  .foot {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Página de información legal */
.nav--simple .theme-btn {
  margin-left: auto;
}
.legal {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 96px;
}
.legal__wrap {
  max-width: 760px;
}
.legal h1 {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
}
.legal__lead {
  margin-top: 20px;
  font-size: 1.2rem;
  color: var(--text-2);
}
.legal__date {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--text-3);
}
.legal__toc {
  margin: 36px 0 0;
  padding: 22px 26px;
  border-radius: var(--r-xl);
  background: var(--surface-subtle);
  list-style: none;
  columns: 2;
  column-gap: 32px;
}
.legal__toc a {
  display: block;
  padding: 6px 0;
  color: var(--text-brand);
  text-decoration: none;
  font-weight: 550;
}
.legal__toc a:hover {
  text-decoration: underline;
}
.legal section {
  margin-top: 56px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.legal h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 750;
}
.legal p,
.legal li {
  margin-top: 14px;
  color: var(--text-2);
  max-width: 68ch;
}
.legal ul {
  margin: 0;
  padding-left: 1.2em;
}
.legal li {
  margin-top: 8px;
}
@media (max-width: 640px) {
  .legal__toc {
    columns: 1;
  }
}
.btn--small {
  white-space: nowrap;
}
@media (max-width: 560px) {
  .hide-sm {
    display: none;
  }
  .nav .btn--small {
    width: auto;
    padding: 0 26px;
  }
}

/* ---------- Ajustes ronda 3: barra, botón y pie ---------- */
:root {
  --nav-h: 96px;
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: var(--nav-h);
  padding: 0 22px 0 38px;
}
.nav .logo--full {
  justify-self: start;
}
.nav__links {
  margin: 0;
  gap: 4px;
  justify-self: center;
}
.nav__links a {
  padding: 10px 16px;
  font-size: 0.98rem;
}
.btn--nav {
  justify-self: end;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0;
  word-spacing: 0;
  white-space: nowrap;
}
.nav--simple {
  grid-template-columns: auto 1fr;
}
@media (max-width: 900px) {
  :root {
    --nav-h: 76px;
  }
  .nav {
    grid-template-columns: auto 1fr;
    padding: 0 12px 0 22px;
  }
  .btn--nav {
    min-height: 44px;
    padding: 0 18px;
  }
}
.site-foot {
  background: #fff;
  border-top: 1px solid var(--border);
}
.site-foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-block: 22px;
}
.site-foot__copy {
  margin: 0 auto 0 0;
  font-size: 0.92rem;
  color: var(--text-2);
}
.site-foot__links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.legal-link {
  font-size: 0.9rem;
  color: var(--text-3);
  text-decoration: none;
}
.legal-link:hover {
  color: var(--text);
  text-decoration: underline;
}
.ig {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-2);
  transition: background-color 200ms var(--ease-standard), color 200ms var(--ease-standard);
}
.ig:hover {
  background: var(--brand-tint);
  color: var(--brand-tint-text);
}
.ig .i {
  width: 22px;
  height: 22px;
}
.btn--nav {
  gap: 0;
}
.btn--nav {
  display: inline-block;
  line-height: 46px;
  min-height: 0;
  height: 46px;
  text-align: center;
}
@media (max-width: 900px) {
  .btn--nav {
    line-height: 44px;
    height: 44px;
  }
}

/* ---------- Ronda 4: tema oscuro por defecto, interruptor, hero sin franja, datos rápidos ---------- */
.lt {
  display: block;
}
.dk {
  display: none;
}
:root[data-theme="dark"] .lt {
  display: none;
}
:root[data-theme="dark"] .dk {
  display: block;
}
.shot img.dk,
.shot img.lt {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}
.theme-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 40px 40px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-subtle);
  box-shadow: inset 0 0 0 1px var(--border);
}
.theme-switch .thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 40px;
  border-radius: 999px;
  background: var(--brand-tint-strong);
  transition: transform 260ms var(--ease-standard);
}
:root[data-theme="dark"] .theme-switch .thumb {
  transform: translateX(100%);
}
.theme-switch button {
  position: relative;
  z-index: 1;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  transition: color 200ms var(--ease-standard);
}
.theme-switch button[aria-pressed="true"] {
  color: var(--brand-tint-text);
}
.theme-switch .i {
  width: 18px;
  height: 18px;
}
@media (max-width: 900px) {
  .nav__end {
    gap: 8px;
  }
  .theme-switch {
    grid-template-columns: 34px 34px;
  }
  .theme-switch .thumb {
    width: 34px;
  }
}
@media (max-width: 420px) {
  .theme-switch {
    grid-template-columns: 30px 30px;
  }
  .theme-switch .thumb {
    width: 30px;
  }
}

/* Hero pegado arriba: sin franja de fondo por encima de la barra */
.hero {
  margin-top: 0;
  border-radius: 0 0 var(--r-2xl) var(--r-2xl);
}
.hero__grid {
  padding-top: calc(var(--nav-h) + 38px);
}
@media (min-width: 901px) {
  .hero .phone {
    --w: min(330px, calc((100svh - 190px) / 2.12));
  }
}

/* Datos rápidos dentro de un panel */
.facts {
  padding-block: 36px 0;
}
.facts__panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--border);
  box-shadow: var(--shadow-sm);
}
.facts__panel li {
  justify-content: center;
  padding: 22px 20px;
  background: var(--surface);
  font-size: 0.98rem;
  text-align: left;
}
@media (max-width: 900px) {
  .facts__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts__panel li {
    justify-content: flex-start;
    padding: 18px 16px;
    font-size: 0.93rem;
  }
}
.site-foot {
  background: var(--surface);
}
.facts ul.facts__panel {
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .facts ul.facts__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Ronda 5: nutrición protagonista, barra móvil, pie y formulario móviles ---------- */
:root {
  --chart-1: #2864f0;
  --chart-2: #0e7490;
  --chart-4: #b45309;
}
:root[data-theme="dark"] {
  --chart-1: #6b9bff;
  --chart-2: #22d3ee;
  --chart-4: #fbbf24;
}
.nut .duo {
  align-items: start;
}
.nsteps {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}
.nsteps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.nsteps .n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}
.nsteps strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 650;
}
.nsteps span:not(.n) {
  display: block;
  margin-top: 2px;
  color: var(--text-2);
}
.macros {
  margin-top: 36px;
  padding: 24px;
  border-radius: var(--r-xl);
  background: var(--surface-subtle);
  box-shadow: inset 0 0 0 1px var(--border);
}
.macros__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 24px;
}
.macros__top > strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 750;
}
.macros dl {
  display: grid;
  gap: 4px;
  margin: 0;
  min-width: 220px;
}
.macros dl div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-variant-numeric: tabular-nums;
}
.macros dt {
  color: var(--text-2);
}
.macros dd {
  margin: 0;
  font-weight: 650;
}
.macros .rest dd {
  color: var(--text-brand);
}
.macros__bars {
  display: grid;
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.macros__bars li > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-variant-numeric: tabular-nums;
}
.macros__bars span {
  color: var(--text-2);
}
.macros__bars b {
  font-weight: 650;
}
.bar2 {
  display: block;
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--brand-tint-strong);
  overflow: hidden;
}
.bar2 u {
  display: block;
  height: 100%;
  width: var(--p);
  border-radius: 999px;
  background: var(--c);
  transform-origin: 0 50%;
  text-decoration: none;
}
.nut__media {
  min-height: 760px;
}
.nut__media .phone {
  position: absolute;
}
.nut__media .nut__back {
  --w: min(290px, 44vw);
  right: 0;
  top: 0;
  z-index: 1;
}
.nut__media .nut__front {
  --w: min(300px, 46vw);
  left: 0;
  bottom: 0;
  z-index: 2;
}
@media (max-width: 900px) {
  .nut__media {
    min-height: 600px;
  }
  .nut__media .nut__back {
    --w: min(210px, 48vw);
  }
  .nut__media .nut__front {
    --w: min(230px, 52vw);
  }
}

/* Barra superior en móvil: más fina y dentro del recuadro azul */
@media (max-width: 900px) {
  :root {
    --nav-h: 62px;
  }
  .nav {
    top: 18px;
    width: calc(100% - 48px);
    padding: 0 8px 0 18px;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(11, 18, 32, 0.28);
  }
  .nav .logo--iso {
    --lw: 52px;
  }
  .nav__end {
    gap: 8px;
  }
  .theme-switch {
    grid-template-columns: 32px 32px;
  }
  .theme-switch .thumb {
    width: 32px;
  }
  .theme-switch button {
    height: 30px;
  }
  .btn--nav {
    height: 42px;
    line-height: 42px;
    padding: 0 16px;
    font-size: 0.93rem;
    border-radius: 12px;
  }
  .hero__grid {
    padding-top: calc(var(--nav-h) + 58px);
  }
}
@media (max-width: 380px) {
  .theme-switch {
    grid-template-columns: 28px 28px;
  }
  .theme-switch .thumb {
    width: 28px;
  }
}

/* Formulario de correo en móvil: más grande y con aire */
@media (max-width: 560px) {
  .end__cta {
    padding-inline: 4px;
  }
  .wait {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: 24px;
  }
  .wait input {
    flex: none;
    width: 100%;
    height: 60px;
    padding: 0 22px;
    font-size: 1.05rem;
    border-radius: 16px;
  }
  .wait .btn {
    width: 100%;
    min-height: 58px;
    border-radius: 16px;
  }
}

/* Pie en móvil: centrado y ordenado */
@media (max-width: 700px) {
  .site-foot__in {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-block: 32px 36px;
    text-align: center;
  }
  .site-foot__copy {
    margin: 0;
    order: 3;
  }
  .site-foot__links {
    order: 2;
    gap: 22px;
  }
}
@media (max-width: 900px) {
  :root[data-theme="dark"] .nav .logo--iso {
    margin-left: 8px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 0 0 8px #fff;
  }
}

/* ---------- Ronda 6: pantalla Nutrición de la app dentro del teléfono ---------- */
:root {
  --track: #e5ecf6;
}
:root[data-theme="dark"] {
  --track: #22324a;
}
.nut .duo {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.appscr {
  --u: calc(100cqw / 402);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.25;
  user-select: none;
}
.appscr * {
  box-sizing: border-box;
}
.appscr p,
.appscr dl,
.appscr dd,
.appscr ul {
  margin: 0;
  padding: 0;
}
.ap-status {
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--u) * 54);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--u) * 6) calc(var(--u) * 34) 0 calc(var(--u) * 54);
}
.ap-time {
  font-weight: 650;
  font-size: calc(var(--u) * 17);
}
.ap-island {
  position: absolute;
  left: 50%;
  top: calc(var(--u) * 11);
  width: calc(var(--u) * 94);
  height: calc(var(--u) * 28);
  margin-left: calc(var(--u) * -47);
  border-radius: 999px;
  background: #000;
}
.ap-icons {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 6);
  color: var(--text);
}
.ap-icons svg {
  height: calc(var(--u) * 12);
  width: auto;
  fill: currentColor;
}
.ap-title {
  position: absolute;
  left: calc(var(--u) * 20);
  top: calc(var(--u) * 74);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(var(--u) * 34);
  letter-spacing: -0.02em;
}
.ap-seg {
  position: absolute;
  left: calc(var(--u) * 20);
  top: calc(var(--u) * 136);
  width: calc(var(--u) * 362);
  height: calc(var(--u) * 48);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: calc(var(--u) * 4);
  border-radius: 999px;
  background: var(--surface-subtle);
  box-shadow: inset 0 0 0 1px var(--border);
  text-align: center;
  font-size: calc(var(--u) * 15);
  font-weight: 650;
  color: var(--text-2);
}
.ap-seg b {
  display: grid;
  place-items: center;
  height: 100%;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.ap-card {
  position: absolute;
  left: calc(var(--u) * 20);
  width: calc(var(--u) * 362);
  border-radius: calc(var(--u) * 24);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: calc(var(--u) * 20);
}
.ap-cal {
  top: calc(var(--u) * 208);
}
.ap-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ap-head strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(var(--u) * 20);
}
.ap-head em {
  font-style: normal;
  font-size: calc(var(--u) * 13);
  font-weight: 600;
  color: var(--text-2);
  padding: calc(var(--u) * 5) calc(var(--u) * 10);
  border-radius: calc(var(--u) * 10);
  background: var(--surface-subtle);
}
.ap-top {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 22);
  margin-top: calc(var(--u) * 16);
}
.ap-ring {
  position: relative;
  flex: none;
  width: calc(var(--u) * 120);
  height: calc(var(--u) * 120);
}
.ap-ring svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 11;
  stroke-linecap: round;
}
.ap-ring .trk {
  stroke: var(--track);
}
.ap-ring .val {
  stroke: var(--text-brand);
}
.ap-ring > div {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.ap-ring b {
  font-size: calc(var(--u) * 34);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ap-ring small {
  margin-top: calc(var(--u) * 2);
  font-size: calc(var(--u) * 11);
  color: var(--text-2);
}
.ap-top dl {
  flex: 1;
  display: grid;
  gap: calc(var(--u) * 14);
}
.ap-top dl div {
  display: flex;
  justify-content: space-between;
  gap: calc(var(--u) * 8);
  font-size: calc(var(--u) * 14);
  font-variant-numeric: tabular-nums;
}
.ap-top dt {
  color: var(--text-2);
}
.ap-top dd {
  font-weight: 700;
}
.ap-top .rest dd {
  color: var(--text-brand);
}
.ap-macros {
  list-style: none;
  display: grid;
  gap: calc(var(--u) * 14);
  margin-top: calc(var(--u) * 20);
}
.ap-macros li > div {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  font-size: calc(var(--u) * 15);
}
.ap-macros .nm {
  color: var(--text-2);
}
.ap-macros .vl {
  margin-left: auto;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.ap-macros .vl b {
  color: var(--text);
  font-weight: 700;
}
.mk {
  flex: none;
  width: calc(var(--u) * 12);
  height: calc(var(--u) * 12);
  background: var(--c);
}
.mk.dot {
  border-radius: 50%;
}
.mk.sq {
  border-radius: calc(var(--u) * 3);
}
.mk.hatch {
  border-radius: calc(var(--u) * 3);
  background: repeating-linear-gradient(135deg, var(--c) 0 2px, transparent 2px 4px);
  box-shadow: inset 0 0 0 1.5px var(--c);
}
.ap-bar {
  display: block;
  height: calc(var(--u) * 8);
  margin-top: calc(var(--u) * 7);
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}
.ap-bar u {
  display: block;
  height: 100%;
  width: var(--p);
  border-radius: 999px;
  background: var(--c);
  transform-origin: 0 50%;
  text-decoration: none;
}
.ap-meal {
  top: calc(var(--u) * 598);
}
.ap-mh {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 14);
}
.ap-mh > div {
  flex: 1;
}
.ap-mh strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(var(--u) * 19);
}
.ap-mh small {
  font-size: calc(var(--u) * 14);
  color: var(--text-2);
}
.ap-ico,
.ap-add {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(var(--u) * 48);
  height: calc(var(--u) * 48);
  background: var(--brand-tint);
  color: var(--brand-tint-text);
}
.ap-ico {
  border-radius: calc(var(--u) * 14);
}
.ap-add {
  border-radius: 50%;
}
.ai {
  width: calc(var(--u) * 24);
  height: calc(var(--u) * 24);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ap-item {
  display: flex;
  justify-content: space-between;
  gap: calc(var(--u) * 12);
  margin-top: calc(var(--u) * 16);
  padding-top: calc(var(--u) * 14);
  border-top: 1px solid var(--divider);
}
.ap-item strong {
  display: block;
  font-size: calc(var(--u) * 16);
  font-weight: 650;
}
.ap-item small {
  display: block;
  margin-top: calc(var(--u) * 3);
  font-size: calc(var(--u) * 12.5);
  color: var(--text-2);
}
.ap-item > span {
  text-align: right;
  white-space: nowrap;
}
.ap-item > span b {
  display: block;
  font-size: calc(var(--u) * 21);
  font-weight: 700;
  line-height: 1.1;
}
.ap-tabs {
  position: absolute;
  left: calc(var(--u) * 16);
  right: calc(var(--u) * 16);
  bottom: calc(var(--u) * 22);
  height: calc(var(--u) * 72);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 0 calc(var(--u) * 8);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-floating);
}
.ap-tabs li {
  display: grid;
  justify-items: center;
  gap: calc(var(--u) * 2);
  padding: calc(var(--u) * 8) 0;
  border-radius: 999px;
  color: var(--text-3);
  font-size: calc(var(--u) * 11.5);
  font-weight: 600;
}
.ap-tabs li.on {
  background: var(--brand-tint);
  color: var(--text-brand);
}

/* Tres teléfonos en abanico */
.nut__media .nut__mid {
  --w: min(300px, 30vw);
  left: calc(50% - var(--w) / 2);
  top: 36px;
  z-index: 3;
}
.nut__media .nut__back {
  --w: min(236px, 24vw);
  right: 0;
  top: 0;
  z-index: 1;
}
.nut__media .nut__front {
  --w: min(236px, 24vw);
  left: 0;
  bottom: 0;
  z-index: 2;
}
@media (max-width: 1100px) {
  .nut .duo {
    grid-template-columns: 1fr;
  }
  .nut__media .nut__mid {
    --w: min(270px, 56vw);
  }
  .nut__media .nut__back,
  .nut__media .nut__front {
    --w: min(210px, 44vw);
  }
  .nut__media {
    min-height: 700px;
  }
}
@media (max-width: 560px) {
  .nut__media {
    min-height: 520px;
  }
  .nut__media .nut__mid {
    --w: 58vw;
    top: 24px;
  }
  .nut__media .nut__back,
  .nut__media .nut__front {
    --w: 40vw;
  }
}

/* ---------- Ronda 9: personalización con el registro real de la app ---------- */
.pers {
  padding-bottom: clamp(64px, 8vw, 110px);
}
.pers__rail {
  margin-top: clamp(40px, 5vw, 72px);
}
.pers__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
}
.pers__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pers__item .phone {
  --w: min(250px, 100%);
}
.pers__item:nth-child(even) .phone {
  margin-top: 36px;
}
.pers__cap {
  margin-top: 28px;
  max-width: 17rem;
}
.pers__item:nth-child(even) .pers__cap {
  margin-top: 28px;
}
.pers__cap .n {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
}
.pers__cap h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}
.pers__cap p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 1rem;
}
@media (max-width: 1000px) {
  .pers__list {
    display: flex;
    gap: 20px;
    max-width: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px var(--gutter) 24px;
    -webkit-overflow-scrolling: touch;
  }
  .pers__item {
    flex: 0 0 min(260px, 72vw);
    scroll-snap-align: center;
  }
  .pers__item:nth-child(even) .phone {
    margin-top: 0;
  }
  .pers__item .phone {
    --w: min(250px, 66vw);
  }
}

/* ---------- Ronda 10: pantallas iguales y alineadas, isla dinámica, carrusel por scroll ---------- */
.pers__item:nth-child(even) .phone {
  margin-top: 0;
}
.pers__item .phone {
  --w: min(260px, 100%);
}
.pers__list {
  align-items: start;
}

/* Isla dinámica sobre las capturas que no la traen (la réplica de Nutrición ya la dibuja) */
.phone .scr:not(.appscr)::after {
  content: "";
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 3.5cqw;
  width: 23.5cqw;
  height: 9.1cqw;
  margin-left: -11.75cqw;
  border-radius: 999px;
  background: #000;
  pointer-events: none;
}

/* Celular y tablet: sección fija; el scroll vertical desliza las pantallas de costado */
@media (max-width: 1000px) {
  .pers__list.is-scrub {
    overflow: visible;
    width: max-content;
    scroll-snap-type: none;
    padding: 0 calc((100vw - var(--pi, 260px)) / 2);
    gap: 24px;
    will-change: transform;
  }
  .pers__item {
    --pi: min(260px, 72vw);
    flex: 0 0 var(--pi);
  }
  .pers__list.is-scrub .pers__item {
    opacity: 0.5;
    transform: scale(0.93);
    transition: opacity 320ms var(--ease-standard), transform 420ms var(--ease-enter);
  }
  .pers__list.is-scrub .pers__item.is-focus {
    opacity: 1;
    transform: none;
  }
  .pers__rail {
    overflow: hidden;
  }
  .pers__list {
    --pi: min(260px, 72vw);
  }
}
