/* =========================================
   JugarFacilOnline.com — Main Stylesheet
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Accent */
  --gold: #f0a500;
  --gold-hover: #e8b84b;

  /* Backgrounds — warm dark tones, never cold neutral */
  --dark-bg:  #0e0d0b;   /* warm near-black */
  --card-bg:  #191714;   /* warm dark card */
  --surface:  #201e1b;   /* warm dark surface */
  --border:   #2d2924;   /* warm dark border */

  /* Text — cream scale, medium contrast */
  --text-primary:   #ede7de;   /* warm cream instead of pure white */
  --text-secondary: #968e83;   /* warm mid-gray */
  --text-muted:     #5e5851;   /* warm muted */

  --green-badge: #16a34a;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(5,4,2,0.5);
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

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

a:hover {
  color: var(--gold-hover);
}

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { color: var(--text-secondary); }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   TOP BAR
   ========================================= */
.top-bar {
  background-color: #0b0a08;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item .badge-18 {
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.top-bar-item a {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.top-bar-item a:hover {
  color: var(--gold);
}

/* =========================================
   HEADER / NAV
   ========================================= */
.site-header {
  background-color: rgba(14, 13, 11, 0.96);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
  border-bottom: 1px solid var(--border);
}

/* subtle diagonal texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(240,165,0,0.06) 0%, transparent 50%),
    url('https://images.unsplash.com/photo-1596838132731-3301c3fd4317?auto=format&fit=crop&w=1400&q=40');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  z-index: 0;
}

/* faint left accent line */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  z-index: 1;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 48px;
}

/* ---- Left side ---- */
.hero-left {
  flex: 1 1 0;
  min-width: 0;
}

.hero-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  opacity: 0.8;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 36px;
  line-height: 1;
}

