/* Banner de consentimiento de cookies. Hoja propia y no estilos dentro de
   consentimiento.js: el CSS lo sirve Pages con cache y el banner no tiene que
   repintarse cuando el script termina de correr.

   Los valores estan escritos a mano y no tomados de legal.css porque la home
   no carga esa hoja; son los tokens de index.html (tinta #131b2e, acento
   #4f46e5, linea #ebebeb, ver DESIGN.md) y la escala tipografica y de
   espaciado de Tailwind. */

.kore-consent {
  position: fixed;
  z-index: 9999;
  inset-inline: 16px;
  inset-block-end: 16px;
  margin-inline: auto;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #ebebeb;
  background: #ffffff;
  color: #131b2e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-shadow:
    0 8px 24px rgb(0 0 0 / 0.08),
    0 2px 8px rgb(0 0 0 / 0.05);
}

.kore-consent__text {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.01em;
  color: #505f76;
  text-wrap: pretty;
}

.kore-consent__link {
  color: #3525cd;
  text-underline-offset: 2px;
}

.kore-consent__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.kore-consent__btn {
  appearance: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #ebebeb;
  background: #ffffff;
  color: #131b2e;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  transition: background-color 150ms cubic-bezier(0.32, 0.72, 0, 1);
}

.kore-consent__btn:hover {
  background: #f5f5f5;
}

.kore-consent__btn--primary {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #ffffff;
}

.kore-consent__btn--primary:hover {
  background: #3525cd;
}

.kore-consent__btn:focus-visible {
  outline: 2px solid #3525cd;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .kore-consent__btn {
    transition: none;
  }
}
