/* Yentaly · aviso de cookies */
.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 200;
  width: min(440px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(105, 166, 255, 0.34);
  border-radius: 14px;
  background: rgba(8, 22, 45, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  color: #f4f8ff;
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.consent.is-open { opacity: 1; transform: none; }
.consent__text { margin: 0; font-size: 0.9rem; line-height: 1.5; color: #bdc9dc; }
.consent__text a { color: #6ed6ff; text-decoration: underline; text-underline-offset: 2px; }
.consent__actions { display: flex; gap: 10px; justify-content: flex-end; }
.consent__btn {
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(105, 166, 255, 0.48);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.consent__btn--ghost { background: transparent; color: #f4f8ff; }
.consent__btn--ghost:hover { background: rgba(105, 166, 255, 0.14); }
.consent__btn--main { background: #2d8cff; border-color: #2d8cff; color: #fff; }
.consent__btn--main:hover { background: #4a9dff; border-color: #4a9dff; }
.consent__btn:focus-visible { outline: 2px solid #6ed6ff; outline-offset: 2px; }

.cookie-prefs {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

@media (max-width: 560px) {
  .consent { left: 10px; bottom: 10px; width: calc(100vw - 20px); padding: 16px; }
  .consent__actions .consent__btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .consent { transition: opacity 0.2s ease; transform: none; }
}
