/* ============================================================
   DESAFÍO 100 — Landing oficial
   Mobile-first. Oscuro premium: azul noche + coral D100 + violeta.
   ============================================================ */

:root {
  --bg: #0b0a17;
  --bg-2: #121028;
  --card: rgba(255, 255, 255, 0.05);
  --card-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.5);
  --coral: #ff5a36;
  --coral-2: #ff8a5c;
  --violet: #8b6cff;
  --green: #3fd08a;
  --grad: linear-gradient(95deg, #ff8a5c 0%, #ff5a36 40%, #b06cff 100%);
  --radius: 26px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow {
  max-width: 760px;
}
.center {
  text-align: center;
}

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 9vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0;
}
.title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 7.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(1.02rem, 3.6vw, 1.2rem);
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 auto 8px;
  max-width: 620px;
}
.micro {
  font-size: 0.85rem;
  color: var(--text-3);
  margin: 10px 0 0;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 90, 54, 0.14);
  color: var(--coral-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow--violet {
  background: rgba(139, 108, 255, 0.16);
  color: #b9a6ff;
}
.eyebrow--green {
  background: rgba(63, 208, 138, 0.14);
  color: #7fe3b2;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 200ms ease, background 200ms ease;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  padding: 14px 26px;
  background: linear-gradient(160deg, #ff8a5c, #ff5a36);
  color: #fff;
  box-shadow: 0 12px 34px rgba(255, 90, 54, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  font-size: 0.95rem;
}
.btn-primary:hover {
  box-shadow: 0 16px 44px rgba(255, 90, 54, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.btn-large {
  padding: 18px 34px;
  font-size: 1.02rem;
}
.btn-small {
  padding: 9px 18px;
  font-size: 0.8rem;
}
.btn-ghost {
  margin-top: 26px;
  padding: 14px 24px;
  border: 1px solid var(--line);
  background: var(--card);
  color: #fff;
  text-transform: uppercase;
  font-size: 0.86rem;
}
.btn-ghost:hover {
  border-color: rgba(255, 138, 92, 0.6);
}

/* ---------- Glows ---------- */
.glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.glow--coral {
  background: radial-gradient(circle, #ff5a36, transparent 65%);
}
.glow--violet {
  background: radial-gradient(circle, #7a4dff, transparent 65%);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.menu-open .site-header {
  background: rgba(11, 10, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand-text span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 1px;
}
.nav-desktop {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-login {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.04);
}
.btn-login:hover {
  border-color: rgba(255, 255, 255, 0.35);
}
.hide-mobile {
  display: none;
}
.menu-toggle {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 200ms ease;
}
.menu-open .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.menu-open .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 22px;
  background: rgba(11, 10, 23, 0.96);
  border-bottom: 1px solid var(--line);
}
.menu-open .mobile-menu {
  display: flex;
}
.mobile-menu a:not(.btn) {
  padding: 14px 4px;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn {
  margin-top: 14px;
}

/* ============================================================
   SECCIONES
   ============================================================ */
main {
  position: relative;
}
.section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}
.section > .container {
  position: relative;
  z-index: 1;
}

/* ---------- Espacios de imagen (temporales) ---------- */
.photo-slot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1a1633;
}
.photo-placeholder-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 138, 92, 0.75), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(139, 108, 255, 0.55), transparent 50%),
    linear-gradient(160deg, #2a1f4a, #120f26);
}
.photo-placeholder-art::after {
  /* silueta abstracta: marca dónde va la persona */
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8%;
  width: 58%;
  height: 78%;
  transform: translateX(-50%);
  border-radius: 48% 48% 18% 18%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
  box-shadow: 0 -50px 0 -20px rgba(255, 255, 255, 0.08);
}
.photo-placeholder-art--violet {
  background:
    radial-gradient(circle at 70% 25%, rgba(139, 108, 255, 0.8), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(255, 90, 54, 0.45), transparent 50%),
    linear-gradient(160deg, #1d1840, #0f0c22);
}
.photo-placeholder-art--dawn {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 150, 90, 0.85), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(139, 108, 255, 0.45), transparent 50%),
    linear-gradient(180deg, #0b0a17 0%, #2a1740 55%, #5a2a3a 100%);
}
.photo-placeholder-art--dawn::after {
  width: 26%;
  height: 58%;
}
/* Etiqueta con el número de espacio (config SHOW_SLOT_LABELS) */
.show-slots [data-slot]::before {
  content: 'IMAGEN ' attr(data-slot);
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 213, 0, 0.92);
  color: #1a1400;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  pointer-events: none;
}
[data-slot] {
  position: relative;
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 40px) 0 72px;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.hero-copy {
  text-align: center;
}
.hero-copy .lead {
  margin-top: 22px;
}
.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
}
.photo-slot--hero {
  position: absolute;
  inset: 0 18% 8% 0;
  border-radius: 30px;
}

/* ---------- Teléfono (mockup) ---------- */
.phone {
  position: relative;
  width: 250px;
  aspect-ratio: 9 / 19;
  padding: 10px;
  border-radius: 40px;
  background: linear-gradient(160deg, #2c2a3d, #0e0d18);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}
.phone::before {
  /* isla */
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 20px;
  border-radius: 999px;
  background: #07060d;
  z-index: 2;
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 31px;
  overflow: hidden;
  padding: 42px 14px 14px;
  background: linear-gradient(180deg, #fbf8f5 0%, #f4efff 100%);
  color: #22203a;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}
.phone--hero {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  max-width: 240px;
}
.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #4b4766;
}
.app-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: #ff5a36;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}
.app-day {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: #7c5cf0;
}
.app-ring-row {
  display: flex;
  justify-content: center;
}
.ring {
  --p: 60;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#ff5a36 calc(var(--p) * 1%), #eee8e1 0);
  position: relative;
}
.ring::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
}
.ring span {
  position: relative;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.05;
}
.ring small {
  display: block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 8.5px;
  color: #8a86a0;
}
.app-macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.app-macros div {
  padding: 6px 4px;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 6px rgba(43, 35, 82, 0.06);
}
.app-macros b {
  display: block;
  font-size: 12px;
}
.app-macros small {
  font-size: 9px;
  color: #8a86a0;
}
.app-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  font-size: 11px;
  box-shadow: 0 2px 6px rgba(43, 35, 82, 0.06);
}
.app-row--ok span {
  color: #1f9d5a;
  font-weight: 900;
}

/* ---------- Chips flotantes ---------- */
.float-chip {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(20, 18, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  animation: float 6s ease-in-out infinite;
}
.chip--accent {
  background: linear-gradient(160deg, rgba(255, 138, 92, 0.95), rgba(255, 90, 54, 0.95));
  border-color: transparent;
  font-size: 0.9rem;
}
.chip-1 { top: 6%; left: 4%; animation-delay: 0s; }
.chip-2 { top: 30%; left: 2%; animation-delay: 1.2s; }
.chip-3 { top: 52%; left: 2%; animation-delay: 2.4s; }
.chip-4 { bottom: 16%; left: 6%; animation-delay: 0.6s; }
.chip-5 { top: 0; right: 4%; animation-delay: 1.8s; }
/* Celular: menos datos flotando para que el Hero respire */
@media (max-width: 959px) {
  .chip-3,
  .chip-4 {
    display: none;
  }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================================
   2. PROBLEMA → FLUJO
   ============================================================ */
.problem .lead {
  margin-bottom: 44px;
}
.flow {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 20px;
  margin: 0 auto;
}
.flow-step {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 22px 18px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
}
.flow-step b {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.flow-step small {
  color: var(--text-3);
}
.flow-icon {
  font-size: 2rem;
}
.flow-step--end {
  border-color: rgba(255, 138, 92, 0.5);
  background: linear-gradient(160deg, rgba(255, 90, 54, 0.2), rgba(139, 108, 255, 0.15));
}
.flow-arrow {
  width: 2px;
  height: 34px;
  background: linear-gradient(180deg, rgba(255, 138, 92, 0.8), rgba(139, 108, 255, 0.8));
  position: relative;
}
.flow-arrow::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid #b06cff;
  border-bottom: 2px solid #b06cff;
  transform: translateX(-50%) rotate(45deg);
}

/* ============================================================
   3. PILARES
   ============================================================ */
.pillars {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.pillar {
  padding: 14px 14px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.pillar h3 {
  margin: 18px 6px 4px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
}
.pillar p {
  margin: 0 6px;
  color: var(--text-2);
}
.pillar-visual {
  height: 190px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-direction: column;
  overflow: hidden;
}
.pillar-visual--food { background: radial-gradient(circle at 30% 20%, rgba(255, 138, 92, 0.6), transparent 55%), #1b1531; }
.pillar-visual--train { background: radial-gradient(circle at 70% 20%, rgba(139, 108, 255, 0.6), transparent 55%), #16132d; }
.pillar-visual--habits { background: radial-gradient(circle at 30% 80%, rgba(63, 208, 138, 0.45), transparent 55%), #121a24; }
.pillar-visual--challenges { background: radial-gradient(circle at 70% 70%, rgba(255, 90, 54, 0.55), transparent 55%), #1d1328; }
.mini-card {
  min-width: 170px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  color: #22203a;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.mini-card small {
  font-size: 0.72rem;
  font-weight: 700;
  color: #8a86a0;
}
.mini-card b {
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.mini-card .muted {
  font-weight: 500;
}
.mini-card--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.mini-card--row b {
  font-size: 1.1rem;
}
.mini-dots {
  display: flex;
  gap: 6px;
}
.mini-dots i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--green);
  box-shadow: 0 4px 10px rgba(63, 208, 138, 0.35);
}
.mini-dots i.miss {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
.tag-ok {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e4f6ec;
  color: #1f7a47;
  font-size: 0.72rem;
  font-weight: 800;
}
.tag-ok--big {
  font-size: 0.85rem;
  padding: 6px 12px;
}

/* ---------- Barras ---------- */
.bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(34, 32, 58, 0.1);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8a5c, #ff5a36);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bar.is-visible span {
  transform: scaleX(1);
}
.bar--big {
  height: 10px;
}
.bar--violet span {
  background: linear-gradient(90deg, #a48bff, #7c5cf0);
}

/* ============================================================
   FEATURES (texto + visual)
   ============================================================ */
.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.feature-copy {
  text-align: center;
}
.feature-copy .lead {
  margin: 0 auto;
}
.feature-visual {
  display: flex;
  justify-content: center;
}
.feature-visual .phone {
  width: 280px;
}

/* Alimentación */
.kcal-block {
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(43, 35, 82, 0.06);
}
.kcal-block b {
  font-family: var(--font-display);
  font-size: 26px;
}
.kcal-block span {
  color: #8a86a0;
  font-weight: 600;
  margin-left: 4px;
}
.kcal-block .bar {
  margin-top: 8px;
}
.macro-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.macro-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(43, 35, 82, 0.05);
}
.macro-list span {
  color: #6b6784;
  font-weight: 600;
}
.macro-list .bar {
  grid-column: 1 / -1;
  height: 5px;
}
.app-section-title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: #d9431f;
}
.suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sugg {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(43, 35, 82, 0.05);
}
.sugg-img {
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.s1 { background: linear-gradient(135deg, #ff9f7a, #e2573b); }
.s2 { background: linear-gradient(135deg, #9be08a, #3aa86b); }
.s3 { background: linear-gradient(135deg, #f7e9d6, #c8a2f0); }
.sugg b {
  font-size: 11.5px;
}
.sugg small {
  font-size: 9.5px;
  color: #8a86a0;
}

/* Entrenamiento */
.feature-visual--duo {
  position: relative;
  min-height: 420px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.photo-slot--train {
  position: absolute;
  inset: 0 12% 12% 0;
}
.glass-card {
  border-radius: var(--radius);
  background: rgba(22, 19, 45, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  padding: 20px;
}
.train-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 78%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.train-card small {
  color: var(--text-3);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.train-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.train-card ul {
  list-style: none;
  margin: 4px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.train-card li {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
}
.train-card li span {
  color: var(--text-3);
}

/* Hábitos */
.habit-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.habit-list li {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
}
.tracker {
  width: 100%;
  max-width: 420px;
}
.tracker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.tracker-pct {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(63, 208, 138, 0.16);
  color: #7fe3b2;
  font-weight: 800;
  font-size: 0.8rem;
}
.tracker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.tcell {
  aspect-ratio: 1;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.85rem;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 300ms ease, transform 300ms ease;
}
.tracker-grid.is-visible .tcell {
  opacity: 1;
  transform: none;
}
.tcell.is-ok {
  background: linear-gradient(160deg, #4fdc95, #1f9d5a);
  color: #062b17;
}
.tcell.is-miss {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
}
.tcell.is-future {
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
}

/* ============================================================
   7. DESAFÍOS (carril horizontal en celular)
   ============================================================ */
.challenges-rail {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 20px 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.challenges-rail::-webkit-scrollbar {
  display: none;
}
.challenge-card {
  position: relative;
  flex: 0 0 78%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1633;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}
.challenge-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.challenge-card img.contain {
  object-fit: contain;
  padding: 20px 20px 90px;
  background: radial-gradient(circle at 50% 30%, rgba(139, 108, 255, 0.4), transparent 60%), #1a1633;
}
.challenge-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 7, 18, 0.92) 85%);
}
.challenge-body {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.challenge-tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.challenge-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.12;
  text-transform: uppercase;
}
.challenge-body small {
  color: var(--text-2);
  font-weight: 600;
}
.challenge-body .bar {
  background: rgba(255, 255, 255, 0.18);
}

/* ============================================================
   8. TODO CONECTADO
   ============================================================ */
.connected .glow {
  opacity: 0.35;
}
.orbit {
  position: relative;
  margin-top: 30px;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
}
.orbit-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.orbit-lines path {
  stroke: url(#none);
  stroke: rgba(255, 138, 92, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
  animation: dash 12s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -200; }
}
.orbit-node,
.orbit-core {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  border-radius: 24px;
  font-size: 1.7rem;
}
.orbit-node {
  width: 34%;
  aspect-ratio: 1;
  background: var(--card-strong);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.orbit-node b,
.orbit-core b {
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.n1 { top: 0; left: 0; }
.n2 { top: 0; right: 0; }
.n3 { bottom: 0; left: 0; }
.n4 { bottom: 0; right: 0; }
.orbit-core {
  top: 50%;
  left: 50%;
  width: 40%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(160deg, #ff8a5c, #ff5a36 45%, #8b6cff);
  box-shadow: 0 0 0 10px rgba(255, 90, 54, 0.12), 0 0 70px rgba(255, 90, 54, 0.45);
  font-size: 2.1rem;
  animation: pulse 3.2s ease-in-out infinite;
}
.orbit-core b {
  font-size: 0.82rem;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(255, 90, 54, 0.12), 0 0 70px rgba(255, 90, 54, 0.45); }
  50% { box-shadow: 0 0 0 18px rgba(255, 90, 54, 0.06), 0 0 90px rgba(139, 108, 255, 0.5); }
}

/* ============================================================
   9. PROGRESO
   ============================================================ */
.progress-board {
  margin-top: 36px;
  display: grid;
  gap: 14px;
}
.progress-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.progress-weight {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 800;
}
.progress-weight span {
  color: var(--text-3);
  margin: 0 4px;
}
.progress-delta {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 12vw, 4rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(95deg, #4fdc95, #7fe3b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.progress-chart {
  margin-top: 14px;
  width: 100%;
  height: 130px;
}
.chart-line {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.progress-chart.is-visible .chart-line {
  stroke-dashoffset: 0;
}
.progress-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat {
  padding: 16px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat b {
  font-family: var(--font-display);
  font-size: 1.6rem;
}
.stat small {
  color: var(--text-3);
  font-size: 0.74rem;
  line-height: 1.25;
}
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.photo-slot--ba {
  aspect-ratio: 3 / 4;
}
.ba-label {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 10, 23, 0.75);
  font-weight: 800;
  font-size: 0.8rem;
}

/* ============================================================
   10. EQUIPOS
   ============================================================ */
.team-card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.team-card small {
  color: var(--text-3);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.team-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.team-avatars {
  display: flex;
}
.av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 0 0 3px #16132d;
}
.av + .av {
  margin-left: -10px;
}
.a1 { background: linear-gradient(145deg, #ff8a6b, #ff5a36); }
.a2 { background: linear-gradient(145deg, #a48bff, #7c5cf0); }
.a3 { background: linear-gradient(145deg, #5cc98d, #1f9d5a); }
.a4 { background: linear-gradient(145deg, #e9b77c, #c98a45); }
.a5 { background: linear-gradient(145deg, #7fb2ff, #3b7bf6); }
.team-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.team-stats div {
  padding: 10px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.team-stats b {
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.team-stats small {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.72rem;
}

/* ============================================================
   11. CIERRE
   ============================================================ */
.closing {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 110px 0 120px;
  overflow: hidden;
}
.photo-slot--closing {
  position: absolute;
  inset: 0;
  border-radius: 0;
}
.photo-slot--closing::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 55%, rgba(11, 10, 23, 0.85) 100%);
}
.closing-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.closing-content .lead {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 44px 0 calc(110px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #08070f;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.footer-links a:hover {
  color: #fff;
}
.copyright {
  margin: 0;
  color: var(--text-3);
  font-size: 0.8rem;
}

/* ============================================================
   CTA FIJO (celular)
   ============================================================ */
.sticky-cta {
  position: fixed;
  z-index: 40;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateY(140%);
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.sticky-cta.is-visible {
  transform: none;
}
.sticky-cta .btn {
  width: 100%;
  padding: 15px 20px;
  box-shadow: 0 14px 40px rgba(255, 90, 54, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ============================================================
   APARICIÓN AL HACER SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   TABLET
   ============================================================ */
@media (min-width: 640px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .challenge-card {
    flex-basis: 300px;
  }
  .progress-board {
    grid-template-columns: 1.4fr 1fr;
    align-items: stretch;
  }
  .progress-main {
    grid-row: span 2;
  }
  .progress-stats {
    grid-template-columns: 1fr;
  }
  .before-after {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   DESKTOP
   ============================================================ */
@media (min-width: 960px) {
  :root {
    --header-h: 76px;
  }
  .nav-desktop {
    display: flex;
    gap: 28px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-2);
  }
  .nav-desktop a:hover {
    color: #fff;
  }
  .hide-mobile {
    display: inline-flex;
  }
  .menu-toggle,
  .mobile-menu,
  .menu-open .mobile-menu {
    display: none;
  }
  .section {
    padding: 140px 0;
  }

  .hero {
    padding: calc(var(--header-h) + 70px) 0 110px;
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
  .hero-grid {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
  .hero-copy {
    flex: 1.05;
    text-align: left;
  }
  .hero-copy .lead {
    margin-left: 0;
  }
  .hero-cta {
    align-items: flex-start;
  }
  .hero-visual {
    flex: 1;
    max-width: 520px;
  }
  .phone--hero {
    max-width: 270px;
  }
  .float-chip {
    font-size: 0.82rem;
    padding: 10px 14px;
  }
  .chip-1 { left: -6%; }
  .chip-2 { left: -14%; }
  .chip-3 { left: -10%; }
  .chip-4 { left: -2%; }
  .chip-5 { right: -4%; top: 6%; }

  /* Flujo horizontal */
  .flow {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
  }
  .flow-step {
    max-width: 230px;
  }
  .flow-arrow {
    width: 48px;
    height: 2px;
    align-self: center;
    background: linear-gradient(90deg, rgba(255, 138, 92, 0.8), rgba(139, 108, 255, 0.8));
  }
  .flow-arrow::after {
    bottom: auto;
    top: 50%;
    left: auto;
    right: -1px;
    transform: translateY(-50%) rotate(-45deg);
  }

  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }
  .pillar-visual {
    height: 220px;
  }

  .feature-grid {
    flex-direction: row;
    align-items: center;
    gap: 70px;
  }
  .feature-copy {
    flex: 1;
    text-align: left;
  }
  .feature-copy .lead {
    margin-left: 0;
  }
  .feature-visual {
    flex: 1;
  }
  .feature--reverse .feature-grid {
    flex-direction: row-reverse;
  }
  .feature-visual .phone {
    width: 320px;
  }
  .feature-visual--duo {
    min-height: 520px;
  }
  .habit-list {
    justify-content: flex-start;
  }
  .tracker-grid {
    grid-template-columns: repeat(10, 1fr);
  }

  .challenges-rail {
    max-width: 1180px;
    margin: 44px auto 0;
    padding: 6px 20px 18px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
  }
  .challenge-card {
    max-width: none;
    transition: transform 250ms ease;
  }
  .challenge-card:hover {
    transform: translateY(-6px);
  }

  .orbit {
    max-width: 520px;
  }
  .orbit-node {
    font-size: 2.2rem;
  }
  .orbit-node b {
    font-size: 0.86rem;
  }

  .progress-board {
    grid-template-columns: 1.3fr 0.7fr 1fr;
  }
  .progress-main {
    grid-row: auto;
  }
  .before-after {
    grid-column: auto;
  }

  .closing {
    min-height: 100vh;
  }
  .sticky-cta {
    display: none;
  }
  .site-footer {
    padding-bottom: 44px;
  }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .tcell,
  .bar span,
  .chart-line {
    transition: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
  .float-chip,
  .orbit-core,
  .orbit-lines path {
    animation: none;
  }
}
