/* Padpoint landing v2 — shared system for clubes.html and jugadores.html. */
@font-face { font-family: Figtree; src: url('/assets/figtree-regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url('/assets/figtree-medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Funnel Display'; src: url('/assets/funnel-display-variable.ttf') format('truetype'); font-weight: 300 800; font-display: swap; }

:root {
  --blue: #0649ed;
  --blue-deep: #0335b4;
  --blue-night: #04154a;
  --ice: #e8efff;
  --ice-soft: #f4f7ff;
  --ink: #141419;
  --ink-soft: #454853;
  --ink-mute: #666a78;
  --line: #dde2ee;
  --paper: #fff;
  --display: 'Funnel Display', Figtree, Arial, sans-serif;
  --text: Figtree, Arial, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1320px;
  --nav-h: 72px;
  --radius: 22px;
  --section: clamp(84px, 11vw, 168px);
  font-synthesis: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.55; font-weight: 400; color: var(--ink); background: var(--paper); overflow-x: clip; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
:focus-visible { outline: 3px solid #6f97ff; outline-offset: 4px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 300; padding: 12px 18px; border-radius: 10px; background: var(--paper); color: var(--ink); }
.skip:focus { top: 16px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.t-display { font-size: clamp(46px, 7.4vw, 108px); line-height: .94; letter-spacing: -.038em; }
.t-h2 { font-size: clamp(36px, 5vw, 76px); line-height: 1; letter-spacing: -.032em; }
.t-h3 { font-size: clamp(22px, 1.9vw, 30px); line-height: 1.12; letter-spacing: -.02em; }
.t-lead { font-size: clamp(17px, 1.45vw, 22px); line-height: 1.5; color: var(--ink-soft); }

/* Brand: the SVGs are white; .brand--ink turns them dark for light surfaces. */
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .mark { width: 29px; height: 32px; object-fit: contain; }
.brand .wordmark { width: 121px; height: auto; }
.brand--ink img { filter: brightness(0); }

/* Buttons */
.btn { --btn-bg: var(--blue); --btn-fg: #fff; position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 8px 0 26px; border-radius: 99px; background: var(--btn-bg); color: var(--btn-fg); font-family: var(--display); font-weight: 500; font-size: 17px; white-space: nowrap; transition: background-color .3s, transform .5s var(--ease-out); }
.btn .arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgb(255 255 255 / .16); overflow: hidden; }
.btn .arrow svg { width: 16px; height: 16px; transition: transform .55s var(--ease-out); }
.btn:hover { background: var(--blue-deep); }
.btn:hover .arrow svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light .arrow { background: var(--blue); color: #fff; }
.btn--light:hover { background: var(--ice); }
.btn--plain { padding: 0 26px; }
.btn--sm { min-height: 44px; font-size: 16px; padding: 0 20px; }
.btn--outline { --btn-bg: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.btn--outline:hover { background: rgb(255 255 255 / .12); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 500; padding-block: 6px; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; transition: background-size .5s var(--ease-out); }
.link-arrow svg { width: 15px; height: 15px; transition: transform .5s var(--ease-out); }
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow:hover svg { transform: translate(3px, -3px); }
.link-arrow.down:hover svg { transform: translateY(4px); }

/* Announcement + navigation */
.announce { position: relative; z-index: 101; display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 8px var(--gutter); background: var(--ice); color: var(--ink); font-size: 15px; text-align: center; }
.announce a, .announce button { text-decoration: underline; text-underline-offset: 3px; font-weight: 500; padding: 0; }
.nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); padding-inline: var(--gutter); color: #fff; background: var(--nav-bg, var(--blue)); transition: transform .55s var(--ease-out), background-color .4s, box-shadow .4s; }
.nav.is-hidden:not(:focus-within) { transform: translateY(-101%); }
.nav.is-scrolled { box-shadow: 0 10px 40px rgb(4 21 74 / .18); }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 38px); font-family: var(--display); font-weight: 500; font-size: 16px; }
.nav-links a { position: relative; padding-block: 8px; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav-links a:hover::after, .nav-links a[aria-current='true']::after { transform: scaleX(1); transform-origin: left; }
/* Audience switch: a quiet tinted pill beside the CTA, so the CTA keeps the strongest weight. */
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn--switch { --btn-bg: rgb(255 255 255 / .12); --btn-fg: #fff; }
.btn--switch:hover { background: rgb(255 255 255 / .22); }
.menu .menu-switch { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 18px; padding: 10px 22px; border-radius: 99px; background: rgb(255 255 255 / .12); font-size: 20px; letter-spacing: 0; }
.menu-switch svg { width: 16px; height: 16px; }
.nav-progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: rgb(255 255 255 / .85); transform: scaleX(var(--page, 0)); transform-origin: left; pointer-events: none; }
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; }
.nav-toggle span { display: block; width: 22px; height: 1.7px; background: currentColor; transition: transform .45s var(--ease-out), opacity .2s; }
.nav-toggle span + span { margin-top: 5.5px; }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7.2px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7.2px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: calc(var(--nav-h) + 56px) var(--gutter) 40px; background: var(--nav-bg, var(--blue)); color: #fff; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-out), visibility 0s .7s; }
.menu.open { visibility: visible; clip-path: inset(0); transition: clip-path .7s var(--ease-out), visibility 0s; }
.menu a { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 8.4vw, 44px); line-height: 1.2; letter-spacing: -.025em; padding-block: 6px; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s var(--ease-out); }
.menu.open a { opacity: 1; transform: none; transition-delay: calc(120ms + var(--i, 0) * 55ms); }
/* Between the hamburger breakpoint and 1240px the links and both pills share a tight row. */
@media (max-width: 1240px) {
  .nav { gap: 12px; }
  .nav-links { gap: 12px; font-size: 15px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn--sm { padding-inline: 16px; font-size: 15px; }
}
@media (max-width: 1040px) {
  .nav-links, .nav .nav-cta, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
}

/* Motion primitives. Hidden states only exist while html.motion is set (see the inline head script). */
.line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.line > span { display: block; }
html.motion [data-split] .line > span { transform: translateY(112%); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--l, 0) * 95ms + var(--d, 0ms)); }
html.motion [data-split].in .line > span { transform: none; }
html.motion [data-reveal], html.motion [data-stagger] > * { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms)); }
html.motion [data-reveal].in, html.motion [data-stagger].in > * { opacity: 1; transform: none; }
/* Quiet entrance for product sections: a short fade with barely any travel. */
html.motion [data-reveal='soft'] { transform: translate3d(0, 12px, 0); transition: opacity .7s ease, transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
html.motion [data-reveal='clip'] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
html.motion [data-reveal='clip'].in { clip-path: inset(0); }
html.motion [data-reveal='clip'] img { transform: scale(1.18); transition: transform 1.6s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
html.motion [data-reveal='clip'].in img { transform: none; }
html.motion [data-words] .w { opacity: clamp(.16, calc((var(--p, 0) * 1.5 - var(--w)) * 7 + .16), 1); }

/* Marquee */
.marquee { display: flex; overflow: hidden; user-select: none; }
.marquee-track { display: flex; flex-shrink: 0; align-items: center; min-width: max-content; }
html.motion .marquee-track { animation: marquee var(--marquee-time, 38s) linear infinite; }
html.motion .marquee:hover .marquee-track, html.motion .marquee:focus-within .marquee-track { animation-play-state: paused; }
html:not(.motion) .marquee { overflow-x: auto; }
@keyframes marquee { to { transform: translateX(-100%); } }
.words-band { padding-block: clamp(22px, 3vw, 40px); border-block: 1px solid var(--line); background: var(--paper); }
.words-band .marquee-track { gap: clamp(22px, 3vw, 44px); padding-right: clamp(22px, 3vw, 44px); font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3.6vw, 54px); line-height: 1; letter-spacing: -.03em; }
.words-band .marquee-track span:nth-of-type(even) { color: var(--blue); }
.words-band .marquee-track img { width: clamp(22px, 2.6vw, 38px); height: auto; }
html.motion .words-band .marquee-track img { animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Soft moving colour fields (replaces the WebGL mesh gradient). */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 70vmax; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--c, rgb(6 73 237 / .34)), transparent); }
.aurora i:nth-child(1) { left: -22vmax; top: -34vmax; }
.aurora i:nth-child(2) { right: -26vmax; bottom: -40vmax; --c: rgb(120 164 255 / .5); }
.aurora i:nth-child(3) { left: 30%; top: 20%; width: 46vmax; --c: rgb(255 255 255 / .55); }
html.motion .aurora i { animation: drift 19s var(--ease-in-out) infinite alternate; }
html.motion .aurora i:nth-child(2) { animation-duration: 25s; animation-delay: -8s; }
html.motion .aurora i:nth-child(3) { animation-duration: 31s; animation-delay: -15s; }
@keyframes drift { from { transform: translate3d(-6%, -4%, 0) scale(1); } to { transform: translate3d(9%, 7%, 0) scale(1.18); } }

