/* ---------------------------------------------------
   Betgistro — design tokens (alineados con la app real)
--------------------------------------------------- */
:root {
  --bg: #0f1117;
  --surface: #1a1d2e;
  --surface-2: #1e2235;
  --surface-3: #2a2d3e;
  --border: #2a2d3e;
  --border-strong: #4a4d5e;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-mute: #64748b;

  --primary: #6366f1;
  --primary-hover: #5558e0;
  --primary-light: #818cf8;
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --content-max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

h1, h2, h3 { margin: 0; font-weight: 600; color: var(--text); text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--primary); color: #fff; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin: 0 0 12px;
}

.accent { color: var(--primary-light); }

/* ---------------------------------------------------
   Header
--------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: rgba(15, 17, 23, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark-icon { flex-shrink: 0; border-radius: 8px; }
.wordmark-text { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.wordmark.small .wordmark-text { font-size: 1rem; }

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  font-size: 0.9rem;
}
.site-nav a { color: var(--text-dim); transition: color 0.15s ease; }
.site-nav a:hover { color: var(--text); }

@media (max-width: 780px) {
  .site-nav { display: none; }
}

/* ---------------------------------------------------
   Buttons
--------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-line { border: 1px solid var(--border-strong); color: var(--text); }
.btn-line:hover { border-color: var(--primary-light); color: var(--primary-light); }

.header-cta { display: none; }
@media (min-width: 780px) {
  .header-cta { display: inline-flex; padding: 9px 18px; font-size: 0.85rem; }
}

/* ---------------------------------------------------
   Selector de idioma
--------------------------------------------------- */
.header-side { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.lang-switch a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  padding: 5px 10px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-switch a:hover { color: var(--text); }

.lang-switch a[aria-current] {
  background: var(--primary);
  color: #fff;
}

.footer-top .lang-switch a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0;
  padding: 6px 14px;
}

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero {
  padding: clamp(72px, 12vw, 128px) var(--gutter) clamp(56px, 8vw, 96px);
  max-width: var(--content-max);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 56px;
}

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 560px) minmax(320px, 400px); }
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero-lede {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--text-dim);
  max-width: 54ch;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.hero-note { font-size: 0.85rem; color: var(--text-mute); }

.hero-figure { display: flex; justify-content: center; }

.hero-shot {
  max-width: 300px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  padding: 8px;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.75);
}

.hero-shot img { width: 100%; height: auto; border-radius: 24px; }

/* ---------------------------------------------------
   Sections
--------------------------------------------------- */
.section {
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  max-width: var(--content-max);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.section-lede { color: var(--text-dim); margin-top: 12px; }

/* ---------------------------------------------------
   Funciones, en orden de uso
--------------------------------------------------- */
.story { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 80px); }

.story-text { max-width: 62ch; margin-bottom: 24px; }

.story-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  margin-bottom: 10px;
}

.story-text h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  margin-bottom: 14px;
}

.story-text p { color: var(--text-dim); margin-bottom: 12px; }
.story-text p:last-child { margin-bottom: 0; }

.feature-tag {
  display: inline-block;
  vertical-align: 3px;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.16);
  color: var(--primary-light);
}

.story-figure { margin: 0; }

.shot-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  overflow: hidden;
}

.shot-frame img { width: 100%; height: auto; border-radius: 8px; }

.story-figure figcaption {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-mute);
  max-width: 70ch;
}

/* ---------------------------------------------------
   Aviso: no somos una casa de apuestas
--------------------------------------------------- */
.notice-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--primary);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 40px);
}

.notice-title { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 14px; }

.notice-lede {
  color: var(--text-dim);
  max-width: 68ch;
  margin-bottom: 22px;
}

.notice-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 22px;
}

.notice-list li {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.notice-list strong { color: var(--text); font-weight: 600; }

.notice-foot { font-size: 0.85rem; color: var(--text-mute); max-width: 68ch; }

/* ---------------------------------------------------
   Pricing
--------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  max-width: 720px;
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.plan-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.plan h3 { font-size: 1.1rem; margin-bottom: 10px; }

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.plan-price span { font-size: 0.95rem; font-weight: 500; color: var(--text-mute); }

.plan-features { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-features li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary-light);
}

.pricing-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* ---------------------------------------------------
   FAQ
--------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 20px;
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--primary-light);
  font-size: 1.2rem;
  margin-left: 12px;
}
.faq-item[open] summary::after { content: '\2212'; }

.faq-item p {
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 60ch;
  padding-bottom: 16px;
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.site-footer {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px var(--gutter) 40px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--text-mute);
  max-width: 70ch;
  margin-bottom: 12px;
}

.footer-copy { font-size: 0.8rem; color: var(--text-mute); }
.footer-maker { color: var(--text-dim); border-bottom: 1px solid var(--border-strong); }
.footer-maker:hover { color: var(--primary-light); border-color: var(--primary-light); }
