/* Impacto Fitness Center — "el reloj del box"
   Color: negro de box; turquesa del logo para la marca y las acciones;
   el rojo LED vive solo en el reloj y en la aguja de "ahora". */
:root {
  --black: #0a0c0d;
  --black-2: #121517;
  --black-3: #1a1e21;
  --bone: #eef0ec;
  --dim: #a3aaa8;
  --teal: #4fc4c1;
  --teal-2: #7dd8d5;
  --led: #ff3b30;
  --line: rgba(238, 240, 236, .14);
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Saira", system-ui, sans-serif;
  --pad: clamp(16px, 4.5vw, 72px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--black); color: var(--bone); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
svg { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.skip { position: fixed; z-index: 100; left: 16px; top: -60px; background: var(--teal); color: var(--black); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 16px; }
.t { color: var(--teal); }
.h2 { font: 900 clamp(46px, 6.4vw, 104px)/.88 var(--display); text-transform: uppercase; letter-spacing: -.01em; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 2px solid transparent; font: 700 18px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 16px; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 20px; }
.btn--teal { background: var(--teal); color: var(--black); }
.btn--teal:hover { background: var(--teal-2); }
.btn--line { border-color: rgba(238, 240, 236, .5); clip-path: none; }
.btn--line:hover { border-color: var(--bone); background: rgba(238, 240, 236, .07); }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 50; inset: 0 0 auto; display: flex; align-items: center; gap: 26px; padding: 12px var(--pad); transition: background-color .3s; }
.nav.is-scrolled { background: rgba(10, 12, 13, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 900 26px/1 var(--display); letter-spacing: .18em; }
.brand svg { width: 46px; height: 32px; color: var(--teal); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font: 700 17px var(--display); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; color: var(--dim); }
.nav__links a:hover { color: var(--bone); }
.lang { display: flex; gap: 2px; }
.lang button { background: none; border: 0; color: var(--dim); font: 700 15px var(--display); letter-spacing: .08em; padding: 8px 7px; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--teal); box-shadow: inset 0 -2px 0 var(--teal); }

/* ---------- hero: el reloj ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 84px var(--pad) 36px; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.15); opacity: .34; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 46%, rgba(10, 12, 13, .55), rgba(10, 12, 13, .92) 80%), linear-gradient(0deg, var(--black), transparent 30%); }
.hero__top { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 700 16px var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.hero__top a { text-decoration: none; color: var(--bone); }
.hero__top b { color: var(--teal); }
.clock { align-self: center; justify-self: center; display: grid; justify-items: center; text-align: center; gap: 14px; padding: 4vh 0; }
.clock__label { font: 700 clamp(18px, 1.8vw, 26px)/1.2 var(--display); text-transform: uppercase; letter-spacing: .16em; color: var(--teal); display: flex; align-items: center; gap: 12px; }
.clock.is-live .clock__label::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--led); box-shadow: 0 0 12px var(--led); animation: blink 1s steps(2) infinite; }
.clock__face { padding: .12em .2em; font-size: clamp(66px, 13.5vw, 220px); background: #050606; border: 1px solid #222; box-shadow: inset 0 0 40px rgba(0, 0, 0, .9), 0 30px 80px rgba(0, 0, 0, .6); border-radius: .06em; }
.led { display: flex; align-items: center; gap: .07em; transform: skewX(-6deg); font: 700 1em/1 var(--display); color: var(--led); }
.dg { position: relative; width: .52em; height: 1em; }
.dg i { position: absolute; background: rgba(255, 59, 48, .08); border-radius: .025em; transition: background-color .15s, box-shadow .15s; }
.dg .a, .dg .d, .dg .g { left: .075em; right: .075em; height: .08em; }
.dg .a { top: 0; } .dg .g { top: calc(50% - .04em); } .dg .d { bottom: 0; }
.dg .b, .dg .c, .dg .e, .dg .f { width: .08em; height: calc(50% - .07em); }
.dg .f { left: 0; top: .055em; } .dg .b { right: 0; top: .055em; }
.dg .e { left: 0; bottom: .055em; } .dg .c { right: 0; bottom: .055em; }
.dg i.on { background: var(--led); box-shadow: 0 0 .04em var(--led), 0 0 .16em rgba(255, 59, 48, .55); }
.colon { display: grid; gap: .22em; padding: 0 .02em; }
.colon::before, .colon::after { content: ""; width: .09em; height: .09em; border-radius: 50%; background: var(--led); box-shadow: 0 0 .16em rgba(255, 59, 48, .6); }
.clock.is-tick .colon { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.clock__sub { font-size: 17px; color: var(--dim); max-width: 640px; }
.blocks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.blocks li { display: grid; padding: 8px 16px; border: 1px solid var(--line); text-align: left; min-width: 150px; }
.blocks span { font: 700 14px var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.blocks b { font: 700 22px/1.1 var(--display); letter-spacing: .04em; }
.blocks li.is-on { border-color: var(--teal); background: rgba(79, 196, 193, .12); }
.blocks li.is-on span { color: var(--teal); }
.blocks li.is-next { border-color: rgba(79, 196, 193, .5); border-style: dashed; }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero__title { font: 900 clamp(46px, 6.3vw, 104px)/.86 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- panal ---------- */
.comb { background: var(--black-2); border-block: 1px solid var(--line); overflow: hidden; --w: clamp(180px, 19vw, 300px); --h: calc(var(--w) * 1.1547); }
.comb__pin { position: relative; display: grid; align-content: center; padding: clamp(90px, 10vw, 140px) 0; }
.comb__title { padding: 0 var(--pad); margin-bottom: 36px; font: 900 clamp(56px, 10vw, 170px)/.85 var(--display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px var(--teal); }
.comb__track { display: flex; align-items: flex-start; justify-content: center; padding: 0 var(--pad); }
.hex { flex: none; width: var(--w); height: var(--h); margin-right: calc(var(--w) * -.5 + 10px); clip-path: polygon(50% 1.5%, 98.5% 25.5%, 98.5% 74.5%, 50% 98.5%, 1.5% 74.5%, 1.5% 25.5%); background: var(--black-3); }
.hex--low { margin-top: calc(var(--h) * .75); }
.hex:last-child { margin-right: 0; }
.hex img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .6s; filter: saturate(.9); }
.hex:hover img { transform: scale(1.08); filter: saturate(1.15); }

/* ---------- el box ---------- */
.box { padding: clamp(100px, 13vw, 190px) var(--pad); max-width: 1500px; margin: 0 auto; }
.box__title { font: 900 clamp(54px, 9.4vw, 160px)/.86 var(--display); text-transform: uppercase; }
.box__title span { display: block; }
.box__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 70px); margin-top: clamp(40px, 5vw, 70px); max-width: 1100px; margin-left: auto; font-size: 20px; }
.box__letal { font: 700 clamp(28px, 2.6vw, 38px)/1.1 var(--display); text-transform: uppercase; color: var(--teal); }
.events { margin-top: clamp(70px, 9vw, 130px); }
.events__t { font: 700 16px var(--display); text-transform: uppercase; letter-spacing: .16em; color: var(--dim); margin-bottom: 18px; }
.events__rail { overflow: hidden; border-block: 1px solid var(--line); margin-inline: calc(var(--pad) * -1); }
.events__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.events__track li { padding: 18px 40px; font: 900 clamp(40px, 5.4vw, 86px)/1 var(--display); text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
.events__track li:nth-child(odd) { color: var(--bone); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- entrenamientos ---------- */
.train { padding: clamp(90px, 11vw, 160px) var(--pad); background: var(--black-2); border-top: 1px solid var(--line); }
.train__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 24px 60px; max-width: 1400px; margin: 0 auto 56px; }
.train__head p { color: var(--dim); }
.train__head a { color: var(--teal); font-weight: 600; }
.wods { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; max-width: 1400px; margin: 0 auto; background: var(--line); border: 1px solid var(--line); }
.wod { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 26px; align-content: start; padding: clamp(28px, 3vw, 44px); background: var(--black-2); overflow: hidden; isolation: isolate; min-height: 260px; }
.wod__n { grid-row: span 2; font: 900 clamp(70px, 7vw, 110px)/.8 var(--display); color: var(--teal); }
.wod h3 { font: 900 clamp(32px, 3vw, 46px)/1 var(--display); text-transform: uppercase; align-self: end; }
.wod p { color: var(--dim); max-width: 440px; }
.wod img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: grayscale(1); transition: opacity .5s, transform .8s var(--ease); transform: scale(1.06); }
.wod::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 12, 13, .96), rgba(10, 12, 13, .7)); opacity: 0; transition: opacity .5s; }
.wod:hover img { opacity: .55; transform: scale(1); }
.wod:hover::after { opacity: 1; }
.wod:hover p { color: var(--bone); }

