/* Betsson Zona: light editorial theme derived from the official Betsson design system */
:root {
  --bg: #ffffff;
  --surface: #f4f5f8;
  --night: #0f101d;
  --night-2: #1b1d2b;
  --text: #121422;
  --muted: #5a5d6e;
  --accent: #ff6600;
  --accent-hover: #ff7520;
  --accent-soft: #fff0e7;
  --accent-text: #ad4500;
  --go: #40b840;
  --line-caba: #2f5bea;
  --border: #e3e5ec;
  --font-head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f101d;
    --surface: #1b1d2b;
    --text: #f3f4f8;
    --muted: #b4b7c6;
    --border: #2e2f3c;
    --accent-soft: #2a1a10;
    --accent-text: #ff944d;
  }
}
:root[data-theme="dark"] {
  --bg: #0f101d;
  --surface: #1b1d2b;
  --text: #f3f4f8;
  --muted: #b4b7c6;
  --border: #2e2f3c;
  --accent-soft: #2a1a10;
    --accent-text: #ff944d;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.55rem, 4.5vw, 3.2rem); font-weight: 800; margin: 0 0 12px; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 750; margin: 0 0 14px; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 22px 0 8px; }

p { margin: 0 0 14px; }

.zl-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.zl-wrap > *, .zl-lead__grid > * { min-width: 0; }

/* header: wordmark + zone chips */
.zl-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--night);
  color: #ffffff;
  border-bottom: 3px solid var(--accent);
}
.zl-top__row { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.zl-mark { display: inline-flex; align-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; text-decoration: none; color: #ffffff; letter-spacing: 0.02em; transition: opacity 0.2s ease; }
.zl-mark:hover { opacity: 0.9; }
.zl-mark img { height: 26px; width: auto; display: block; }
.zl-mark b { color: var(--accent); font-weight: 800; }
.zl-nav { margin-left: auto; }
.zl-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.zl-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  text-decoration: none;
  color: #e9eaf2;
  font-weight: 600;
  font-size: 0.95rem;
}
.zl-nav a:hover, .zl-nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle {
  display: none;
  margin-left: auto;
  min-height: 48px;
  min-width: 48px;
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
}

/* zone line markers */
.zl-line { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.zl-line::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 3px solid currentColor; background: var(--bg); }
.zl-line--pba { color: var(--accent-text); }
.zl-line--caba { color: var(--line-caba); }
.zl-line--cba { color: var(--go); }

/* hero: editorial lead + offer ticket */
.zl-lead { padding: 28px 0 32px; border-bottom: 1px solid var(--border); }
.zl-lead__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.zl-lead__intro { font-size: 1.12rem; color: var(--text); line-height: 1.55; }
.zl-crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 10px; }
.zl-crumbs a { color: var(--muted); }
.zl-checked { font-size: 0.88rem; color: var(--muted); margin-top: 14px; }
#como-revisamos { scroll-margin-top: 84px; }

.zl-ticket-card {
  position: relative;
  background: var(--night);
  color: #ffffff;
  padding: 26px 24px 22px;
  border-left: 8px solid var(--accent);
  box-shadow: 0 18px 40px rgba(15, 16, 29, 0.18);
}
.zl-ticket-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 64px;
  border-top: 2px dashed rgba(255, 255, 255, 0.28);
}
.zl-ticket-card__tag { font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.zl-ticket-card__offer { font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; line-height: 1.1; margin: 0 0 10px; }
.zl-ticket-card__terms { font-size: 0.92rem; color: #c9cbd8; margin: 0 0 34px; }

.zl-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--night);
  text-align: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.zl-go:hover { background: var(--accent-hover); color: var(--night); transform: translateY(-1px); }
.zl-go--full { width: 100%; }
.zl-go--ghost { background: transparent; color: var(--text); border: 2px solid var(--text); }
.zl-go--ghost:hover { background: var(--text); color: var(--bg); }

/* body sections */
.zl-sec { padding: 40px 0; }
.zl-sec + .zl-sec { border-top: 1px solid var(--border); }
.zl-sec--tint { background: var(--surface); }
.zl-sec--night { background: var(--night); color: #f3f4f8; }
.zl-sec--night a { color: #ffffff; }
.zl-read { max-width: var(--wrap); }
.zl-read > :is(p, h2, h3, ul, ol, dl) { max-width: 760px; }
.zl-kicker { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 6px; }

/* zone switcher cards */
.zl-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 8px; }
.zl-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-top-width: 6px;
  text-decoration: none;
  min-height: 48px;
}
.zl-zone:hover { border-color: var(--accent); color: var(--text); }
.zl-zone--pba { border-top-color: var(--accent); }
.zl-zone--caba { border-top-color: var(--line-caba); }
.zl-zone--cba { border-top-color: var(--go); }
.zl-zone strong { font-family: var(--font-head); font-size: 1.25rem; }
.zl-zone span { color: var(--muted); font-size: 0.95rem; }

/* tables */
.zl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0 20px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.98rem; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { font-family: var(--font-head); font-weight: 700; background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }
caption { caption-side: bottom; text-align: left; padding: 10px 14px; font-size: 0.88rem; color: var(--muted); }

/* steps */
.zl-steps { counter-reset: zl; list-style: none; padding: 0; margin: 18px 0; }
.zl-steps li { counter-increment: zl; position: relative; padding: 0 0 16px 58px; min-height: 44px; }
.zl-steps li::before {
  content: counter(zl);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--night);
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 800;
}
.zl-steps li::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 4px; border-left: 2px solid var(--border); }
.zl-steps li:last-child::after { display: none; }

