/* GuiaJugada — minimal dark theme */
:root {
  --bg: #0c1222;
  --bg-elevated: #141c2f;
  --surface: #1a2438;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #34d399;
  --accent-hover: #6ee7b7;
  --border: rgba(148, 163, 184, 0.12);
  --radius: 14px;
  --font: "DM Sans", system-ui, sans-serif;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 18, 34, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.nav-main a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-main a:hover {
  color: var(--text);
}

.age-banner {
  background: linear-gradient(90deg, #422006, #78350f);
  color: #fef3c7;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.hero {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  margin-bottom: 3rem;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    rgba(12, 18, 34, 0.92) 45%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.75rem;
  max-width: 36rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 1rem;
  font-weight: 600;
}

.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
}

.content-section p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.content-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .content-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.content-card {
  background: rgba(26, 36, 56, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.content-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.content-card p,
.content-card ul {
  margin: 0;
  color: var(--text-muted);
}

.content-card ul {
  padding-left: 1.1rem;
}

.content-card li + li {
  margin-top: 0.45rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.highlight-box {
  border-left: 3px solid var(--accent);
  padding: 1rem 1rem 1rem 1.1rem;
  background: rgba(15, 23, 42, 0.45);
  border-radius: 0 12px 12px 0;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

.card-casino {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card-brand {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
}

.card-brand--logo {
  font-size: inherit;
  font-weight: 400;
  gap: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-operator-logo {
  max-height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.card-brand small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0;
}

.card-brand:not(.card-brand--logo) small {
  margin-top: 0.35rem;
}

.card-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.card-list li {
  margin-bottom: 0.5rem;
}

.card-list li:last-child {
  margin-bottom: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: #042f2e !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #064e3b !important;
  text-decoration: none !important;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: transparent;
  color: var(--text-muted) !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
}

.btn-secondary:hover {
  color: var(--text) !important;
  border-color: var(--text-muted);
  text-decoration: none !important;
}

.card-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: rgba(26, 36, 56, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.faq-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 2.5rem 1.25rem 6rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-block {
  margin-bottom: 2rem;
}

.footer-block h2 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-weight: 600;
}

.footer-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem 1.5rem;
  align-items: center;
}

.footer-logo-link {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.15s;
}

.footer-logo-link:hover {
  opacity: 0.92;
  text-decoration: none;
}

.footer-logo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.footer-logo-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
}

.footer-logo-static {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-badge-18 {
  width: 56px;
  height: auto;
  max-width: 72px;
  opacity: 0.95;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.page-legal main {
  padding-top: 2rem;
}

.legal-doc h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.legal-lead {
  max-width: 68ch;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.legal-doc .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.legal-doc h2 {
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.legal-doc p,
.legal-doc ul {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.legal-doc ul {
  padding-left: 1.25rem;
}

.legal-doc a {
  word-break: break-word;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
}

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: min(100%, 280px);
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.layout main {
  flex: 1;
}

/* ——— Mobile / small screens ——— */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .logo {
    font-size: 1.15rem;
    text-align: center;
  }

  .nav-main {
    justify-content: center;
    gap: 0.5rem 0.85rem;
    row-gap: 0.45rem;
  }

  .nav-main a {
    font-size: 0.82rem;
    padding: 0.35rem 0;
  }

  .age-banner {
    font-size: 0.75rem;
    line-height: 1.4;
    padding: 0.5rem 0.75rem;
  }

  main {
    padding: 1.5rem 1rem 2.5rem;
  }

  .hero {
    min-height: 200px;
    margin-bottom: 1.75rem;
    border-radius: var(--radius);
  }

  .hero-content {
    padding: 1.25rem 1rem 1.5rem;
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 6.5vw, 1.85rem);
    line-height: 1.2;
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .content-section {
    margin-bottom: 2.25rem;
  }

  .content-section h2 {
    line-height: 1.25;
  }

  .content-card {
    padding: 1.15rem;
  }

  .inline-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .highlight-box {
    padding: 0.9rem 0.95rem;
  }

  .card-casino {
    padding: 1.25rem;
  }

  .card-operator-logo {
    max-height: 46px;
    max-width: min(200px, 100%);
  }

  .btn-primary {
    width: 100%;
    min-height: 48px;
    padding: 0.9rem 1.25rem;
  }

  .faq-item {
    padding: 1rem;
  }

  .faq-item h3 {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .site-footer {
    padding: 1.75rem 1rem
      calc(7.5rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-logos-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
  }

  .footer-logo-link {
    width: auto;
    max-width: min(240px, 88vw);
  }

  .footer-logo-img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 46px;
    height: auto;
    margin-inline: auto;
    object-fit: contain;
    object-position: center;
  }

  .footer-logo-static {
    justify-content: center;
    width: 100%;
  }

  .footer-badge-18 {
    width: 40px;
    max-width: 44px;
  }

  .footer-bottom p {
    text-align: center;
    line-height: 1.5;
  }

  .page-legal main {
    padding-top: 1.25rem;
  }

  .legal-doc h1 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .legal-doc h2 {
    font-size: 1.05rem;
    margin: 1.5rem 0 0.65rem;
    line-height: 1.35;
  }

  .cookie-banner {
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .cookie-banner p {
    flex: none;
    min-width: 0;
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-actions .btn-primary,
  .cookie-actions .btn-secondary {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .nav-main {
    gap: 0.4rem 0.6rem;
  }

  .nav-main a {
    font-size: 0.78rem;
  }
}
