/* =========================================================
   FORJA Training Club — estilos
   ========================================================= */
:root {
  --bg: #0A0A0B;
  --bg-2: #101012;
  --card: #151518;
  --card-2: #1B1B1F;
  --line: #26262C;
  --line-2: #34343B;
  --text: #F3F1EC;
  --muted: #8E8E96;
  --volt: #D4FF3A;
  --volt-dim: rgba(212, 255, 58, .14);
  --volt-ink: #0A0A0B;
  --danger: #FF6B5B;
  --warn: #FFC24B;
  --radius: 14px;
  --radius-lg: 22px;
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--volt); color: var(--volt-ink); }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accent { color: var(--volt); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--volt); color: var(--volt-ink); }
.btn--primary:hover { box-shadow: 0 0 0 6px var(--volt-dim); }
.btn--ghost { border: 1.5px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { height: 38px; padding: 0 16px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--danger { background: transparent; border: 1.5px solid rgba(255,107,91,.5); color: var(--danger); }
.btn--danger:hover { background: rgba(255,107,91,.1); }

.link-btn { color: var(--volt); font-weight: 600; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-btn--muted { color: var(--muted); }
.link-btn:hover { color: var(--text); }

.icon-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 1.1rem;
  transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--volt); color: var(--volt-ink); border-color: var(--volt); }

/* ---------- Demo bar ---------- */
.demo-bar { background: var(--volt); color: var(--volt-ink); font-size: .82rem; }
.demo-bar__inner { display: flex; align-items: center; gap: 12px; min-height: 40px; padding-block: 6px; flex-wrap: wrap; }
.demo-bar__tag { font-family: var(--display); font-weight: 900; letter-spacing: .08em; background: var(--volt-ink); color: var(--volt); padding: 1px 8px; border-radius: 4px; }
.demo-bar__text { font-weight: 600; }
.demo-bar__actions { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
.demo-bar .link-btn { color: var(--volt-ink); }
.demo-bar .link-btn--muted { opacity: .65; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(10,10,11,.6);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-color: var(--line); background: rgba(10,10,11,.88); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 34px; height: 34px; border-radius: 9px; background: var(--volt); display: grid; place-items: center; }
.logo__mark svg { width: 24px; height: 24px; fill: var(--volt-ink); }
.logo__word { font-family: var(--display); font-weight: 900; font-size: 1.7rem; letter-spacing: .06em; line-height: 1; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: .92rem; font-weight: 600; color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--volt); transform: scaleX(0); transition: transform .3s var(--ease); transform-origin: left; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { width: 18px; height: 2px; background: var(--text); transition: transform .3s, opacity .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--volt); color: var(--volt-ink); display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.user-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; font-size: .88rem; transition: border-color .2s; }
.user-chip:hover { border-color: var(--volt); }

/* ---------- Tipografía de sección ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 0 var(--volt); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212,255,58,.6); } 70% { box-shadow: 0 0 0 10px rgba(212,255,58,0); } 100% { box-shadow: 0 0 0 0 rgba(212,255,58,0); } }
.kicker { font-family: var(--display); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--volt); margin: 0 0 10px; font-size: .95rem; }
.section { padding: 110px 0; }
.section--tight { padding: 40px 0 110px; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head--row { text-align: left; max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section__head--row .section__sub { max-width: 380px; margin: 0; }
.section__title {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: .95; letter-spacing: .01em; margin: 0 0 16px;
}
.section__sub { color: var(--muted); margin: 0 auto; max-width: 560px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--nav-h) - 40px); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; filter: grayscale(1) contrast(1.1) brightness(.8); transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 8%, rgba(10,10,11,.85) 38%, rgba(10,10,11,.2) 75%), linear-gradient(0deg, var(--bg) 2%, transparent 35%); }
.hero__inner { flex: 1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding: 80px 0 60px; }
.hero__title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3.6rem, 10vw, 8.4rem); line-height: .86; letter-spacing: -.005em; margin: 0 0 24px; }
.hero__lead { max-width: 480px; color: #C9C7C1; font-size: 1.08rem; margin: 0 0 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }
.hero__stats { display: flex; gap: 44px; margin: 0; flex-wrap: wrap; }
.hero__stats dt { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1; }
.hero__stats dd { margin: 4px 0 0; color: var(--muted); font-size: .85rem; font-weight: 600; }

.next-class { width: 300px; background: rgba(21,21,24,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 20px; }
.next-class__label { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.next-class h3 { font-family: var(--display); font-size: 2rem; text-transform: uppercase; margin: 8px 0 2px; line-height: 1; }
.next-class p { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--volt); border-radius: inherit; transition: width .8s var(--ease); }
.bar--warn > i { background: var(--warn); }
.bar--full > i { background: var(--danger); }
.next-class__meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin: 8px 0 16px; }

.ticker { border-block: 1px solid var(--line); background: var(--bg); overflow: hidden; padding: 16px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker__track span { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; letter-spacing: .04em; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; color: #3E3E45; }
.ticker__track span::after { content: "✦"; color: var(--volt); font-size: 1rem; margin-left: 28px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Programas ---------- */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program {
  position: relative; aspect-ratio: 4 / 3.3; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); text-align: left; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
}
.program img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) brightness(.75); transition: filter .5s, transform .7s var(--ease); }
.program::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,10,11,.95) 5%, rgba(10,10,11,.1) 60%); }
.program:hover img, .program:focus-visible img { filter: grayscale(0) brightness(.8); transform: scale(1.05); }
.program__tag { position: absolute; top: 18px; left: 18px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(10,10,11,.6); backdrop-filter: blur(8px); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 999px; }
.program h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.9rem; line-height: 1; margin: 0 0 6px; }
.program p { margin: 0; color: #B9B7B1; font-size: .9rem; max-width: 85%; }
.program__go { position: absolute; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; background: var(--volt); color: var(--volt-ink); display: grid; place-items: center; font-weight: 900; transition: transform .3s var(--ease); }
.program:hover .program__go { transform: rotate(-45deg); }

.program-detail__hero { position: relative; height: 240px; }
.program-detail__hero img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) brightness(.65); }
.program-detail__hero h3 { position: absolute; left: 28px; bottom: 18px; margin: 0; font-family: var(--display); font-weight: 900; font-size: 3rem; text-transform: uppercase; line-height: 1; }
.program-detail__body { padding: 24px 28px 28px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 20px; }
.facts div { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.facts dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 800; }
.intensity { display: inline-flex; gap: 3px; }
.intensity i { width: 8px; height: 14px; border-radius: 2px; background: var(--line-2); }
.intensity i.on { background: var(--volt); }
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 22px; }
.slot-list span { font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); aspect-ratio: 4/4.6; object-fit: cover; width: 100%; filter: grayscale(1) contrast(1.05); }
.about__badge { position: absolute; right: -20px; bottom: 32px; background: var(--volt); color: var(--volt-ink); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; gap: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.about__badge strong { font-family: var(--display); font-size: 3.4rem; line-height: 1; }
.about__badge span { font-weight: 700; font-size: .85rem; line-height: 1.2; }
.about__copy p { color: #C9C7C1; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: "✓"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--volt-dim); color: var(--volt); display: grid; place-items: center; font-size: .8rem; font-weight: 900; margin-top: 1px; }

/* ---------- Horario ---------- */
.schedule { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.schedule__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 16px; }
.day-tab { border-radius: 12px; border: 1px solid var(--line); padding: 10px 6px; text-align: center; transition: background .2s, border-color .2s, color .2s; }
.day-tab b { display: block; font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; line-height: 1.1; }
.day-tab small { color: var(--muted); font-size: .76rem; font-weight: 600; }
.day-tab:hover { border-color: var(--line-2); }
.day-tab[aria-selected="true"] { background: var(--volt); color: var(--volt-ink); border-color: var(--volt); }
.day-tab[aria-selected="true"] small { color: rgba(10,10,11,.7); }
.day-tab.is-today:not([aria-selected="true"]) { border-color: rgba(212,255,58,.5); }
.schedule__filters { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.filter-chip { font-size: .82rem; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); transition: all .2s; }
.filter-chip:hover { color: var(--text); }
.filter-chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.schedule__list { display: grid; }
.class-row { display: grid; grid-template-columns: 92px 1.4fr 1fr 170px 150px; align-items: center; gap: 18px; padding: 16px 6px; border-bottom: 1px solid var(--line); animation: fadeUp .4s var(--ease) backwards; }
.class-row:last-child { border-bottom: 0; }
.class-row.is-past { opacity: .42; }
.class-row__time { font-family: var(--display); font-weight: 900; font-size: 1.7rem; line-height: 1; }
.class-row__time small { display: block; font-family: var(--body); font-size: .74rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.class-row__name b { display: block; font-size: 1.02rem; }
.class-row__name span { color: var(--muted); font-size: .85rem; }
.class-row__trainer { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; }
.class-row__trainer img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.class-row__spots small { display: block; font-size: .78rem; color: var(--muted); margin-top: 6px; font-weight: 600; }
.class-row .btn { width: 100%; }
.btn--booked { background: var(--volt-dim); color: var(--volt); border: 1.5px solid rgba(212,255,58,.4); }
.btn--booked:hover { background: rgba(255,107,91,.1); color: var(--danger); border-color: rgba(255,107,91,.5); }
.btn--booked[disabled] { opacity: 1; }
.btn--booked .on-hover { display: none; }
@media (hover: hover) {
  .btn--booked:hover .on-hover { display: inline; }
  .btn--booked:hover .off-hover { display: none; }
}
.empty { text-align: center; padding: 48px 12px; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 4px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Banner ---------- */
.banner { position: relative; isolation: isolate; overflow: hidden; padding: 90px 0; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) brightness(.45); }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,11,.92), rgba(10,10,11,.4)); }
.banner__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.banner h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1; margin: 0; }
.code-pill { display: inline-block; border: 2px dashed var(--volt); color: var(--volt); padding: 0 14px; border-radius: 12px; letter-spacing: .05em; }

