/* TopPlayGuide — topplayguide.com — main stylesheet */

:root,
html[data-theme="light"] {
  --bg-page: #f4f6fa;
  --bg-elevated: #ffffff;
  --bg-soft: #e8eef3;
  --text: #0f172a;
  --text-muted: #475569;
  --accent: #0d9488;
  --accent-dim: #0f766e;
  --accent-soft: rgba(13, 148, 136, 0.12);
  --border: rgba(15, 23, 42, 0.1);
  --danger: #dc2626;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --font: "DM Sans", system-ui, sans-serif;
  --header-pad-y: 0.85rem;
  --theme-color: #0d9488;
  /* Footer: fondo oscuro para logos RG claros/blancos */
  --footer-bg: #1e293b;
  --footer-fg: #f8fafc;
  --footer-muted: #cbd5e1; /* slate-300 */
  --footer-accent-link: #5eead4;
  --footer-border: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] {
  --bg-page: #0c1222;
  --bg-elevated: #151d2e;
  --bg-soft: #1a2438;
  --text: #e8eef7;
  --text-muted: #94a3b8;
  --accent: #2dd4bf;
  --accent-dim: #5eead4;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  --theme-color: #0f172a;
  --footer-bg: #0f172a;
  --footer-fg: #f1f5f9;
  --footer-muted: #94a3b8;
  --footer-accent-link: #2dd4bf;
  --footer-border: rgba(148, 163, 184, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: var(--accent-dim);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.disclaimer-bar {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.disclaimer-bar strong {
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-page) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--header-pad-y) 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

.logo:hover {
  text-decoration: none;
  opacity: 0.88;
}

.logo--brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

a.logo--brand:hover {
  opacity: 0.92;
}

.logo__img {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(240px, 58vw);
  object-fit: contain;
  object-position: left center;
}

.nav-main {
  display: flex;
  gap: 0.35rem 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-main a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
}

.nav-main a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-main svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  background: rgba(220, 38, 38, 0.12);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Hero split — not title+long lead+single CTA */
.hero-split {
  position: relative;
  overflow: hidden;
}

.hero-split__grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  min-height: clamp(340px, 52vh, 520px);
}

.hero-split__text h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-split__tagline {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 28ch;
}

.hero-split__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.hero-split__skip {
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-split__visual {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  min-height: 220px;
  background: var(--bg-soft) url("../../topplayguide-com-media/topplayguide-hero-ambient.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-split__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-split__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-split__visual {
    min-height: 200px;
    order: -1;
  }
}

/* Sections rhythm */
.section {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--tight {
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
}

.section--airy {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.section--muted {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

.section__title {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.section__lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 52ch;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
  color: var(--text);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--accent);
}

/* Branching A/B */
.branch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 900px;
}

.branch__col {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.branch__col--a {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-elevated));
}

.branch__col--b {
  background: color-mix(in srgb, #f59e0b 9%, var(--bg-elevated));
}

.branch__col h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.branch__col p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.branch__col--a p {
  max-width: 38ch;
}

.branch__col--b p {
  max-width: 44ch;
}

@media (max-width: 720px) {
  .branch {
    grid-template-columns: 1fr;
  }
}

/* Editorial */
.editorial {
  max-width: 48ch;
  margin-inline: 0;
}

.editorial p {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.editorial__pull {
  margin: 1.75rem 0;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--bg-elevated);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  box-shadow: var(--shadow);
}

/* Brands split layout */
.brands-split {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.brands-split__intro .section__lead {
  margin-bottom: 0;
}

.brands-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .brands-split {
    grid-template-columns: 1fr;
  }
}

/* Brand: large card */
.brand-card-lg {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}

.brand-card-lg__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.brand-card-lg__logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  object-position: left;
}

.brand-rating {
  text-align: right;
}

.brand-rating__stars {
  color: #f59e0b;
  letter-spacing: 0.05em;
  font-size: 1rem;
}

.brand-rating__label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  max-width: 14ch;
  margin-left: auto;
}

.brand-card-lg p {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 60ch;
}

/* Brand: inline row */
.brand-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.brand-inline__logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.brand-inline__body {
  flex: 1;
  min-width: 200px;
}

.brand-inline__body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Brand: banner */
.brand-banner {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(105deg, var(--bg-elevated), color-mix(in srgb, var(--accent) 14%, var(--bg-elevated)));
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.brand-banner__logo {
  height: 36px;
  width: auto;
}

.brand-banner__text {
  flex: 1;
  min-width: 200px;
}

.brand-banner__text p {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.brand-banner__note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Example block — hidden on small screens per plan */
.example-block {
  padding: 1.25rem 0;
}

.example-block h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.example-block > p {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.example-block ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (max-width: 600px) {
  .example-block {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.15s, filter 0.15s, background 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
}

html[data-theme="light"] .btn--primary {
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(1.06);
}

.btn--ghost {
  background: transparent;
  color: var(--accent-dim);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--accent-soft);
}

.btn--wide {
  padding-inline: 1.85rem;
  min-width: 12rem;
}

.btn--compact {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}

/* Footer — fondo oscuro para contraste con logos blancos de juego responsable */
.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  padding: 2.5rem 0 1.75rem;
  color: var(--footer-fg);
}

.footer-preface {
  max-width: 720px;
  margin: 0 auto 1.75rem;
  padding-inline: 1.25rem;
  text-align: center;
}

.footer-preface p {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--footer-muted);
  line-height: 1.55;
}

.footer-preface strong {
  color: var(--footer-fg);
}

.footer-preface p:last-child {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.footer-rg-chaos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem 1.25rem;
  justify-items: center;
  max-width: 980px;
  margin: 0 auto 2rem;
  padding-inline: 1rem;
}

.footer-rg-chaos a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  transition: transform 0.2s;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.footer-rg-chaos a:hover {
  transform: scale(1.04) rotate(0deg) !important;
  text-decoration: none;
}

.footer-rg-chaos img {
  height: 50px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.footer-rg-chaos a:nth-child(1) {
  transform: rotate(-1.6deg);
}

.footer-rg-chaos a:nth-child(2) {
  transform: rotate(1.2deg);
}

.footer-rg-chaos a:nth-child(3) {
  transform: rotate(-0.8deg);
}

.footer-rg-chaos a:nth-child(4) {
  transform: rotate(1.5deg);
}

.footer-rg-chaos a:nth-child(5) {
  transform: rotate(-1deg);
}

.footer-rg-chaos a:nth-child(6) {
  transform: rotate(0.9deg);
}

@media (max-width: 600px) {
  .footer-rg-chaos a {
    transform: none !important;
  }
}

.footer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}

#theme-toggle {
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--footer-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--footer-fg);
  cursor: pointer;
  font-family: inherit;
}

