:root {
  --bg: #17111c;
  --bg-2: #211828;
  --surface: #2a1f33;
  --line: #3d2f48;
  --text: #f4eff6;
  --muted: #b8abc1;
  --green: #5fbf4a;
  --red: #e03a2f;
  --gold: #e9b949;
  --purple: #b06cc4;
  --radius: 14px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 0%, #3a2546 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
[hidden] { display: none !important; }

.c-green { color: var(--green); }
.c-red { color: var(--red); }
.muted { color: var(--muted); }

/* Barra superior */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100% - 1120px) / 2));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; font: 800 26px/1 var(--display); letter-spacing: .02em; }
.brand-eat { color: var(--green); }
.brand-and { font-size: .55em; vertical-align: .35em; margin: 0 2px; color: var(--text); }
.brand-fit { color: #e8e4ea; }
.topbar nav { display: flex; gap: 22px; margin-left: auto; }
.topbar nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.topbar nav a:hover { color: var(--text); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 999px;
  background: var(--green); color: #0f1a0c;
  font: 700 18px/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--green);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #74d15e; border-color: #74d15e; }
.btn:focus-visible, .topbar nav a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-lg { padding: 18px 32px; font-size: 21px; }

/* Hero */
.hero {
  max-width: 1120px; margin: 0 auto;
  padding: 64px 16px 48px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
}
.eyebrow {
  font: 700 15px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(48px, 7.5vw, 88px); text-transform: uppercase; }
.lead { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts {
  list-style: none; padding: 0; margin: 34px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted);
}
.hero-facts strong { color: var(--text); font: 700 22px/1 var(--display); margin-right: 4px; }
.hero-logo img {
  width: 100%;
  --fade-x: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  --fade-y: linear-gradient(to bottom, transparent, #000 12%, #000 97%, transparent);
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
          mask-image: var(--fade-x), var(--fade-y);
          mask-composite: intersect;
}

/* Pilares */
.pillars {
  max-width: 1120px; margin: 0 auto; padding: 0 16px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.pillars article {
  padding: 22px 22px 24px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
}
.pillars h2 { font-size: 26px; margin-bottom: 8px; text-transform: uppercase; }
.pillars p { color: var(--muted); }

/* Secciones */
.section { max-width: 1120px; margin: 0 auto; padding: 72px 16px 8px; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(34px, 5vw, 52px); text-transform: uppercase; }
.section-head p:not(.eyebrow) { margin-top: 12px; color: var(--muted); }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 24px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
}
.plan h3 { font-size: 26px; text-transform: uppercase; color: var(--accent); }
.price { margin-top: 14px; font: 800 36px/1 var(--display); }
.price span { font: 500 15px var(--body); color: var(--muted); margin-left: 3px; }
.price-alt { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.price-text { font-size: 32px; }
.detail { margin-top: 6px; color: var(--muted); font-size: 16px; }
.plan-featured { background: linear-gradient(180deg, #3a2131, var(--surface)); }
.tag {
  position: absolute; top: -13px; right: 14px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--red); color: #fff;
  font: 700 13px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase;
}
.single {
  margin-top: 18px; padding: 16px 20px; border-radius: var(--radius);
  background: linear-gradient(90deg, #4a1d23, #2c1a2a);
  border: 1px solid #5c2a31; text-align: center; font-size: 18px;
}

/* Horarios */
.schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sched-col { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.sched-col h3 { font-size: 28px; text-transform: uppercase; margin-bottom: 12px; }
.sched-col:first-child h3 { color: var(--gold); }
.sched-col:last-child h3 { color: var(--purple); }
.sched-col dl { margin: 0; }
.sched-col dl div {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.sched-col dt { color: var(--muted); }
.sched-col dd { margin: 0; font: 600 20px/1.3 var(--display); letter-spacing: .03em; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 24px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.steps span {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: #fff; font: 800 22px/1 var(--display); margin-bottom: 14px;
}
.steps h3 { font-size: 24px; text-transform: uppercase; margin-bottom: 6px; }
.steps p { color: var(--muted); }
.final-cta { text-align: center; padding: 44px 0 24px; }

/* Pie */
.footer {
  margin-top: 56px; padding: 28px 16px 40px; text-align: center;
  border-top: 1px solid var(--line); color: var(--text);
}
.footer p + p { margin-top: 4px; }

/* Responsive */
@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plans .plan:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .topbar nav { display: none; }
  .topbar .btn-sm { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 8px; }
  .hero-logo { order: -1; max-width: 340px; margin: 0 auto; }
  .pillars, .schedule, .steps { grid-template-columns: 1fr; }
  .section { padding-top: 56px; }
}
@media (max-width: 480px) {
  .plans { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .btn-lg { width: 100%; font-size: 19px; }
}

/* ------------------------------------------------------------------
   Animaciones
   ------------------------------------------------------------------ */

/* Modo temporada: emojis que suben detrás del hero */
.hero-wrap { position: relative; overflow: hidden; }
.hero-wrap .hero { position: relative; z-index: 1; }
.season { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.season span {
  position: absolute; top: 100%; left: var(--x);
  font-size: var(--size); line-height: 1; opacity: 0;
  animation: flotar var(--dur) linear var(--delay) infinite;
}
@keyframes flotar {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .26; }
  85%  { opacity: .26; }
  100% { transform: translate(var(--drift), calc(-1 * var(--h, 900px) - 100%)) rotate(var(--rot)); opacity: 0; }
}
.season-chip {
  display: inline-block; margin-bottom: 16px; padding: 5px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  color: var(--gold); font: 600 14px/1.2 var(--body);
}

/* Contador de repeticiones */
.hero-kicker { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-kicker .eyebrow { margin-bottom: 0; }
.rep {
  padding: 4px 10px; border-radius: 6px;
  background: #0d0a10; border: 1px solid var(--line);
  color: var(--gold); font: 700 15px/1 var(--display); letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  transition: color .3s, border-color .3s;
}
.rep.tick { animation: tick .3s ease-out; }
.rep.done { color: var(--green); border-color: color-mix(in srgb, var(--green) 55%, transparent); }
.rep.done::after { content: " ✓"; }
@keyframes tick { 40% { transform: scale(1.18); } }
.hero h1 .w { display: inline-block; }
.js .hero h1 .w { opacity: 0; transform: translateY(22px) scale(.94); }
.js .hero h1 .w.in {
  opacity: 1; transform: none;
  transition: opacity .35s ease, transform .5s cubic-bezier(.2, .9, .3, 1.35);
}

/* Barra que se carga con un disco por clase semanal */
.barbell {
  display: flex; align-items: center; justify-content: center;
  margin-top: auto; padding-top: 22px; height: 58px;
}
.bb-bar { width: 40px; height: 5px; background: #8f8599; border-radius: 2px; }
.bb-end { width: 12px; height: 5px; background: #8f8599; }
.bb-collar { width: 4px; height: 12px; background: #b9b0c2; border-radius: 1px; }
.bb-side { display: flex; align-items: center; gap: 2px; }
.bb-side.left { flex-direction: row-reverse; }
.plate {
  width: 7px; height: calc(34px - var(--i) * 3px); border-radius: 2px;
  background: var(--accent);
  box-shadow: inset -2px 0 0 rgb(0 0 0 / .28);
}
.js .barbell .plate { opacity: 0; transform: translateX(var(--from)); }
.js .bb-side.left .plate { --from: -28px; }
.js .bb-side.right .plate { --from: 28px; }
.js .barbell.loaded .plate {
  opacity: 1; transform: none;
  transition:
    transform .45s cubic-bezier(.3, 1.6, .5, 1) calc(var(--card) * 260ms + var(--i) * 170ms),
    opacity .15s ease calc(var(--card) * 260ms + var(--i) * 170ms);
}

/* Horarios en vivo */
.live-status {
  display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap;
  width: fit-content; max-width: 100%;
  margin: -10px 0 20px; padding: 10px 18px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line);
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.live-text { font-weight: 600; }
.live-note { color: var(--muted); font-size: 14px; }
.live-status.is-live .live-dot { background: var(--green); animation: pulso 1.6s ease-out infinite; }
.sched-col time { border-radius: 6px; padding: 1px 5px; transition: background .3s, color .3s; }
.sched-col time.is-live { background: var(--green); color: #0f1a0c; animation: pulso 1.6s ease-out infinite; }
.sched-col time.is-next { box-shadow: inset 0 -3px 0 var(--gold); color: var(--gold); }
@keyframes pulso {
  0%   { box-shadow: 0 0 0 0 rgb(95 191 74 / .6); }
  100% { box-shadow: 0 0 0 12px rgb(95 191 74 / 0); }
}

/* Lista de WhatsApp que se llena sola */
.start-grid { display: grid; grid-template-columns: 1fr minmax(300px, 400px); gap: 24px; align-items: start; }
.start-grid .steps { grid-template-columns: 1fr; }
.wa-card {
  margin: 0; border-radius: 18px; overflow: hidden;
  background: #0b141a; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgb(0 0 0 / .35);
}
.wa-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #202c33; }
.wa-avatar {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: #fff; font: 800 20px/1 var(--display);
}
.wa-head strong { display: block; font: 600 16px/1.25 var(--body); color: #e9edef; }
.wa-typing { display: block; min-height: 1.4em; font-size: 13px; color: #8696a0; }
.wa-typing.on { color: #06cf9c; }
.wa-body {
  padding: 18px 16px 20px;
  background: radial-gradient(circle at 20% 10%, rgb(255 255 255 / .03) 0 30%, transparent 31%), #0b141a;
}
.wa-bubble {
  position: relative; max-width: 100%; padding: 8px 12px 6px;
  border-radius: 0 12px 12px 12px; background: #202c33;
  color: #e9edef; font: 400 15px/1.5 var(--body);
}
.wa-from { color: #06cf9c; font-weight: 600; font-size: 14px; }
.wa-block { margin-top: 10px; }
.wa-list { list-style: none; padding: 0; margin: 2px 0 10px; }
.wa-name { display: inline-block; padding: 0 4px; border-radius: 4px; }
.js .wa-list li:not(.wa-free) .wa-name { opacity: 0; transform: translateY(5px); }
.js .wa-list li.in .wa-name {
  opacity: 1; transform: none;
  transition: opacity .25s, transform .25s;
  animation: destello 1.3s ease-out;
}
@keyframes destello { 0% { background: rgb(6 207 156 / .4); } 100% { background: transparent; } }
.wa-you { color: var(--gold); font-weight: 600; text-decoration: none; border-bottom: 1px dashed currentColor; }
.wa-you:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wa-card.done .wa-you { animation: parpadeo 1.2s ease-in-out infinite; }
@keyframes parpadeo { 50% { opacity: .35; } }
.wa-time { text-align: right; font-size: 12px; color: #8696a0; }

/* Manifiesto: palabras que se encienden con el scroll */
.manifiesto { max-width: 1120px; margin: 0 auto; padding: 16vh 16px; }
.manifiesto .eyebrow { margin-bottom: 22px; }
.manifiesto-texto {
  max-width: 22ch;
  font: 800 clamp(36px, 5.6vw, 72px)/1.04 var(--display);
  text-transform: uppercase; letter-spacing: .005em;
}
.manifiesto-texto em { font-style: normal; color: var(--green); }
.manifiesto-texto strong { font-weight: inherit; color: var(--red); }
.js .manifiesto-texto .w { color: rgb(244 239 246 / .13); transition: color .45s ease; }
.js .manifiesto-texto .w.on { color: var(--text); }
.js .manifiesto-texto .w.verde.on { color: var(--green); }
.js .manifiesto-texto .w.rojo.on { color: var(--red); }

/* Entrena. Come. Transforma.: sección fija con la barra que sube */
.lema-stage { max-width: 1120px; margin: 0 auto; padding: 40px 16px; }
.lema-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.lema-slides { display: grid; gap: 36px; }
.slide-num { font: 700 15px/1 var(--display); letter-spacing: .14em; color: var(--accent); }
.slide h2 { font-size: clamp(60px, 8.6vw, 116px); line-height: .9; text-transform: uppercase; color: var(--accent); }
.slide p { max-width: 28ch; font-size: clamp(18px, 2vw, 22px); color: var(--muted); }
.slide { display: flex; flex-direction: column; gap: 14px; }

.js .lema { position: relative; height: 320vh; }
.js .lema-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  padding-top: 84px; padding-bottom: 28px;
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.js .lema-slides { position: relative; display: block; min-height: clamp(240px, 30vw, 340px); }
.js .slide {
  position: absolute; inset: 0; justify-content: center;
  opacity: 0; transform: translateY(40px); filter: blur(8px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1), filter .7s ease;
}
.js .slide.is-on { opacity: 1; transform: none; filter: none; }
.js .slide.is-past { transform: translateY(-40px); }

.rack { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; --disco: #e8e4ea; }
html:not(.js) .rack { display: none; }
.rack[data-fase="1"] { --disco: var(--green); }
.rack[data-fase="2"] { --disco: var(--red); }
.rack svg { width: 100%; max-width: 360px; max-height: 50svh; overflow: visible; }
.rack-poste { stroke: #4a3d55; stroke-width: 6; stroke-linecap: round; }
.rack-marcas line { stroke: #5a4b66; stroke-width: 2; }
.rack-marcas line.mayor { stroke: #8a7d95; stroke-width: 3; }
.rack-suelo { stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.rack-nivel { fill: #6f6379; font: 700 11px var(--display); letter-spacing: .14em; transition: fill .3s ease; }
.rack-nivel.activo { fill: var(--disco); }
.rack-eje { fill: #a79db0; }
.rack-disco { fill: var(--disco); transition: fill .5s ease; }
.rack-barra-in { transform-box: fill-box; transform-origin: center; }
.rack.arriba .rack-barra-in { animation: bloqueo .55s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes bloqueo { 0% { transform: translateY(-9px); } 100% { transform: none; } }
.rack figcaption { display: flex; align-items: baseline; gap: 6px; }
.rack-kg {
  font: 800 clamp(44px, 6vw, 64px)/1 var(--display); font-variant-numeric: tabular-nums;
  color: var(--disco); transition: color .5s ease;
}
.rack-unidad { font: 700 18px/1 var(--display); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

@media (max-width: 760px) {
  .lema-grid { grid-template-columns: 1fr; gap: 12px; }
  .js .lema-slides { min-height: 210px; }
  .slide h2 { font-size: clamp(52px, 15vw, 80px); }
  .rack svg { max-height: 34svh; }
  .rack-kg { font-size: 40px; }
}

@media (max-width: 900px) {
  .start-grid { grid-template-columns: 1fr; }
  .wa-card { max-width: 440px; width: 100%; justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .season span { animation: none; top: var(--y); transform: rotate(var(--rot)); opacity: .18; }
  .rep.tick, .live-status.is-live .live-dot, .sched-col time.is-live,
  .js .wa-list li.in .wa-name, .wa-card.done .wa-you { animation: none; }
  .js .hero h1 .w.in, .js .barbell.loaded .plate, .js .wa-list li.in .wa-name { transition: none; }
  .js .manifiesto-texto .w, .js .slide, .rack-disco, .rack-kg, .rack-nivel { transition: none; }
  .js .slide { filter: none; }
  .rack.arriba .rack-barra-in { animation: none; }
}
