/* ============================================================
   Betsafe Guatemala — bespoke stylesheet
   Palette: vivid red #FF3131 on near-black #151313
            light grey surfaces #d8d8d8 / #c1c1c1
   ============================================================ */

:root {
  --red: #ff3131;
  --red-dim: #d60000;
  --red-deep: #8f0000;
  --black: #151313;
  --black-2: #1c1919;
  --black-3: #232020;
  --line: #322c2c;
  --grey-light: #d8d8d8;
  --grey: #c1c1c1;
  --grey-dark: #8a8484;
  --ink: #151313;
  --white: #ffffff;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--black);
  color: var(--grey-light);
  line-height: 1.55;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

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

.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 19, 19, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img { height: 26px; width: auto; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.desktop-nav .nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--grey-light);
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.desktop-nav .nav-link:hover,
.desktop-nav .nav-link[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--black-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a {
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--grey-dark);
  letter-spacing: 0.02em;
}
.lang-switch a[aria-current="true"] {
  background: var(--red);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--grey-dark);
  color: var(--grey-light);
}
.btn-ghost:hover { border-color: var(--grey-light); color: #fff; }

.btn-solid {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 49, 49, 0.35);
}
.btn-solid:hover { background: #ff4747; }

.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* Burger */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--black-2);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.burger-box {
  width: 20px;
  height: 14px;
  position: relative;
}
.burger-box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grey-light);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.burger-box span:nth-child(1) { top: 0; }
.burger-box span:nth-child(2) { top: 6px; }
.burger-box span:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger-box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  z-index: 99;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.mobile-nav.open { display: block; }
.mobile-nav-inner { padding: 22px 24px 40px; display: flex; flex-direction: column; gap: 22px; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav-links a {
  padding: 14px 4px;
  font-size: 1.05rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  color: var(--grey-light);
}
.mobile-nav-links a[aria-current="page"] { color: var(--red); }
.mobile-lang { display: flex; gap: 10px; }
.mobile-lang a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  font-weight: 700;
}
.mobile-lang a[aria-current="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.mobile-cta { display: flex; flex-direction: column; gap: 10px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(21,19,19,0.98) 18%, rgba(21,19,19,0.78) 48%, rgba(214,0,0,0.28) 100%);
}
.hero-inner {
  position: relative;
  padding: 76px 24px 64px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-content { max-width: 620px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 49, 49, 0.14);
  border: 1px solid rgba(255, 49, 49, 0.5);
  color: var(--red);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 20px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.hero-title em {
  font-style: normal;
  color: var(--red);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--grey);
  margin: 0 0 30px;
  max-width: 52ch;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.trust-strip { display: flex; gap: 22px; flex-wrap: wrap; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--grey);
}
.trust-item .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ============================================================
   SECTION SHELLS
   ============================================================ */
.section { padding: 64px 0; }
.section-dark { background: var(--black); }
.section-alt { background: var(--black-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-light { background: var(--grey-light); color: var(--ink); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.section-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 8px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-light .section-title { color: var(--ink); }
.section-note { color: var(--grey-dark); font-size: 0.92rem; max-width: 60ch; margin: 10px 0 0; }

/* ---------- Chips (sport / game filters) ---------- */
.chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 28px;
  scrollbar-width: thin;
}
.chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--black-3);
  border: 1px solid var(--line);
  color: var(--grey-light);
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}
.chip img {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
}
.chip[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.chip-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.chip-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--grey-dark);
  border: 1px dashed var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Odds board ---------- */
