/* =========================================================
   SC Fitness — landing
   Monocromo (negro + plata del logo) con un solo acento.
   ========================================================= */

:root {
  --bg: #0a0a0b;
  --surface: #131315;
  --surface-2: #1a1a1d;
  --line: #2a2a2e;
  --ink: #f1f1ec;
  --muted: #9b9ba0;
  --silver: #b9b9b9;
  --accent: #34599e;        /* azul navy (fondos: botones, etiquetas, marquee) */
  --accent-soft: #86a6e0;   /* mismo navy más claro, para texto sobre fondo negro */
  --accent-ink: #ffffff;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 1.6em;
  font-family: var(--mono); font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  will-change: transform;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--ink); color: var(--bg); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn--sm { padding: .75em 1.2em; font-size: .72rem; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

.kicker, .index, .section__sub, .hours__label, .mode__num {
  font-family: var(--mono);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, .92);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .nav.is-scrolled { background: rgba(10, 10, 11, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.nav__brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 110;
  text-transform: uppercase; letter-spacing: .04em; font-size: 1rem;
}
.nav__brand img { width: 44px; height: 44px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); transition: color .2s;
}
.nav__links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-rows: 1fr auto;
  padding: 120px var(--gutter) 0;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; top: 0; bottom: 0; right: 0; width: 50%;
  z-index: -1; overflow: hidden;
}
.hero__media img {
  width: 100%; height: 115%; object-fit: cover; object-position: 50% 20%;
  filter: grayscale(1) contrast(1.08);
  transform: translate3d(0, 0, 0) scale(1.08);
  animation: heroZoom 2.4s var(--ease) both;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(10,10,11,.55) 28%, rgba(10,10,11,0) 60%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,10,11,0) 30%);
}
@keyframes heroZoom { from { transform: scale(1.22); opacity: 0; } to { transform: scale(1.08); opacity: 1; } }

