/* casasdeapuestasajedrez.com — Build ID: 7kq2 */
/* Chess-themed design | Light/Dark | Mobile-first */

:root {
  --bg-main: #fafaf5;
  --bg-card: #fff;
  --bg-table-head: #f0ece4;
  --bg-hero: linear-gradient(135deg, #f5f5dc 0%, #e8f5e9 100%);
  --bg-author: #f7f6f0;
  --bg-faq: #f9f8f3;
  --bg-footer: #1a1a1a;
  --tx-body: #2c2c2c;
  --tx-heading: #0d0d0d;
  --tx-muted: #6b6b6b;
  --tx-footer: #ccc;
  --tx-link: #2e7d32;
  --bd-light: #e0ddd4;
  --bd-card: #ddd8cc;
  --cta-bg: #2e7d32;
  --cta-hover: #1b5e20;
  --cta-text: #fff;
  --cta-alt-bg: #43a047;
  --cta-alt-hover: #388e3c;
  --accent-chess: #8b6914;
  --accent-green-soft: #e8f5e9;
  --accent-pro: #2e7d32;
  --accent-con: #c62828;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-head: Georgia, 'Times New Roman', serif;
  --transition: .25s ease;
}

[data-scheme="dark"] {
  --bg-main: #121215;
  --bg-card: #1c1c22;
  --bg-table-head: #25252d;
  --bg-hero: linear-gradient(135deg, #1a1a22 0%, #1b2e1b 100%);
  --bg-author: #1e1e26;
  --bg-faq: #18181f;
  --bg-footer: #0a0a0e;
  --tx-body: #d4d4d4;
  --tx-heading: #f0f0f0;
  --tx-muted: #8a8a8a;
  --tx-footer: #999;
  --tx-link: #66bb6a;
  --bd-light: #2e2e38;
  --bd-card: #333340;
  --cta-bg: #43a047;
  --cta-hover: #66bb6a;
  --cta-text: #fff;
  --cta-alt-bg: #4caf50;
  --cta-alt-hover: #81c784;
  --accent-chess: #d4a843;
  --accent-green-soft: #1b3a1b;
  --accent-pro: #4caf50;
  --accent-con: #ef5350;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--tx-body);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tx-link); text-decoration: none; transition: color var(--transition); }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--tx-heading); line-height: 1.3; }

/* === LAYOUT === */
._vr3k { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }

/* === HEADER / NAV === */
._hn8m {
  background: var(--bg-card);
  border-bottom: 1px solid var(--bd-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--transition), border var(--transition);
}
._hn8m ._vr3k {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
._hn8m-logo {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tx-heading);
  display: flex;
  align-items: center;
  gap: .5rem;
}
._hn8m-logo span { color: var(--cta-bg); }
._hn8m-chess {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
._uj2p { display: flex; align-items: center; gap: 1.5rem; }
._uj2p a {
  font-size: .9rem;
  color: var(--tx-body);
  font-weight: 500;
  padding: .25rem 0;
}
._uj2p a:hover { color: var(--cta-bg); text-decoration: none; }

/* Dark mode toggle */
._dm1z {
  background: none;
  border: 1px solid var(--bd-light);
  border-radius: var(--radius-sm);
  padding: .35rem .6rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--tx-body);
  transition: border var(--transition), color var(--transition);
}
._dm1z:hover { border-color: var(--cta-bg); }

/* Mobile hamburger */
._mb-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--tx-heading);
  cursor: pointer;
  padding: .25rem;
}

/* === BREADCRUMB === */
._bc5r {
  padding: .75rem 0;
  font-size: .82rem;
  color: var(--tx-muted);
}
._bc5r a { color: var(--tx-muted); }
._bc5r a:hover { color: var(--cta-bg); }
._bc5r span { margin: 0 .4rem; }

/* === HERO / AUTHOR BOX === */
._lc6e {
  background: var(--bg-author);
  border: 1px solid var(--bd-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition), border var(--transition);
}
._lc6e-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--cta-bg);
}
._lc6e-info { flex: 1; }
._lc6e-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--tx-heading);
}
._lc6e-badge {
  display: inline-block;
  background: var(--accent-green-soft);
  color: var(--accent-pro);
  font-size: .72rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 3px;
  margin-left: .5rem;
}
._lc6e-meta {
  font-size: .8rem;
  color: var(--tx-muted);
  margin-top: .2rem;
}