/* ---------- Entrenadores ---------- */
.trainers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trainer { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, transform .3s var(--ease); }
.trainer:hover { border-color: var(--line-2); transform: translateY(-4px); }
.trainer__img { position: relative; aspect-ratio: 1 / 1.05; overflow: hidden; }
.trainer__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1); transition: filter .5s, transform .7s var(--ease); }
.trainer:hover .trainer__img img { filter: grayscale(0); transform: scale(1.04); }
.trainer__years { position: absolute; top: 14px; left: 14px; background: var(--volt); color: var(--volt-ink); font-weight: 800; font-size: .75rem; padding: 4px 10px; border-radius: 999px; }
.trainer__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.trainer h3 { margin: 0; font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.trainer__role { color: var(--volt); font-weight: 700; font-size: .85rem; margin-top: -6px; }
.skill { font-size: .8rem; }
.skill__head { display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; margin-bottom: 5px; }
.skill .bar > i { width: 0; }
.trainer .btn { margin-top: auto; }

.trainer-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; padding-right: 40px; }
.trainer-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; }
.trainer-head h3 { font-size: 1.7rem; }
.trial-qr { background: #fff; padding: 10px; border-radius: 14px; width: 150px; height: 150px; display: grid; place-items: center; }
.trial-qr img, .trial-qr canvas { width: 130px !important; height: 130px !important; }
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 18px; }
.time-grid label input { position: absolute; opacity: 0; }
.time-grid label span { display: block; text-align: center; padding: 10px; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .2s; }
.time-grid label input:checked + span { background: var(--volt); color: var(--volt-ink); border-color: var(--volt); }
.time-grid label input:disabled + span { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.time-grid label input:focus-visible + span { outline: 2px solid var(--volt); outline-offset: 2px; }

/* ---------- Planes ---------- */
.billing-toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; margin-top: 12px; background: var(--bg); }
.billing-toggle button { padding: 9px 20px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--muted); transition: all .25s; }
.billing-toggle button em { font-style: normal; color: var(--volt); font-size: .78rem; margin-left: 4px; }
.billing-toggle button.is-active { background: var(--text); color: var(--bg); }
.billing-toggle button.is-active em { color: #4c6b00; }
.billing-toggle--sm { margin: 0 0 18px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s; }
.plan:hover { transform: translateY(-4px); }
.plan--featured { border-color: var(--volt); background: linear-gradient(180deg, rgba(212,255,58,.08), var(--card) 40%); }
.plan__badge { position: absolute; top: -12px; left: 26px; background: var(--volt); color: var(--volt-ink); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-family: var(--display); font-size: 1.8rem; text-transform: uppercase; margin: 0; }
.plan__desc { color: var(--muted); font-size: .9rem; margin: 4px 0 20px; min-height: 2.9em; }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.price strong { font-family: var(--display); font-size: 4rem; line-height: 1; font-weight: 900; }
.price small { font-family: var(--display); font-size: 1.9rem; font-weight: 800; align-self: flex-start; margin-top: 4px; }
.price span { color: var(--muted); font-weight: 600; }
.price-note { font-size: .8rem; color: var(--muted); min-height: 1.4em; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: .92rem; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--volt); font-weight: 900; }
.plan li.off { color: #55555c; }
.plan li.off::before { content: "—"; color: #55555c; }
.plan .btn { margin-top: auto; }
.plans__note { text-align: center; color: var(--muted); font-size: .88rem; margin: 28px 0 0; }

/* ---------- Calculadora ---------- */
.calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.calc__intro p { color: #C9C7C1; }
.calc__scale { display: grid; gap: 10px; margin-top: 28px; font-size: .9rem; color: var(--muted); }
.calc__scale div { display: flex; align-items: center; gap: 12px; }
.calc__scale span { width: 28px; height: 8px; border-radius: 4px; background: var(--c); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.calc__form { display: grid; gap: 16px; }
.calc__result:empty { display: none; }
.calc__result { border-top: 1px solid var(--line); padding-top: 18px; animation: fadeUp .4s var(--ease); }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.result-grid div { background: var(--card-2); border-radius: 12px; padding: 14px; border: 1px solid var(--line); }
.result-grid small { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.result-grid strong { display: block; font-family: var(--display); font-size: 2rem; line-height: 1.1; }
.bmi-gauge { position: relative; height: 10px; border-radius: 10px; margin: 22px 0 8px; background: linear-gradient(90deg, #6EC8FF 0 14%, var(--volt) 14% 40%, #FFC24B 40% 60%, #FF6B5B 60%); }
.bmi-gauge i { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--text); border: 3px solid var(--bg); transform: translate(-50%, -50%); transition: left .8s var(--ease); }
.calc__tip { font-size: .9rem; color: #C9C7C1; margin: 14px 0 0; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: #C9C7C1; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 12px;
  padding: 12px 14px; font-size: .95rem; font-weight: 500; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 4px var(--volt-dim); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .78rem; min-height: 1em; font-weight: 600; }
.field input[type="range"] { padding: 0; border: 0; accent-color: var(--volt); background: none; box-shadow: none; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238E8E96' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .6; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: #C9C7C1; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--volt); }
.form-error { color: var(--danger); font-size: .85rem; font-weight: 600; min-height: 1.2em; margin: 6px 0; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 60px; }
.pass-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: .78rem; font-weight: 700; color: var(--muted); padding: 6px 8px; }
.pass-toggle:hover { color: var(--text); }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.strength i { height: 4px; border-radius: 4px; background: var(--line-2); transition: background .3s; }
.strength[data-score="1"] i:nth-child(-n+1) { background: var(--danger); }
.strength[data-score="2"] i:nth-child(-n+2) { background: var(--warn); }
.strength[data-score="3"] i:nth-child(-n+3) { background: #B4E53A; }
.strength[data-score="4"] i { background: var(--volt); }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg); border: 1.5px solid var(--line-2); flex-wrap: wrap; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 8px 16px; border-radius: 9px; font-weight: 700; font-size: .88rem; color: var(--muted); cursor: pointer; transition: all .2s; }
.seg input:checked + span { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg input:focus-visible + span { outline: 2px solid var(--volt); }
.calc__form .seg { display: flex; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); font-weight: 700; font-size: .88rem; cursor: pointer; transition: all .2s; }
.chips input:checked + span { border-color: var(--volt); background: var(--volt-dim); color: var(--volt); }
.chips input:focus-visible + span { outline: 2px solid var(--volt); outline-offset: 2px; }
.label { font-weight: 700; font-size: .9rem; margin: 0 0 10px; }
.note { font-size: .82rem; color: var(--muted); background: var(--card-2); border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; }

/* ---------- Slider ---------- */
.slider { overflow: hidden; }
.slider__track { display: flex; transition: transform .6s var(--ease); }
.testimonial { flex: 0 0 100%; padding: 0 4px; display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; }
.testimonial blockquote { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.1; max-width: 900px; margin: 0 0 28px; }
.testimonial blockquote::before { content: "“"; display: block; color: var(--volt); font-size: 4rem; line-height: .6; margin-bottom: 8px; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; text-align: left; }
.testimonial img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.testimonial figcaption b { display: block; }
.testimonial figcaption span { color: var(--muted); font-size: .88rem; }
.stars { color: var(--volt); letter-spacing: 2px; font-size: .9rem; }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button { width: 8px; height: 8px; border-radius: 8px; background: var(--line-2); transition: width .3s, background .3s; }
.slider__dots button.is-active { width: 28px; background: var(--volt); }

/* ---------- FAQ / Contacto ---------- */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--volt); transition: transform .3s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.contact__form { display: grid; gap: 14px; }
.contact__form h3 { margin: 0; font-family: var(--display); font-size: 2rem; text-transform: uppercase; }
.contact__form .muted { margin: -10px 0 4px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 30px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1.2fr; gap: 40px; }
.footer h4 { font-family: var(--display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 14px; }
.footer .muted { font-size: .9rem; }
.hours { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.hours li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.hours li span:last-child { color: var(--text); font-weight: 600; }
.open-now { font-size: .85rem; font-weight: 700; margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.open-now.is-open { color: var(--volt); }
.open-now.is-closed { color: var(--danger); }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.footer__links a { color: var(--muted); transition: color .2s; }
.footer__links a:hover { color: var(--volt); }
.newsletter { display: flex; gap: 8px; }
.newsletter input { flex: 1; min-width: 0; background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 16px; height: 48px; }
.newsletter input:focus { outline: none; border-color: var(--volt); }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* ---------- Modales ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .25s ease; }
.modal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.modal__panel { position: relative; width: 100%; max-height: calc(100svh - 32px); overflow-y: auto; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 30px; animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__panel--sm { max-width: 440px; }
.modal__panel--md { max-width: 640px; }
.modal__panel--lg { max-width: 780px; }
.modal__panel--flush { padding: 0; }
.modal__panel h3 { font-family: var(--display); font-size: 2rem; text-transform: uppercase; margin: 0 0 4px; line-height: 1; }
.modal__panel form { display: grid; gap: 14px; margin-top: 18px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(10,10,11,.6); border: 1px solid var(--line-2); font-size: 1.4rem; line-height: 1; display: grid; place-items: center; z-index: 2; transition: background .2s; }
.modal__close:hover { background: var(--volt); color: var(--volt-ink); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Wizard */
.wizard__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 8px; padding-right: 40px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); transition: all .3s; }
.steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; background: var(--line); color: var(--muted); flex-shrink: 0; }
.steps li.is-active, .steps li.is-done { color: var(--text); border-color: var(--volt); }
.steps li.is-active span, .steps li.is-done span { background: var(--volt); color: var(--volt-ink); }
.wizard__step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard__step.is-active { display: block; animation: fadeUp .35s var(--ease); }
.wizard__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); position: sticky; bottom: -30px; z-index: 2; background: var(--card); margin: 6px -30px -30px; padding: 16px 30px 24px; }
.wizard__total { font-weight: 700; color: var(--muted); font-size: .9rem; text-align: center; }
.wizard__total b { color: var(--text); font-size: 1.1rem; }
.plan-pick { display: grid; gap: 10px; }
.plan-pick label { display: block; cursor: pointer; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick .pp { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line-2); transition: all .2s; }
.plan-pick .pp::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); transition: all .2s; }
.plan-pick input:checked + .pp { border-color: var(--volt); background: var(--volt-dim); }
.plan-pick input:checked + .pp::before { border-color: var(--volt); background: var(--volt); box-shadow: inset 0 0 0 4px var(--card); }
.plan-pick input:focus-visible + .pp { outline: 2px solid var(--volt); outline-offset: 2px; }
.plan-pick b { font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; display: block; line-height: 1.1; }
.plan-pick small { color: var(--muted); }
.plan-pick .pp__price { font-family: var(--display); font-size: 1.8rem; font-weight: 900; text-align: right; line-height: 1; }
.plan-pick .pp__price span { font-family: var(--body); font-size: .75rem; color: var(--muted); font-weight: 600; display: block; }
.summary { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; font-size: .9rem; border-bottom: 1px solid var(--line); }
.summary div:last-child { border-bottom: 0; }
.summary span { color: var(--muted); }
.summary b { text-align: right; }
.summary .sum-total { background: var(--card-2); }
.summary .sum-total b { font-family: var(--display); font-size: 1.6rem; color: var(--volt); }
.promo__row { display: flex; gap: 8px; }
.promo__row input { flex: 1; text-transform: uppercase; }
.promo .err.ok { color: var(--volt); }
.wizard__done { text-align: center; padding: 10px 0; }
.wizard__done.is-active { display: grid; justify-items: center; gap: 8px; }
.wizard__done .member-card { margin: 16px 0 22px; }
.done-burst { width: 72px; height: 72px; border-radius: 50%; background: var(--volt); display: grid; place-items: center; animation: burst .6s var(--ease); position: relative; }
.done-burst::after { content: "✓"; color: var(--volt-ink); font-size: 2rem; font-weight: 900; }
@keyframes burst { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* Tarjeta de socio */
.member-card { width: 100%; max-width: 380px; aspect-ratio: 1.586; border-radius: 20px; padding: 22px; text-align: left; position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; background: radial-gradient(120% 120% at 100% 0%, rgba(212,255,58,.35), transparent 50%), linear-gradient(135deg, #1E1E23, #0F0F11); border: 1px solid var(--line-2); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.member-card::before { content: "FORJA"; position: absolute; right: -10px; bottom: -28px; font-family: var(--display); font-weight: 900; font-size: 7rem; color: rgba(255,255,255,.04); line-height: 1; letter-spacing: .04em; }
.member-card__brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 900; font-size: 1.3rem; letter-spacing: .06em; }
.member-card__brand .logo__mark { width: 26px; height: 26px; border-radius: 7px; }
.member-card__brand .logo__mark svg { width: 18px; height: 18px; }
.member-card__plan { justify-self: end; align-self: start; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--volt); color: var(--volt-ink); padding: 3px 10px; border-radius: 999px; }
.member-card__name { grid-column: 1; align-self: end; }
.member-card__name small { display: block; color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.member-card__name b { display: block; font-size: 1.15rem; line-height: 1.2; }
.member-card__name span { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85rem; color: var(--volt); letter-spacing: .08em; }
.member-card__qr { grid-column: 2; grid-row: 2 / 4; align-self: end; background: #fff; padding: 6px; border-radius: 10px; width: 92px; height: 92px; display: grid; place-items: center; }
.member-card__qr img, .member-card__qr canvas { width: 80px !important; height: 80px !important; }
.member-card__foot { grid-column: 1; font-size: .72rem; color: var(--muted); margin-top: 8px; }

/* ---------- Dashboard ---------- */
.dash { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: grid; grid-template-columns: 260px 1fr; animation: fadeIn .3s ease; }
.dash[hidden] { display: none; }
.dash__side { border-right: 1px solid var(--line); padding: 24px 18px; display: flex; flex-direction: column; gap: 28px; background: var(--bg-2); overflow-y: auto; }
.dash__nav { display: grid; gap: 4px; }
.dash__nav button { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-weight: 700; font-size: .92rem; color: var(--muted); text-align: left; transition: all .2s; }
.dash__nav button:hover { color: var(--text); background: var(--card); }
.dash__nav button.is-active { background: var(--volt); color: var(--volt-ink); }
.dash__nav svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dash__nav .dash__nav-out { display: none; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar select.search { min-width: 0; }
.dash__nav .sep { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #55555c; font-weight: 800; padding: 16px 14px 6px; }
.dash__side-foot { margin-top: auto; display: grid; gap: 12px; justify-items: center; }
.dash__main { overflow-y: auto; display: flex; flex-direction: column; }
.dash__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 36px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(10,10,11,.9); backdrop-filter: blur(10px); z-index: 2; }
.dash__top h2 { margin: 0; font-family: var(--display); font-size: 2.2rem; text-transform: uppercase; line-height: 1; }
.dash__top p { margin: 0 0 2px; }
.dash__user { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.dash__user small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; }
.dash__close { display: none; width: 40px; height: 40px; font-size: 1.4rem; flex-shrink: 0; }
.dash__content { padding: 30px 36px 60px; display: grid; gap: 22px; align-content: start; animation: fadeUp .35s var(--ease); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.kpi small { color: var(--muted); font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.kpi strong { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1.05; margin-top: 4px; }
.kpi span { font-size: .8rem; color: var(--muted); }
.kpi span.up { color: var(--volt); }
.kpi--accent { background: var(--volt); color: var(--volt-ink); border-color: var(--volt); }
.kpi--accent small, .kpi--accent span { color: rgba(10,10,11,.7); }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; min-width: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel h3 { margin: 0; font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.list { display: grid; }
.list-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.date-box { width: 52px; text-align: center; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); padding: 6px 0; line-height: 1.1; }
.date-box b { display: block; font-family: var(--display); font-size: 1.5rem; }
.date-box small { font-size: .68rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.list-item__main b { display: block; }
.list-item__main span { color: var(--muted); font-size: .85rem; }
.checkin { display: grid; gap: 14px; justify-items: start; }
.checkin__streak { display: flex; gap: 6px; }
.checkin__streak i { width: 28px; height: 28px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: .7rem; font-weight: 700; color: var(--muted); }
.checkin__streak i.on { background: var(--volt); color: var(--volt-ink); border-color: var(--volt); }
.chart-wrap { position: relative; height: 260px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.inline-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.inline-form .field { flex: 1; min-width: 140px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); }
.pill--volt { background: var(--volt-dim); color: var(--volt); border-color: rgba(212,255,58,.35); }
.pill--warn { background: rgba(255,194,75,.12); color: var(--warn); border-color: rgba(255,194,75,.3); }
.search { background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 9px 16px; font-size: .88rem; min-width: 220px; }
.search:focus { outline: none; border-color: var(--volt); }
.occ { display: grid; gap: 12px; }
.occ__row { display: grid; grid-template-columns: 110px 1fr 54px; align-items: center; gap: 12px; font-size: .85rem; }
.occ__row b { font-weight: 700; }
.occ__row span { text-align: right; color: var(--muted); font-weight: 700; }
.msg { padding: 12px 0; border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: 0; }
.msg b { display: block; }
.msg span { color: var(--muted); font-size: .82rem; }
.msg p { margin: 6px 0 0; font-size: .9rem; color: #C9C7C1; white-space: normal; }
.card-center { display: grid; justify-items: center; gap: 18px; text-align: center; }
.profile-form { display: grid; gap: 14px; }
.danger-zone { border-color: rgba(255,107,91,.35); }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 10px; }
.bar-chart div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-chart i { width: 100%; max-width: 38px; background: var(--line-2); border-radius: 6px 6px 2px 2px; transition: height .8s var(--ease); }
.bar-chart div.today i { background: var(--volt); }
.bar-chart small { font-size: .72rem; color: var(--muted); font-weight: 700; }

/* ---------- Barra inferior (móvil) ---------- */
.tabbar { display: none; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { background: var(--card-2); border: 1px solid var(--line-2); border-left: 4px solid var(--volt); border-radius: 12px; padding: 14px 16px; font-size: .9rem; box-shadow: 0 20px 40px rgba(0,0,0,.5); animation: toastIn .4s var(--ease); display: flex; gap: 10px; align-items: flex-start; }
.toast--error { border-left-color: var(--danger); }
.toast b { display: block; }
.toast.is-leaving { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .trainers { grid-template-columns: repeat(2, 1fr); }
  .class-row { grid-template-columns: 80px 1fr 150px 130px; }
  .class-row__trainer { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .trainer__img { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; transform: translateY(-110%); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .25s; margin: 0; z-index: -1; }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .next-class { width: 100%; max-width: 420px; }
  .programs { grid-template-columns: repeat(2, 1fr); }
  .about, .calc, .contact { grid-template-columns: 1fr; gap: 44px; }
  .about__badge { right: 16px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  /* Mi cuenta en móvil: navegación inferior tipo app */
  .dash { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .dash__main { grid-row: 1; }
  .dash__side { grid-row: 2; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); gap: 0; overflow: visible; }
  .dash__side > .logo, .dash__side-foot, .dash__nav .sep { display: none; }
  .dash__nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; }
  .dash__nav button { flex-direction: column; gap: 3px; padding: 7px 2px; font-size: .68rem; border-radius: 10px; justify-content: center; align-items: center; text-align: center; }
  .dash__nav button.is-active { background: none; color: var(--volt); }
  .dash__nav svg { width: 48px; height: 26px; padding: 3px 13px; border-radius: 999px; transition: background .2s; }
  .dash__nav button.is-active svg { background: var(--volt-dim); }
  .dash__nav .dash__nav-out { display: flex; }
  .dash__top { padding: 14px 16px; position: sticky; top: 0; padding-top: calc(14px + env(safe-area-inset-top)); }
  .dash__top h2 { font-size: 1.9rem; }
  .dash__user { margin-left: auto; }
  .dash__user > div { display: none; }
  .dash__close { display: grid; }
  .dash__content { padding: 18px 16px 32px; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .section--tight { padding: 20px 0 80px; }
  .demo-bar__text, .demo-bar__tag { display: none; }
  .demo-bar__actions { margin-left: 0; gap: 12px; flex-wrap: nowrap; }
  .demo-bar .link-btn { font-size: .74rem; white-space: nowrap; }
  .hero__media img { object-position: 62% 20%; }
  .hero__media::after { background: linear-gradient(0deg, var(--bg) 6%, rgba(10,10,11,.82) 55%, rgba(10,10,11,.6)); }
  .hero__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
  .hero__inner { padding: 56px 0 40px; }
  .hero__stats { gap: 26px; }
  .hero__stats dt { font-size: 2.1rem; }
  .programs { grid-template-columns: 1fr; }
  .schedule { padding: 14px; }
  .schedule__days { grid-template-columns: repeat(7, minmax(52px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .schedule__days::-webkit-scrollbar, .dash__side::-webkit-scrollbar { display: none; }
  .dash__side { scrollbar-width: none; }
  .day-tab b { font-size: 1.1rem; }
  .class-row { grid-template-columns: 64px 1fr; gap: 6px 14px; padding: 16px 2px; }
  .class-row__time { font-size: 1.4rem; grid-row: span 2; align-self: start; }
  .class-row__spots { grid-column: 2; }
  .class-row > :last-child { grid-column: 2; }
  .trainers { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: end; }
  .modal__panel { border-radius: 22px 22px 0 0; max-height: 92svh; padding: 24px 18px; }
  .modal__panel--flush { padding: 0; }
  .steps li { font-size: 0; gap: 0; justify-content: center; }
  .steps li span { font-size: .72rem; }
  .wizard__nav { bottom: -24px; margin: 6px -18px -24px; padding: 14px 18px 20px; }
  .wizard__nav .btn { padding: 0 18px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi strong { font-size: 2rem; }
  .occ__row { grid-template-columns: 80px 1fr 44px; }
  .member-card { padding: 16px; }
  .member-card__qr { width: 78px; height: 78px; }
  .member-card__qr img, .member-card__qr canvas { width: 66px !important; height: 66px !important; }
  .toasts { left: 16px; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); max-width: none; }
  .dash:not([hidden]) ~ .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }

  /* Barra inferior de la web */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(16,16,18,.92); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: .7rem; font-weight: 700; color: var(--muted); border-radius: 10px; transition: color .2s; }
  .tabbar svg { width: 50px; height: 28px; padding: 3px 14px; border-radius: 999px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: background .2s; }
  .tabbar .is-active { color: var(--volt); }
  .tabbar .is-active svg { background: var(--volt-dim); }
  .nav__cta { display: none; }
  .nav__burger { margin-left: auto; }

  /* Hojas inferiores */
  .modal__panel::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: -10px auto 14px; }
  .modal__panel--flush::before { position: absolute; left: 50%; top: 18px; margin: 0 0 0 -20px; z-index: 3; background: rgba(255,255,255,.5); }
  .modal__panel { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

  /* Tabla de socios como tarjetas */
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; }
  .table-wrap thead { display: none; }
  .table-wrap tr { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; }
  .table-wrap td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; white-space: normal; text-align: right; }
  .table-wrap td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; font-weight: 700; text-align: left; }
  .table-wrap td:last-child:empty { display: none; }
  .table-wrap td:last-child { justify-content: flex-end; }
  .toolbar, .toolbar .search { width: 100%; }
  .search { min-width: 0; }

  .price strong { font-size: 3.4rem; }
  .plan { padding: 26px 22px; }
}
