/* AGP · Estilos del banner de consentimiento de cookies.
   Compartido por la landing y las paginas legales (js/cookies.js). */

/* ─── COOKIE BANNER ─── */
.agp-cookie {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 140%);
  z-index: 9999;
  width: min(680px, calc(100vw - 32px));
  background: hsl(24deg 22% 7% / 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
}
.agp-cookie.is-visible { transform: translate(-50%, 0); opacity: 1; }
.agp-cookie__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  flex-wrap: wrap;
}
.agp-cookie__text { flex: 1 1 300px; }
.agp-cookie__text strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 5px;
}
.agp-cookie__text p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}
.agp-cookie__text a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; text-underline-offset: 2px; }
.agp-cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }
/* Aceptar y Rechazar con el mismo peso visual: rechazar debe ser
   tan fácil como aceptar (Guía de cookies de la AEPD). */
.agp-cookie__btn {
  font-family: inherit;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 7px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  white-space: nowrap;
}
.agp-cookie__btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.85);
}
.agp-cookie__btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.agp-cookie__btn--solid {
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff;
}
.agp-cookie__btn--solid:hover { opacity: 0.88; }
@media (max-width: 560px) {
  .agp-cookie__inner { padding: 16px 18px; }
  .agp-cookie__actions { width: 100%; }
  .agp-cookie__btn { flex: 1; text-align: center; }
}