/* === H1 === */
._h1x {
  font-size: 1.75rem;
  margin-bottom: .6rem;
  color: var(--tx-heading);
}

/* === INTRO PARAGRAPH === */
._ip3g {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 780px;
  line-height: 1.8;
}

/* === COMPARISON TABLE === */
._xt5w-wrap {
  overflow-x: auto;
  margin-bottom: 2.5rem;
  border: 1px solid var(--bd-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
._xt5w {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
._xt5w thead { background: var(--bg-table-head); }
._xt5w th {
  padding: .85rem .75rem;
  font-size: .82rem;
  font-weight: 600;
  text-align: left;
  color: var(--tx-heading);
  white-space: nowrap;
  border-bottom: 2px solid var(--bd-light);
}
._xt5w td {
  padding: .75rem;
  font-size: .88rem;
  border-bottom: 1px solid var(--bd-light);
  vertical-align: middle;
  transition: background var(--transition);
}
._xt5w tbody tr:hover td { background: var(--accent-green-soft); }
._xt5w-pos {
  font-weight: 700;
  color: var(--accent-chess);
  font-size: 1rem;
  width: 40px;
  text-align: center;
}
._xt5w-bk {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
}
._xt5w-bk img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: contain;
  background: var(--bg-card);
}
._xt5w-bonus { font-weight: 500; color: var(--accent-chess); }
._xt5w-code {
  background: var(--accent-green-soft);
  padding: .2rem .5rem;
  border-radius: 3px;
  font-family: monospace;
  font-size: .82rem;
}
._gf4s {
  display: inline-block;
  background: var(--cta-bg);
  color: var(--cta-text);
  padding: .55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  transition: background var(--transition), transform .15s ease;
  white-space: nowrap;
}
._gf4s:hover {
  background: var(--cta-hover);
  text-decoration: none;
  transform: translateY(-1px);
}
._gf4s-alt {
  background: var(--cta-alt-bg);
}
._gf4s-alt:hover {
  background: var(--cta-alt-hover);
}

/* === SECTION HEADINGS === */
._sh2 {
  font-size: 1.45rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent-green-soft);
}
._sh3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* === BOOKMAKER REVIEW CARDS === */
._bm7q {
  background: var(--bg-card);
  border: 1px solid var(--bd-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), background var(--transition), border var(--transition);
}
._bm7q:hover { box-shadow: var(--shadow-md); }
._bm7q-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
._bm7q-head img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--bg-main);
  padding: 4px;
}
._bm7q-head h3 {
  font-size: 1.15rem;
  margin: 0;
}
._bm7q-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: .75rem;
}
._bm7q-pros, ._bm7q-cons {
  padding: .75rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
}
._bm7q-pros {
  background: var(--accent-green-soft);
}
._bm7q-cons {
  background: #fbe9e7;
}
[data-scheme="dark"] ._bm7q-cons {
  background: #2a1515;
}
._bm7q-pros li, ._bm7q-cons li {
  padding: .2rem 0 .2rem 1.2rem;
  position: relative;
}
._bm7q-pros li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent-pro);
  font-weight: 700;
}
._bm7q-cons li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  color: var(--accent-con);
  font-weight: 700;
}
._bm7q-text {
  font-size: .92rem;
  margin-bottom: .75rem;
  line-height: 1.75;
}
._bm7q-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

