/* Sportgroup — SPINTIP design system applied to sports facilities. */
:root {
  --bg: #0e0e0e;
  --bg-2: #121212;
  --module: #1c1c1c;
  --module-2: #232323;
  --line: rgba(255, 255, 255, 0.07);
  --lime: #c6f04d;
  --lime-deep: #a8d033;
  --ink: #111111;
  --text: #f4f4f2;
  --muted: #9a9a94;
  --white: #ffffff;
  --max: 1180px;
  --gutter: 28px;
  --radius: 32px;
  --radius-sm: 20px;
  --radius-xs: 12px;
  --pad-section: 112px;
  --pad-card: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: Outfit, Manrope, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--lime);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 80;
  font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 14, 14, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.nav-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  justify-self: start;
}
.brand img {
  height: 52px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 4px 8px;
}
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  position: relative;
  z-index: 3;
}
.nav-links a {
  padding: 10px 4px;
  position: relative;
  z-index: 3;
}
.nav-links a:hover { color: var(--lime); }
.nav-cta { justify-self: end; }
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--white);
  width: 42px;
  height: 42px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-xs);
  border: 0;
  cursor: pointer;
  transition: transform 100ms ease-out, filter 160ms var(--ease);
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; }
.btn-dark {
  background: var(--ink);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 11px 18px;
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.16);
}

/* HERO */
.hero {
  padding: 18px var(--gutter) 8px;
}
.hero-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: min(78vh, 760px);
  background: #1a1a1a;
}
.hero-frame img {
  width: 100%;
  height: min(78vh, 760px);
  object-fit: cover;
}
.hero-page .hero-frame {
  min-height: min(58vh, 560px);
}
.hero-page .hero-frame img {
  height: min(58vh, 560px);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.72) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-social {
  position: absolute;
  top: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  transition: opacity .2s ease;
}
.hero-social span {
  color: var(--lime);
  font-weight: 700;
  font-size: 13px;
}
.hero-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  display: grid;
  place-items: center;
  color: var(--white);
}
.hero-social a:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.hero-copy {
  position: absolute;
  left: 40px;
  bottom: 40px;
  max-width: 640px;
  z-index: 2;
  will-change: opacity, transform;
}
.hero-copy h1 {
  color: var(--lime);
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin-bottom: 14px;
}
.hero-copy p {
  color: var(--white);
  font-size: 16px;
  max-width: 46ch;
  margin-bottom: 22px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero scroll-scrub (video frame ↔ scroll) */
.hero-scrub {
  padding-bottom: 0;
}
.hero-scrub-track {
  height: 340vh;
  position: relative;
}
.hero-scrub-sticky {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  max-height: 860px;
}
.hero-scrub-frame {
  height: 100%;
  min-height: 0;
}
.hero-scrub-poster,
.hero-scrub-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  z-index: 0;
}
.hero-scrub-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
.hero-scrub.is-static .hero-scrub-poster {
  position: relative;
  height: min(78vh, 760px);
}
.hero-scrub.is-static .hero-scrub-sticky,
.hero-scrub.is-static .hero-scrub-track {
  height: auto;
  position: relative;
  top: auto;
  max-height: none;
}
.hero-scrub.is-static .hero-scrub-frame {
  min-height: min(78vh, 760px);
}
.hero-scrub.is-scrubbing .hero-scrub-poster {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-scrub-track,
  .hero-scrub-sticky {
    height: auto;
    position: relative;
    top: auto;
    max-height: none;
  }
  .hero-scrub-frame {
    min-height: min(78vh, 760px);
  }
  .hero-scrub-canvas,
  .hero-scrub-video {
    display: none !important;
  }
  .hero-scrub-poster {
    position: relative;
    height: min(78vh, 760px);
    opacity: 1 !important;
  }
}

/* SECTIONS */
.section { padding: var(--pad-section) 0; }
#como,
#canchas,
#colegios,
#cotizar {
  scroll-margin-top: 88px;
}
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px 40px;
  align-items: start;
  margin-bottom: 48px;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  display: inline-block;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 16ch;
}
.section-head p { color: var(--muted); max-width: 42ch; margin-top: 12px; }

.lime-arrow {
  width: 72px;
  height: 72px;
  color: var(--lime);
  justify-self: start;
}

