/* Informational cookie notice (assets/cookie-notice.js builds the markup).
   Not a consent wall: fixed at the bottom, never modal, never blocks scrolling.
   Colours use the landing tokens with literal fallbacks, so the file also works on a page
   that does not define them. While the notice is open, the page gets bottom padding equal
   to the notice's height (--cookie-notice-space, set by the script) so it never hides the
   last lines of content. */
.cookie-notice-open body { padding-bottom: var(--cookie-notice-space, 0px); }

.cookie-notice {
  position: fixed;
  z-index: 90;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 600px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--line, #e7e5e4);
  border-radius: var(--radius-xl, 14px);
  background: var(--surface, #ffffff);
  color: var(--ink, #1c1917);
  box-shadow: 0 18px 50px -18px var(--shadow, rgba(28, 25, 23, .14)), 0 0 0 1px var(--glow-soft, rgba(13, 148, 136, .08));
  font: 400 .92rem/1.5 var(--font-text, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  overflow-wrap: break-word;
  animation: cookie-notice-in .32s var(--ease-out, cubic-bezier(.2, .8, .2, 1)) both;
}
.cookie-notice__text { flex: 1 1 300px; min-width: 0; max-width: none; margin: 0; color: var(--soft, #57534e); }
.cookie-notice__actions { flex: 1 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; }
.cookie-notice__actions a { color: var(--accent, #0f766e); font-weight: 600; text-underline-offset: .18em; }
.cookie-notice__actions a:hover { color: var(--accent-2, #115e59); }
.cookie-notice__ok {
  flex: none;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg, 10px);
  background: var(--accent, #0f766e);
  color: var(--on-accent, #ffffff);
  font-family: inherit;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease;
}
.cookie-notice__ok:hover { background: var(--accent-2, #115e59); }
.cookie-notice a:focus-visible,
.cookie-notice__ok:focus-visible { outline: 3px solid var(--focus, #0f766e); outline-offset: 3px; }
/* Focus lands on <main> after "Entendido" so keyboard users keep their place; no ring there. */
main[tabindex="-1"]:focus { outline: none; }

@media (max-width: 480px) {
  .cookie-notice { gap: 10px; padding: 12px 14px; font-size: .875rem; }
}

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

/* Reduced motion and the landing's "Pausar animaciones" toggle (html[data-motion="off"]):
   show the notice in place. A paused animation would freeze it invisible, so drop it. */
@media (prefers-reduced-motion: reduce) {
  .cookie-notice { animation: none; }
  .cookie-notice__ok { transition: none; }
}
html[data-motion="off"] .cookie-notice { animation: none !important; }

@media print {
  .cookie-notice { display: none !important; }
  .cookie-notice-open body { padding-bottom: 0; }
}