.hero__content { align-self: center; max-width: 760px; padding-bottom: 40px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--silver);
  margin: 0 0 28px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--accent-soft); }

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: "wdth" 72;
  font-size: clamp(3.6rem, 11vw, 10.5rem);
  line-height: .86;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span {
  display: inline-block;
  animation: lineUp 1.1s var(--ease) both;
}
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.hero__lede { max-width: 30rem; margin: 32px 0 36px; color: #cfcfca; font-size: 1.08rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__meta {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  margin: 0; border-top: 1px solid var(--line);
}
.hero__meta div { padding: 20px 40px 24px 0; margin-right: 40px; border-right: 1px solid var(--line); }
.hero__meta div:last-child { border-right: 0; }
.hero__meta dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero__meta dd { margin: 4px 0 0; font-weight: 600; }
.hero__meta a { text-decoration: none; }
.hero__meta a:hover { color: var(--accent-soft); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: var(--accent); color: var(--accent-ink);
}
.marquee__track {
  display: flex; width: max-content; align-items: center; gap: 28px;
  padding: 16px 0;
  animation: marquee 32s linear infinite;
}
.marquee span {
  font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 75;
  font-size: clamp(1.4rem, 3vw, 2.2rem); text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.marquee i { font-style: normal; font-family: var(--mono); opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.section__head { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head .index {
  margin: .6em 0 0; font-size: .8rem; color: var(--accent-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; line-height: 1.4;
}
.section h2 {
  margin: 0;
  font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 72;
  font-size: clamp(2.8rem, 7vw, 6rem); line-height: .92; text-transform: uppercase; letter-spacing: -.005em;
}
.section__sub { grid-column: 2; margin: 18px 0 0; color: var(--muted); font-size: .9rem; max-width: 40rem; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__photo { margin: 0; position: relative; border-radius: 6px; overflow: hidden; background: var(--surface); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease); }
.about__photo:hover img { transform: scale(1.03); }
.about__photo figcaption {
  position: absolute; left: 16px; bottom: 16px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(10,10,11,.75); padding: 6px 10px; border-radius: 4px;
}
.about__text { padding-top: 8px; }
.about__text p { margin: 0 0 1.2em; color: #d4d4cf; font-size: clamp(1.02rem, 1.3vw, 1.15rem); max-width: 36rem; }
.about__text .about__hello {
  font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 90;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.1; color: var(--ink); margin-bottom: .8em;
}
.about__hello strong { color: var(--accent-soft); font-weight: 800; }
.link-arrow {
  display: inline-flex; gap: .6em; margin-top: 12px;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--accent-soft); padding-bottom: 4px;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* ---------- Results ---------- */
.results__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.results__grid .ba:nth-child(even) { margin-top: 64px; }
.ba {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--surface); border-radius: 6px; overflow: hidden;
}
.ba img { width: 100%; transition: transform .8s var(--ease); }
.ba:hover img { transform: scale(1.04); }
.ba__tag {
  position: absolute; top: 12px;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 3px; background: rgba(10,10,11,.8); color: var(--ink);
}
.ba__tag--a { left: 12px; }
.ba__tag--b { left: calc(50% + 8px); background: var(--accent); color: var(--accent-ink); }
.ba__stat {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--mono); font-size: .8rem; background: var(--accent); color: var(--accent-ink);
  padding: 6px 10px; border-radius: 3px;
}
.ba__stat b { font-family: var(--display); font-weight: 900; font-size: 1.3rem; font-variation-settings: "wdth" 75; }

/* ---------- Modes ---------- */
.modes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.mode:hover { border-color: #45454b; transform: translateY(-4px); }
.mode--alt { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mode--alt:hover { border-color: var(--ink); }
.mode__num {
  position: absolute; bottom: -10px; right: 20px; margin: 0; pointer-events: none;
  font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 70;
  font-size: 10rem; line-height: 1; opacity: .06;
}
.mode h3 {
  margin: 0 0 16px;
  font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 75;
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: .95; text-transform: uppercase;
}
.mode h3 span { color: var(--accent-soft); }
.mode--alt h3 span { color: var(--accent-ink); background: var(--accent); padding: 0 .15em; }
.mode__lede { margin: 0 0 24px; max-width: 32rem; opacity: .85; }
.mode ul { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid currentColor; border-color: rgba(127,127,127,.3); }
.mode li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid rgba(127,127,127,.3); font-size: .98rem;
}
.mode li::before { content: "+"; font-family: var(--mono); color: var(--accent-soft); font-weight: 600; }
.mode--alt li::before { color: var(--bg); }
.mode li a { text-decoration: none; border-bottom: 1px solid currentColor; }
.mode .btn { margin-top: auto; align-self: flex-start; }
.mode--alt .btn--accent:hover { background: var(--bg); color: var(--ink); }

.hours {
  margin-top: 16px;
  display: grid; grid-template-columns: auto 1fr 1fr; align-items: center;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.hours > * { padding: 24px clamp(20px, 3vw, 40px); }
.hours__label { margin: 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); align-self: stretch; display: flex; align-items: center; border-right: 1px solid var(--line); }
.hours__slot { display: flex; align-items: center; gap: 20px; }
.hours__slot + .hours__slot { border-left: 1px solid var(--line); }
.hours__tag { font-family: var(--mono); font-size: .72rem; padding: 4px 8px; border-radius: 3px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.hours__time {
  margin: 0; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 72;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums;
}
.hours__time small { color: var(--muted); font-size: .6em; padding: 0 .2em; vertical-align: middle; }

/* ---------- Agenda / Calendly ---------- */
.calendly-wrap {
  position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--surface);
}
.calendly-inline-widget { min-width: 320px; height: 0; }
.calendly-wrap.is-live .calendly-inline-widget { height: 720px; }
.calendly-wrap.is-live .calendly-fallback { display: none; }
.calendly-fallback { padding: clamp(40px, 8vw, 96px) 24px; text-align: center; }
.calendly-fallback p { margin: 0 0 8px; font-size: 1.1rem; }
.calendly-fallback p.muted { font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__intro .section__head { margin-bottom: 0; }
.contact__intro > .section__sub { margin: 20px 0 40px; }
.contact__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact__list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__list span { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact__list a, .contact__list b { text-align: right; text-decoration: none; font-weight: 600; }
.contact__list a:hover { color: var(--accent-soft); }

.form {
  display: grid; gap: 16px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span, .choice legend {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.field input, .field select {
  width: 100%; padding: 14px 16px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px;
  font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.field input::placeholder { color: #55555b; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent-soft); box-shadow: 0 0 0 3px rgba(134,166,224,.2); }
.field.is-invalid input, .field.is-invalid select { border-color: #ff6b5a; }

.choice { border: 0; padding: 0; margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { margin-bottom: 10px; padding: 0; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem;
  transition: background .2s, color .2s, border-color .2s;
}
.choice label:hover span { border-color: var(--silver); }
.choice input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.choice.is-invalid span { border-color: #ff6b5a; }

.req { font-style: normal; color: var(--accent-soft); }
.form__note { margin: -4px 0 0; font-size: .8rem; color: var(--muted); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease), bottom .35s var(--ease), background .2s;
}
.wa-float:hover { transform: scale(1.08); background: #1ebe5b; }

.form__status { margin: 0; min-height: 1.4em; font-size: .92rem; color: var(--muted); }
.form__status.is-ok { color: var(--accent-soft); }
.form__status.is-error { color: #ff6b5a; }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }

/* ---------- Footer ---------- */
.footer {
  padding: 80px var(--gutter) 120px; border-top: 1px solid var(--line);
  display: grid; justify-items: center; text-align: center; gap: 20px;
}
.footer__big {
  margin: 0; font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 125;
  font-size: clamp(2.6rem, 10vw, 8rem); line-height: .9; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px #3a3a3f;
}
.footer__cols { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px; }
.footer__cols p { margin: 0; display: grid; gap: 4px; }
.footer__cols span { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer__cols a { text-decoration: none; }
.footer__cols a:hover { color: var(--accent-soft); }
.footer__legal { margin: 20px 0 0; font-size: .8rem; color: var(--muted); }

/* ---------- Mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(5,5,6,.92); }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; border-radius: 6px; }
.lightbox__close {
  position: absolute; top: -48px; right: 0; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* Solo efectos grandes se apagan con reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation-duration: 90s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results__grid .ba:nth-child(even) { margin-top: 48px; }
  .nav__links { display: none; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 96px;
  }
  .hero__media { width: 100%; }
  .hero__media img { object-position: 50% 15%; opacity: .55; }
  .hero__media::after {
    background: linear-gradient(0deg, var(--bg) 8%, rgba(10,10,11,.6) 55%, rgba(10,10,11,.3) 100%);
  }
  .hero__content { align-self: end; padding-bottom: 32px; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta div { padding: 16px 12px 18px 0; margin-right: 12px; }
  .hero__meta div:nth-child(2) { border-right: 0; }
  .hero__meta div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); }

  .section__head { grid-template-columns: 1fr; row-gap: 14px; }
  .section__head .index { justify-self: start; margin: 0; }
  .section__sub { grid-column: 1; }

  .about__grid, .contact__grid, .modes__grid { grid-template-columns: 1fr; }
  .results__grid { gap: 10px; }
  .results__grid .ba:nth-child(even) { margin-top: 32px; }

  .hours { grid-template-columns: 1fr 1fr; }
  .hours__label { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); padding-block: 14px; }
  .hours__slot { flex-direction: column; align-items: flex-start; gap: 10px; }

  .form__row { grid-template-columns: 1fr; }
  .calendly-wrap.is-live .calendly-inline-widget { height: 1000px; }

  .nav__cta { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10,10,11,.94); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; }
  .mobile-bar.is-visible ~ .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  .ba__tag { font-size: .55rem; padding: 3px 6px; top: 8px; }
  .ba__tag--a { left: 8px; }
  .choice span { font-size: .85rem; padding: 9px 13px; }
}
