/* ==========================================================
   SPONSORMII AD DEMO · MAIN CSS
   Estilos base, variables de diseño y selector de campañas
   ========================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ink, #0D0F1E);
  color: var(--fg, #EEF0FA);
  font-family: var(--body, 'Nunito Sans', system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:root {
  color-scheme: dark;
  --ink: #0D0F1E;
  --panel: #161930;
  --panel-2: #1E2240;
  --line: #2B3058;
  --fg: #EEF0FA;
  --muted: #9298BF;

  /* Colores dinámicos por campaña (inyectados por JS) */
  --accent-color: #FFE600;
  --yellow: #FFE600;
  --yellow-2: #F5CF00;
  --yellow-3: #C9A400;
  --blue-deep: #1A1E58;

  --display: 'Rubik', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
}

.wrap {
  width: 100%;
  max-width: min(1820px, 98vw);
  margin: 0 auto;
  padding-inline: clamp(12px, 1.8vw, 24px);
  padding-block: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* HEADER Y NAVEGACIÓN DE CAMPAÑAS */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
}

.header-left {
  flex: 1;
  min-width: 300px;
}

.brandline {
  font: 700 12px/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brandline .badge {
  background: rgba(255, 230, 0, 0.15);
  color: var(--accent-color);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 230, 0, 0.3);
  font-size: 11px;
}

h1 {
  font: 800 clamp(22px, 2.5vw, 32px)/1.1 var(--display);
  margin: 0.25em 0 0.15em;
  text-wrap: balance;
}

h1 span {
  color: var(--accent-color);
}

.lede {
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
  font-size: 14.5px;
}

/* SELECTOR DE CAMPAÑAS (Pills interactivos) */
.campaign-selector-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.campaign-selector-lbl {
  font: 700 11px/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.campaign-pills {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.campaign-pill-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font: 700 13px var(--body);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.campaign-pill-btn:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}

.campaign-pill-btn.active {
  background: var(--accent-color);
  color: var(--blue-deep);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* FOOTER */
footer {
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}