/* Carlos Gómez — hybrid training landing.
   Mobile-first: base rules are the 390 px design, min-width queries add the desktop. */

@font-face { font-family: 'Oswald'; font-weight: 300; font-display: swap; src: url('../fonts/oswald-300.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 500; font-display: swap; src: url('../fonts/oswald-500.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 700; font-display: swap; src: url('../fonts/oswald-700.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 400; font-display: swap; src: url('../fonts/archivo-400.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 600; font-display: swap; src: url('../fonts/archivo-600.woff2') format('woff2'); }

:root {
  --black: #000;
  --ink-2: #0d0d0d;
  --white: #fff;
  --yellow: #FFDE59;
  --mute: #9a9a9a;
  --soft: #d0d0d0;
  --line: #262626;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Archivo', system-ui, sans-serif;
  --gutter: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--yellow); }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.d { font-family: var(--display); text-transform: uppercase; line-height: 1.06; letter-spacing: -.01em; margin: 0; }
.thin { font-weight: 300; }
.heavy { font-weight: 700; }
.y { color: var(--yellow); }
.label { display: block; font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--yellow); }
.lead { font-size: 17px; color: var(--soft); }
.stack { display: flex; flex-direction: column; gap: 18px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; background: var(--yellow); color: var(--black); font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: background .2s, color .2s; }
.btn:hover { background: var(--white); color: var(--black); }
.btn--dark { background: var(--black); color: var(--yellow); }
.btn--dark:hover { background: #222; color: var(--yellow); }
.ghost { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); text-decoration: none; font-size: 15px; border-bottom: 1px solid var(--yellow); }
.wa-icon { width: 20px; height: 20px; flex: none; }

/* Header */
/* The header overlays the hero photos; on mobile the logo and the chat button get their own black backing so they read over them. */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
/* Mobile: logo centred, WhatsApp icon pinned to the right edge. */
.site-header .wrap { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.site-header img { box-sizing: content-box; width: clamp(132px, 36vw, 200px); height: auto; padding: 8px 14px; background: var(--black); border: 1px solid var(--yellow); border-radius: 14px; }
.header-wa { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--black); border: 1px solid var(--yellow); border-radius: 50%; color: var(--yellow); }
.header-wa .wa-icon { fill: var(--yellow); }
.header-wa-text { display: none; }

/* Hero: stage | hybrid, split by a yellow diagonal */
/* Mobile: the hero is exactly one screen tall; the photos take whatever the copy leaves.
   The split is a size container so --cut (horizontal run of the 6deg diagonal over half
   its height, tan 6deg / 2) follows the real photo height. */
