/* ============================================================
   Banner de consentimiento de cookies
   Usa las variables de diseño del tema (--clr-*) para adaptarse
   automáticamente al modo claro/oscuro de cada página.
   ============================================================ */
.rx-cookie {
  position: fixed;
  inset: 0;
  /* Por encima del badge de reCAPTCHA v3 (Google lo fuerza a z-index: 2000000000)
     y del toggle claro/oscuro del home — el banner es temporal, así que mientras
     esté visible debe quedar por delante de ambos, no competir por el espacio. */
  z-index: 2147483647;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  pointer-events: none;
}

.rx-cookie[hidden] { display: none; }

.rx-cookie__card {
  pointer-events: auto;
  max-width: 420px;
  width: calc(100% - 24px);
  /* Pegada al borde (sin margen a la derecha/abajo) para tapar por completo
     la esquina donde vive el badge de reCAPTCHA, en vez de dejarlo asomar
     en un hueco entre la tarjeta y el borde de la pantalla. */
  margin: 0 0 0 12px;
  background: var(--clr-bg-2, #1d3040);
  border: 1px solid var(--clr-border, rgba(255,255,255,0.10));
  border-radius: var(--radius-lg, 20px) var(--radius-lg, 20px) 0 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font, 'Instrument Sans', sans-serif);
  animation: rx-cookie-in 0.35s ease;
}

@keyframes rx-cookie-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rx-cookie__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--clr-text-70, rgba(255,255,255,0.72));
}

.rx-cookie__text a {
  color: var(--clr-purple-2, #A182FF);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rx-cookie__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.rx-cookie__btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 100px;
  transition: var(--transition, 0.22s ease);
}

.rx-cookie__btn--reject {
  background: transparent;
  color: var(--clr-ghost-txt, rgba(255,255,255,0.68));
  border: 1px solid var(--clr-ghost-border, rgba(255,255,255,0.18));
}
.rx-cookie__btn--reject:hover {
  background: var(--clr-ghost-hover, rgba(255,255,255,0.08));
}

.rx-cookie__btn--accept {
  background: var(--clr-purple, #532BCC);
  color: #ffffff;
}
.rx-cookie__btn--accept:hover {
  background: var(--clr-purple-2, #A182FF);
}

@media (max-width: 560px) {
  .rx-cookie__card { max-width: none; width: 100%; margin: 0; border-radius: var(--radius-lg, 20px) var(--radius-lg, 20px) 0 0; }
  .rx-cookie__actions { justify-content: stretch; }
  .rx-cookie__btn { flex: 1; text-align: center; }
}