.odds-panel { display: none; }
.odds-panel.active { display: block; }
.odds-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--black-3);
}
table.odds {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
table.odds caption { text-align: left; padding: 14px 18px 0; font-weight: 800; color: #fff; font-size: 0.95rem; }
table.odds th, table.odds td {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
}
table.odds thead th {
  color: var(--grey-dark);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}
table.odds tbody tr:last-child td { border-bottom: none; }
table.odds td.match { font-weight: 700; color: #fff; }
table.odds td.odd {
  font-weight: 800;
  color: var(--red);
  text-align: center;
  width: 64px;
}
.odds-disclaimer {
  font-size: 0.76rem;
  color: var(--grey-dark);
  margin-top: 12px;
}

/* ---------- Game grid ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.game-tile {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--black-3);
  border: 1px solid var(--line);
}
.game-tile.wide { aspect-ratio: 16 / 9; grid-column: span 2; }
.game-tile img {
  width: 100%; height: 100%; object-fit: cover;
}
.game-tile .tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.game-tile .name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 10px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.game-tile[hidden] { display: none; }

/* ============================================================
   PROMO / BONUS BAND
   ============================================================ */
.promo-band {
  position: relative;
  background: linear-gradient(120deg, var(--black-2) 0%, var(--black) 60%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.promo-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 48px 0;
  flex-wrap: wrap;
}
.promo-media { flex-shrink: 0; width: 200px; }
.promo-media img { width: 100%; height: auto; filter: drop-shadow(0 14px 24px rgba(0,0,0,0.5)); }
.promo-text { flex: 1; min-width: 260px; }
.promo-kicker {
  color: var(--red);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.promo-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px;
}
.promo-desc { color: var(--grey); max-width: 56ch; margin: 0 0 22px; font-size: 0.95rem; }

/* ============================================================
   TRUST / FEATURE CARDS
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--black-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px;
}
.feature-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,49,49,0.14);
  border: 1px solid rgba(255,49,49,0.4);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card .f-title { font-weight: 800; color: #fff; font-size: 1rem; margin: 0 0 8px; }
.feature-card .f-desc { color: var(--grey-dark); font-size: 0.88rem; margin: 0; }

/* ============================================================
   PAYMENTS STRIP
   ============================================================ */
.pay-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}
.pay-strip img { height: 26px; width: auto; opacity: 0.85; }

/* ============================================================
   SEO ARTICLE BLOCK
   ============================================================ */
.seo-block {
  background: var(--grey-light);
  color: var(--ink);
  border-radius: var(--radius-l);
  padding: 44px;
}
.seo-block h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.18;
  margin: 0 0 22px;
  color: var(--ink);
}
.seo-block h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 38px 0 14px;
  color: var(--ink);
  border-left: 4px solid var(--red);
  padding-left: 12px;
}
.seo-block h2:first-of-type { margin-top: 6px; }
.seo-block h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 24px 0 10px;
  color: var(--red-dim);
}
.seo-block p { margin: 0 0 16px; color: #2b2727; }
.seo-block a { color: var(--red-dim); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.seo-block strong { color: var(--ink); }
.seo-block ul, .seo-block ol { margin: 0 0 16px; padding-left: 22px; color: #2b2727; }
.seo-block li { margin-bottom: 8px; }
.seo-block hr { border: none; border-top: 1px solid var(--grey); margin: 32px 0; }

.seo-block table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 18px 0 22px;
  background: #fff;
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 1px solid var(--grey);
}
.seo-block th, .seo-block td {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--grey);
  overflow-wrap: anywhere;
}
.seo-block thead th {
  background: var(--ink);
  color: #fff;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.seo-block tbody tr:last-child td { border-bottom: none; }
.seo-table-scroll { overflow-x: auto; }

/* FAQ accordion (progressive enhancement via JS) */
.faq-item {
  border: 1px solid var(--grey);
  border-radius: var(--radius-s);
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.faq-q::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--red-dim);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height 0.2s ease, padding 0.2s ease; }
.faq-a.open { padding: 0 18px 16px; }
.faq-a p { margin: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--grey-dark);
  margin: 22px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb a { color: var(--grey); font-weight: 600; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--grey-dark); }
.breadcrumb .current { color: var(--red); font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black-2);
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
}
.footer-brand img { height: 24px; margin-bottom: 14px; }
.footer-brand p { color: var(--grey-dark); font-size: 0.86rem; max-width: 40ch; margin: 0; }
.footer-col .f-head {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-dark);
  margin: 0 0 12px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--grey-light); font-size: 0.9rem; }
.footer-col a:hover { color: var(--red); }

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 2px solid var(--red);
  border-radius: 8px;
  color: var(--red);
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.responsible-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--grey-dark);
  font-size: 0.82rem;
}
.copyright { color: var(--grey-dark); font-size: 0.8rem; margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .desktop-nav, .header-actions .lang-switch, .header-actions .btn { display: none; }
  .burger { display: flex; }
  .header-actions { gap: 10px; }
  .promo-inner { padding: 36px 0; }
  .promo-media { width: 150px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero-inner { padding: 48px 16px 44px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .section { padding: 46px 0; }
  .seo-block { padding: 26px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .game-tile.wide { grid-column: span 2; }
  .promo-inner { flex-direction: column; text-align: center; align-items: center; }
  .promo-media { width: 130px; }
}

@media (max-width: 400px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* Reduced font/padding for SEO tables under narrow screens */
@media (max-width: 560px) {
  .seo-block table { font-size: 0.78rem; }
  .seo-block th, .seo-block td { padding: 8px 8px; font-size: 0.78rem; }
}
