/* style.css — Meridianbet Perú | meridianbet.best
   Brand accent: Meridianbet gold (#ffcd00) sobre fondo oscuro */

:root {
  --accent:       #facc01;
  --accent-light: color-mix(in srgb, var(--accent) 72%, white);
  --accent-hover: #fcc545;
  --brand-red:    #c43d2f;
  --bg:           #030a0e;
  --bg-soft:      #10181c;
  --bg-card:      #16232a;
  --bg-card-2:    #1c2f38;
  --border:       #284755;
  --text:         #f3f5f7;
  --muted:        #a8b1b6;
  --good:        #2ecc71;
  --bad:         #ff5c5c;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Skip link / accessibility ── */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #0a0e17; padding: 10px 16px; border-radius: 0 0 6px 0; z-index: 500; font-weight: 700; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ── CTA Button ── */
.cta-btn {
  display: inline-block; background: var(--accent); color: #0a0e17;
  font-weight: 800; padding: 14px 30px; border-radius: 8px;
  text-align: center; cursor: pointer; transition: transform .15s, background .2s;
  font-size: 1.05rem; text-decoration: none; letter-spacing: .2px;
}
.cta-btn:hover { background: var(--accent-hover); text-decoration: none; transform: translateY(-2px); }
.cta-btn.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.cta-btn.secondary:hover { background: rgba(255,205,0,.12); }

/* ── Header & Navigation ── */
header {
  background: rgba(16, 24, 30, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  border-bottom: 1px solid rgba(40, 71, 85, 0.5);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: .5px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.logo::before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  background: url('/favicon.svg') no-repeat center center;
  background-size: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.4));
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.logo:hover {
  text-decoration: none;
  opacity: 0.95;
}
.logo:hover::before {
  transform: scale(1.15) rotate(5deg);
}
.logo span {
  display: none;
}
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.8px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease-out;
}
.nav-links a:hover {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links a[aria-current="page"] {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(250, 204, 1, 0.3);
}
.nav-cta {
  background: var(--accent);
  color: #0a0e17 !important;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 800 !important;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.8px;
  transition: transform 0.15s, background 0.2s;
}
.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.nav-cta::after {
  display: none !important; /* prevent line effect */
}

/* ── Burger Button ── */
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); }
.burger span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: all .3s; }
.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); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav-links {
    display: none; flex-direction: column; gap: 0; align-items: stretch;
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--bg-soft); padding: 8px 0; max-height: 80vh; overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,.6); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px 22px; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-links a:hover { background: var(--bg-card); }
  .nav-cta { margin: 8px 16px; text-align: center; }
}

/* ── Layout ── */
main { max-width: 1140px; margin: 0 auto; padding: 22px 16px 40px; }
.wrap-narrow { max-width: 820px; }
section { margin-bottom: 44px; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); color: #fff; margin-bottom: 16px; line-height: 1.2; }
h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); color: var(--accent); margin: 8px 0 14px; line-height: 1.25; }
h3 { font-size: 1.15rem; color: var(--accent-light); margin-bottom: 8px; }
h4 { font-size: 1.02rem; color: #fff; margin-bottom: 6px; }
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 7px; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: .82rem; color: var(--muted); margin: 4px 0 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 68px 24px 72px;
  background-image: linear-gradient(rgba(10, 14, 23, 0.28), rgba(10, 14, 23, 0.62)), url('/foto/hero-promo.webp');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(189, 36, 38, 0.45); /* branded red border hint */
  border-radius: 14px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.85);
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.98), 0 4px 22px rgba(0, 0, 0, 0.95);
}
.hero p.lead {
  font-size: 1.12rem;
  color: #f3f4f6; /* high contrast white-gray */
  font-weight: 500;
  max-width: 680px;
  margin: 0 auto 22px;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.98), 0 4px 15px rgba(0, 0, 0, 0.95);
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.hero .tag { position: relative; z-index: 2; }

@media (max-width: 600px) {
  .hero {
    padding: 46px 16px 50px;
    background-image: linear-gradient(rgba(10, 14, 23, 0.35), rgba(10, 14, 23, 0.70)), url('/foto/hero-promo.webp');
  }
}

/* ── Quick answer block (AI Overview / snippet) ── */
.quick-answer { background: linear-gradient(135deg, rgba(255,205,0,.10), rgba(255,205,0,.03)); border: 1px solid rgba(255,205,0,.35); border-left: 4px solid var(--accent); border-radius: 10px; padding: 18px 20px; margin: 0 0 26px; }
.quick-answer h2, .quick-answer .qa-title { font-size: 1rem; color: var(--accent); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.quick-answer p { margin-bottom: 0; font-size: 1.04rem; color: var(--text); }

/* ── Callout / note boxes ── */
.callout { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; padding: 16px 18px; margin: 0 0 22px; }
.callout.warn { border-left-color: var(--bad); }
.callout.ok { border-left-color: var(--good); }
.callout strong { color: #fff; }

/* ── Stat strip ── */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin-bottom: 30px; }
.stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-align: center; }
.stat .num { font-size: 1.5rem; font-weight: 800; color: var(--accent); display: block; }
.stat .lbl { font-size: .82rem; color: var(--muted); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; margin-bottom: 18px; }
table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: 10px; overflow: hidden; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: .94rem; }
th { background: var(--bg-card-2); color: var(--accent); font-weight: 700; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }
@media (max-width: 640px) {
  table, thead, tbody, th, td, tr { display: block; }
  thead tr { display: none; }
  tr {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 6px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }
  td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px dashed rgba(40, 71, 85, 0.45);
    font-size: 0.92rem;
    text-align: right;
  }
  td:last-child {
    border-bottom: none;
  }
  td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--accent);
    font-size: 0.76rem;
    text-transform: uppercase;
    text-align: left;
    margin-right: 16px;
  }
}

