/* ============================================================
   WEEMOOGAME.COM — Main Stylesheet
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --bg:          #07091a;
  --bg2:         #0c1028;
  --bg3:         #121833;
  --accent:      #6c5ce7;
  --accent-lt:   #a29bfe;
  --accent-glow: rgba(108, 92, 231, 0.28);
  --gold:        #fdc830;
  --gold2:       #f37335;
  --text:        #dce1f5;
  --text-muted:  #7a889f;
  --border:      rgba(255, 255, 255, 0.07);
  --radius-sm:   8px;
  --radius:      16px;
  --container:   900px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: relative;
  padding: 90px 0 110px;
  background: var(--bg2);
  overflow: hidden;
}

/* Purple radial glow */
.site-header::before {
  content: '';
  position: absolute;
  width: 720px;
  height: 520px;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(108,92,231,0.38) 0%, transparent 68%);
  pointer-events: none;
  animation: header-glow 7s ease-in-out infinite alternate;
}

@keyframes header-glow {
  from { opacity: 0.7; transform: translateX(-50%) scale(1);    }
  to   { opacity: 1;   transform: translateX(-50%) scale(1.15); }
}

/* Grid dot overlay */
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.site-header .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 5.5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  background: linear-gradient(140deg, #ffffff 30%, var(--accent-lt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 680px;
  margin: 0 auto;
}

/* ============================================================
   BRANDS SECTION
   ============================================================ */
.brands-section {
  padding: 48px 0 64px;
  background: var(--bg);
}

.brand-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.brand-card {
  position: relative;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.065) 0%,
    rgba(255,255,255,0.018) 100%);
  border: 1px solid rgba(108,92,231,0.3);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  overflow: hidden;
  transition: transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35),
              inset 0 0 0 1px rgba(108,92,231,0.07);
}

/* Shimmer sweep */
.brand-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(255,255,255,0.055) 50%,
    transparent 75%
  );
  background-size: 260% 100%;
  animation: shimmer 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%   { background-position: -260% 0; }
  100% { background-position:  260% 0; }
}

.brand-card-link:hover .brand-card {
  transform: translateY(-3px);
  border-color: rgba(108,92,231,0.58);
  box-shadow: 0 18px 64px rgba(108,92,231,0.24),
              inset 0 0 0 1px rgba(108,92,231,0.2);
}

/* Badge */
.brand-card__badge {
  position: absolute;
  top: 12px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Inner layout */
.brand-card__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
}

.brand-card__left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.brand-card__logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-card__bonus { flex: 1; min-width: 0; }

.bonus-label {
  display: inline-block;
  background: rgba(108,92,231,0.15);
  border: 1px solid rgba(108,92,231,0.35);
  color: var(--accent-lt);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 7px;
}

.brand-card__bonus p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
}

/* Right side */
.brand-card__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.brand-card__rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.stars { display: flex; gap: 3px; }

.stars img { height: 15px; width: auto; }

.score {
  font-family: 'Syne', sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CTA */
.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  color: #1c0900;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 26px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: pulse-cta 3s ease-in-out infinite;
}

@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 4px 20px rgba(253,200,48,0.36); }
  50%       { box-shadow: 0 4px 32px rgba(253,200,48,0.62); }
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(253,200,48,0.56) !important;
  animation-play-state: paused;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section { padding: 72px 0; }

.content-section--alt {
  background: var(--bg2);
  position: relative;
}

.content-section--alt::before,
.content-section--alt::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}
.content-section--alt::before { top: 0; }
.content-section--alt::after  { bottom: 0; }

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.45rem, 3.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--gold);
  margin-bottom: 26px;
}

.section-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section-text p:last-child { margin-bottom: 0; }

/* ── Scroll fade-up ───────────────────────────────────────── */
.animate-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   18+ DISCLAIMER
   ============================================================ */
.disclaimer {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.disclaimer .container {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.disclaimer__icon {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.85;
}

.disclaimer__text {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg2);
  padding-top: 64px;
}

/* Info columns */
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer__col h3 {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-top: 24px;
  margin-bottom: 10px;
}

.footer__col h3:first-child { margin-top: 0; }

.footer__col p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}
.footer__col p:last-child { margin-bottom: 0; }

/* Logo row */
.footer__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.footer__logos a {
  display: block;
  opacity: 0.72;
  transition: opacity 0.3s, transform 0.3s;
}

