/* DEPORTES — layout de panel lateral (sidebar), variante verde + azul */
:root {
  --bg: #0f1720;
  --bg-elevated: #16212c;
  --bg-card: #1b2733;
  --text: #f2f2f2;
  --text-muted: #93a4b3;
  --accent: #39e26a;
  --accent-dark: #1fa84f;
  --gold: #4da3ff;
  --border: #2a3a48;
  --radius: 10px;
  --max-width: 1180px;
  --sidebar-width: 230px;
  --font-body: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header: simple bar, no inline nav (nav lives in the sidebar) */
.site-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.5px;
}
.logo span { color: var(--gold); }

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #06110b;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.92rem;
}
.btn-cta:hover { background: var(--accent-dark); text-decoration: none; }

/* Hero: slim band above the sidebar layout */
.hero {
  background: linear-gradient(90deg, #12283a 0%, var(--bg) 70%);
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin: 0 0 10px;
}
.hero p { color: var(--text-muted); max-width: 680px; font-size: 1rem; }
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }

/* Sidebar + main layout */
.layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 20px;
}
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: 76px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.sidebar-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 4px 10px 8px;
}
.sidebar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar nav a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 3px solid transparent;
}
.sidebar nav a:hover { background: var(--bg-card); color: var(--text); text-decoration: none; }
.sidebar nav a.active { background: var(--bg-card); color: var(--gold); border-left-color: var(--gold); }

.main { flex: 1; min-width: 0; }

/* Sections inside main */
.block { padding: 0 0 36px; }
h2 { font-size: 1.45rem; color: var(--text); margin: 0 0 16px; }
h2 .num { color: var(--gold); margin-right: 8px; }
h3 { font-size: 1.1rem; color: var(--text); }

/* Card grid (used on the homepage guide directory) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px;
}
.card h3 { margin-top: 0; font-size: 1.05rem; }
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* List-style feature grid (instead of card-grid) */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-list .row {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.feature-list .row:last-child { border-bottom: none; }
.feature-list .row .label {
  flex: 0 0 150px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
}
.feature-list .row p { margin: 0; color: var(--text-muted); }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 420px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
tbody tr:hover { background: var(--bg-elevated); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "▸ "; color: var(--gold); }
.faq-item[open] summary::before { content: "▾ "; }
.faq-item p { color: var(--text-muted); margin: 10px 0 0; }

/* Callout / disclaimer */
.callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.callout strong { color: var(--text); }

/* Brand tie-in box */
.brand-box {
  background: linear-gradient(135deg, #12283a, var(--bg-card));
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px;
}
.brand-box h2 { margin-top: 0; }
.brand-box .btn-cta { margin-top: 8px; }

/* Footer */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 30px 0 22px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--gold); }
.responsible-gaming {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}

/* RWD: sidebar becomes a horizontal scrolling pill bar above content */
@media (max-width: 860px) {
  .main { width: 100%; }
  .layout { flex-direction: column; padding: 20px 16px; gap: 16px; }
  .sidebar {
    width: 100%;
    position: static;
    padding: 8px;
    overflow-x: auto;
  }
  .sidebar-title { display: none; }
  .sidebar nav ul { flex-direction: row; }
  .sidebar nav a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
  .sidebar nav a.active { border-left-color: transparent; border-bottom-color: var(--gold); }
  .feature-list .row { flex-direction: column; gap: 4px; }
  .feature-list .row .label { flex: none; }
  .hero { padding: 24px 0; }
}

/* Sticky CTA — cierre de embudo, visible en todas las páginas */
.sticky-cta {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #06170f;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  text-decoration: none;
  line-height: 1;
}
.sticky-cta:hover { background: var(--accent-dark); text-decoration: none; }
@media (max-width: 480px) {
  .sticky-cta { bottom: 12px; right: 12px; padding: 10px 16px; font-size: 0.82rem; }
}
