/* Yengle · aviso de cookies */
.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9000;
  width: min(440px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid #1A1AFF;
  border-radius: 12px;
  background: rgba(15, 15, 26, 0.97);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: "Inter", "DM Sans", 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: 13.5px; line-height: 1.55; color: #B0B8C8; }
.consent__text a { color: #fff; 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: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.consent__btn--ghost { background: transparent; color: #fff; }
.consent__btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.consent__btn--main { background: #1A1AFF; border-color: #1A1AFF; color: #fff; }
.consent__btn--main:hover { background: #4D4DFF; border-color: #4D4DFF; }
.consent__btn:focus-visible { outline: 2px solid #4D4DFF; 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; }
}
