/* ============================================================
   CIRSA PANAMÁ — Bespoke stylesheet
   Palette: dark slate #101820 / #1e2a35 / #3e4951 + gold #ffc658
   ============================================================ */

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

:root {
  --c-bg:       #101820;
  --c-surface:  #1a2530;
  --c-panel:    #1e2a35;
  --c-border:   #2e3d4a;
  --c-slate:    #3e4951;
  --c-muted:    #7a9aaa;
  --c-body:     #c8d8e0;
  --c-gold:     #ffc658;
  --c-gold-dk:  #e0a030;
  --c-gold-lt:  #ffe4a0;
  --c-white:    #ffffff;
  --c-danger:   #e05050;

  --ff-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-head: var(--ff-body);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  --shadow-card: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 24px rgba(255,198,88,0.18);
}

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

body {
  font-family: var(--ff-body);
  background: var(--c-bg);
  color: var(--c-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── Skip link ──────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--c-gold); color: #000;
  padding: .4rem .8rem; border-radius: var(--r-sm);
  font-weight: 700; z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* ── Layout container ───────────────────────────────────── */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 800;
  background: rgba(16,24,32,0.97);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex; align-items: center;
  height: 64px; gap: 24px;
}

.wordmark {
  flex-shrink: 0;
  display: flex; align-items: center;
  text-decoration: none;
}
.wordmark img {
  height: 32px; width: auto;
}

/* Main nav */
.main-nav {
  display: flex; align-items: center; gap: 4px; flex: 1;
}
.main-nav a {
  color: var(--c-body); font-size: .875rem; font-weight: 500;
  padding: 6px 12px; border-radius: var(--r-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--c-gold); background: rgba(255,198,88,.07); }
.main-nav a.active { color: var(--c-gold); }

/* Desktop lang switch */
.lang-switch {
  display: flex; align-items: center; gap: 2px;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
}
.lang-switch a, .lang-switch span {
  padding: 4px 8px; border-radius: var(--r-sm);
  color: var(--c-muted);
}
.lang-switch span.active { color: var(--c-gold); background: rgba(255,198,88,.1); }
.lang-switch a:hover { color: var(--c-gold); }
.lang-switch .sep { color: var(--c-border); }

/* CTA buttons header */
.btn-login {
  padding: 7px 18px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-body);
  font-size: .85rem; font-weight: 600;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.btn-login:hover { border-color: var(--c-gold); color: var(--c-gold); }

.btn-register {
  padding: 7px 18px;
  background: var(--c-gold);
  border: 1px solid var(--c-gold);
  border-radius: var(--r-sm);
  color: #0d1720;
  font-size: .85rem; font-weight: 700;
  transition: background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-register:hover { background: var(--c-gold-lt); color: #0d1720; box-shadow: var(--shadow-gold); }

/* Burger */
.burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 8px;
  margin-left: auto; flex-shrink: 0;
}
.burger span {
  display: block; height: 2px; background: var(--c-body);
  border-radius: 2px; transition: transform .25s, opacity .25s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--c-bg);
  overflow-y: auto;
  z-index: 700;
  padding: 16px 20px 40px;
  flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }

.mobile-nav a {
  display: block; color: var(--c-body);
  padding: 12px 16px; border-radius: var(--r-md);
  font-size: 1.05rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--c-gold); background: rgba(255,198,88,.07); }

.mobile-nav-divider {
  height: 1px; background: var(--c-border); margin: 12px 0;
}

.mobile-lang-switch {
  display: flex; gap: 8px; padding: 8px 16px;
}
.mobile-lang-switch a, .mobile-lang-switch span {
  padding: 6px 14px; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 700;
}
.mobile-lang-switch span.active {
  background: rgba(255,198,88,.15); color: var(--c-gold);
}
.mobile-lang-switch a { color: var(--c-muted); }
.mobile-lang-switch a:hover { color: var(--c-gold); }

.mobile-nav .btn-login,
.mobile-nav .btn-register {
  display: block; text-align: center; margin-top: 8px;
  padding: 12px 18px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 480px;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--c-panel);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('/assets/images/hero-casino.jpg') center/cover no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(16,24,32,.93) 0%,
    rgba(16,24,32,.75) 55%,
    rgba(16,24,32,.3) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 580px;
  padding: 64px 0;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .7rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-gold);
  border: 1px solid rgba(255,198,88,.35);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 800; line-height: 1.15;
  color: var(--c-white);
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.hero-title .gold { color: var(--c-gold); }
.hero-desc {
  font-size: 1rem; color: var(--c-body); max-width: 460px;
  margin-bottom: 32px; line-height: 1.7;
}
.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.btn-hero-primary {
  display: inline-block;
  padding: 13px 28px;
  background: var(--c-gold); color: #0d1720;
  font-size: .95rem; font-weight: 800;
  border-radius: var(--r-md);
  transition: background .2s, box-shadow .2s, transform .15s;
  letter-spacing: .02em;
}
.btn-hero-primary:hover {
  background: var(--c-gold-lt); color: #0d1720;
  box-shadow: var(--shadow-gold); transform: translateY(-1px);
}
.btn-hero-secondary {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--c-white);
  font-size: .95rem; font-weight: 600;
  border-radius: var(--r-md);
  transition: border-color .2s, background .2s;
}
.btn-hero-secondary:hover {
  border-color: var(--c-gold); color: var(--c-gold);
  background: rgba(255,198,88,.06);
}

