/* Gimnasio Master — negro, rojo de bandera y blanco. Archivo de ancho variable. */
:root {
  --ink: #0b0b0c;
  --ink-2: #151517;
  --ink-3: #222226;
  --red: #e2231a;
  --red-deep: #b5150f;
  --white: #f6f5f2;
  --mute: #a9a8a4;
  --line: rgba(246, 245, 242, .16);
  --pad: clamp(18px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--ink); color: var(--white);
  font-family: "Archivo", system-ui, sans-serif; font-size: 17px; line-height: 1.55;
  font-variation-settings: "wdth" 100; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - var(--pad) * 2, var(--max)); margin-inline: auto; }

.kicker {
  margin: 0 0 18px; font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  font-stretch: 125%; font-variation-settings: "wdth" 125; color: var(--red);
}
.kicker--dark { color: var(--ink); }
.h2 {
  margin: 0; font-weight: 900; font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: .86; letter-spacing: -.01em;
  text-transform: uppercase; font-variation-settings: "wdth" 70;
}

/* Botones: hover con translate (no transform) para no pelear con GSAP */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px;
  font-weight: 800; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  font-variation-settings: "wdth" 112; border: 2px solid transparent; border-radius: 0;
  transition: translate .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { translate: 0 -3px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--ghost { border-color: rgba(246, 245, 242, .55); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
.btn--black { background: var(--ink); color: #fff; }
.btn--black:hover { background: #000; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .78rem; }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--pad); transition: background-color .3s, padding .3s;
}
.nav.is-solid { background: rgba(11, 11, 12, .92); backdrop-filter: blur(10px); padding-block: 10px; }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__brand img { width: 40px; height: 40px; }
.nav__brand span { font-weight: 900; font-size: 1.35rem; line-height: 1; text-transform: uppercase; font-variation-settings: "wdth" 75; display: grid; }
.nav__brand small { font-size: .62rem; font-weight: 600; letter-spacing: .2em; font-variation-settings: "wdth" 120; color: var(--mute); margin-top: 3px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-variation-settings: "wdth" 115; opacity: .85; }
.nav__links a:hover { opacity: 1; color: var(--red); }

/* HERO — tríptico full-bleed con MASTER gigante */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden; isolation: isolate; }
.hero__panels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; z-index: -2; background: var(--ink); }
.hero__panel { overflow: hidden; position: relative; }
.hero__panel img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(.25) contrast(1.08); }
.hero__panel:nth-child(2) img { object-position: 50% 30%; }
.hero__panel:nth-child(3) img { object-position: 100% 50%; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(11,11,12,.75) 0%, rgba(11,11,12,.05) 26%, rgba(11,11,12,.15) 52%, rgba(11,11,12,.92) 82%, var(--ink) 100%); }
.hero__top { display: flex; justify-content: space-between; gap: 16px; padding: 96px var(--pad) 0; }
.tag { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-variation-settings: "wdth" 120; }
.star { color: var(--red); }
.hero__title { grid-row: 3; margin: 0; padding: 0 calc(var(--pad) * .5); line-height: .78; }
.hero__word { display: flex; justify-content: space-between; font-weight: 900; text-transform: uppercase;
  font-size: min(25.5vw, 34svh); font-variation-settings: "wdth" 62; letter-spacing: -.01em; color: var(--white); }
