:root {
  --bg: #0b2148;
  --bg-deep: #081833;
  --header: #0d2851;
  --panel: #14356a;
  --card: #163a70;
  --card-2: #1a4179;
  --tab: #1f477e;
  --tab-on: #102a52;
  --blue: #4aa9f8;
  --blue-2: #86c9ff;
  --btn: #2585e8;
  --text: rgba(255, 255, 255, 0.78);
  --muted: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.1);
  --radius: 18px;
  --max: 1180px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  font-family: "Montserrat", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { color: #fff; line-height: 1.2; margin: 0 0 0.6em; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.btn, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}
.btn { background: var(--btn); color: #fff; }
.btn:hover { background: #3b96ef; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(134, 201, 255, 0.55);
}
.btn-ghost:hover { background: rgba(74, 169, 248, 0.12); }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header__row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}
.logo img { width: 64px; height: 64px; object-fit: contain; }
.header__actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.burger span, .burger span:before, .burger span:after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  margin: 0 auto;
}
.burger span:before, .burger span:after {
  content: "";
  position: absolute;
  left: 0;
}
.burger span:before { top: -6px; }
.burger span:after { top: 6px; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 24, 51, 0.95) 0%, rgba(8, 24, 51, 0.84) 45%, rgba(8, 24, 51, 0.62) 100%),
    url("/images/back.webp") center top / cover no-repeat,
    #0b2148;
  padding: 72px 0 110px;
  min-height: 520px;
}
.hero__grid {
  position: relative;
  max-width: 560px;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.hero p { font-size: 20px; max-width: 520px; color: #fff; margin: 0 0 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.filter {
  margin-top: -42px;
  position: relative;
  z-index: 2;
}
.filter__box {
  background: var(--panel);
  border-radius: 22px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  background: transparent;
  border: 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
}
.tab.is-on { background: var(--tab-on); }
.tab:hover { background: var(--tab); }
select.filter__select {
  background: #1d4b86;
  border: 0;
  border-radius: 12px;
  min-height: 46px;
  padding: 0 14px;
  min-width: 220px;
  cursor: pointer;
}

.section { padding: 42px 0; }
.section h2.kicker {
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}
.games {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px 14px;
}
.game { display: block; color: #fff; }
.game[hidden] { display: none; }
.game__pic {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  background: #10284f;
}
.game__pic img { width: 100%; height: 100%; object-fit: cover; }
.game__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 20, 46, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
}
.game:hover .game__play { opacity: 1; }
.game__play span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
}
.game__play span:before {
  content: "";
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #0d2851;
  margin-left: 3px;
}
.game h3 { font-size: 14px; margin: 10px 0 2px; }
.game p { margin: 0; color: var(--muted); font-size: 13px; }
.more { display: flex; justify-content: center; margin-top: 28px; }