/* Hero badge row */
.hero-badges {
  display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap;
}
.hero-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: rgba(200,216,224,.75);
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-gold); flex-shrink: 0;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { padding: 72px 0; }
.section-alt { background: var(--c-surface); }

.section-label {
  font-size: .7rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-gold);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; color: var(--c-white);
  line-height: 1.2; margin-bottom: 12px;
}
.section-desc {
  color: var(--c-muted); font-size: .95rem; max-width: 560px;
  margin-bottom: 40px; line-height: 1.7;
}
.section-head { text-align: center; }
.section-head .section-desc { margin-left: auto; margin-right: auto; }

/* ============================================================
   GAME CATEGORY CHIPS
   ============================================================ */
.game-cats {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 36px; justify-content: center;
}
.cat-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: var(--c-panel); border: 1px solid var(--c-border);
  border-radius: 100px;
  font-size: .82rem; font-weight: 600; color: var(--c-body);
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.cat-chip img { width: 20px; height: 20px; object-fit: contain; }
.cat-chip:hover, .cat-chip.active {
  border-color: var(--c-gold); color: var(--c-gold);
  background: rgba(255,198,88,.07);
}

/* ============================================================
   CASINO GAME GRID
   ============================================================ */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.game-card {
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(255,198,88,.3);
}
.game-card-img {
  width: 100%; aspect-ratio: 3/2;
  background: var(--c-slate);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.game-card-img img { width: 100%; height: 100%; object-fit: cover; }
.game-card-img .game-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
}
.game-card-img .game-placeholder .gp-icon {
  width: 44px; height: 44px; object-fit: contain; opacity: .6;
}
.game-card-info { padding: 12px 14px; }
.game-card-name {
  font-size: .85rem; font-weight: 700; color: var(--c-white);
  margin-bottom: 4px;
}
.game-card-meta { font-size: .75rem; color: var(--c-muted); }
.game-card-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--c-gold); color: #0d1720;
  font-size: .65rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 100px;
}

/* ============================================================
   WINNER CLUB SECTION
   ============================================================ */