.hero { display: flex; flex-direction: column; min-height: 100svh; }
.hero-split { --split: 50%; container-type: size; position: relative; flex: 1 1 0; min-height: 280px; overflow: hidden; }
.hero-half { --cut: calc(100cqh * .05255); position: absolute; top: 0; bottom: 0; overflow: hidden; }
/* Each photo is clipped along the same diagonal the yellow line draws, so the line is the seam. */
.hero-half--stage { left: 0; width: calc(var(--split) + var(--cut)); clip-path: polygon(0 0, 100% 0, calc(100% - 2 * var(--cut)) 100%, 0 100%); }
.hero-half--now { left: calc(var(--split) - var(--cut)); right: 0; clip-path: polygon(calc(2 * var(--cut)) 0, 100% 0, 100% 100%, 0 100%); }
.hero-half img { width: 100%; height: 100%; object-fit: cover; }
.hero-half--stage img { object-position: 60% 30%; filter: grayscale(1) contrast(1.1) brightness(.6); }
/* Mobile: anchored left so his face lands between the logo and the chat button. */
.hero-half--now img { object-position: 25% 15%; filter: brightness(.75) saturate(.85); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,.15) 60%, #000 100%); }
.hero-cut { position: absolute; top: 0; bottom: 0; left: calc(var(--split) - 1.5px); width: 3px; background: var(--yellow); transform: skewX(-6deg); }
.hero-tag { position: absolute; bottom: 84px; padding: 6px 10px; background: rgba(0,0,0,.82); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero-tag--stage { left: 6px; color: var(--white); }
.hero-tag--now { right: 6px; color: var(--yellow); }
.hero-copy { position: relative; margin-top: -64px; padding-bottom: 28px; }
.hero-copy h1 { font-size: 56px; }
.hero-copy .ghost { align-self: center; }

/* Sections */
.section { padding: 64px 0; }
.section--alt { background: var(--ink-2); }
.section--rule { border-top: 1px solid #1c1c1c; }
.h2 { font-size: 40px; }
.h2--xl { font-size: 44px; }

.beats { list-style: none; margin: 8px 0 0; padding: 0; }
.beats li { font-size: 34px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.beats li:last-child { border-bottom: 0; }
.beats li span { display: block; }

.benefits { display: flex; flex-direction: column; border-top: 1px solid var(--yellow); margin-top: 6px; }
.benefit { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid #222; }
.benefit:last-child { border-bottom: 0; }
.benefit .d { font-size: 22px; font-weight: 700; }
.benefit span:last-child { font-size: 14px; color: var(--mute); }

.disc { position: relative; overflow: hidden; }
.disc > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 60%; filter: grayscale(.3) brightness(.38); }
.disc .wrap { position: relative; padding-top: 88px; padding-bottom: 88px; }
.disc h2 { font-size: 64px; }
.sports { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); }
.sports li { display: flex; align-items: baseline; gap: 14px; font-size: 38px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.sports li::before { content: '+'; color: var(--yellow); font-weight: 300; font-size: 30px; }
.sports li:last-child { color: var(--yellow); font-weight: 500; }
.disc p { color: #e2e2e2; }
.disc strong { color: var(--yellow); font-weight: 600; }

.story-cols { display: flex; flex-direction: column; gap: 22px; }
.story-col { display: flex; flex-direction: column; gap: 18px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.duo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.bw { filter: grayscale(1) contrast(1.05); }
.titles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.titles li { display: flex; flex-direction: column; gap: 2px; }
.titles .d { font-size: 22px; font-weight: 700; }
.titles span:last-child { color: var(--mute); font-size: 14px; }
.label--mute { color: #8c8c8c; }
.story-line { font-size: 24px; font-weight: 700; color: var(--yellow); }

.coach { display: flex; flex-direction: column; gap: 18px; }
.coach img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 58%; }

.fit { display: flex; flex-direction: column; gap: 16px; }
.fit-box { padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.fit-box--yes { background: var(--yellow); color: var(--black); }
.fit-box--no { border: 1px solid #333; }
.fit-box .d { font-size: 24px; font-weight: 700; }
.fit-box ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.fit-box--no ul { color: #bdbdbd; }

.local { border-top: 1px solid #1c1c1c; border-bottom: 1px solid #1c1c1c; }
.local .wrap { display: flex; flex-direction: column; gap: 8px; padding-top: 28px; padding-bottom: 28px; }
.local h2 { margin: 0; }
.local a { min-height: 44px; display: inline-flex; align-items: center; color: var(--white); font-size: 14px; }

.faq details { border-top: 1px solid #2a2a2a; }
.faq details:last-of-type { border-bottom: 1px solid #2a2a2a; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 10px 0; font-family: var(--display); font-weight: 500; font-size: 19px; text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { color: var(--yellow); font-weight: 300; font-size: 28px; transition: transform .2s; }
.faq details[open] .pm { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: #c8c8c8; }

.cta { background: var(--yellow); color: var(--black); }
.cta .wrap { padding-top: 72px; padding-bottom: 88px; }
.cta h2 { font-size: 64px; }

.site-footer { padding: 40px 0; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 20px; }
.site-footer img { width: clamp(140px, 40vw, 200px); height: auto; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; font-size: 14px; }
.footer-nav a { color: var(--white); min-height: 44px; display: flex; align-items: center; }
.credit { font-size: 12px; color: #8a8a8a; }
.credit a { color: #8a8a8a; }

/* Floating WhatsApp bar: only while neither the hero CTA nor the final CTA is on screen */
.wa-float { position: fixed; left: var(--gutter); right: var(--gutter); bottom: 16px; z-index: 20; box-shadow: 0 10px 30px rgba(0,0,0,.5); transform: translateY(140%); transition: transform .25s ease; }
.wa-float.is-on { transform: none; }

/* Legal + 404 */
.page { padding: 120px 0 64px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: 44px; margin-bottom: 24px; }
.page h2 { font-family: var(--display); text-transform: uppercase; font-weight: 500; font-size: 22px; margin: 32px 0 10px; }
.page p, .page li { color: var(--soft); }
.page p + p { margin-top: 12px; }
.todo { color: var(--yellow); }

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .site-header img { padding: 0; background: none; border: 0; border-radius: 0; }
  .site-header .wrap { justify-content: space-between; }
  .header-wa { position: static; transform: none; background: none; width: auto; height: auto; min-height: 44px; border: 0; border-bottom: 1px solid var(--yellow); border-radius: 0; color: var(--white); text-decoration: none; font-size: 15px; }
  .header-wa svg { display: none; }
  .header-wa-text { display: inline; }
  .hero { display: block; min-height: 0; }
  .hero-split { flex: none; height: 640px; }
  .hero-half--stage img { object-position: 50% 15%; }
  .hero-half--now img { object-position: 48% 15%; }
  .hero-tag { bottom: auto; top: 112px; font-size: 12px; padding: 8px 14px; letter-spacing: .2em; }
  .hero-tag--stage { left: 32px; }
  .hero-tag--now { right: 32px; }
  .hero-copy { margin-top: -190px; padding-bottom: 72px; }
  .hero-copy h1 { font-size: clamp(64px, 9vw, 128px); }
  .hero-copy .lead { max-width: 560px; font-size: 19px; }
  .hero-actions { flex-direction: row; align-items: center; gap: 20px; }
  .hero-actions .btn { align-self: flex-start; }
  .section { padding: 112px 0; }
  .h2 { font-size: clamp(40px, 4.6vw, 60px); }
  .h2--xl { font-size: clamp(44px, 5.4vw, 72px); }
  .problem { flex-direction: row; flex-wrap: wrap; gap: 56px; }
  .problem > div { flex: 1 1 320px; }
  .beats { flex: 1.4 1 420px; margin: 0; }
  .beats li { font-size: clamp(34px, 4.6vw, 60px); }
  .beats li span { display: inline; }
  .benefits { flex-direction: row; flex-wrap: wrap; }
  .benefit { flex: 1 1 200px; padding: 24px 24px 24px 0; border-bottom: 0; }
  .benefit .d { font-size: 26px; }
  .disc .wrap { padding-top: 140px; padding-bottom: 140px; max-width: 1200px; }
  .disc h2 { font-size: 84px; }
  .sports { display: flex; flex-wrap: wrap; border-top: 0; gap: 0 32px; }
  .sports li { font-size: 48px; border-bottom: 0; padding: 0; }
  .disc p { max-width: 620px; font-size: 19px; }
  .story-cols { flex-direction: row; gap: 32px; }
  .story-col { flex: 1 1 0; }
  .coach { flex-direction: row; align-items: center; gap: 56px; }
  .coach img { flex: 1 1 0; max-width: 520px; aspect-ratio: 4 / 5; }
  .coach > div { flex: 1 1 0; }
  .fit-boxes { flex-direction: row; gap: 32px; }
  .fit-box { flex: 1 1 0; padding: 32px; }
  .local .wrap { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
  .faq-cols { flex-direction: row; gap: 56px; }
  .faq-cols > h2 { flex: 1 1 280px; }
  .faq-cols > div { flex: 2 1 480px; min-width: 0; }
  .faq summary { font-size: 22px; min-height: 64px; }
  .cta .wrap { padding-top: 120px; padding-bottom: 120px; }
  .cta h2 { font-size: clamp(72px, 9vw, 132px); }
  .cta .btn { align-self: flex-start; }
  .site-footer .wrap { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
  .credit { flex-basis: 100%; }
  .wa-float { display: none; }
}

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