/* Aviso de cookies (js/analytics.js). Usa los tokens de styles.css. */

.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: consent-in 320ms var(--ease-out) both;
}

.consent-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.consent-text strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
}

.consent-text a {
  color: var(--accent);
}

.consent-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.consent-actions .btn {
  min-height: 44px;
  padding: 0 20px;
}

/* «Cookies» en el pie: botón con aspecto de enlace */
.footer-cookies {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-cookies:hover {
  color: var(--ink);
}

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

@media (max-width: 520px) {
  .consent-actions {
    flex: 1 1 100%;
  }
  .consent-actions .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent {
    animation: none;
  }
}