.providers { display: flex; gap: 12px; overflow: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.provider {
  flex: 0 0 160px;
  scroll-snap-align: start;
  height: 74px;
  border-radius: 14px;
  background: #12325f;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  color: #d7ecff;
  border: 1px solid var(--line);
}
.provider:hover { background: #1a4278; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.arrows { display: flex; gap: 8px; }
.arrows button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #12325f;
  color: #fff;
  cursor: pointer;
}

.seo { padding-bottom: 20px; }
.prose {
  background: linear-gradient(180deg, rgba(22, 58, 112, 0.35), rgba(13, 40, 81, 0.2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 28px 8px;
}
.prose h2 { font-size: 28px; margin-top: 1.4em; }
.prose h3 { font-size: 20px; margin-top: 1.2em; }
.prose p { margin: 0 0 1em; }
.prose img.fig {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 8px 0 18px;
}
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { background: #173e78; color: #fff; font-size: 14px; }
td { font-size: 14px; }

.faq details {
  background: #12325f;
  border-radius: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 700;
  color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; float: right; color: var(--blue); }
.faq details[open] summary:after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; }

.footer { background: #091c3d; margin-top: 20px; padding: 36px 0 24px; }
.footer__grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
}
.footer nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.footer h2 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-2); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 8px 0; }
.footer a:hover { color: #fff; }
.pays { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.pay {
  background: #12325f;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.age {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #e35b5b;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.page-hero { padding: 36px 0 10px; }
.page-hero h1 { font-size: 36px; color: var(--blue); text-transform: uppercase; }

.empty { text-align: center; color: var(--muted); padding: 24px 0 8px; }

@media (max-width: 1100px) {
  .games { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .hero__grid, .footer__grid { grid-template-columns: 1fr; }
  .footer nav { grid-template-columns: 1fr 1fr; }
  .header__actions { display: none; }
  .burger { display: inline-grid; place-items: center; }
  .header__actions.is-open {
    display: flex;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    background: #102c5c;
    padding: 12px;
    border-radius: 14px;
    flex-direction: column;
    box-shadow: var(--shadow);
  }
  .header__actions.is-open .btn,
  .header__actions.is-open .btn-ghost { display: flex; width: 100%; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .filter__box { flex-direction: column; align-items: stretch; }
  .hero {
    padding: 36px 0 88px;
    min-height: 420px;
    text-align: center;
    background:
      linear-gradient(180deg, rgba(8, 24, 51, 0.9) 0%, rgba(8, 24, 51, 0.72) 100%),
      url("/images/back.webp") 72% top / cover no-repeat,
      #0b2148;
  }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .prose { padding: 18px 14px 4px; }
}

/* Chile accents */
.footer__h { margin: 0 0 .6em; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-2); }
.header { border-bottom: 3px solid #d52b1e; }
.hero h1 { color: #fff; }
.hero h1::after { content: ""; display: block; width: 120px; height: 6px; margin-top: 14px; border-radius: 3px; background: linear-gradient(90deg, #fff 0 50%, #d52b1e 50%); }
.btn { background: #d52b1e; }
.btn:hover { background: #e8463a; }
.tab.is-on { box-shadow: inset 0 -3px 0 #d52b1e; }
@media (max-width: 860px) { .hero h1::after { margin-left: auto; margin-right: auto; } }

/* ARTURO VIDAL — local rebrand */
:root { --btn:#d52b1e; --blue:#68b2ff; --radius:16px; }
html { scroll-padding-top:104px; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline:3px solid #ffd77b; outline-offset:5px; }
.header { background:#0c2144; border-bottom:1px solid rgba(255,255,255,.12); }
.header__row { min-height:88px; }
.logo img { width:78px; height:78px; }
.hero { min-height:650px; padding:74px 0 105px; background:#081833; display:flex; align-items:center; }
.hero__art { position:absolute; inset:0; }
.hero__art img { width:100%; height:100%; object-fit:cover; object-position:center 38%; }
.hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(6,18,40,.96) 0%,rgba(6,18,40,.9) 28%,rgba(6,18,40,.45) 57%,rgba(6,18,40,.04) 100%); }
.hero__grid { position:relative; z-index:1; width:min(var(--max),calc(100% - 32px)); max-width:var(--max); }
.hero__grid > div { max-width:610px; }
.hero p.hero__eyebrow { font-size:12px; font-weight:800; letter-spacing:.24em; color:#ffc973; margin:0 0 20px; }
.hero h1 { font-size:52px; letter-spacing:-.035em; line-height:1.07; text-transform:none; }
.hero__brand { display:block; font-size:68px; font-weight:800; color:#fff; margin-bottom:14px; }
.hero__title { display:block; max-width:560px; }
.hero h1::after { width:84px; height:4px; margin-top:22px; }
.hero p { font-size:18px; max-width:470px; line-height:1.7; margin-top:22px; }
.hero__actions { margin-top:30px; }
.btn { background:#d52b1e; box-shadow:0 6px 20px rgba(213,43,30,.16); }
.btn:hover { background:#ec4032; }
.filter__box { border:1px solid rgba(255,255,255,.09); border-radius:16px; }
.section h2.kicker { color:#f1f5ff; }
.prose { background:#102b54; }
.prose h2:first-child { margin-top:.3em; }
.footer li { overflow-wrap:anywhere; }
.game p { color:rgba(255,255,255,.73); }
@media (min-width:1600px) { .hero__art img { object-position:center 40%; } }
@media (max-width:1100px) and (min-width:861px) { .hero__brand { font-size:58px; } .hero h1 { font-size:44px; } .hero__grid > div { max-width:520px; } }
@media (max-width:860px) {
 .header__row { min-height:78px; justify-content:space-between; }
 .logo img { width:66px; height:66px; }
 .header__actions.is-open { top:78px; }
 .hero { min-height:0; padding:310px 0 88px; text-align:left; }
 .hero__art { height:470px; }
 .hero__art img { object-position:78% center; }
 .hero::after { background:linear-gradient(180deg,rgba(8,24,51,.02) 0,rgba(8,24,51,.08) 190px,#081833 455px); }
 .hero__grid > div { max-width:580px; }
 .hero__brand { font-size:clamp(36px,8.5vw,58px); margin-bottom:12px; }
 .hero h1 { font-size:clamp(30px,6.5vw,42px); }
 .hero h1::after { margin-left:0; }
 .hero p.hero__eyebrow { margin-bottom:12px; font-size:11px; }
 .hero p { margin-left:0; font-size:16px; }
 .hero__actions { justify-content:flex-start; }
 .tabs { gap:4px; }
 .tab { padding:12px 10px; font-size:11px; }
 .filter__select { width:100%; min-width:0; }
 .prose h2 { font-size:25px; }
 .page-hero h1 { font-size:30px; overflow-wrap:anywhere; }
 .footer nav { font-size:14px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } * { transition:none!important; } }

/* Natural heading case */
.page-hero h1 { text-transform: none; }

/* Plain age label in the footer */
.age { flex:0 0 auto; width:auto; height:auto; border:0; border-radius:0; display:block; font-size:16px; font-weight:400; color:inherit; }

/* Compact swipe carousel for mobile games */
[hidden] { display:none !important; }
.games-hint { display:none; }
@media (max-width:860px) {
  .games-hint { display:block; color:var(--blue-2); font-size:13px; margin:0 0 12px; }
  .games {
    display:flex;
    gap:12px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;
    scroll-padding-inline:2px;
    -webkit-overflow-scrolling:touch;
    padding:4px 2px 14px;
    scrollbar-width:thin;
    scrollbar-color:#4c6a96 #102b54;
  }
  .games::-webkit-scrollbar { height:4px; }
  .games::-webkit-scrollbar-track { background:#102b54; border-radius:4px; }
  .games::-webkit-scrollbar-thumb { background:#4c6a96; border-radius:4px; }
  .games .game { flex:0 0 clamp(120px,33vw,144px); min-width:0; scroll-snap-align:start; }
  .games .game__pic { border-radius:10px; aspect-ratio:1/1.05; }
  .games .game h3 { font-size:14px; line-height:1.3; margin-top:8px; min-height:2.6em; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .games .game p { font-size:12px; line-height:1.5; }
  #juegos .more { display:none; }
}
