/* ==========================================================================
   FITNESS / GIMNASIO — Oscuro, enérgico, alto contraste
   ========================================================================== */

:root {
  --bg: #0a0a0d;
  --bg2: #131318;
  --surface: rgba(255, 255, 255, .045);
  --surface2: rgba(255, 255, 255, .08);
  --surface-solid: #17171d;
  --text: #f5f5f2;
  --muted: rgba(245, 245, 242, .68);
  --border: rgba(255, 255, 255, .10);

  --accent: #d7ff3f;
  --accent-strong: #b9e01f;
  --accent2: #ff5b3d;
  --ink: #0a0a0d;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 22px 60px rgba(0, 0, 0, .45);
  --header-h: 76px;
  --container: min(1160px, 92%);

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(900px 560px at 85% -8%, rgba(215, 255, 63, .10), transparent 60%),
    radial-gradient(760px 520px at 6% 8%, rgba(255, 91, 61, .10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: var(--container); margin-inline: auto; }

.icon { display: block; width: 1em; height: 1em; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(215, 255, 63, .5);
  outline-offset: 3px;
}

.skip-link { position: absolute; left: -999px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 999px; color: var(--ink); background: var(--accent); }
.skip-link:focus { left: 12px; }

/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 13, .78);
  backdrop-filter: blur(16px);
}
.topbar__inner { min-height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brandline { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .01em; margin-right: auto; }
.brandline__mark { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.brandline__mark img { width: 100%; height: 100%; object-fit: contain; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  letter-spacing: -.01em;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .2s ease;
}
.btn .icon { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); background: var(--surface2); }
.btn--accent {
  color: var(--ink);
  background: linear-gradient(135deg, var(--accent), #eaff8f);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(215, 255, 63, .18);
}
.btn--accent:hover { box-shadow: 0 18px 36px rgba(215, 255, 63, .28); }
.btn--ghost { background: transparent; }
.btn--full { width: 100%; }

/* HERO */
.hero { padding: clamp(48px, 7vw, 88px) 0 40px; position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--accent); font-weight: 800; font-size: .84rem;
  text-transform: uppercase; letter-spacing: .06em;
}
h1, h2, h3 { font-family: inherit; font-weight: 900; letter-spacing: -.03em; margin: 0; }
h1 { margin: 16px 0 12px; font-size: clamp(2.3rem, 3.6vw, 3.6rem); line-height: .98; }
h1 em { font-style: normal; color: var(--accent); }
.lead { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.stats { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats li { padding: 16px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.stats strong { display: block; font-size: 1.5rem; font-weight: 900; color: var(--accent); }
.stats span { display: block; margin-top: 2px; font-size: .82rem; color: var(--muted); font-weight: 600; }

/* HERO VISUAL: progress mockup */
.hero__visual { position: relative; }
.progress-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(10px);
}
.progress-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.progress-card__top strong { font-size: 1.05rem; }
.streak {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(255, 91, 61, .14); border: 1px solid rgba(255, 91, 61, .3);
  color: var(--accent2); font-weight: 800; font-size: .82rem;
}
.streak .icon { width: 14px; height: 14px; }

.week-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 120px; margin-bottom: 16px; }
.week-bars span {
  display: block; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--accent), rgba(215, 255, 63, .25));
}
.week-bars span[data-day="dom"], .week-bars span[data-day="sab"] { background: linear-gradient(180deg, var(--accent2), rgba(255, 91, 61, .25)); }
.week-labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: -10px 0 18px; }
.week-labels span { text-align: center; font-size: .68rem; color: var(--muted); font-weight: 700; }

.progress-card__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.metric { padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(0, 0, 0, .18); }
.metric .icon { width: 18px; height: 18px; color: var(--accent); margin-bottom: 6px; }
.metric strong { display: block; font-size: 1.1rem; }
.metric span { font-size: .76rem; color: var(--muted); }

/* GALLERY SLIDER */
.gallery { padding: 0; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; }
.slider::before, .slider::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(28px, 6vw, 72px);
  z-index: 1;
  pointer-events: none;
}
.slider::before { left: 0; background: linear-gradient(90deg, rgba(10, 10, 13, .55), transparent); }
.slider::after { right: 0; background: linear-gradient(270deg, rgba(10, 10, 13, .55), transparent); }
.slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: end;
  background: var(--surface-solid);
}
.slider__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.slider__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 13, .82), rgba(10, 10, 13, .05) 55%); }
.slider__caption { position: relative; z-index: 1; padding: 26px 26px 24px; font-weight: 900; font-size: 1.15rem; letter-spacing: -.01em; }

.slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(10, 10, 13, .55);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px);
  color: #fff; cursor: pointer; z-index: 2;
  transition: background .18s ease, transform .18s ease;
}
.slider__nav:hover { background: rgba(10, 10, 13, .78); transform: translateY(-50%) scale(1.06); }
.slider__nav .icon { width: 20px; height: 20px; }
.slider__nav--prev { left: 16px; }
.slider__nav--next { right: 16px; }

.slider__dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.slider__dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .22s ease, background .22s ease; }
.slider__dot.is-active { width: 24px; background: var(--accent); }

/* SECTIONS */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: rgba(255, 255, 255, .015); border-block: 1px solid var(--border); }
.section__head { max-width: 640px; margin: 0 0 34px; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 10px; }
.section__head p { margin: 0; color: var(--muted); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-solid);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(215, 255, 63, .3); box-shadow: 0 16px 34px rgba(0, 0, 0, .35); }
.card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 44px; padding: 0; line-height: 0;
  border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), #a8e02a);
  color: var(--ink);
}
.card-icon svg { display: block; width: 22px; height: 22px; margin: 0 auto; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* PROCESS */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.process li { position: relative; padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.process__num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--border); color: var(--accent); font-weight: 900; font-size: .88rem; margin-bottom: 16px; }
.process h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process p { margin: 0; color: var(--muted); font-size: .9rem; }

/* PRICING */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-solid); display: flex; flex-direction: column; }
.price--featured { border-color: rgba(215, 255, 63, .4); background: linear-gradient(180deg, rgba(215, 255, 63, .07), var(--surface-solid)); position: relative; }
.price--featured::before {
  content: "Más popular"; position: absolute; top: -13px; left: 26px;
  padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--ink);
  font-size: .72rem; font-weight: 900; letter-spacing: .02em;
}
.price__name { font-weight: 900; font-size: 1.1rem; }
.price__value { font-size: 2.1rem; font-weight: 900; margin: 10px 0 2px; }
.price__value span { font-size: .95rem; color: var(--muted); font-weight: 700; }
.price__note { color: var(--muted); font-size: .84rem; margin-bottom: 18px; }
.price ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; flex: 1; }
.price ul li { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--text); }
.price ul li .icon { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* CTA FINAL */
.cta { padding: clamp(50px, 7vw, 80px) 0; }
.cta__box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 24px;
  border: 1px solid rgba(215, 255, 63, .28);
  background: linear-gradient(135deg, rgba(215, 255, 63, .12), rgba(255, 91, 61, .08));
}
.cta__box h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.cta__box p { margin: 0; color: var(--muted); max-width: 46ch; }

/* FOOTER */
.footer { padding: 26px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a { font-weight: 700; color: var(--text); }
.footer a:hover { color: var(--accent); }

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 56px; padding: 8px 20px 8px 8px;
  border-radius: 999px; color: #fff; background: #1fb855;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .35), 0 0 0 6px rgba(37, 211, 102, .14);
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: translateY(-2px); }
.whatsapp-float__mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: #fff; overflow: hidden; flex-shrink: 0; }
.whatsapp-float__mark img { width: 32px; height: 32px; }
.whatsapp-float__label { white-space: nowrap; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease; }

/* RESPONSIVE */
@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 480px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

@media (max-width: 640px) {
  .slider__slide { min-height: 300px; }
  .slider__nav { width: 40px; height: 40px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 24px, 1160px); }
  .topbar__actions .btn span:not(.icon) { display: none; }
  .topbar__actions .btn { padding: 12px; width: 46px; }
  .topbar__actions .btn--accent { width: auto; padding: 12px 16px; }
  .topbar__actions .btn--accent span { display: inline; }
  .stats { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .cta__box { flex-direction: column; align-items: flex-start; }
  .cta__box .btn { width: 100%; }
  .whatsapp-float { right: 12px; bottom: 12px; min-height: 52px; padding: 6px 16px 6px 6px; gap: 7px; font-size: .92rem; }
  .whatsapp-float__mark { width: 34px; height: 34px; }
  .whatsapp-float__mark img { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