/* Statement */
.statement { position: relative; padding-block: var(--section); background: var(--ice); text-align: center; overflow: hidden; }
.statement .wrap { position: relative; display: grid; justify-items: center; gap: clamp(22px, 2.6vw, 36px); }
.statement p { max-width: 21em; font-family: var(--display); font-size: clamp(22px, 2.5vw, 36px); line-height: 1.24; letter-spacing: -.02em; color: var(--ink); }

/* Section heading */
.heading { display: grid; gap: clamp(16px, 1.8vw, 26px); max-width: 880px; }
.heading--center { margin-inline: auto; text-align: center; justify-items: center; }
.heading .t-lead { max-width: 34em; }

/* Finale */
.finale { position: relative; padding-block: clamp(110px, 15vw, 220px); background: var(--blue); color: #fff; text-align: center; overflow: hidden; }
.finale .aurora i { --c: rgb(2 30 120 / .7); }
.finale .aurora i:nth-child(2) { --c: rgb(86 138 255 / .6); }
.finale .aurora i:nth-child(3) { --c: rgb(255 255 255 / .12); }
.finale .wrap { position: relative; display: grid; justify-items: center; gap: clamp(22px, 2.6vw, 36px); }
.finale .t-lead { color: rgb(255 255 255 / .84); max-width: 30em; }
.finale small { font-size: 15px; color: rgb(255 255 255 / .76); }
.finale-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ball-run { position: absolute; left: 0; bottom: clamp(18px, 3vw, 40px); width: clamp(44px, 5vw, 72px); pointer-events: none; transform: translateX(calc(var(--p, .5) * (100vw + 80px) - 80px)) rotate(calc(var(--p, .5) * 2300deg)); will-change: transform; }
html:not(.motion) .ball-run { display: none; }

/* FAQ */
.faq { padding-block: var(--section); }
.faq .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq h2 { position: sticky; top: calc(var(--nav-h) + 40px); font-size: clamp(34px, 4.2vw, 64px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(20px, 2vw, 28px) 0; font-family: var(--display); font-weight: 500; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.25; letter-spacing: -.015em; cursor: pointer; list-style: none; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary::after { content: ''; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230649ed' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M8 3v10M3 8h10'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .6s var(--ease-out), background-color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .6s var(--ease-out), content-visibility .6s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { max-width: 38em; padding-bottom: clamp(20px, 2vw, 28px); color: var(--ink-soft); }
.faq details .link-arrow { margin-bottom: 26px; color: var(--blue); }

/* Footer */
.footer { padding: clamp(64px, 8vw, 112px) 0 28px; background: var(--footer-bg, var(--blue)); color: #fff; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 64px); }
.footer-brand p { margin-top: 14px; color: rgb(255 255 255 / .8); }
.footer h3 { font-size: 18px; margin-bottom: 14px; }
.footer-grid a { display: block; width: fit-content; padding-block: 5px; color: rgb(255 255 255 / .82); transition: color .25s, transform .45s var(--ease-out); }
.footer-grid a:hover { color: #fff; transform: translateX(4px); }
.footer-word { margin: clamp(48px, 7vw, 96px) 0 20px; }
.footer-word img { width: 100%; opacity: .14; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .2); font-size: 15px; color: rgb(255 255 255 / .8); }

@media (max-width: 860px) {
  .faq .wrap { grid-template-columns: 1fr; }
  .faq h2 { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .btn { min-height: 52px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
