/* ─────────────────────────────────────────────────────────────────────────
 * Eligentia v8 · elig-consent.css
 *
 * Banner de consentimiento de almacenamiento técnico (localStorage/sessionStorage).
 * Aparece la primera vez que un visitante entra; se descarta tras decisión.
 * Diseño sobrio, no invasivo, fija en parte inferior pero no bloquea contenido.
 * ─────────────────────────────────────────────────────────────────── */

#elig-consent-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(120%);
  width: min(680px, calc(100vw - 36px));
  background: #fff;
  color: #2c2c2a;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  padding: 18px 22px;
  z-index: 9999;
  font-family: var(--ff-body, system-ui, -apple-system, sans-serif);
  font-size: 13.5px;
  line-height: 1.5;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), opacity 0.25s;
}

#elig-consent-banner[data-visible="1"] {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#elig-consent-banner h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.01em;
}

#elig-consent-banner p {
  margin: 0;
  color: rgba(0, 0, 0, 0.72);
  font-size: 12.5px;
}

#elig-consent-banner p a {
  color: #534AB7;
  text-decoration: underline;
}

#elig-consent-banner .elig-consent-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

#elig-consent-banner button {
  background: #534AB7;
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 999px;
  font: 700 12.5px/1 var(--ff-body, system-ui, sans-serif);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
#elig-consent-banner button:hover { background: #423a99; }

#elig-consent-banner button.elig-consent-reject {
  background: transparent;
  color: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.18);
}
#elig-consent-banner button.elig-consent-reject:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #2c2c2a;
}

@media (max-width: 640px) {
  #elig-consent-banner {
    grid-template-columns: 1fr;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 14px 16px;
  }
  #elig-consent-banner .elig-consent-actions {
    flex-direction: row;
  }
  #elig-consent-banner .elig-consent-actions button {
    flex: 1;
  }
}