.hero-heading-top {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero-heading-big {
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.88;
  background: linear-gradient(120deg, #ede7de 35%, #f0a500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-bottom: 6px;
}

.hero-heading-bottom {
  font-size: clamp(1.2rem, 2.8vw, 1.9rem);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

/* ---- Stats row ---- */
.hero-stats-row {
  display: inline-flex;
  align-items: stretch;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-stat {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.hero-stat strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.hero-stat span {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.hero-stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* ---- Right side ---- */
.hero-right {
  flex-shrink: 0;
}

.hero-trust-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  min-width: 180px;
  position: relative;
  box-shadow: 0 0 40px rgba(240, 165, 0, 0.08);
}

.hero-trust-icon {
  display: block;
  font-size: 2.2rem;
  color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(240,165,0,0.45));
  margin-bottom: 16px;
  line-height: 1;
}

.hero-trust-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.hero-trust-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-trust-detail {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero-trust-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
}

/* =========================================
   CASINO CARD — SPLIT LAYOUT
   ========================================= */
.casino-list {
  /* padding set in SPACING OVERRIDES */
}

.casino-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0;
}

.section-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ---- Badge (shared) ---- */
.badge-recommended {
  background: var(--green-badge);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

/* =========================================
   SPACING & VERTICAL RHYTHM OVERRIDES
   =========================================
   Each zone has its own deliberate density.
   Hero → casino list → A/B tracks → footer
   follow a tight–air–tight–air pattern.
   ========================================= */

/* ── Hero: generous, asymmetric (more air below) ── */
.hero {
  padding: 56px 0 80px;
}

/* ── Casino list: tight — the banner is loud enough ── */
.casino-list {
  padding: 20px 0 28px;
}

/* ── Articles — per-branch rhythm via nth-child ──
   1 = branch-a (guide)      → medium
   2 = branch-bridge          → flush
   3 = branch-b (steps)      → most spacious
   4 = branch-a (bonuses)    → compact
   5 = branch-b (security)   → generous
*/
.articles > div:nth-child(1) { padding: 48px 0 52px; }
.articles > div:nth-child(2) { padding: 0; }
.articles > div:nth-child(3) { padding: 80px 0 88px; }
.articles > div:nth-child(4) { padding: 28px 0 32px; }
.articles > div:nth-child(5) { padding: 72px 0 80px; }

/* ── Internal rhythm: tighter inside dark A strips ── */
.branch-a .branch-article h2 {
  margin-bottom: 14px;
}
.branch-a .branch-article p {
  margin-bottom: 12px;
}
.branch-a .branch-tag {
  margin-bottom: 16px;
}
.branch-a .as-grid-2 {
  gap: 14px;
  margin-top: 18px;
}
.branch-a .as-grid-item {
  padding: 18px;
}

/* ── Internal rhythm: airier inside open B tracks ── */
.branch-b .branch-article h2 {
  margin-bottom: 28px;
}
.branch-b .branch-article p {
  margin-bottom: 20px;
}
.branch-b .branch-tag {
  margin-bottom: 32px;
}
.branch-b .as-step {
  padding: 28px 0;
}
.branch-b .as-step-body p {
  margin-top: 6px;
}

/* ── Disclaimer section: breathing room above ── */
section[aria-label="Aviso legal y juego responsable"] {
  padding: 56px 0 0;
}
.disclaimer-block {
  margin: 0 0 56px;
}

/* ── Footer: progressive compression top → bottom ── */
.site-footer {
  padding-top: 36px;
}
.footer-top {
  padding-bottom: 28px;
  gap: 32px;
}
.footer-logos {
  padding: 22px 0;
}
.footer-logos-label {
  margin-bottom: 14px;
}
.footer-autoexclusion {
  padding: 14px 0;
  gap: 12px;
}
.footer-phone {
  padding: 18px 0;
}
.footer-bottom {
  padding: 14px 0;
  gap: 12px;
}

/* =========================================
   CASINO BANNER
   ========================================= */
.casino-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0;
  background: linear-gradient(100deg, #1a1100 0%, #181612 45%, #0d0f1c 100%);
  border: 1px solid rgba(240, 165, 0, 0.3);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(240, 165, 0, 0.1);
  transition: box-shadow var(--transition), transform var(--transition);
}

.casino-banner:hover {
  box-shadow: 0 8px 40px rgba(240, 165, 0, 0.2);
  transform: translateY(-2px);
}

/* subtle gold glow sweep on hover */
.casino-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(240,165,0,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* top-left recommended badge */
.cb-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  background: var(--green-badge);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}

/* logo zone */
.cb-logo {
  padding: 28px 28px 28px 20px;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255,255,255,0.07);
  margin-top: 28px; /* push below badge */
}

.cb-logo img {
  width: 110px;
  height: auto;
  object-fit: contain;
  /* invert for dark bg so black logo shows on gradient */
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* center: bonus text */
.cb-middle {
  padding: 32px 36px;
}

.cb-bonus-line {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.cb-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin: 0;
}

/* right: stars + CTA */
.cb-cta {
  padding: 28px 28px 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  border-left: 1px solid rgba(255,255,255,0.07);
}

.cb-stars {
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 3px;
  line-height: 1;
}

.cb-tc {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* ---- Keep for possible reuse ---- */
.btn-play-secondary {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
}

.btn-play-secondary:hover {
  color: var(--gold);
}

.btn-play {
  display: inline-block;
  background: linear-gradient(135deg, #f0a500, #e09000);
  color: #000;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(240, 165, 0, 0.35);
  width: 100%;
}

.btn-play:hover {
  background: linear-gradient(135deg, #ffc030, #f0a500);
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(240, 165, 0, 0.5);
  color: #000;
}

.btn-play-secondary {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
}

.btn-play-secondary:hover {
  color: var(--gold);
}

/* =========================================
   ARTICLES — BRANCHING COMPOSITION
   ========================================= */
.articles {
  padding: 0;
}

/* ---- Track A: dark full-bleed strip ---- */
.branch-a {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  position: relative;
}

/* left accent bar on Track A */
.branch-a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}

/* ---- Track B: open, accent on right ---- */
.branch-b {
  padding: 56px 0;
  position: relative;
}

.branch-b::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, rgba(240,165,0,0.35) 20%, rgba(240,165,0,0.35) 80%, transparent);
}

/* ---- Bridge: callout strip ---- */
.branch-bridge {
  padding: 0;
  position: relative;
  z-index: 1;
}

/* bridge sits flush between A and B, callout handles its own styling */
.branch-bridge .as-callout {
  border-radius: 0;
  border-left: none;
  border-right: none;
  margin: 0;
}

/* ---- Track label pill ---- */
.branch-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.branch-tag--b {
  background: transparent;
  border-color: rgba(240,165,0,0.3);
  color: rgba(240,165,0,0.6);
}

/* ---- Article inside a branch ---- */
.branch-article {
  /* no extra padding — branch handles vertical space */
}

.article-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.branch-article h2 {
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.branch-article p {
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.branch-article p:last-child {
  margin-bottom: 0;
}

/* keep old selectors working for legacy variants */
.article-section-label { /* already above */ }
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.article-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.article-item h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.article-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.article-item-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* =========================================
   ARTICLE SECTION VARIANTS
   ========================================= */

/* --- Variant A: split text / checklist --- */
.as-split {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  border-top: 1px solid var(--border);
}

.as-split .article-section-label,
.as-split h2,
.as-split p {
  /* inherit base styles */
}

.as-split-aside {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 48px; /* align with top of article */
}

.as-checklist-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.as-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.as-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.as-check {
  color: var(--green-badge);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- Variant B: standalone callout --- */
.as-callout {
  display: block;
  background: rgba(240, 165, 0, 0.06);
  border: 1px solid rgba(240, 165, 0, 0.22);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin: 0 0 0;
}

.as-callout-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.as-callout-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.as-callout-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.as-callout-body strong {
  color: var(--text-primary);
  font-family: monospace;
  font-size: 0.85rem;
}

/* --- Variant C: numbered steps --- */
.as-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 28px;
  counter-reset: none;
  list-style: none;
}

.as-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.as-step:first-child {
  padding-top: 0;
}

.as-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.as-step-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  text-align: right;
  letter-spacing: -0.04em;
  padding-top: 2px;
  transition: color var(--transition);
}

.as-step:hover .as-step-num {
  color: var(--gold);
}

.as-step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.as-step-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* --- Variant D: 2-column grid --- */
.as-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.as-grid-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.as-grid-num {
  font-size: 1.8rem;
  margin-bottom: 12px;
  line-height: 1;
}

.as-grid-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.as-grid-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* --- Variant E: text + aside box --- */
.as-with-aside {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: start;
}

.as-with-aside .article-section-label,
.as-with-aside h2,
.as-with-aside p {
  /* inherit */
}

.as-aside-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 48px;
}

.as-aside-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.as-aside-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.as-aside-link {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}

.as-aside-link:hover {
  color: var(--gold-hover);
}

/* =========================================
   DISCLAIMER / 18+ BLOCK
   ========================================= */
.disclaimer-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0 0 60px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.disclaimer-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.disclaimer-text h3 {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.disclaimer-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.disclaimer-text p:last-child {
  margin-bottom: 0;
}

.disclaimer-text a {
  color: var(--gold);
  font-size: 0.82rem;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: #090806;
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-col-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-logos {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.footer-logos-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* 2×2 grid */
.footer-logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 360px;
}

.fl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  opacity: 0.8;
  transition: opacity var(--transition), border-color var(--transition), transform var(--transition);
  text-align: center;
}

.fl-item:hover {
  opacity: 1;
  border-color: rgba(240,165,0,0.35);
  transform: translateY(-2px);
}

.fl-item img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0.92);
}

.fl-caption {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1.2;
}

.footer-autoexclusion {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-autoexclusion a {
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer-autoexclusion a:hover {
  opacity: 1;
}

.footer-autoexclusion img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.footer-phone {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-phone-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.footer-phone-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =========================================
   COOKIE BANNER
   ========================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--card-bg);
  border-top: 2px solid var(--gold);
  padding: 16px 20px;
  box-shadow: 0 -4px 24px rgba(5,4,2,0.55);
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.cookie-banner.hidden {
  transform: translateY(110%);
}

.cookie-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1;
  font-size: 0.83rem;
  color: var(--text-secondary);
  min-width: 200px;
}

.cookie-banner p a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}

.btn-cookie-accept:hover {
  background: var(--gold-hover);
}

.btn-cookie-decline {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}

.btn-cookie-decline:hover {
  color: var(--text-primary);
  border-color: #555;
}

/* =========================================
   POLICY PAGES
   ========================================= */
.policy-page {
  padding: 60px 0;
}

.policy-page h1 {
  margin-bottom: 8px;
}

.policy-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.policy-page h2 {
  font-size: 1.2rem;
  margin: 36px 0 12px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  text-transform: none;
}

.policy-page h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.policy-page p {
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.policy-page ul li {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 4px;
}

.policy-page a {
  color: var(--gold);
}

/* =========================================
   BREADCRUMB
   ========================================= */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span {
  margin: 0 6px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .casino-banner {
    grid-template-columns: 1fr;
    border-left: none;
    border-top: 4px solid var(--gold);
  }

  .cb-badge {
    top: 12px;
    left: 12px;
  }

  .cb-logo {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 44px 20px 16px;
    margin-top: 0;
  }

  .cb-middle {
    padding: 20px;
  }

  .cb-cta {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    min-width: 0;
  }

  .cb-stars {
    order: -1;
    width: 100%;
    text-align: left;
    margin-bottom: 4px;
  }

  /* On mobile, collapse the rhythm differences to avoid excess scroll */
  .articles > div:nth-child(1) { padding: 36px 0 40px; }
  .articles > div:nth-child(3) { padding: 48px 0 52px; }
  .articles > div:nth-child(4) { padding: 24px 0; }
  .articles > div:nth-child(5) { padding: 44px 0 48px; }

  .branch-b .as-step { padding: 20px 0; }
  .branch-b .branch-tag { margin-bottom: 20px; }

  section[aria-label="Aviso legal y juego responsable"] {
    padding: 36px 0 0;
  }
  .disclaimer-block {
    margin: 0 0 36px;
  }

  .as-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .as-split-aside {
    margin-top: 0;
  }

  .as-with-aside {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .as-aside-box {
    margin-top: 0;
  }

  .as-grid-2 {
    grid-template-columns: 1fr;
  }

  .as-step-num {
    font-size: 1.3rem;
    width: 36px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .disclaimer-block {
    flex-direction: column;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .hero-right {
    width: 100%;
  }

  .hero-trust-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 20px;
    min-width: 0;
  }

  .hero-trust-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .hero-trust-label,
  .hero-trust-detail {
    margin-bottom: 2px;
  }

  .hero-trust-name {
    margin-bottom: 2px;
  }

  .hero-heading-big {
    font-size: clamp(3.2rem, 13vw, 5rem);
  }

  .hero-stats-row {
    width: 100%;
  }

  .hero-stat {
    flex: 1;
    padding: 12px 10px;
  }
}

@media (max-width: 480px) {
  .top-bar .container {
    flex-direction: column;
    gap: 6px;
  }

  .footer-logos-grid {
    max-width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .fl-item img {
    height: 32px;
  }

  .footer-phone-number {
    font-size: 1.1rem;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
