/* ═══════════════════════════════════════════════════════
   Betfair Casino — Premium Design System
   Brand: #FFB80C yellow | Dark: #0B1014
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --accent:        #FFB80C;
  --accent-dim:    rgba(255,184,12,0.12);
  --accent-glow:   rgba(255,184,12,0.25);
  --accent-hover:  #e6a60a;
  --dark:          #080d10;
  --dark2:         #0e1820;
  --dark3:         #162030;
  --dark4:         #1c2a3a;
  --border:        rgba(255,255,255,0.07);
  --border-gold:   rgba(255,184,12,0.2);
  --text:          #dce8f0;
  --text-muted:    #6b8096;
  --text-dim:      #4a5f70;
  --radius:        12px;
  --radius-lg:     18px;
  --shadow:        0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:     0 12px 48px rgba(0,0,0,0.7);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(255,184,12,0.06) 0%, transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); text-decoration: none; }

/* ── Typography ── */
h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #FFB80C 0%, #ffd86b 50%, #FFB80C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #e8d5a0;
  margin-bottom: 14px;
  margin-top: 6px;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
p { margin-bottom: 14px; color: var(--text); }
ul, ol { padding-left: 20px; margin-bottom: 14px; }
li { margin-bottom: 6px; }

/* ── Header ── */
header {
  background: #0e1820;
  padding: 0 20px;
  position: sticky; top: 0; z-index: 200;
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 2px 24px rgba(0,0,0,0.7);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 12px;
  position: relative;
}
.logo {
  font-size: 1.3rem; font-weight: 900; letter-spacing: -0.03em;
  color: var(--accent); flex-shrink: 0;
  text-shadow: 0 0 20px rgba(255,184,12,0.4);
}
.logo span { color: #fff; }

.nav-links { display: flex; gap: 4px; list-style: none; flex-wrap: nowrap; align-items: center; }
.nav-links a {
  color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
  padding: 6px 10px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); background: var(--accent-dim); }

/* burger button */
.burger {
  display: none; cursor: pointer; flex-shrink: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--dark3); border: 1px solid var(--border-gold);
  border-radius: 10px; padding: 8px 14px;
  color: var(--text); font-family: inherit; font-size: 0.7rem;
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
}
.burger:hover { border-color: var(--accent); background: var(--accent-dim); }
.burger .burger-lines { display: flex; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: all 0.3s; }
.burger.open { border-color: var(--accent); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* right side wrapper for burger + lang on mobile */
.nav-right { display: flex; align-items: center; gap: 8px; }

@media (max-width: 900px) {
  .burger { display: flex; }

  /* nav-links: absolute dropdown below header — no backdrop-filter stacking context issue */
  .nav-links {
    display: none;
    flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: -20px; right: -20px;
    background: #0e1820;
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 8px 32px rgba(0,0,0,0.8);
    z-index: 199;
    padding: 8px 0 16px;
    overflow-y: auto;
    max-height: calc(100vh - 68px);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 13px 24px; font-size: 1rem;
    border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .nav-links a:hover { background: var(--dark3); color: var(--accent); }

}

/* ── Layout ── */
main { max-width: 1280px; margin: 0 auto; padding: 32px 20px; }
section { margin-bottom: 56px; }

/* ── CTA Button ── */
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #FFB80C 0%, #e6a60a 100%);
  color: #0a0f14; font-weight: 800; font-size: 1rem;
  padding: 15px 32px; border-radius: 50px; border: none;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 20px rgba(255,184,12,0.35), 0 1px 0 rgba(255,255,255,0.1) inset;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  letter-spacing: 0.01em;
  position: relative; overflow: hidden;
}
.cta-btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,184,12,0.5), 0 1px 0 rgba(255,255,255,0.1) inset;
  filter: brightness(1.05);
  text-decoration: none; color: #0a0f14;
}
.cta-btn:active { transform: translateY(0); }
.cta-btn-lg { padding: 18px 44px; font-size: 1.15rem; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 72px 24px 64px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255,184,12,0.1) 0%, transparent 70%),
    linear-gradient(180deg, #0e1f2d 0%, #080d10 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  margin-bottom: 48px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 16px; }
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 32px; }