/* ── Card grid (clusters / related) ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; transition: border-color .2s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card h3 { margin-bottom: 6px; }
.card h3 a { color: #fff; }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card p { font-size: .9rem; color: var(--muted); margin-bottom: 0; }

/* ── Pros & Cons ── */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.proscons > div { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.proscons h3 { margin-bottom: 10px; }
.proscons .pros h3 { color: var(--good); }
.proscons .cons h3 { color: var(--bad); }
.proscons ul { list-style: none; margin-left: 0; }
.proscons li { padding-left: 24px; position: relative; }
.proscons .pros li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.proscons .cons li::before { content: "✕"; position: absolute; left: 0; color: var(--bad); font-weight: 800; }
@media (max-width: 600px) { .proscons { grid-template-columns: 1fr; } }

/* ── Steps ── */
ol.steps { counter-reset: step; list-style: none; margin-left: 0; }
ol.steps > li { position: relative; padding: 4px 0 14px 48px; margin-bottom: 4px; }
ol.steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; background: var(--accent); color: #0a0e17; border-radius: 50%; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ── Game Cards Grid ── */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 14px; align-items: start; }
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  display: block;
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}
.game-card img { width: 100%; aspect-ratio: 226 / 338; object-fit: cover; display: block; }
.game-card p { padding: 6px 8px; font-size: .82rem; margin: 0; text-decoration: none; }
.game-card p:first-of-type { font-weight: 700; color: var(--text); }
.game-card p:last-of-type { color: var(--muted); font-size: .72rem; }
@media (max-width: 420px) { .games-grid { grid-template-columns: repeat(2,1fr); } }

/* ── FAQ Accordion ── */
.faq h2 { margin-bottom: 14px; }
details { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 9px; overflow: hidden; background: var(--bg-card); }
summary { padding: 15px 16px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #fff; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; flex-shrink: 0; }
details[open] summary::after { content: "\2212"; }
details > p, details > ul, details > ol { padding: 0 16px 15px; color: var(--muted); margin-bottom: 0; }
details[open] summary { color: var(--accent); }

/* ── Related links block ── */
.related { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.related h2 { font-size: 1.15rem; }
.related ul { list-style: none; margin-left: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 8px; }
.related li { margin-bottom: 0; }
.related a { display: block; padding: 9px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 7px; font-size: .9rem; }
.related a:hover { border-color: var(--accent); text-decoration: none; }

/* ── Entity / definition block ── */
.entity-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 22px; }
.entity-box dt { color: var(--accent); font-weight: 700; font-size: .9rem; }
.entity-box dd { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }

/* ── Footer ── */
footer { background: var(--bg-soft); padding: 32px 16px 90px; font-size: .86rem; color: var(--muted); margin-top: 50px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 22px; margin-bottom: 24px; }
.footer-cols h4 { color: var(--accent); font-size: .92rem; margin-bottom: 10px; }
.footer-cols ul { list-style: none; margin-left: 0; }
.footer-cols li { margin-bottom: 6px; }
.footer-cols a { color: var(--muted); font-size: .86rem; }
.footer-cols a:hover { color: var(--accent); }
.footer-legal { border-top: 1px solid var(--border); padding-top: 16px; font-size: .78rem; color: #6b7488; line-height: 1.6; }
.footer-legal strong { color: var(--muted); }
.footer-bottom { text-align: center; margin-top: 14px; font-size: .82rem; }

/* ── Mobile Sticky CTA Bar ── */
.mobile-cta-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--accent); padding: 9px 16px 11px; z-index: 300; text-align: center; box-shadow: 0 -3px 16px rgba(0,0,0,.55); }
.mobile-cta-bar a { color: #0a0e17; font-weight: 800; text-decoration: none; display: block; line-height: 1.25; }
.mobile-cta-bar a:hover { text-decoration: none; opacity: .92; }
.mobile-cta-bar .mcta-bonus { font-size: 1.02rem; font-weight: 800; display: block; }
.mobile-cta-bar .mcta-sub { font-size: .7rem; color: rgba(0,0,0,.62); display: block; margin-top: 1px; }
@media (max-width: 900px) { .mobile-cta-bar { display: block; } }

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag { display: inline-block; background: rgba(255,205,0,.14); color: var(--accent); font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.code-chip { display: inline-block; background: #0a0e17; border: 1px dashed var(--accent); color: var(--accent); font-weight: 800; padding: 4px 14px; border-radius: 6px; letter-spacing: 2px; font-family: ui-monospace, monospace; }
