/* =========================================================
   Aviso de cookies (Google Analytics)
   ========================================================= */
.aviso-cookies {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.2rem;
  background: #fff; color: var(--texto);
  border-radius: 18px; padding: 1rem 1.2rem;
  box-shadow: 0 18px 40px rgba(7, 42, 87, .25);
  border-top: 4px solid var(--celeste);
  animation: fadeUp .4s ease both;
}
.aviso-cookies p { font-size: .93rem; line-height: 1.5; margin: 0; }
.aviso-cookies a { color: var(--azul); font-weight: 700; }
.aviso-cookies__botones { display: flex; gap: .5rem; flex-shrink: 0; }
.btn--ghost-dark { background: transparent; color: var(--azul-noche); border-color: var(--borde); }
.btn--ghost-dark:hover { border-color: var(--azul-noche); }

/* Mientras se ve el aviso, el botón flotante de WhatsApp sube para no taparse */
body.con-aviso-cookies .wa-float { bottom: 120px; }

/* Enlace "Preferencias de cookies" del pie de página */
.link-cookies { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }

@media (max-width: 640px) {
  .aviso-cookies { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; }
  .aviso-cookies__botones .btn { flex: 1; }
  body.con-aviso-cookies .wa-float { bottom: 215px; }
}