/* === FAQ SECTION === */
._pw2y {
  background: var(--bg-faq);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  transition: background var(--transition);
}
._pw2y-item {
  border-bottom: 1px solid var(--bd-light);
  padding: 1rem 0;
}
._pw2y-item:last-child { border-bottom: none; }
._pw2y-q {
  font-weight: 600;
  font-size: 1rem;
  color: var(--tx-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
._pw2y-q::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--cta-bg);
  transition: transform var(--transition);
}
._pw2y-item.open ._pw2y-q::after { transform: rotate(45deg); }
._pw2y-a {
  font-size: .92rem;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding-top: 0;
}
._pw2y-item.open ._pw2y-a {
  max-height: 300px;
  padding-top: .75rem;
}

/* === UGC COMMENTS === */
._ug8c {
  margin: 2rem 0;
}
._ug8c-item {
  background: var(--bg-card);
  border: 1px solid var(--bd-light);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: .75rem;
  transition: background var(--transition), border var(--transition);
}
._ug8c-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .4rem;
}
._ug8c-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  color: var(--cta-bg);
}
._ug8c-name { font-weight: 600; font-size: .88rem; }
._ug8c-date { font-size: .75rem; color: var(--tx-muted); margin-left: auto; }
._ug8c-stars { color: #f9a825; font-size: .85rem; letter-spacing: 1px; }
._ug8c-text { font-size: .88rem; line-height: 1.65; margin-top: .35rem; }

/* === FOOTER === */
._dk9r {
  background: var(--bg-footer);
  color: var(--tx-footer);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  font-size: .85rem;
}
._dk9r-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
._dk9r h4 {
  color: #f0f0f0;
  font-size: .95rem;
  margin-bottom: .75rem;
}
._dk9r a { color: var(--tx-footer); }
._dk9r a:hover { color: #fff; }
._dk9r li { padding: .25rem 0; }
._dk9r-legal {
  border-top: 1px solid #333;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
._dk9r-disc {
  font-size: .78rem;
  color: #888;
  max-width: 700px;
  line-height: 1.6;
}
._dk9r-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #c62828;
  color: #c62828;
  font-weight: 700;
  font-size: .85rem;
}
._dk9r-rg {
  background: #2a2a2a;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
  font-size: .8rem;
  line-height: 1.6;
  color: #999;
}

/* === COOKIE BANNER === */
._ck3b {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--bd-light);
  padding: 1rem;
  z-index: 200;
  box-shadow: 0 -2px 10px rgba(0,0,0,.15);
  display: none;
  transition: background var(--transition);
}
._ck3b.active { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
._ck3b-text { flex: 1; font-size: .85rem; min-width: 250px; }
._ck3b-text a { text-decoration: underline; }
._ck3b-btns { display: flex; gap: .5rem; }
._ck3b-accept {
  background: var(--cta-bg);
  color: #fff;
  border: none;
  padding: .5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: .85rem;
}
._ck3b-reject {
  background: transparent;
  color: var(--tx-body);
  border: 1px solid var(--bd-light);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .85rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  ._hn8m ._vr3k { height: 52px; }
  ._uj2p { display: none; }
  ._uj2p.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--bd-light);
    padding: 1rem;
    gap: .75rem;
    box-shadow: var(--shadow-md);
  }
  ._mb-toggle { display: block; }
  ._h1x { font-size: 1.35rem; }
  ._sh2 { font-size: 1.2rem; }
  ._lc6e { flex-direction: column; text-align: center; padding: 1rem; }
  ._bm7q-grid { grid-template-columns: 1fr; }
  ._dk9r-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  ._dk9r-legal { flex-direction: column; text-align: center; }
  ._xt5w-wrap { margin: 0 -.5rem 2rem; border-radius: 0; border-left: none; border-right: none; }
  ._ck3b { flex-direction: column; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  ._dk9r-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
  ._h1x { font-size: 2rem; }
  ._bm7q { padding: 1.5rem; }
}

/* === UTILITY === */
._sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
._sponsored-tag {
  display: inline-block;
  font-size: .7rem;
  color: var(--tx-muted);
  border: 1px solid var(--bd-light);
  padding: .1rem .4rem;
  border-radius: 3px;
  margin-left: .5rem;
}

/* === LOGO IMAGE SWITCHING (light/dark) === */
._logo-dark { display: none; }
[data-scheme="dark"] ._logo-light { display: none; }
[data-scheme="dark"] ._logo-dark { display: block; }
._hn8m-logo img { height: 32px; width: auto; }

/* === HERO IMAGE === */
._hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

/* === OPINION PAGE SPECIFIC === */
._rv4p-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-hero);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--bd-light);
}
._rv4p-header img {
  max-width: 180px;
  height: auto;
  object-fit: contain;
}
._rv4p-score {
  text-align: center;
  margin-left: auto;
}
.score-circle {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cta-bg);
  color: #fff;
  font-weight: 700;
  gap: 2px;
}
.score-value {
  font-size: 1.6rem;
  line-height: 72px;
}
.score-max {
  font-size: .85rem;
  opacity: .8;
  line-height: 72px;
}
.score-label {
  font-size: .75rem;
  color: var(--tx-muted);
  margin-top: .3rem;
}