/* ── Bonus Card ── */
.bonus-card {
  background: linear-gradient(135deg, rgba(255,184,12,0.08) 0%, rgba(255,184,12,0.03) 100%);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg); padding: 32px 28px;
  text-align: center; margin-bottom: 28px;
  position: relative; overflow: hidden;
  box-shadow: 0 0 40px rgba(255,184,12,0.1) inset;
}
.bonus-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.bonus-card .bonus-amount {
  font-size: 2.6rem; font-weight: 900; display: block; margin-bottom: 6px;
  background: linear-gradient(135deg, #FFB80C, #ffd86b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.bonus-card .bonus-label { font-size: 1rem; color: var(--text-muted); display: block; margin-bottom: 22px; }

/* ── Trust Bar ── */
.trust-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.trust-inner { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; }
.trust-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 50px; padding: 8px 16px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.trust-item:hover { border-color: var(--border-gold); color: var(--text); }
.trust-item strong { color: var(--text); }

/* ── Glass Card ── */
.glass-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.glass-card:hover { border-color: var(--border-gold); transform: translateY(-2px); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--dark3); color: var(--accent);
  font-weight: 700; font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 12px 16px; white-space: nowrap;
  border-bottom: 1px solid var(--border-gold);
}
td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,184,12,0.03); }
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr { display: block; }
  thead tr { display: none; }
  td { padding: 9px 14px; border-bottom: none; }
  td::before { content: attr(data-label); font-weight: 600; color: var(--accent); display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
  tr { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
}

/* ── Game Cards ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 14px;
}
.game-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--border-gold);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,184,12,0.2);
}
.game-card img { width: 100%; aspect-ratio: 440 / 590; object-fit: cover; display: block; }
.game-card-info { padding: 10px 12px 12px; }
.game-card-info p { margin: 0; font-size: 0.82rem; }
.game-name { font-weight: 700; color: var(--text); font-size: 0.88rem; margin-bottom: 3px !important; }
.game-provider { color: var(--text-muted); font-size: 0.75rem; }
.game-rtp { color: var(--accent); font-size: 0.75rem; font-weight: 700; }
.game-card-overlay {
  position: relative;
}
.game-card-overlay::after {
  content: '▶ Jugar';
  position: absolute; inset: 0;
  background: rgba(255,184,12,0.85);
  color: #0a0f14; font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
  border-radius: 0;
}
.game-card:hover .game-card-overlay::after { opacity: 1; }
@media (max-width: 400px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Steps ── */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  padding: 16px 16px 16px 62px;
  position: relative;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 10px;
  transition: border-color 0.2s;
}
.steps li:hover { border-color: var(--border-gold); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  background: linear-gradient(135deg, #FFB80C, #e6a60a);
  color: #0a0f14; font-weight: 900; width: 30px; height: 30px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; box-shadow: 0 2px 8px rgba(255,184,12,0.4);
}

/* ── FAQ ── */
details {
  border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 8px;
  overflow: hidden; transition: border-color 0.2s;
}
details:hover { border-color: var(--border-gold); }
details[open] { border-color: var(--border-gold); }
summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 0.95rem;
  background: var(--dark3); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; color: var(--accent); font-size: 1.5rem;
  font-weight: 300; flex-shrink: 0; line-height: 1;
  transition: transform 0.2s;
}
details[open] summary::after { content: "−"; }
.faq-answer { padding: 16px 20px; background: rgba(255,184,12,0.02); }
.faq-answer p { margin-bottom: 10px; font-size: 0.93rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ── Pros Cons ── */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pros-cons > div { background: var(--dark3); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.pros-cons h3 { text-align: center; margin-bottom: 14px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.pros-cons ul { list-style: none; padding: 0; margin: 0; }
.pros-cons ul li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.pros-cons ul li:last-child { border-bottom: none; padding-bottom: 0; }
.pros ul li::before { content: "✓"; color: #4ade80; position: absolute; left: 0; font-weight: 700; }
.cons ul li::before { content: "✗"; color: #f87171; position: absolute; left: 0; font-weight: 700; }
@media (max-width: 520px) { .pros-cons { grid-template-columns: 1fr; } }

/* ── Badges ── */
.payment-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pay-badge {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 14px; font-size: 0.82rem;
  font-weight: 600; color: var(--text);
}
.providers-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.provider-badge {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: 50px; padding: 5px 14px; font-size: 0.82rem;
  color: var(--text-muted); transition: border-color 0.2s, color 0.2s;
}
.provider-badge:hover { border-color: var(--border-gold); color: var(--text); }

/* ── Info Box ── */
.info-box {
  background: linear-gradient(135deg, rgba(255,184,12,0.06), rgba(255,184,12,0.02));
  border: 1px solid var(--border-gold);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px;
}
.info-box p { margin-bottom: 0; font-size: 0.93rem; }

/* ── Stats Row ── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 32px; }
.stat-card {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px; text-align: center;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--border-gold); }
.stat-num { font-size: 1.8rem; font-weight: 900; color: var(--accent); display: block; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Section Divider ── */
.section-title {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.section-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border-gold), transparent);
}

/* ── Footer ── */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 36px 20px 28px;
  font-size: 0.82rem; color: var(--text-muted);
  margin-top: 16px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
footer p { margin-bottom: 8px; }
footer a { color: var(--text-muted); transition: color 0.2s; }
footer a:hover { color: var(--accent); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 14px 0; }
.footer-nav a { font-size: 0.82rem; }
.footer-legal {
  font-size: 0.74rem; color: var(--text-dim); margin-top: 16px; line-height: 1.7;
  border-top: 1px solid var(--border); padding-top: 16px;
}

/* ── Mobile Sticky CTA ── */
.mobile-cta-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: linear-gradient(135deg, #FFB80C 0%, #e6a60a 100%);
  padding: 10px 16px env(safe-area-inset-bottom, 10px);
  z-index: 300; text-align: center;
  box-shadow: 0 -4px 24px rgba(255,184,12,0.35);
}
.mobile-cta-bar a { color: #0a0f14; font-weight: 800; text-decoration: none; display: block; }
.mobile-cta-bar a:hover { text-decoration: none; }
.mobile-cta-bar .mcta-bonus { font-size: 0.95rem; font-weight: 800; display: block; }
.mobile-cta-bar .mcta-sub { font-size: 0.68rem; color: rgba(0,0,0,0.55); display: block; margin-top: 2px; }
@media (max-width: 900px) {
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 70px; }
}

/* ── Language Switcher ── */
.lang-switcher { position: relative; margin-left: 8px; flex-shrink: 0; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--dark3); border: 1px solid var(--border-gold);
  color: var(--text); font-size: 0.82rem; font-weight: 600;
  padding: 7px 13px; border-radius: 50px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap; font-family: inherit;
}
.lang-btn:hover { border-color: var(--accent); background: var(--accent-dim); box-shadow: 0 0 12px var(--accent-glow); }
.lang-btn .lang-arrow { font-size: 0.6rem; color: var(--accent); transition: transform 0.2s; }
.lang-switcher.open .lang-arrow { transform: rotate(180deg); }
.lang-flag { font-size: 1rem; }
.lang-drop {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--dark3); border: 1px solid var(--border-gold);
  border-radius: 12px; min-width: 155px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,184,12,0.1);
  overflow: hidden; z-index: 200;
}
.lang-switcher.open .lang-drop { display: block; animation: dropIn 0.15s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang-drop a {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; color: var(--text); font-size: 0.88rem; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.lang-drop a:hover { background: var(--accent-dim); color: var(--accent); }
@media (max-width: 900px) {
  /* Compact flag-only pill next to burger */
  .lang-switcher { display: flex; margin-left: 0; }
  .lang-btn { padding: 6px 10px; gap: 4px; font-size: 0.78rem; }
  .lang-btn .lang-text { display: none; }
  .lang-btn .lang-arrow { display: none; }
  .lang-flag { font-size: 1.15rem; }
  .lang-drop { right: 0; min-width: 140px; }
}

/* ── Button aliases (legacy class support) ── */
.btn-primary,
.btn-cta,
.button-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #FFB80C 0%, #e6a60a 100%);
  color: #0a0f14; font-weight: 800; font-size: 1rem;
  padding: 15px 32px; border-radius: 50px; border: none;
  cursor: pointer; text-decoration: none; font-family: inherit;
  box-shadow: 0 4px 20px rgba(255,184,12,0.35), 0 1px 0 rgba(255,255,255,0.1) inset;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  letter-spacing: 0.01em; position: relative; overflow: hidden;
}
.btn-primary::after, .btn-cta::after, .button-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.btn-primary:hover, .btn-cta:hover, .button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,184,12,0.5);
  filter: brightness(1.05);
  color: #0a0f14; text-decoration: none;
}

.btn-secondary,
.button-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent;
  color: var(--accent); font-weight: 700; font-size: 0.95rem;
  padding: 13px 28px; border-radius: 50px;
  border: 1.5px solid var(--border-gold);
  cursor: pointer; text-decoration: none; font-family: inherit;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-secondary:hover, .button-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent); text-decoration: none;
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.highlight { color: var(--accent); font-weight: 700; }

/* ── Related Links ── */
.related-links { background: var(--dark2); border: 1px solid var(--border-gold); border-radius: 14px; padding: 24px 28px; }
.related-links h2 { font-size: 1.1rem; color: var(--accent); margin-bottom: 14px; }
.related-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.related-links li { font-size: 0.92rem; color: var(--text-muted); }
.related-links a { color: var(--text); text-decoration: none; }
.related-links a:hover strong { color: var(--accent); }