.footer__logos a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer__logos img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* Responsible gambling images */
.footer__responsible {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.footer__responsible a {
  display: block;
  opacity: 0.82;
  transition: opacity 0.3s, transform 0.3s;
}

.footer__responsible a:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.03);
}

.footer__responsible a img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.footer__arrow {
  height: 18px;
  width: auto;
  opacity: 0.32;
  flex-shrink: 0;
}

/* Phone row */
.footer__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.footer__phone-logo {
  display: block;
  opacity: 0.75;
  transition: opacity 0.3s;
}

.footer__phone-logo:hover { opacity: 1; }

.footer__phone-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.footer__phone-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.phone-number {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.phone-desc {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 230px;
  line-height: 1.4;
}

/* Bottom bar */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer__nav a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.25s;
}

.footer__nav a:hover { color: var(--text); }

.footer__copyright {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  z-index: 9999;
  inset: auto 0 0 0;
  background: var(--bg3);
  border-top: 1px solid rgba(108,92,231,0.32);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
  padding: 18px 24px;
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 220px;
  font-size: 13px;
  color: var(--text-muted);
}

.cookie-banner__text a {
  color: var(--accent-lt);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s, box-shadow 0.25s, color 0.25s, border-color 0.25s;
}

.btn-cookie--accept {
  background: linear-gradient(135deg, var(--accent), var(--accent-lt));
  color: #fff;
}

.btn-cookie--accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px var(--accent-glow);
}

.btn-cookie--more {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-cookie--more:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
}

/* ============================================================
   POLICY PAGES
   ============================================================ */
.page-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.back-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s;
}

.back-link:hover { color: var(--text); }

.policy-content { padding: 72px 0 80px; }

.policy-content h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1.2;
}

.last-updated {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 40px;
  background: var(--bg3);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.policy-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 12px;
}

.policy-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.policy-content ul {
  color: var(--text-muted);
  padding-left: 22px;
  margin-bottom: 16px;
}

.policy-content li { margin-bottom: 8px; line-height: 1.65; }

.policy-content a {
  color: var(--accent-lt);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Policy footer (simplified) */
.policy-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.policy-footer .footer__nav { justify-content: center; }

.policy-footer .footer__copyright { text-align: center; }

.policy-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  /* Extra padding at header bottom for card overlap */
  .site-header {
    padding-bottom: 130px;
  }

  /* Card section overlaps header by ~90px */
  .brands-section {
    margin-top: -90px;
    padding: 0 0 48px;
    position: relative;
    z-index: 10;
  }

  /* Remove container padding — card spans full screen width */
  .brands-section .container {
    padding: 0;
    max-width: none;
  }

  .brand-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 14px 16px 18px;
  }

  /*
   * Mobile card layout — up to ~300px tall
   *
   * ┌──────────────────────────────────┐
   * │ ★ RECOMENDADO                    │  ← badge (absolute)
   * │                                  │
   * │  [logo]  BONO DE BIENVENIDA      │  ← row 1: logo + bonus
   * │          Doblamos el primer...   │
   * │                                  │
   * │  ★★★★★  9.8   [ JUGAR AHORA ]   │  ← row 2: rating + CTA
   * └──────────────────────────────────┘
   */
  .brand-card__inner {
    flex-direction: column;
    gap: 14px;
    margin-top: 36px;
  }

  /* Row 1 — logo on the left, bonus text on the right */
  .brand-card__left {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    flex: unset;
    width: 100%;
  }

  .brand-card__logo img {
    flex-shrink: 0;
    height: 32px;
  }

  /* Allow bonus text to wrap naturally (up to 2 lines) */
  .brand-card__bonus p {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  /* Row 2 — stars + score on the left, CTA button on the right */
  .brand-card__right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    flex-shrink: unset;
  }

  /* Stars and score sit side-by-side in a single line */
  .brand-card__rating {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__nav { justify-content: center; }

  /* Responsible gambling - hide arrows on mobile */
  .footer__arrow { display: none; }

  .footer__responsible {
    gap: 8px;
    padding: 24px 12px;
  }

  .footer__responsible a img { height: 50px; }

  /* Cookie */
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-banner__actions { justify-content: center; }
}

@media (max-width: 480px) {
  .footer__logos { gap: 20px; }

  .footer__phone {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .phone-desc { text-align: center; }
}