.hero__word span { display: inline-block; }
.hero__word span:nth-child(1) { color: var(--red); }
.hero__foot {
  grid-row: 4; display: grid; grid-template-columns: 1.1fr 1fr auto; align-items: end; gap: 28px;
  padding: 22px var(--pad) 30px; border-top: 1px solid var(--line); margin-top: 10px;
}
.hero__lead { margin: 0; max-width: 34ch; font-size: 1.05rem; color: #dcdad5; }
.hero__lead strong { color: #fff; }
.live { margin: 0; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .95rem; }
.live__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--mute); flex: none; }
.live.is-on .live__dot { background: var(--red); box-shadow: 0 0 0 0 rgba(226,35,26,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 14px rgba(226,35,26,0); } }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* TICKER */
.ticker { background: var(--red); color: #fff; overflow: hidden; border-block: 2px solid var(--ink); }
.ticker__track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker__track span { padding: 14px 26px; font-weight: 900; font-size: 1.5rem; text-transform: uppercase; font-variation-settings: "wdth" 70; white-space: nowrap; }
.ticker__track span::after { content: "✕"; margin-left: 52px; font-size: .9rem; vertical-align: middle; opacity: .7; }
@keyframes tick { to { transform: translateX(-50%); } }

/* FRASE GIGANTE */
.manifest { padding: clamp(90px, 14vw, 200px) var(--pad); max-width: 1500px; margin-inline: auto; }
.manifest__text { margin: 0; font-weight: 900; font-size: clamp(2.6rem, 8.2vw, 8.6rem); line-height: .9; text-transform: uppercase; font-variation-settings: "wdth" 72; letter-spacing: -.01em; }
.manifest__text em { font-style: italic; color: var(--red); }
.manifest__text .w { opacity: .18; transition: opacity .3s; }
.manifest__text .w.on { opacity: 1; }
.manifest__sub { margin: 36px 0 0 auto; max-width: 30ch; font-size: 1.2rem; color: var(--mute); }

/* DISCIPLINAS — riel horizontal */
.classes { position: relative; padding-top: 40px; background: var(--ink); }
.classes__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; padding: 0 var(--pad) 48px; }
.classes__head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.classes__hint { margin: 0; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; color: var(--mute); }
.classes__rail { overflow: hidden; padding-bottom: 80px; }
.classes__track { display: flex; gap: 18px; padding-inline: var(--pad); width: max-content; }
.cc { position: relative; width: clamp(280px, 27vw, 380px); min-height: 500px; background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.cc__body { position: relative; padding: 26px; display: grid; gap: 10px; }
.cc__n { font-weight: 900; font-size: 4.4rem; line-height: .8; font-variation-settings: "wdth" 62; color: transparent; -webkit-text-stroke: 1.5px var(--red); }
.cc h3 { margin: 0; font-weight: 900; font-size: 2.3rem; line-height: .9; text-transform: uppercase; font-variation-settings: "wdth" 72; }
.cc p { margin: 0; color: #cfcdc8; font-size: .98rem; }
.cc .cc__when { color: var(--red); font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-variation-settings: "wdth" 110; min-height: 1.2em; }
.cc--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); }
.cc--img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 25%, rgba(11,11,12,.95) 78%); }
.cc--img .cc__body { z-index: 2; }
.cc--red { background: var(--red); border-color: var(--red); }
.cc--red .cc__n { -webkit-text-stroke-color: #fff; }
.cc--red p, .cc--red .cc__when { color: #fff; }
.cc--white { background: var(--white); color: var(--ink); }
.cc--white p { color: #3a3a3d; }
.cc--white .cc__when { color: var(--red-deep); }
.cc--end { background: transparent; border-style: dashed; justify-content: center; }
.cc--end .btn { justify-self: start; margin-top: 10px; }
.pill { display: inline-block; vertical-align: middle; font-size: .7rem; letter-spacing: .14em; padding: 5px 9px; background: var(--red); color: #fff; font-variation-settings: "wdth" 115; }

/* GRILLA — momento firma */
.grid-sec { padding: clamp(80px, 10vw, 140px) 0; background: var(--ink-2); border-top: 1px solid var(--line); }
.grid-sec__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.grid-sec__lead { margin: 0; max-width: 46ch; color: #cfcdc8; justify-self: end; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  font: inherit; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-variation-settings: "wdth" 110;
  color: var(--white); background: transparent; border: 1.5px solid var(--line); padding: 10px 16px; min-height: 44px; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--white); }
.chip.is-on { background: var(--white); color: var(--ink); border-color: var(--white); }
.days { display: none; gap: 6px; margin-bottom: 16px; }
.days button { flex: 1; font: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; min-height: 46px; background: transparent; color: var(--white); border: 1.5px solid var(--line); cursor: pointer; }
.days button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.week { border-top: 2px solid var(--white); }
.week__cols { display: grid; grid-template-columns: repeat(5, 1fr); }
.week__col { border-right: 1px solid var(--line); padding: 0 0 12px; min-width: 0; }
.week__col:last-child { border-right: 0; }
.week__day { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 14px; font-weight: 900; font-size: 1.6rem; text-transform: uppercase; font-variation-settings: "wdth" 70; border-bottom: 1px solid var(--line); }
.week__day small { font-size: .62rem; font-weight: 700; letter-spacing: .16em; font-variation-settings: "wdth" 115; color: var(--red); }
.week__col.is-today { background: rgba(226, 35, 26, .07); }
.slot {
  display: grid; gap: 2px; margin: 8px 8px 0; padding: 12px 12px 13px; text-decoration: none; background: var(--ink-3);
  border-left: 3px solid transparent; transition: background-color .2s, border-color .2s;
}
.slot:hover { background: #2c2c31; border-left-color: var(--white); }
.slot__t { font-size: .8rem; font-weight: 700; color: var(--mute); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.slot__n { font-weight: 800; font-size: 1rem; line-height: 1.15; }
.slot__b { justify-self: start; margin-top: 4px; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 3px 7px; background: var(--white); color: var(--ink); }
.slot.is-now { background: var(--red); border-left-color: #fff; }
.slot.is-now .slot__t { color: #fff; }
.slot.is-off { opacity: .16; pointer-events: none; }
.week__table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.week__table th, .week__table td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.grid-sec__note { margin: 26px 0 0; color: var(--mute); font-size: .95rem; }

/* ESTUDIANTES */
.student { display: grid; grid-template-columns: 1fr 1fr; background: var(--red); color: var(--ink); }
.student__img { position: relative; overflow: hidden; min-height: 640px; background: var(--ink); display: grid; place-items: center; padding: 56px 24px; }
.student__img::before { content: "ESTUDIANTE"; position: absolute; left: -2%; bottom: -4%; font-weight: 900; font-size: 9vw; line-height: .8; font-variation-settings: "wdth" 62; color: transparent; -webkit-text-stroke: 1.5px rgba(226,35,26,.5); white-space: nowrap; }
.student__img img { position: relative; width: min(74%, 420px); height: auto; rotate: -3deg; box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 0 8px var(--white); }
.student__body { padding: clamp(48px, 7vw, 110px) var(--pad); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.student__title { margin: 0; font-weight: 900; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .88; text-transform: uppercase; font-variation-settings: "wdth" 70; }
.price { display: flex; align-items: flex-start; margin: 26px 0 18px; color: #fff; line-height: .8; }
.price__cur { font-weight: 800; font-size: 3rem; margin-top: .25em; margin-right: 6px; }
.price__n { font-weight: 900; font-size: clamp(7rem, 15vw, 13rem); font-variation-settings: "wdth" 62; letter-spacing: -.02em; }
.price__ast { font-weight: 900; font-size: 3rem; }
.student__list { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; font-weight: 600; }
.student__list li::before { content: "→ "; font-weight: 900; }
.student__fine { margin: 0 0 28px; font-size: .88rem; font-weight: 600; }

/* 33 AÑOS */
.years { position: relative; overflow: hidden; padding: clamp(90px, 12vw, 180px) 0; }
.years__num { position: absolute; right: -2vw; top: 50%; translate: 0 -50%; font-weight: 900; font-size: clamp(16rem, 48vw, 46rem); line-height: .75; font-variation-settings: "wdth" 62; color: transparent; -webkit-text-stroke: 2px rgba(226,35,26,.4); pointer-events: none; }
.years__grid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.years__text p:not(.kicker) { color: #cfcdc8; max-width: 44ch; margin: 26px 0 0; }
.years__fig { margin: 0; }
.years__fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 6px solid var(--white); rotate: 1.5deg; }
.years__fig figcaption { margin-top: 18px; font-weight: 800; font-size: 1.2rem; font-style: italic; }

/* TURNOS */
.book { padding: clamp(80px, 10vw, 140px) 0; background: var(--white); color: var(--ink);
  --tn-accent: var(--red); --tn-on-accent: #fff; --tn-radius: 0; --tn-line: rgba(11,11,12,.2); --tn-card: rgba(11,11,12,.03); }
.book .kicker { color: var(--red-deep); }
.book__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.book__intro { position: sticky; top: 100px; }
.book__intro p:not(.kicker) { margin: 22px 0 0; max-width: 40ch; color: #36363a; }
.book__small { padding: 14px 16px; border-left: 4px solid var(--red); background: rgba(226,35,26,.06); font-size: .95rem; }
.book__box { border-top: 3px solid var(--ink); padding-top: 28px; }
.book .tn-go { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }

/* CIERRE */
.end { padding: clamp(90px, 12vw, 170px) 0 60px; background: var(--ink); }
.end__title { margin: 0 0 60px; display: grid; font-weight: 900; text-transform: uppercase; line-height: .8; font-size: clamp(5rem, 20vw, 19rem); font-variation-settings: "wdth" 62; }
.end__title span:last-child { color: var(--red); padding-left: 12vw; }
.end__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 2px solid var(--white); padding-top: 32px; }
.end__col p { margin: 0 0 6px; color: #cfcdc8; }
.end__col .kicker { margin-bottom: 12px; }
.end__col .end__big { font-weight: 900; font-size: 1.7rem; line-height: 1.05; color: var(--white); text-transform: uppercase; font-variation-settings: "wdth" 75; margin-bottom: 10px; }
.end__big a { text-decoration: none; }
.link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.end__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 56px; }
.foot { display: flex; align-items: center; gap: 12px; padding: 26px var(--pad) 34px; border-top: 1px solid var(--line); color: var(--mute); font-size: .85rem; }
.foot p { margin: 0; }

/* BARRA MOBILE */
.mbar { display: none; }

/* Reveals (solo con JS) */
.js .reveal { opacity: 0; }

@media (max-width: 980px) {
  .nav__links { display: none; }
  .hero__foot { grid-template-columns: 1fr; gap: 16px; }
  .grid-sec__head, .years__grid, .book__grid { grid-template-columns: 1fr; }
  .grid-sec__lead { justify-self: start; }
  .book__intro { position: static; }
  .student { grid-template-columns: 1fr; }
  .student__img { min-height: 0; padding: 48px 24px 56px; }
  .student__img::before { font-size: 26vw; }
}
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .nav .btn--sm { display: none; }
  .hero__panels { grid-template-columns: 1fr; }
  .hero__panel:not(:first-child) { display: none; }
  .hero__top { padding-top: 84px; flex-direction: column; gap: 6px; }
  .hero__word { font-size: 25vw; }
  .hero__foot { padding-bottom: 28px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .ticker__track span { font-size: 1.15rem; padding: 12px 18px; }
  .classes__head { grid-template-columns: 1fr; }
  .classes__rail { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 60px; scrollbar-width: none; }
  .classes__rail::-webkit-scrollbar { display: none; }
  .cc { width: 78vw; min-height: 440px; scroll-snap-align: start; }
  .days { display: flex; }
  .week__cols { grid-template-columns: 1fr; }
  .week__col { display: none; border-right: 0; }
  .week__col.is-sel { display: block; }
  .end__grid { grid-template-columns: 1fr; }
  .end__title span:last-child { padding-left: 0; }
  .end__cta .btn { flex: 1 1 100%; }
  .years__num { font-size: 70vw; top: 18%; }
  .mbar {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; position: fixed; inset: auto 0 0; z-index: 60;
    background: var(--ink); border-top: 1px solid var(--line);
  }
  .mbar a { display: flex; align-items: center; justify-content: center; min-height: 60px; text-decoration: none; font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
  .mbar a + a { border-left: 1px solid var(--line); }
  .mbar__main { background: var(--red); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .manifest__text .w { opacity: 1; }
}
