/**
 * CasasDeApuestasStats — pan-Hispanic sister-site theme (not Spain-specific).
 * Loads after site.css; overrides tokens only (same layout/components).
 */
:root {
  --bg: #0c1219;
  --card: #141c26;
  --sidebar: #080d12;
  --text: #eef2f6;
  --muted: #8d99a8;
  /* Teal — neutral across Hispanic markets; distinct from EN blue and DE green */
  --accent: #0d9488;
  --accent-dim: #0c3530;
  --accent-bright: #2dd4bf;
  --warm: #e8a54b;
  --border: #273140;
}

/* Brand wordmark */
body.site-es .logo-brand--img {
  display: block;
  line-height: 0;
}
body.site-es .logo-brand__img {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 100%;
}
body.site-es .logo-brand--img:hover .logo-brand__img {
  filter: brightness(1.08);
}
body.site-es .logo-brand__word {
  color: var(--text);
}
body.site-es .logo-brand__stats {
  color: var(--accent-bright);
}
body.site-es .logo-brand:hover .logo-brand__stats {
  color: #5eead4;
}

body.site-es .sidebar-brand {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 0.25rem;
}
body.site-es .sidebar-tagline {
  color: var(--accent-bright);
  font-weight: 500;
}

body.site-es .site-topbar {
  border-bottom: 3px solid var(--accent);
}

body.site-es .topbar-link--accent {
  color: var(--accent-bright);
  border-color: rgba(13, 148, 136, 0.35);
  background: var(--accent-dim);
}

body.site-es .link-review:hover {
  background: #0f766e;
}

body.site-es .btn-visit {
  background: linear-gradient(135deg, var(--accent) 0%, #0f766e 100%);
  border-color: rgba(13, 148, 136, 0.5);
}
body.site-es .btn-visit:hover {
  background: linear-gradient(135deg, #14b8a6 0%, var(--accent) 100%);
}

body.site-es .nav-link--primary {
  color: var(--accent-bright);
}

body.site-es .rg-helper-box {
  margin: 0 0 1.35rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-dim) 0%, transparent 100%);
}
body.site-es .rg-helper-box__title {
  margin: 0 0 0.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-bright);
}
body.site-es .rg-helper-box__links {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  font-size: 0.88rem;
}
body.site-es .rg-helper-box__links a {
  color: var(--accent-bright);
}
body.site-es .rg-helper-box__intro,
body.site-es .rg-helper-box__note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}
body.site-es .country-disclaimer {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

body.site-es .rg-hub {
  margin: 2rem 0 1.5rem;
}
body.site-es .rg-hub__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 1rem;
}
body.site-es .rg-hub__card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(13, 148, 136, 0.04);
}
body.site-es .rg-hub__card-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
body.site-es .rg-hub__card-intro,
body.site-es .rg-hub__card-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}
body.site-es .rg-hub__card-links {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}
body.site-es .rg-hub__card-links a {
  color: var(--accent-bright);
}

body.site-es .footer-rg-label,
body.site-es .footer-group-label {
  color: var(--accent-bright);
}

body.site-es .bm-rank-badge__num {
  background: var(--accent-dim);
  border-color: rgba(13, 148, 136, 0.35);
  color: #99f6e4;
}

body.site-es .card {
  border-color: var(--border);
}

body.site-es .hub-grid h2 {
  color: var(--text);
  border-bottom-color: var(--border);
}

body.site-es .hub-links a:hover {
  color: var(--accent-bright);
}

body.site-es .footer-rg-text {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
}
body.site-es .footer-rg-text:hover {
  color: var(--accent-bright);
  border-color: rgba(13, 148, 136, 0.4);
}

body.site-es .es-list-highlight {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  max-width: 16rem;
}

body.site-es .compare-table td.cell-actions .link-review {
  margin-right: 0.45rem;
}

body.site-es .bm-facet-links a {
  color: var(--accent-bright);
  text-decoration: none;
}
body.site-es .bm-facet-links a:hover {
  text-decoration: underline;
}

/* Cookie consent — bottom panel; keep page scrollable (long brand tables) */
.cookie-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(to top, rgba(6, 10, 16, 0.92) 0%, rgba(6, 10, 16, 0.45) 55%, transparent 100%);
  pointer-events: none;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__panel {
  pointer-events: auto;
  width: 100%;
  max-width: 40rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.35rem 1.35rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.cookie-consent__title {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.cookie-consent__text {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.cookie-consent__text strong {
  color: var(--text);
  font-weight: 600;
}

.cookie-consent__links {
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.cookie-consent__links a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-consent__btn {
  flex: 1 1 9rem;
  appearance: none;
  border-radius: 10px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cookie-consent__btn--reject {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.cookie-consent__btn--reject:hover {
  border-color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.cookie-consent__btn--accept {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #042f2e;
}

.cookie-consent__btn--accept:hover {
  background: #14b8a6;
  border-color: #14b8a6;
}

.cookie-consent__btn:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .cookie-consent {
    align-items: center;
  }
}

body.site-es .footer-links a.js-cookie-settings {
  cursor: pointer;
}
