body[data-page='juego-landing'] {
  background: radial-gradient(circle at top right, #ffeecf 0%, #f2f2f2 48%);
}

.juego-hero {
  background: linear-gradient(125deg, #050505 0%, #171717 55%, #262626 100%);
}

.hero-overlay-juego {
  background: url(./assets/background_el.jpg) no-repeat center center;
  background-size: cover;
  opacity: 0.08;
}

.juego-hero-content {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding-top: 2.25rem;
  padding-bottom: 1.5rem;
}

.juego-main-logo {
  width: min(540px, 90vw);
  display: block;
  filter: drop-shadow(0 16px 38px rgba(255, 255, 255, 1));
}

.juego-intro {
  max-width: 820px;
  line-height: 1.7;
  font-size: 1.1rem;
  border: 1px solid var(--brand);
  border-radius: 12px;
  padding: 15px 10px;
}

.juego-layout {
  margin-bottom: 1.6rem;
  min-width: 0;
}

.juego-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fff8ef 100%);
  min-width: 0;
}

.juego-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.juego-card {
  border: 1px solid #efcf9e;
  border-radius: 14px;
  padding: 0.9rem;
  background: #fffefb;
}

.juego-card h3 {
  margin: 0 0 0.45rem;
  font-family: Outfit, sans-serif;
}

.juego-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

#como-jugar .juego-card a,
#como-jugar .pricing-note a {
  color: #9b651f;
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1px dashed rgba(155, 101, 31, 0.42);
}

#como-jugar .juego-card a:hover,
#como-jugar .juego-card a:focus-visible,
#como-jugar .pricing-note a:hover,
#como-jugar .pricing-note a:focus-visible {
  color: #7b4e16;
  border-bottom-color: rgba(123, 78, 22, 0.85);
}

.pricing-wrap {
  margin-top: 0.8rem;
  overflow-x: auto;
  min-width: 0;
}

.pricing-table {
  width: 100%;
  border-collapse: separate;
  min-width: 640px;
  background: #fff;
  border: 1px solid #efcf9e;
  border-radius: 14px;
  overflow: hidden;
}

.pricing-table th,
.pricing-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}

.pricing-table td:nth-child(2),
.pricing-table th:nth-child(2) {
  white-space: nowrap;
  min-width: 120px;
  text-align: center;
  font-weight: 800;
  color: #7b5620;
  font-variant-numeric: tabular-nums;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.license-flow {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.license-flow article {
  border: 1px solid #efcf9e;
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem;
}

.license-flow h3 {
  margin: 0 0 0.45rem;
  font-family: Outfit, sans-serif;
}

.license-flow p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.rules-list {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.rules-list li {
  line-height: 1.5;
  color: #2c3038;
}

.rules-layout {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.8rem;
}

.rules-layout[hidden] {
  display: none !important;
}

.rules-soon-card {
  margin-top: 0.8rem;
  border: 1px solid #efcf9e;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdfa 0%, #fff4e2 100%);
  padding: 1rem;
}

.rules-soon-card h3 {
  margin: 0 0 0.45rem;
  font-family: Outfit, sans-serif;
}

.rules-soon-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.rule-card {
  border: 1px solid #efcf9e;
  border-radius: 14px;
  background: #fff;
  padding: 0.95rem;
}

.rule-card h3 {
  margin: 0 0 0.55rem;
  font-family: Outfit, sans-serif;
}

.rule-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.rule-card ul,
.rule-card ol {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.38rem;
}

.rule-card li {
  color: #2c3038;
  line-height: 1.52;
}

.rule-highlight {
  margin-top: 0.6rem;
  border-left: 4px solid #f9af5c;
  background: #fff5e7;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  color: #4d4f53;
  font-weight: 700;
}

@media (max-width: 900px) {
  .juego-grid,
  .license-flow {
    grid-template-columns: 1fr;
  }

  .juego-main-logo {
    width: min(500px, 95vw);
  }
}

@media (max-width: 800px) {
  body[data-page='juego-landing'] {
    overflow-x: hidden;
  }

  .juego-hero-content {
    padding-top: 1.6rem;
  }

  .juego-intro {
    text-align: left;
    overflow-wrap: anywhere;
  }

  .juego-panel {
    overflow: hidden;
  }

  .juego-panel .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .juego-card,
  .license-flow article,
  .rules-soon-card {
    padding: 0.82rem;
    overflow-wrap: anywhere;
  }

  .juego-card h3,
  .license-flow h3,
  .rules-soon-card h3 {
    font-size: 1.03rem;
  }

  .pricing-table {
    min-width: 0;
  }

  .pricing-table,
  .pricing-table thead,
  .pricing-table tbody,
  .pricing-table tr,
  .pricing-table th,
  .pricing-table td {
    display: block;
    width: 100%;
  }

  .pricing-table thead {
    display: none;
  }

  .pricing-table tr {
    border-bottom: 1px solid var(--line);
    padding: 0.5rem;
  }

  .pricing-table tr:last-child {
    border-bottom: none;
  }

  .pricing-table td {
    border: 0;
    padding: 0.4rem 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .pricing-table td:nth-child(1)::before {
    content: 'Concepto';
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: #5d6b82;
    margin-bottom: 0.16rem;
  }

  .pricing-table td:nth-child(2)::before {
    content: 'Valor';
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: #5d6b82;
    margin-bottom: 0.16rem;
  }

  .pricing-table td:nth-child(3)::before {
    content: 'Detalle';
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: #5d6b82;
    margin-bottom: 0.16rem;
  }
}
