/* Aviso de cookies: barra inferior. Mantiene la paleta negro / crema. */
.cookie-consent[hidden] { display: none !important; }
.cookie-consent {
  position: fixed;
  z-index: 1200;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem max(1rem, env(safe-area-inset-right)) max(1.1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  color: #F4F1EC;
  background: #0B0D10;
  border-top: 1px solid rgba(244,241,236,.2);
  box-shadow: 0 -18px 50px rgba(0,0,0,.28);
  font: 400 .92rem/1.55 'Inter', system-ui, sans-serif;
}
.cookie-consent__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.cookie-consent__text { max-width: 62ch; }
.cookie-consent h2 { margin: 0 0 .25rem; color: #FFFFFF; font: 700 1.05rem/1.25 'Inter', system-ui, sans-serif; }
.cookie-consent p { margin: 0; color: rgba(244,241,236,.82); }
.cookie-consent a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.cookie-consent-actions { display: flex; flex: none; flex-wrap: wrap; gap: .65rem; }
.cookie-consent button {
  min-height: 44px;
  border: 1px solid rgba(244,241,236,.5);
  border-radius: 999px;
  padding: .6rem 1.15rem;
  background: transparent;
  color: #F4F1EC;
  font: 600 .88rem/1.2 'Inter', system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-consent button:hover, .cookie-consent button:focus-visible { background: #F4F1EC; color: #0B0D10; }
.cookie-consent button:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.cookie-consent .cookie-necessary { background: #F4F1EC; color: #0B0D10; border-color: #F4F1EC; }
.cookie-consent .cookie-necessary:hover, .cookie-consent .cookie-necessary:focus-visible { background: #FFFFFF; }

/* Enlace "Preferencias de cookies" que reemplaza al botón flotante; vive en el pie de página */
.cookie-prefs-link {
  padding: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.cookie-prefs-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

@media (max-width: 720px) {
  .cookie-consent__inner { flex-direction: column; align-items: stretch; gap: .9rem; }
  .cookie-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-consent button { width: 100%; white-space: normal; padding: .6rem .7rem; }
}
@media (max-width: 380px) { .cookie-consent-actions { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cookie-consent, .cookie-consent * { scroll-behavior: auto !important; transition: none !important; } }
