/* CIBERIA — banner de cookies propio (inc/consent.php + assets/js/cb-consent.js). */
.cb-consent {
  position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 9999;
  width: min(440px, calc(100vw - 2.5rem)); max-height: calc(100vh - 2.5rem); overflow: auto;
  padding: 1.5rem; border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 40, 58, .97), rgba(18, 24, 38, .98));
  border: 1px solid rgba(156, 198, 224, .22);
  box-shadow: inset 0 1px 0 rgba(156, 198, 224, .10), 0 24px 60px -20px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #c9d1dc; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 14px; line-height: 1.6;
  opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1);
}
.cb-consent.is-open { opacity: 1; transform: none; }
.cb-consent[hidden], .cb-consent [hidden] { display: none !important; }
.cb-consent__title { margin: 0; font-family: Outfit, Inter, sans-serif; font-size: 17px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.cb-consent__text { margin: .6rem 0 0; }
.cb-consent a { color: #eee76d; text-decoration: underline; text-underline-offset: 3px; }
.cb-consent__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.cb-cbtn {
  flex: 1 1 auto; min-height: 44px; padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer;
  font: 600 14px/1.2 Inter, ui-sans-serif, system-ui, sans-serif; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.cb-cbtn:hover { transform: translateY(-1px); }
/* Aceptar y Rechazar con el mismo peso visual (AEPD: rechazar tan fácil como aceptar) */
.cb-cbtn--main { background: #eee76d; border: 1px solid #eee76d; color: #0b0f17; }
.cb-cbtn--main:hover { background: #f3ee8e; border-color: #f3ee8e; }
.cb-cbtn--ghost { background: transparent; border: 1px solid rgba(156, 198, 224, .35); color: #e9edf3; }
.cb-cbtn--ghost:hover { background: rgba(156, 198, 224, .08); border-color: rgba(156, 198, 224, .6); }
.cb-cbtn:focus-visible, .cb-consent a:focus-visible, .cb-switch:focus-visible { outline: 2px solid #eee76d; outline-offset: 3px; }
.cb-consent__cats { display: grid; gap: .6rem; margin-top: 1rem; }
.cb-cat { padding: .85rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); }
.cb-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; }
.cb-cat__name { color: #e9edf3; font-weight: 600; }
.cb-cat__always { font: 500 11px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: #9cc6e0; }
.cb-cat__desc { margin: .35rem 0 0; font-size: 13px; color: #aab3c1; }
.cb-cat code { font-size: 12px; color: #c9d1dc; }
.cb-switch { appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 auto; width: 40px; height: 22px; margin: 0; border-radius: 999px; background: #2a3242; border: 1px solid rgba(156, 198, 224, .25); cursor: pointer; transition: background .2s ease; }
.cb-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #e9edf3; transition: transform .2s ease; }
.cb-switch:checked { background: #4c90ba; border-color: #4c90ba; }
.cb-switch:checked::after { transform: translateX(18px); }
@media (max-width: 640px) {
  .cb-consent { left: .75rem; right: .75rem; bottom: .75rem; width: auto; padding: 1.25rem; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .cb-consent, .cb-cbtn { transition: none; } }