/* GRAY MODULES */
.modules {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.module {
  background: var(--module);
  border-radius: var(--radius-sm);
  padding: var(--pad-card);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  border: 1px solid var(--line);
}
.module:nth-child(1) { grid-column: span 2; }
.module:nth-child(2) { grid-column: span 2; }
.module:nth-child(3) { grid-column: span 2; }
.module:nth-child(4) { grid-column: span 3; }
.module:nth-child(5) { grid-column: span 3; }
.module-step {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.module h3 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.module p { color: var(--muted); font-size: 14px; margin-top: auto; }
.module-icon {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 28px;
  height: 28px;
  color: var(--lime);
}

/* BENEFITS + PHOTOS */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.benefits { display: grid; gap: 22px; }
.benefit {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
}
.benefit svg { color: var(--lime); width: 22px; height: 22px; margin-top: 2px; }
.benefit h3 { font-size: 1.15rem; margin-bottom: 6px; }
.benefit p { color: var(--muted); font-size: 14.5px; }
.photo-stack {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 16px;
  align-items: end;
}
.photo-stack img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.photo-stack .wide { height: 220px; }
.photo-stack .tall { height: 420px; }

/* SERVICES GRID */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service {
  background: var(--module);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.service img { width: 100%; height: 210px; object-fit: cover; }
.service-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service h3 { font-size: 1.25rem; }
.service p { color: var(--muted); font-size: 14px; }
.service a, .service-cta {
  color: var(--lime);
  font-weight: 700;
  font-size: 13px;
  margin-top: auto;
}
a.service {
  color: inherit;
  cursor: pointer;
}
a.service:hover {
  border-color: rgba(198, 240, 77, 0.35);
}
.service-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  margin-top: auto;
}
a.service:hover .service-cta { filter: brightness(1.06); }

/* SCHOOLS BAND */
.band {
  background: var(--module);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.band img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.band-copy { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.band-copy p { color: var(--muted); }

/* QUOTE */
.quote-hero {
  padding: 18px var(--gutter) var(--pad-section);
}
.quote-hero-frame {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 620px;
  padding: 48px 0 56px;
}
.quote-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.quote-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quote-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14,14,14,.9) 0%, rgba(14,14,14,.72) 46%, rgba(14,14,14,.48) 100%),
    linear-gradient(180deg, rgba(14,14,14,.12) 0%, rgba(14,14,14,.5) 100%);
}
.quote-hero-frame > .wrap {
  position: relative;
  z-index: 1;
}
.quote-hero .form {
  background: rgba(28, 28, 28, 0.92);
  backdrop-filter: blur(16px);
}
.quote-hero .channel {
  background: rgba(28, 28, 28, 0.86);
  backdrop-filter: blur(10px);
}
.quote-hero .notice {
  background: rgba(28, 28, 28, 0.82);
}
.quote-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.form-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.form-status {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
}
.form-status.is-ok {
  color: var(--ink);
  background: var(--lime);
}
.form-status.is-err {
  color: #fff;
  background: #7a1f1f;
  border: 1px solid rgba(255,255,255,.12);
}
.form button[disabled] {
  opacity: 0.65;
  cursor: wait;
}
.form {
  background: var(--module);
  border-radius: var(--radius-sm);
  padding: 32px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
}
.form label { font-size: 13px; font-weight: 700; }
.form input,
.form select,
.form textarea {
  width: 100%;
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--lime);
  outline-offset: 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.channel {
  background: var(--module);
  border-radius: var(--radius-sm);
  padding: 22px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
}
.channel svg { width: 22px; height: 22px; color: var(--lime); }
.channel p { color: var(--muted); font-size: 14px; }
.channel strong { font-size: 15px; }

/* FOOTER */
.foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 14px;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.foot a:hover { color: var(--lime); }

.notice {
  font-size: 13px;
  color: var(--muted);
  background: var(--module);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
}

/* FICHA DE CANCHA (SEO) */
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
}
.crumb a:hover { color: var(--lime); }
.crumb span[aria-hidden] { opacity: 0.45; }
.ficha-lead {
  color: var(--muted);
  max-width: 62ch;
  font-size: 17px;
  margin-bottom: 36px;
}
.transform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 56px;
}
.transform figure {
  margin: 0;
  background: var(--module);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.transform img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.transform figcaption {
  padding: 16px 20px 20px;
}
.transform .tag {
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.transform figcaption p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}
.ficha-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 8px;
}

@media (max-width: 960px) {
  :root { --gutter: 18px; --pad-section: 80px; --radius: 24px; }
  .nav-row { grid-template-columns: 1fr auto auto; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 76px;
    background: #141414;
    flex-direction: column;
    padding: 18px;
    gap: 14px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: grid; place-items: center; justify-self: end; }
  .nav-cta { display: flex; }
  .brand img { height: 44px; max-width: 132px; }
  .modules { grid-template-columns: 1fr; }
  .module:nth-child(n) { grid-column: span 1; }
  .split, .band, .quote-grid, .services, .transform { grid-template-columns: 1fr; }
  .quote-hero-frame { min-height: 0; padding: 32px 0 40px; }
  .hero-copy { left: 20px; right: 20px; bottom: 24px; }
  .hero-social { display: none; }
  .hero-scrub-track { height: 280vh; }
  .hero-scrub-sticky {
    top: 12px;
    height: calc(100vh - 24px);
  }
  .photo-stack { grid-template-columns: 1fr 1fr; }
  .photo-stack .tall { height: 280px; }
  .channels, .form-row { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