/* Author box (opinion pages) */
._rv4p-meta {
  background: var(--bg-author);
  border: 1px solid var(--bd-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition), border var(--transition);
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--cta-bg);
}
.author-info {
  flex: 1;
  font-size: .9rem;
  line-height: 1.6;
}
.author-info strong {
  color: var(--tx-heading);
}
.author-badge {
  display: inline-block;
  background: var(--accent-green-soft);
  color: var(--accent-pro);
  font-size: .72rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 3px;
}

/* CTA blocks */
.cta-block {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--bd-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.cta-block ._gf4s {
  font-size: 1rem;
  padding: .75rem 2rem;
}
.cta-terms {
  display: block;
  font-size: .75rem;
  color: var(--tx-muted);
  margin-top: .6rem;
}

/* Review body lists */
._bm7q-text ul {
  margin: .75rem 0 1rem 1.5rem;
  list-style: disc;
}
._bm7q-text li {
  margin-bottom: .35rem;
}
._bm7q-text p {
  margin-bottom: 1rem;
}

/* Related reviews */
.related-reviews {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--bg-faq);
  border-radius: var(--radius-md);
}
.related-list {
  margin-top: .75rem;
}
.related-list li {
  padding: .4rem 0 .4rem 1.2rem;
  position: relative;
}
.related-list li::before {
  content: "♞";
  position: absolute;
  left: 0;
  color: var(--accent-chess);
}

/* Opinion page responsive */
@media (max-width: 768px) {
  ._rv4p-header {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }
  ._rv4p-score { margin-left: 0; }
  ._rv4p-meta { flex-direction: column; text-align: center; }
  .cta-block { padding: 1rem; }
}

/* === LEGAL PAGES === */
._lg7p h2 { font-size: 1.3rem; margin: 2rem 0 .75rem; }
._lg7p h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
._lg7p p { margin-bottom: 1rem; }
._lg7p ul { margin: .5rem 0 1rem 1.5rem; list-style: disc; }
._lg7p li { margin-bottom: .3rem; }

/* === 404 PAGE === */
._e404 {
  text-align: center;
  padding: 4rem 1rem;
}
._e404 h1 {
  font-size: 4rem;
  color: var(--accent-chess);
}
._e404 p {
  font-size: 1.1rem;
  margin: 1rem 0 2rem;
  color: var(--tx-muted);
}

/* === CONTACT FORM === */
._cf9x label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .3rem;
  color: var(--tx-heading);
}
._cf9x input, ._cf9x textarea {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--bd-light);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-family: var(--font-main);
  background: var(--bg-card);
  color: var(--tx-body);
  margin-bottom: 1rem;
  transition: border var(--transition);
}
._cf9x input:focus, ._cf9x textarea:focus {
  outline: none;
  border-color: var(--cta-bg);
}
._cf9x textarea { min-height: 140px; resize: vertical; }
