/* =========================================================
   TRAX — Padel & Tennis Balls
   Identidad: negro + lima eléctrico. Self-contained.
   ========================================================= */

:root {
  --bg: #131417;
  --bg-soft: #181a1e;
  --panel: #1d1f23;
  --panel-2: #23252b;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --muted-2: #71717a;

  --accent: #bfe23a;      /* TRAX lima (atenuado) */
  --accent-ink: #131417;  /* texto sobre lima */
  --club: #bfe23a;        /* CLUB */
  --pro: #ff6a00;         /* PRO */
  --control: #21b6ff;     /* CONTROL */

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);

  --font-display: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Wordmark / logo ---------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
}
.wordmark .x { color: var(--accent); }

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.brand .wordmark { font-size: 26px; }
.brand .sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 28px rgba(191, 226, 58, 0.22);
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(191, 226, 58, 0.32); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 84px;
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(191, 226, 58, 0.16), transparent 60%),
    radial-gradient(700px 500px at 8% 110%, rgba(33, 182, 255, 0.08), transparent 55%),
    var(--bg);
}
.hero::after {
  /* línea de cancha sutil */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(191, 226, 58, 0.35);
  background: rgba(191, 226, 58, 0.06);
  padding: 7px 14px;
  border-radius: 999px;
}
.hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.92;
  margin: 22px 0 18px;
  letter-spacing: 0.005em;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 44ch;
  margin: 0 0 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Pelotas decorativas en el hero.
   PARA USAR UNA FOTO REAL: reemplazá el contenido de .hero-visual en index.html por
   <img src="assets/hero-balls.png" alt="Pelotas TRAX" />, guardá el archivo en
   site/assets/ (PNG con fondo transparente, ~1400x1400px) y podés borrar los .ball. */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.hero-visual img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5)); }
.ball {
  position: absolute;
  border-radius: 50%;
  container-type: size; /* permite dimensionar el logo con unidades cqw */
  background:
    radial-gradient(circle at 32% 28%, #f2ff7a, var(--accent) 45%, #9bbd00 100%);
  box-shadow: inset -18px -22px 40px rgba(0,0,0,0.28), 0 30px 60px rgba(0,0,0,0.5);
}
/* Wordmark TRAX impreso sobre la pelota */
.ball-logo {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1cqw;
  transform: rotate(-9deg);
  pointer-events: none;
  text-align: center;
}
.ball-logo .bl-trax {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.85;
  color: #16180c;
  font-size: 20cqw;
}
.ball-logo .bl-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: #16180c;
  font-size: 8cqw;
  opacity: 0.85;
  padding-left: 0.32em; /* compensa el tracking para centrar */
}
.ball::before, .ball::after {
  /* costura curva de la pelota */
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  clip-path: inset(0 50% 0 0);
}
.ball::after { transform: rotate(180deg); }
.ball-1 { width: 62%; height: 62%; left: 6%; top: 16%; z-index: 2; }
.ball-2 { width: 52%; height: 52%; right: 4%; bottom: 8%; opacity: 0.96; }

/* ---------- Section scaffolding ---------- */
section { padding: 84px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
  margin: 0 0 14px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Feature strip ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.feature .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(191, 226, 58, 0.10);
  border: 1px solid rgba(191, 226, 58, 0.28);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 700;
}
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Product line ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.product:hover { transform: translateY(-4px); }
.product::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--c);
}
.product .tier {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 30px;
  color: var(--c);
  letter-spacing: 0.02em;
}
.product .tag { color: var(--muted-2); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.product h3 { margin: 14px 0 8px; font-size: 19px; }
.product p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.product .specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.product .specs li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 5px 0; }
.product .specs span { color: var(--muted); }
.product .specs b { font-weight: 600; }

/* ---------- Sports (padel + tennis) ---------- */
.sports {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.sport {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.sport .ico {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(191, 226, 58, 0.10);
  border: 1px solid rgba(191, 226, 58, 0.28);
  color: var(--accent);
}
.sport h3 { margin: 2px 0 8px; font-size: 22px; }
.sport p { margin: 0; color: var(--muted); }

/* ---------- Apps ---------- */
.apps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.app {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}
.app-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-badge {
  flex: 0 0 auto;
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 26px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}
.app-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.app h3 { margin: 0; font-size: 22px; }
.app .role { color: var(--muted-2); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.app > p { color: var(--muted); margin: 0 0 20px; }
.app .stores { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
}
.store-btn:hover { border-color: var(--accent); color: var(--text); }
.app .legal-links {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.app .legal-links a {
  font-size: 14px; font-weight: 600; color: var(--accent);
}
.app .legal-links a:hover { text-decoration: underline; }
.lang-note { color: var(--muted-2); font-size: 12px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 16px;
}
.faq details a { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 80% 50%, rgba(212,255,26,0.14), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 46px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: clamp(26px, 4vw, 40px);
  margin: 0 0 6px;
}
.cta-band p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 54px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-2); margin: 0 0 14px;
}
.footer-grid a, .footer-grid p { color: var(--muted); font-size: 15px; margin: 0 0 9px; display: block; }
.footer-grid a:hover { color: var(--text); }
.footer-tag {
  font-family: var(--font-display);
  font-style: italic; font-weight: 700; text-transform: uppercase;
  color: var(--text); font-size: 15px; letter-spacing: 0.04em;
  margin-top: 14px;
}
.socials { display: flex; gap: 12px; margin-top: 14px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--muted);
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted-2); font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: 1fr; }
  .sports, .apps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 18px;
  }
  .nav.open a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .header-actions .btn-ghost { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
