/* SportK landing — sistema visual compartido por las 5 versiones idiomáticas */

:root {
  --accent: oklch(0.78 0.17 142);
  --accent-deep: oklch(0.58 0.16 145);
  --accent-soft: oklch(0.96 0.05 140);
  --ink: oklch(0.18 0.01 150);
  --ink-2: oklch(0.42 0.008 150);
  --ink-3: oklch(0.62 0.006 150);
  --bg: oklch(0.992 0.003 140);
  --surface: #ffffff;
  --line: oklch(0.92 0.005 140);
  --shadow-md: 0 4px 24px rgba(20, 28, 22, 0.06), 0 0 0 1px rgba(20, 28, 22, 0.04);
  --shadow-lg: 0 24px 60px rgba(20, 28, 22, 0.10);
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.16 0.008 150);
    --surface: oklch(0.21 0.01 150);
    --line: oklch(0.30 0.012 150);
    --ink: oklch(0.97 0.005 140);
    --ink-2: oklch(0.78 0.008 150);
    --ink-3: oklch(0.58 0.008 150);
    --accent-soft: oklch(0.30 0.05 145);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.01em; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #a8eba0, #7dd87a 55%, #3fae5f);
  display: grid; place-items: center;
  color: #1f6b3a; font-weight: 800; box-shadow: var(--shadow-md);
}
.brand-name { font-size: 18px; }
.brand-tag { color: var(--ink-3); font-size: 13px; font-weight: 500; }

.head-actions { display: flex; align-items: center; gap: 12px; }

/* Language switcher (SEO-friendly: <a> reales, no JS) */
nav.lang {
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 3px;
}
nav.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 30px; padding: 0 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-2); border-radius: var(--r-pill);
  transition: background .15s ease, color .15s ease;
}
nav.lang a:hover { color: var(--ink); text-decoration: none; background: var(--accent-soft); }
nav.lang a[aria-current="true"] {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #0f2e16;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; transition: transform .1s ease, box-shadow .2s ease;
  cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #0f2e16;
  box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--accent) 70%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface); text-decoration: none; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; }

/* Hero */
.hero {
  padding: 64px 0 80px;
  background:
    radial-gradient(70% 60% at 80% 0%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(50% 50% at 10% 100%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%);
}
.hero .row {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-deep);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent-deep) 25%, transparent);
}
h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.05; letter-spacing: -0.025em; font-weight: 800;
  margin: 18px 0 18px;
}
h1 em { font-style: normal; background: linear-gradient(120deg, var(--accent-deep), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 56ch; margin: 0 0 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-row .meta { color: var(--ink-3); font-size: 13px; margin-left: 4px; }

/* Hero visual */
.device {
  position: relative; aspect-ratio: 9 / 17; max-width: 320px; margin: 0 auto;
  border-radius: 38px; padding: 14px;
  background: linear-gradient(180deg, #1c2520, #0f1714);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.03);
}
.device-screen {
  width: 100%; height: 100%; border-radius: 26px; overflow: hidden;
  background: var(--surface);
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.ds-top {
  padding: 22px 18px 8px; display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink-3); font-weight: 600;
}
.ds-greet { padding: 4px 18px 0; }
.ds-greet .h { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.ds-greet .s { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.ds-ring {
  margin: 18px auto 8px; width: 168px; height: 168px; position: relative;
  display: grid; place-items: center;
}
.ds-ring svg { position: absolute; inset: 0; }
.ds-ring .num { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.ds-ring .lbl { font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.ds-card {
  margin: 12px 14px; padding: 12px 14px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center;
}
.ds-tabbar {
  margin-top: auto; padding: 12px 18px 22px;
  display: flex; justify-content: space-around; border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 11px; font-weight: 600;
}
.ds-tabbar span:nth-child(2) { color: var(--accent-deep); }

/* Sections */
section { padding: 80px 0; }
section h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.02em; line-height: 1.15; font-weight: 800;
  margin: 0 0 14px;
}
section .sub {
  font-size: 17px; color: var(--ink-2); max-width: 60ch; margin: 0 0 48px;
}

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-md);
}
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  margin-bottom: 16px;
}
.feature h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Tracks */
.tracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.track {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 12px;
}
.track .tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  background: var(--accent-soft); color: var(--accent-deep);
  align-self: flex-start;
}
.track h3 { margin: 0; font-size: 22px; letter-spacing: -0.015em; }
.track p { margin: 0; color: var(--ink-2); font-size: 15px; }
.track ul {
  margin: 8px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.track li {
  font-size: 12px; color: var(--ink-2);
  padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--bg);
}

/* Science */
.science {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  box-shadow: var(--shadow-md);
}
.science h2 { margin-top: 0; }
.science .citations { display: grid; gap: 18px; }
.cite {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 16px;
  font-size: 14px; color: var(--ink-2);
}
.cite b { color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 760px; }
details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px 22px;
}
details[open] { box-shadow: var(--shadow-md); }
summary {
  cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-size: 22px; color: var(--accent-deep); font-weight: 400;
  transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details > p { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; }

/* Final CTA */
.final {
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%);
  padding: 100px 0;
}
.final h2 { font-size: clamp(32px, 4.5vw, 48px); }
.final .sub { margin-left: auto; margin-right: auto; }

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 32px 0; color: var(--ink-3); font-size: 13px;
}
footer.site .row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}

/* Responsive */
@media (max-width: 880px) {
  .hero .row { grid-template-columns: 1fr; gap: 40px; }
  .device { max-width: 260px; }
  .features { grid-template-columns: 1fr; }
  .tracks { grid-template-columns: 1fr; }
  .science { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  section { padding: 64px 0; }
  header.site .row { height: 56px; }
  nav.lang a { min-width: 32px; padding: 0 8px; height: 28px; font-size: 11px; }
  .head-actions .btn { height: 40px; padding: 0 16px; font-size: 14px; }
}
@media (max-width: 480px) {
  .brand-tag { display: none; }
  .btn-lg { height: 52px; font-size: 16px; padding: 0 22px; }
}