#theme-toggle:hover {
  border-color: var(--footer-accent-link);
  background: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: var(--footer-muted);
  border-top: 1px solid var(--footer-border);
  padding-top: 1.25rem;
}

.footer-bottom a {
  color: var(--footer-accent-link);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.footer-links a {
  color: var(--footer-muted);
  font-size: 0.86rem;
}

.footer-links a:hover {
  color: var(--footer-accent-link);
}

/* Brand inner pages */
.brand-hero {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.brand-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.brand-hero__logo {
  max-height: 54px;
  width: auto;
}

html[data-theme="dark"] .brand-hero__logo--lightish {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .brand-logo--darkmode-invert {
  filter: brightness(0) invert(1);
}

.prose {
  max-width: 700px;
}

.prose h2 {
  font-size: 1.22rem;
  margin: 2rem 0 0.65rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.cta-box {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.cta-box p {
  margin: 0 0 0.85rem;
}

/* Legal */
.legal-page main {
  padding: 2rem 0 3rem;
}

.legal-page h1 {
  font-size: 1.85rem;
  margin: 0 0 1rem;
}

.legal-page h2 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.55rem;
  color: var(--accent-dim);
}

.legal-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* Age gate & cookies */
.age-gate,
.cookie-banner {
  position: fixed;
  z-index: 10000;
}

.age-gate {
  inset: 0;
  background: color-mix(in srgb, var(--bg-page) 94%, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.age-gate[hidden],
.cookie-banner[hidden] {
  display: none !important;
}

.age-gate__box {
  max-width: 420px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.age-gate__box h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
}

.age-gate__box p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cookie-banner {
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 520px;
  text-align: center;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}

.page-menores .hero-simple {
  padding: 3rem 0;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.page-menores .hero-simple h1 {
  font-size: 1.6rem;
}

.page-error main {
  padding: 4rem 1.25rem;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.page-error h1 {
  font-size: 1.75rem;
}

.photo-credit {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem 1rem 1.25rem;
}
