/* Punt Esportiu — sistema base
   Dirección: cristal de pista al anochecer, verde menta de marca, tipografía de cartel. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #050d0b;
  --ink-2: #071612;
  --ink-3: #0b241e;
  --ink-4: #103129;
  --paper: #eef3ea;
  --paper-2: #dce6dc;
  --muted: #9eb4aa;
  --muted-2: #738a80;
  --mint: #2be5a7;
  --mint-2: #16b982;
  --mint-soft: rgba(43, 229, 167, 0.12);
  --ball: #d8ff5f;
  --warn: #ffb454;
  --danger: #ff6b6b;
  --line: rgba(238, 243, 234, 0.12);
  --line-strong: rgba(238, 243, 234, 0.22);
  --glass: rgba(9, 27, 23, 0.58);
  --glass-2: rgba(10, 34, 28, 0.82);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.28);
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --text: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 78px;
  --wrap: 1240px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 80% -10%, rgba(43, 229, 167, 0.08), transparent 70%),
    radial-gradient(50% 30% at -10% 40%, rgba(30, 120, 110, 0.1), transparent 70%),
    var(--ink);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--mint);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus {
  top: 16px;
}

/* ---------- Layout ---------- */

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}
.wrap--narrow {
  width: min(100% - 40px, 880px);
  margin-inline: auto;
}
.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 138px);
}
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 22px);
}
.section--tight {
  padding-block: clamp(48px, 6vw, 84px);
}
.section--line {
  border-top: 1px solid var(--line);
}
.section--ink2 {
  background: var(--ink-2);
}
.section--mint {
  background: var(--mint);
  color: var(--ink);
}
.section--mint .eyebrow,
.section--mint .muted {
  color: rgba(5, 13, 11, 0.62);
}

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

/* ---------- Type ---------- */

.display {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.display--xl {
  font-size: clamp(3.2rem, 8.4vw, 7.6rem);
  line-height: 0.88;
}
.display--sm {
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.h2 {
  font-family: var(--display);
  font-weight: 720;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.84rem;
  line-height: 1.5;
}
.tiny {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mint);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.mono {
  font-variant-numeric: tabular-nums;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(28px, 4vw, 54px);
}
.section-head .lead {
  max-width: 38ch;
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--mint);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  background: #5cf0c2;
}
.btn:active {
  transform: translateY(0);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--paper);
}
.btn--ink {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
}
.btn--ink:hover {
  background: var(--ink-3);
}
.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.8rem;
}
.btn--lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 0.98rem;
}
.btn--block {
  width: 100%;
}
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}
.btn .arrow {
  transition: transform 0.25s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--mint);
}
.link-arrow svg {
  transition: transform 0.25s var(--ease);
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- Glass & cards ---------- */

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: var(--shadow-soft);
}
.card {
  position: relative;
  padding: 26px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}
.card--hover {
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.card--hover:hover {
  transform: translateY(-4px);
  border-color: rgba(43, 229, 167, 0.4);
  background: rgba(255, 255, 255, 0.055);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.pill--mint {
  background: var(--mint-soft);
  border-color: rgba(43, 229, 167, 0.35);
  color: var(--mint);
}
.pill--ball {
  background: rgba(216, 255, 95, 0.12);
  border-color: rgba(216, 255, 95, 0.35);
  color: var(--ball);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(43, 229, 167, 0.12);
}
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- Nav ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled,
.site-nav.is-solid {
  background: rgba(5, 13, 11, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--paper);
  padding: 5px;
  object-fit: contain;
}
.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
  font-family: var(--display);
  font-weight: 780;
  letter-spacing: -0.02em;
  font-size: 1rem;
}
.brand-word span:last-child {
  color: var(--mint);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  margin-top: 5px;
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(238, 243, 234, 0.74);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-phone {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--paper);
  letter-spacing: 0.02em;
}
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  position: relative;
}
.nav-burger span::before,
.nav-burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--paper);
}
.nav-burger span::before {
  top: -6px;
}
.nav-burger span::after {
  top: 6px;
}
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto;
  z-index: 99;
  display: none;
  padding: 18px 20px 28px;
  background: rgba(5, 13, 11, 0.97);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.mobile-menu.is-open {
  display: block;
}
.mobile-menu a {
  display: flex;
  justify-content: space-between;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 650;
}
.mobile-menu .btn {
  margin-top: 20px;
}

/* ---------- Forms ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field > label,
.field-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--paper-2);
}
.field .hint {
  font-size: 0.74rem;
  color: var(--muted-2);
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--paper);
  transition: border-color 0.2s, background 0.2s;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--muted-2);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--mint);
  background: rgba(255, 255, 255, 0.07);
}
.textarea {
  min-height: 120px;
  resize: vertical;
}
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.select option {
  background: var(--ink-2);
  color: var(--paper);
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--mint);
  flex-shrink: 0;
}
.form-error {
  color: var(--danger);
  font-size: 0.76rem;
}
.input[aria-invalid='true'] {
  border-color: var(--danger);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid .field--full {
  grid-column: 1 / -1;
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open {
  display: flex;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 7, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 1.1rem;
}
.modal__panel h2 {
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  padding-right: 30px;
}

/* ---------- Toast ---------- */

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 40px));
}
.toast {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--ink-3);
  border: 1px solid rgba(43, 229, 167, 0.35);
  color: var(--paper);
  font-size: 0.85rem;
  box-shadow: var(--shadow-soft);
  animation: toast-in 0.35s var(--ease);
}
.toast--error {
  border-color: rgba(255, 107, 107, 0.5);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-top: 64px;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 54px;
}
.footer-title {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
  font-weight: 800;
}
.footer-list li + li {
  margin-top: 9px;
}
.footer-list a:hover {
  color: var(--mint);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.74rem;
}
.footer-note {
  max-width: 32ch;
  color: var(--muted-2);
  line-height: 1.7;
}

/* ---------- Reveal / motion ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-reveal='left'] {
  transform: translateX(-30px);
}
[data-reveal='right'] {
  transform: translateX(30px);
}
[data-reveal='scale'] {
  transform: scale(0.96);
}
html.is-static [data-reveal],
body.is-static [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Utilities ---------- */

.flex {
  display: flex;
}
.between {
  justify-content: space-between;
}
.center {
  align-items: center;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.gap-16 {
  gap: 16px;
}
.gap-24 {
  gap: 24px;
}
.wrapflex {
  flex-wrap: wrap;
}
.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.mt-48 {
  margin-top: 48px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hide {
  display: none !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: inline-flex;
  }
  .nav-phone {
    display: none;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :last-child {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  :root {
    --nav-h: 68px;
  }
  .wrap,
  .wrap--narrow {
    width: min(100% - 32px, var(--wrap));
  }
  .grid-2,
  .grid-4,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .brand-word {
    font-size: 0.9rem;
  }
  .nav-actions .btn--ghost {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .modal__panel {
    padding: 22px;
  }
}
