/* ============================================================
   jugadaganadora.com — Main Stylesheet
   Theme: Dark Charcoal + Gold Editorial
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --bg-base:       #0f0f13;
  --bg-surface:    #18181f;
  --bg-raised:     #21212b;
  --bg-card:       #1d1d27;
  --gold:          #d4af37;
  --gold-light:    #e8c84a;
  --gold-muted:    #a88a28;
  --text-primary:  #f0efe8;
  --text-secondary:#9a99aa;
  --text-muted:    #5e5d72;
  --danger-red:    #c0392b;
  --border:        rgba(212,175,55,.18);
  --border-subtle: rgba(255,255,255,.06);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body:    'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --nav-h: 68px;
  --section-gap: 100px;
  --content-max: 1140px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- NAV ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(15,15,19,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity .2s;
}

.nav-logo:hover {
  opacity: .85;
}

.nav-logo img {
  display: block;
  height: 35px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: .875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--gold);
  border-radius: 100px;
  color: var(--gold);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.nav-badge:hover {
  background: var(--gold);
  color: var(--bg-base);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  opacity: .18;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-base) 30%, transparent 100%);
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero-content, .hero-aside {
  position: relative;
}

.hero-eyebrow {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--gold-muted);
  border-radius: 100px;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.hero-title .accent {
  color: var(--gold);
  display: block;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.75;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-stat-label {
  font-size: .8rem;
  color: var(--text-secondary);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 6px;
}

.hero-divider {
  height: 1px;
  background: var(--border);
}

.hero-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-secondary);
}

.hero-checklist li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23d4af37' fill-opacity='.15' stroke='%23d4af37' stroke-width='1.5'/%3E%3Cpolyline points='6,10 9,13 14,7' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- BETSSON BANNER ---------- */
.betsson-section {
  padding: 0 0 80px;
}

.betsson-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 32px 48px;
  background: linear-gradient(105deg, #1a1a27 0%, #1f1f2e 50%, #16161f 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  transition: box-shadow .3s;
}

.betsson-banner:hover {
  box-shadow: 0 8px 48px rgba(212,175,55,.12);
}

.betsson-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.betsson-logo-wrap img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.betsson-tag {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212,175,55,.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.betsson-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.betsson-bonus-label {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.betsson-bonus-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.betsson-bonus-sub {
  font-size: .85rem;
  color: var(--text-secondary);
}

.betsson-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--bg-base);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}

.betsson-cta:hover {
  background: var(--gold-light);
  color: var(--bg-base);
  transform: translateY(-2px);
}

/* ---------- SECTION TITLES ---------- */
.section-label {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section-title .accent { color: var(--gold); }

/* ---------- GUIDE CHECKLIST SECTION ---------- */
.guide-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border-subtle);
}

.guide-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: steps;
}

.guide-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-subtle);
  counter-increment: steps;
}

.guide-step:last-child { border-bottom: none; }

.step-num {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.step-text {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.guide-editorial {
  padding-top: 8px;
}

.guide-editorial p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: .95rem;
  line-height: 1.8;
}

.guide-editorial p:last-child { margin-bottom: 0; }

.guide-callout {
  margin-top: 32px;
  padding: 24px;
  background: rgba(212,175,55,.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .88rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
}

/* ---------- BONOS SECTION ---------- */
.bonos-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border-subtle);
}

.bonos-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.bonos-text p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 22px;
  font-size: .95rem;
}

.bonos-text p:last-child { margin-bottom: 0; }

.bonos-example {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.example-label {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 20px;
}

.example-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.example-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: .88rem;
}

.example-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.example-row .label { color: var(--text-secondary); }
.example-row .value { color: var(--text-primary); font-weight: 600; }
.example-row .value.gold { color: var(--gold); }

/* ---------- SEGURIDAD (COMPARISON) ---------- */
.seguridad-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border-subtle);
}

.seguridad-header {
  max-width: 640px;
  margin-bottom: 56px;
}