/* ---------- horarios ---------- */
.hours { padding: clamp(90px, 11vw, 160px) var(--pad); max-width: 1500px; margin: 0 auto; }
.hours__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 20px 60px; margin-bottom: 48px; }
.hours__head p { color: var(--dim); }
.week { position: relative; display: grid; gap: 8px; --label: 150px; }
.week__scale { position: relative; height: 20px; margin-left: var(--label); font: 700 14px var(--display); color: var(--dim); letter-spacing: .1em; }
.week__scale span { position: absolute; left: calc((var(--h) - 6) / 16 * 100%); translate: -50% 0; white-space: nowrap; }
.week__row { display: grid; grid-template-columns: var(--label) 1fr; align-items: center; }
.week__row > span { font: 700 20px var(--display); text-transform: uppercase; letter-spacing: .06em; }
.week__row.is-today > span { color: var(--teal); }
.week__row.is-today > span::after { content: " ●"; color: var(--led); font-size: .7em; vertical-align: middle; }
.bar { position: relative; height: 46px; background: repeating-linear-gradient(90deg, var(--black-3) 0 calc(100% / 16 - 1px), var(--black) calc(100% / 16 - 1px) calc(100% / 16)); }
.bar i { position: absolute; top: 0; bottom: 0; left: calc((var(--a) - 6) / 16 * 100%); width: calc((var(--b) - var(--a)) / 16 * 100%); background: rgba(79, 196, 193, .2); border-left: 3px solid var(--teal); font: 700 14px/46px var(--display); font-style: normal; letter-spacing: .06em; padding-left: 10px; white-space: nowrap; overflow: hidden; }
.is-today .bar i { background: rgba(79, 196, 193, .38); }
.bar--ask { display: flex; align-items: center; padding-left: 16px; background: repeating-linear-gradient(-45deg, var(--black-2) 0 10px, var(--black-3) 10px 20px); }
.bar--ask a { font: 700 17px var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--teal); text-decoration: none; }
.week__now { position: absolute; top: 24px; bottom: 0; width: 2px; background: var(--led); box-shadow: 0 0 10px var(--led); display: none; }
.week__now::before { content: attr(data-t); position: absolute; top: -24px; left: 50%; translate: -50% 0; font: 700 13px var(--display); color: var(--led); letter-spacing: .08em; background: var(--black); padding: 0 4px; }
.visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(70px, 8vw, 110px); }
.contact { display: grid; gap: 14px; }
.contact div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact dt { font: 700 15px var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); padding-top: 3px; }
.contact a { color: var(--teal); }
.access { margin-top: 26px; padding: 18px 20px; border-left: 3px solid var(--teal); background: var(--black-2); }
.access__t { font: 700 18px var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--teal); margin-bottom: 6px; }
.access li { color: var(--dim); font-size: 15px; }
.access li::before { content: "— "; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.visit__map { position: relative; min-height: 420px; border: 1px solid var(--line); background: radial-gradient(circle, var(--teal) 0 7px, transparent 8px), repeating-linear-gradient(60deg, transparent 0 44px, var(--line) 44px 45px), repeating-linear-gradient(-60deg, transparent 0 44px, var(--line) 44px 45px), var(--black-2); }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* ---------- cierre ---------- */
.final { position: relative; min-height: 90svh; display: grid; align-items: end; padding: clamp(100px, 12vw, 160px) var(--pad) clamp(60px, 7vw, 100px); isolation: isolate; overflow: hidden; }
.final__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 12, 13, .97) 8%, rgba(10, 12, 13, .55) 55%, rgba(10, 12, 13, .25)); }
.final__in { max-width: 980px; display: grid; gap: 18px; }
.final__tag { font: 700 20px var(--display); text-transform: uppercase; letter-spacing: .16em; color: var(--teal); }
.final__title { font: 900 clamp(56px, 8.6vw, 150px)/.86 var(--display); text-transform: uppercase; }
.final__p { font-size: 20px; max-width: 560px; }
.final__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* ---------- footer ---------- */
.foot { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 24px; align-items: center; padding: 40px var(--pad); border-top: 1px solid var(--line); color: var(--dim); font-size: 15px; }
.foot__brand { display: flex; align-items: center; gap: 16px; }
.foot__brand img { width: 64px; height: 64px; }
.foot__name { font: 900 22px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--bone); }
.foot__list { display: grid; gap: 2px; }
.foot a { color: var(--bone); }
.foot__demo { font-size: 13px; text-align: right; }