/* pros / cons as two columns */
.zl-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0; }
.zl-duo > div { padding: 18px 20px; background: var(--surface); border-left: 5px solid var(--go); }
.zl-duo > div + div { border-left-color: var(--accent); }
.zl-duo ul { margin: 0; padding-left: 20px; }
.zl-duo__title { font-family: var(--font-head); font-weight: 800; margin: 0 0 8px; }

/* callout */
.zl-note { padding: 16px 18px; background: var(--accent-soft); border-left: 5px solid var(--accent); margin: 18px 0; }

/* calculators */
.zl-calc { background: var(--night); color: #f3f4f8; padding: 24px; margin: 20px 0; }
.zl-calc label { display: block; font-weight: 600; margin: 0 0 6px; }
.zl-calc input, .zl-calc select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  font: inherit;
  color: #121422;
  color-scheme: light;
  background: #ffffff;
  border: 2px solid var(--border);
}
.zl-calc__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.zl-calc__out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.zl-calc__out { list-style: none; padding: 0; }
.zl-calc__out > * { padding: 14px; background: var(--night-2); border-top: 3px solid var(--accent); }
.zl-calc__out b { display: block; font-family: var(--font-head); font-size: 1.35rem; color: #ffffff; }
.zl-calc__warn { margin: 14px 0 0; color: #ffd2b3; font-size: 0.95rem; }

/* media */
.zl-hero-media { display: block; margin: 20px 0 24px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 102, 0, 0.3); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), 0 0 25px rgba(255, 102, 0, 0.1); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; text-decoration: none; cursor: pointer; }
.zl-hero-media:hover { transform: translateY(-2px); border-color: rgba(255, 102, 0, 0.55); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 35px rgba(255, 102, 0, 0.2); }
.zl-hero-media img { width: 100%; height: auto; display: block; object-fit: cover; transition: transform 0.3s ease; }
.zl-hero-media:hover img { transform: scale(1.01); }
.zl-zone__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; margin-bottom: 8px; }
.zl-partner-strip { display: flex; align-items: center; justify-content: flex-start; gap: 20px; flex-wrap: wrap; margin: 18px 0; padding: 12px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.zl-partner-strip span { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.zl-partner-item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.zl-partner-strip img { height: 28px; width: auto; opacity: 0.95; }
.zl-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.zl-fig { margin: 0; }
.zl-fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.zl-fig figcaption { font-size: 0.9rem; color: var(--muted); padding-top: 6px; }
.zl-fig--wide img { aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface); }

/* games grid */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin: 20px 0; }
.game-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); overflow-wrap: anywhere; hyphens: auto; }
.game-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.game-card h3 { font-size: 1.05rem; margin: 12px 14px 4px; }
.game-card p { font-size: 0.92rem; color: var(--muted); margin: 0 14px 14px; }

/* glossary */
.zl-terms { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 18px 0; }
.zl-terms dt { font-family: var(--font-head); font-weight: 800; }
.zl-terms dd { margin: 0; }

/* faq */
.zl-faq h3 { margin-top: 24px; padding-left: 14px; border-left: 4px solid var(--accent); }

/* in-body CTA band */
.zl-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; background: var(--accent-soft); color: var(--text); border: 2px solid var(--accent); }
.zl-sec--night .zl-band a { color: var(--night); }
.zl-sec--night .zl-band .zl-go--ghost { color: var(--text); }
.zl-sec--night .zl-band .zl-go--ghost:hover { color: var(--bg); }
.zl-band p { margin: 0; max-width: 620px; }

/* related links */
.zl-links { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.zl-links a { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border: 1px solid var(--border); text-decoration: none; font-weight: 600; }
.zl-links a::before { content: "→"; color: var(--accent); margin-right: 10px; }

/* footer */
.zl-foot { background: var(--night); color: #c9cbd8; padding: 40px 0 110px; font-size: 0.97rem; }
.zl-foot a { color: #ffffff; }
.zl-foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.zl-foot__cols ul { list-style: none; margin: 0; padding: 0; }
.zl-foot__cols li { margin-bottom: 6px; }
.zl-foot__legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid #2e2f3c; }
.zl-age { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--accent); color: #ffffff; font-family: var(--font-head); font-weight: 800; margin-right: 10px; }

/* mobile ticket stub (sticky CTA) */
.zl-stub { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .zl-nav { display: none; position: absolute; left: 0; right: 0; top: 67px; background: var(--night); border-bottom: 3px solid var(--accent); }
  .zl-nav[data-open="true"] { display: block; }
  .zl-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .zl-nav a { min-height: 48px; }
  .zl-lead { padding: 18px 0 22px; }
  .zl-lead__grid, .zl-zones, .zl-duo, .zl-foot__cols, .zl-links { grid-template-columns: 1fr; }
  .zl-hero-media { margin: 10px 0 14px; border-width: 2px; }
  .zl-calc__row, .zl-calc__out { grid-template-columns: 1fr; }
  .zl-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zl-terms { grid-template-columns: 1fr; }
  .zl-stub {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    align-items: center;
    gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--night);
    border-top: 3px dashed var(--accent);
  }
  .zl-stub p { margin: 0; color: #ffffff; font-size: 0.88rem; line-height: 1.3; flex: 1; }
  .zl-stub .zl-go { min-height: 48px; padding: 0 16px; font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .zl-figs { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (min-width: 861px) {
  .zl-stub { display: none; }
}

/* Keep keyboard navigation visible on light and dark surfaces. */
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .zl-go { transition: none; }
}