.seguridad-header p {
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.75;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.comparison-col {
  padding: 36px 32px;
  border-radius: var(--radius-md);
}

.comparison-col.good {
  background: rgba(212,175,55,.05);
  border: 1px solid rgba(212,175,55,.2);
}

.comparison-col.bad {
  background: rgba(192,57,43,.04);
  border: 1px solid rgba(192,57,43,.15);
}

.comparison-col-title {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-col.good .comparison-col-title { color: var(--gold); }
.comparison-col.bad .comparison-col-title { color: #c0392b; }

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.comparison-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.comparison-col.good .comparison-list li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23d4af37' fill-opacity='.15' stroke='%23d4af37' stroke-width='1.5'/%3E%3Cpolyline points='6,10 9,13 14,7' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.comparison-col.bad .comparison-list li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23c0392b' fill-opacity='.1' stroke='%23c0392b' stroke-width='1.5'/%3E%3Cline x1='7' y1='7' x2='13' y2='13' stroke='%23c0392b' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='13' y1='7' x2='7' y2='13' stroke='%23c0392b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- 18+ DISCLAIMER BAR ---------- */
.disclaimer-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0;
}

.disclaimer-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.disclaimer-badge {
  flex-shrink: 0;
}

.disclaimer-badge img {
  height: 40px;
  width: auto;
}

.disclaimer-text {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.disclaimer-text strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-surface);
  padding: 64px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-link {
  display: inline-flex;
  opacity: .8;
  transition: opacity .2s;
}

.footer-logo-link:hover { opacity: 1; }

.footer-logo-link img {
  display: block;
  height: 30px;
  width: auto;
}

.footer-tagline {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 240px;
}

.footer-responsible {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.responsible-title {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.responsible-logos {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 20px 32px;
  justify-content: start;
  align-items: center;
}

.responsible-logos a {
  display: flex;
  opacity: .7;
  transition: opacity .2s;
}

.responsible-logos a:hover { opacity: 1; }

.responsible-logos img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.footer-divider {
  height: 1px;
  background: var(--border-subtle);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
}

.footer-links a {
  font-size: .78rem;
  color: var(--text-muted);
  transition: color .2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,.68,0,1.2);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-text {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.cookie-text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  padding: 10px 24px;
  background: var(--gold);
  color: var(--bg-base);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  transition: background .2s;
}

.btn-cookie-accept:hover { background: var(--gold-light); }

.btn-cookie-reject {
  padding: 10px 20px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.btn-cookie-reject:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* ---------- POLICY PAGES ---------- */
.policy-page {
  padding: 80px 0 100px;
}

.policy-header {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.policy-meta {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.policy-content {
  max-width: 780px;
}

.policy-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin: 44px 0 16px;
  padding-top: 8px;
}

.policy-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.policy-content p {
  color: var(--text-secondary);
  font-size: .93rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.policy-content ul, .policy-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.policy-content li {
  color: var(--text-secondary);
  font-size: .93rem;
  line-height: 1.75;
  margin-bottom: 8px;
}

.policy-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.policy-alert {
  padding: 20px 24px;
  background: rgba(212,175,55,.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- JUEGO RESPONSABLE ---------- */
.recursos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.recurso-card {
  padding: 28px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.recurso-card h3 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.recurso-card p {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.recurso-card .btn-recurso {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-size: .8rem;
  transition: background .2s, color .2s;
}

.recurso-card .btn-recurso:hover {
  background: var(--gold);
  color: var(--bg-base);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 60px 0 40px;
  }

  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-aside { display: none; }

  .guide-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bonos-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bonos-example { position: static; }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .responsible-logos {
    grid-template-columns: repeat(2, auto);
  }

  .betsson-banner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 32px;
  }
}

@media (max-width: 600px) {
  :root { --section-gap: 64px; }

  .nav-links { display: none; }

  .hero-title { font-size: 2.4rem; }

  .betsson-banner { padding: 24px 20px; }

  .betsson-bonus-value { font-size: 1.3rem; }

  .betsson-cta {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }

  .btn-cookie-accept, .btn-cookie-reject {
    flex: 1;
    text-align: center;
  }

  .recursos-grid {
    grid-template-columns: 1fr;
  }
}