.dock { display: none; }

/* ---------- motion fail-safe ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .lang { margin-left: auto; }
  .hero__foot { grid-template-columns: 1fr; }
  .train__head, .hours__head, .visit { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; text-align: left; }
  .foot__demo { text-align: left; }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .nav { gap: 10px; padding-block: 10px; }
  .brand { font-size: 22px; }
  .brand svg { width: 38px; height: 26px; }
  .nav__cta { display: none; }
  .hero { padding: 72px 16px 28px; }
  .hero__top { font-size: 13px; flex-direction: column; gap: 2px; }
  .clock { padding: 34px 0 30px; gap: 12px; }
  .clock__face { font-size: 20vw; }
  .clock__sub { font-size: 15px; }
  .blocks { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: 6px; }
  .blocks li { min-width: 0; padding: 8px; }
  .blocks span { font-size: 12px; letter-spacing: .08em; }
  .blocks b { font-size: 16px; }
  .hero__title { font-size: 13.2vw; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .comb__pin { min-height: 0; padding: 80px 0 50px; }
  .comb { --w: 46vw; }
  .comb__track { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
  .hex:last-child { margin-right: 16px; }
  .hex { scroll-snap-align: center; }
  .box__grid { grid-template-columns: 1fr; font-size: 17px; }
  .wods { grid-template-columns: 1fr; }
  .wod { min-height: 0; gap: 6px 18px; }
  .week { --label: 64px; }
  .week__row > span { font-size: 15px; }
  .week__row.is-today > span::after { content: ""; }
  .bar { height: 40px; }
  .bar i { font-size: 0; padding: 0; }
  .bar--ask a { font-size: 14px; }
  .week__scale { font-size: 12px; }
  .contact div { grid-template-columns: 1fr; gap: 2px; }
  .visit__map { min-height: 300px; }
  .final { min-height: 0; }
  .final__ctas .btn { flex: 1 1 100%; }
  .dock { position: fixed; z-index: 60; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 6px; padding: 6px; background: rgba(18, 21, 23, .94); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; text-decoration: none; font: 700 17px var(--display); text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--line); }
  .dock svg { width: 19px; height: 19px; }
  .dock__main { background: var(--teal); color: var(--black); border-color: var(--teal) !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
