/* Visual Nexora consent banner, shared by every page (including pages with their own design system). */
.consent {
  --ease: cubic-bezier(.2, .8, .2, 1); --line: rgba(160, 180, 255, .12); --ink-2: #c3cae3; --muted: #8590b3;
  --violet: #8b5cf6; --cyan: #22e1ff; --blue: #3a7bff;
  font-family: "Inter", "Instrument Sans", system-ui, -apple-system, sans-serif; color: #eef2ff; line-height: 1.6; text-align: left;
}
.consent *, .consent *::before, .consent *::after { box-sizing: border-box; }
.consent h2 { font-family: "Unbounded", "Inter", system-ui, sans-serif; font-weight: 600; margin: 0 0 8px; line-height: 1.2; }
.consent p { margin: 0; }
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95; margin: 0 auto; max-width: 980px;
  display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: end;
  padding: 22px 24px; border-radius: 22px; border: 1px solid var(--line);
  background: rgba(8, 14, 34, .9); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(139,92,246,.12);
  transform: translateY(0); opacity: 1; transition: transform .6s var(--ease), opacity .6s;
}
.consent[hidden] { display: grid; transform: translateY(130%); opacity: 0; pointer-events: none; visibility: hidden; }
.consent h2 { font-size: 17px; margin-bottom: 8px; letter-spacing: 0; }
.consent p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.consent p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 300px; }
.cbtn {
  font: 600 14px/1 var(--font-body); padding: 13px 16px; border-radius: 12px; cursor: pointer;
  color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); transition: background .25s, border-color .25s;
}
.cbtn:hover { background: rgba(139,92,246,.22); border-color: rgba(139,92,246,.6); }
.cbtn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.cbtn[hidden] { display: none; }
/* Accept and Reject get identical visual weight (EDPB / AEPD guidance). */
.consent__prefs { display: grid; gap: 10px; margin-top: 16px; }
.consent__prefs[hidden] { display: none; }
.toggle { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__ui { width: 40px; height: 22px; border-radius: 22px; background: rgba(255,255,255,.15); position: relative; transition: background .3s; margin-top: 2px; }
.toggle__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.toggle input:checked + .toggle__ui { background: var(--blue); }
.toggle input:checked + .toggle__ui::after { transform: translateX(18px); }
.toggle input:disabled + .toggle__ui { opacity: .6; }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--cyan); outline-offset: 2px; }
.toggle b { display: block; font-size: 14px; }
.toggle small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.toggle code { font-size: 11.5px; }
@media (max-width: 760px) {
  .consent { grid-template-columns: 1fr; padding: 18px; bottom: 10px; left: 10px; right: 10px; max-height: 85svh; overflow: auto; }
  .consent__actions { min-width: 0; }
}

/* EN/ES language switch (injected by i18n.js into every page's nav) */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(160, 180, 255, .18); background: rgba(10, 17, 40, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); flex: none; }
.lang-switch button { all: unset; cursor: pointer; padding: 6px 10px; border-radius: 999px; font: 600 11.5px/1 "Inter", "Instrument Sans", system-ui, sans-serif; letter-spacing: .06em; color: #aab3d1; transition: background .25s, color .25s; }
.lang-switch button:hover { color: #fff; }
.lang-switch button[aria-pressed="true"] { background: linear-gradient(100deg, #3a7bff, #8b5cf6); color: #fff; }
.lang-switch button:focus-visible { outline: 2px solid #22e1ff; outline-offset: 2px; }
.topbar .lang-switch { margin-left: 12px; }
.lang-switch--menu { margin-top: 28px; align-self: flex-start; transform: scale(1.25); transform-origin: left center; }