.winner-club-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.winner-club-img {
  position: relative;
}
.winner-club-img img {
  width: 100%; max-width: 440px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.winner-levels {
  display: flex; flex-direction: column; gap: 12px; margin-top: 28px;
}
.winner-level {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--c-panel); border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color .2s;
}
.winner-level:hover { border-color: rgba(255,198,88,.3); }
.level-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}
.level-dot.gold    { background: var(--c-gold); }
.level-dot.silver  { background: #c0c8d0; }
.level-dot.platinum{ background: linear-gradient(135deg, #e8e0f0, #c8b8e0); }
.level-name { font-size: .9rem; font-weight: 700; color: var(--c-white); }
.level-desc { font-size: .8rem; color: var(--c-muted); margin-top: 1px; }

/* ============================================================
   SPORTS SECTION
   ============================================================ */
.sports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.sports-markets {
  display: flex; flex-direction: column; gap: 10px;
}
.market-row {
  display: grid; grid-template-columns: 1fr auto auto auto;
  gap: 8px; align-items: center;
  padding: 12px 16px;
  background: var(--c-panel); border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.market-teams { font-size: .88rem; font-weight: 600; color: var(--c-white); }
.market-label { font-size: .72rem; color: var(--c-muted); margin-top: 2px; }
.odd-btn {
  min-width: 52px; text-align: center;
  padding: 8px 10px;
  background: rgba(255,198,88,.08); border: 1px solid rgba(255,198,88,.2);
  border-radius: var(--r-sm);
  font-size: .85rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--c-gold);
  transition: background .2s, border-color .2s;
  cursor: pointer;
}
.odd-btn:hover { background: rgba(255,198,88,.18); border-color: var(--c-gold); }
.sports-img img {
  width: 100%; border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

/* ============================================================
   PAYMENT METHODS
   ============================================================ */
.payment-grid {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-top: 36px;
}
.payment-item {
  background: var(--c-panel); border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 12px 20px;
  min-width: 100px; text-align: center;
  font-size: .8rem; font-weight: 600; color: var(--c-muted);
  transition: border-color .2s, color .2s;
}
.payment-item:hover { border-color: rgba(255,198,88,.3); color: var(--c-body); }

/* ============================================================
   INFO CARDS (features grid)
   ============================================================ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.info-card {
  background: var(--c-panel); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 28px;
  transition: border-color .2s, transform .2s;
}
.info-card:hover { border-color: rgba(255,198,88,.3); transform: translateY(-2px); }
.info-card-icon {
  width: 44px; height: 44px;
  background: rgba(255,198,88,.1);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.info-card-title {
  font-size: 1rem; font-weight: 700; color: var(--c-white);
  margin-bottom: 8px;
}
.info-card-text { font-size: .85rem; color: var(--c-muted); line-height: 1.6; }

/* ============================================================
   SEO ARTICLE BLOCK
   ============================================================ */
.seo-block {
  padding: 72px 0 80px;
  background: var(--c-bg);
}
.seo-inner {
  max-width: 820px; margin: 0 auto;
}
/* Headings only inside seo-block */
.seo-inner h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800; color: var(--c-white);
  line-height: 1.2; margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--c-gold);
}
.seo-inner h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700; color: var(--c-white);
  margin-top: 48px; margin-bottom: 14px;
  padding-left: 16px;
  border-left: 3px solid var(--c-gold);
}
.seo-inner h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--c-gold-lt);
  margin-top: 28px; margin-bottom: 10px;
}
.seo-inner p {
  font-size: .95rem; color: var(--c-body); line-height: 1.75;
  margin-bottom: 16px;
}
.seo-inner table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0;
  font-size: .87rem;
  table-layout: fixed;
}
.seo-inner table th {
  background: var(--c-panel); color: var(--c-gold);
  padding: 10px 12px; text-align: left;
  border: 1px solid var(--c-border);
  font-weight: 700;
  overflow-wrap: anywhere; word-break: break-word;
}
.seo-inner table td {
  padding: 9px 12px; border: 1px solid var(--c-border);
  color: var(--c-body); vertical-align: top;
  overflow-wrap: anywhere; word-break: break-word;
}
.seo-inner table tr:nth-child(even) td { background: rgba(255,255,255,.025); }
.seo-inner ul, .seo-inner ol {
  padding-left: 22px; margin-bottom: 16px;
}
.seo-inner li { font-size: .95rem; color: var(--c-body); line-height: 1.7; margin-bottom: 4px; }
.seo-inner strong { color: var(--c-white); font-weight: 700; }
.seo-inner a { color: var(--c-gold); }
.seo-inner a:hover { color: var(--c-gold-lt); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  list-style: none; padding: 0;
  font-size: .8rem; color: var(--c-muted);
}
.breadcrumb li a { color: var(--c-muted); transition: color .2s; }
.breadcrumb li a:hover { color: var(--c-gold); }
.breadcrumb li.active { color: var(--c-body); }
.breadcrumb li + li::before {
  content: '›'; margin-right: 6px; color: var(--c-border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand img { height: 28px; margin-bottom: 16px; }
.footer-brand p { font-size: .82rem; color: var(--c-muted); line-height: 1.65; max-width: 280px; }

.footer-col-title {
  font-size: .7rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-gold);
  margin-bottom: 14px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: .84rem; color: var(--c-muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--c-gold); }

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
}
.footer-copyright {
  font-size: .78rem; color: var(--c-muted);
}
.footer-rg {
  display: flex; align-items: center; gap: 10px;
  font-size: .78rem; color: var(--c-muted);
}
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: 2px solid var(--c-muted);
  border-radius: 50%;
  font-size: .7rem; font-weight: 800; color: var(--c-muted);
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  /* Header: show only wordmark + burger */
  .main-nav,
  .lang-switch,
  .btn-login,
  .btn-register { display: none !important; }
  .burger { display: flex !important; }
  .header-inner { gap: 0; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-brand { grid-column: 1 / -1; }

  /* Hero */
  .hero-content { max-width: 100%; }
  .hero { min-height: 380px; }

  /* Sports / winner grids */
  .winner-club-grid,
  .sports-grid { grid-template-columns: 1fr; gap: 32px; }
  .winner-club-img img { max-width: 100%; }
  .sports-img { order: -1; }
}

@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero { min-height: 320px; }
  .hero-content { padding: 40px 0; }
  .hero-title { font-size: 1.6rem; }

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

  /* Responsive tables */
  .seo-inner table { font-size: .78rem; }
  .seo-inner table th,
  .seo-inner table td { padding: 6px 8px; }

  /* Market board */
  .market-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .market-odds { display: flex; gap: 6px; }

  .payment-grid { gap: 8px; }
  .payment-item { padding: 10px 14px; min-width: 80px; }
}

@media (max-width: 360px) {
  .wrap { padding: 0 12px; }
  .hero-ctas { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { text-align: center; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-chip { font-size: .75rem; padding: 6px 12px; }
}
