/* Banner mínimo de consentimiento (RGPD / LSSI) — WEB-ADS-01 */
.aipeces-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.28);
  font-family: Nunito, system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.aipeces-consent[hidden] {
  display: none !important;
}

.aipeces-consent__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: flex-end;
  justify-content: space-between;
}

.aipeces-consent__copy {
  flex: 1 1 18rem;
  min-width: 0;
}

.aipeces-consent__copy p {
  margin: 0 0 0.35rem;
}

.aipeces-consent__copy a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aipeces-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.aipeces-consent__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}

.aipeces-consent__btn--primary {
  background: #15a8dc;
  color: #fff;
}

.aipeces-consent__btn--primary:hover {
  background: #0ea5e9;
}

.aipeces-consent__btn--ghost {
  background: transparent;
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.35);
}

.aipeces-consent__btn--ghost:hover {
  border-color: #e2e8f0;
}

.aipeces-consent__prefs {
  flex: 1 1 100%;
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.65rem 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.aipeces-consent__prefs[hidden] {
  display: none !important;
}

.aipeces-consent__pref {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0;
  cursor: pointer;
}

.aipeces-consent__pref input {
  margin-top: 0.2rem;
}

.aipeces-consent__pref span {
  color: #cbd5e1;
  font-size: 0.875rem;
}

.aipeces-consent__pref strong {
  color: #f8fafc;
  font-weight: 700;
}

@media (max-width: 640px) {
  .aipeces-consent__actions {
    width: 100%;
  }

  .aipeces-consent__btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
