:root {
  --cn-consent-red: #ff003d;
  --cn-consent-black: #070707;
  --cn-consent-panel: #111;
  --cn-consent-border: rgba(255, 255, 255, 0.16);
  --cn-consent-muted: #c2c2c2;
}

.cn-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html.cn-consent-modal-open,
html.cn-consent-modal-open body {
  overflow: hidden;
}

.cn-cookie-banner {
  position: fixed;
  z-index: 2147483000;
  right: clamp(14px, 3vw, 42px);
  bottom: clamp(14px, 3vw, 32px);
  width: min(620px, calc(100vw - 28px));
  padding: clamp(20px, 3vw, 28px);
  color: #fff;
  background: rgba(8, 8, 8, 0.98);
  border: 1px solid var(--cn-consent-border);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  font-family: inherit;
}

.cn-cookie-banner[hidden] {
  display: none !important;
}

.cn-cookie-banner__eyebrow {
  margin: 0 0 8px;
  color: var(--cn-consent-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cn-cookie-banner h2 {
  margin: 0 0 9px;
  color: #fff;
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.08;
}

.cn-cookie-banner p {
  margin: 0;
  color: var(--cn-consent-muted);
  font-size: 15px;
  line-height: 1.55;
}

.cn-cookie-banner a,
.cn-cookie-dialog a {
  color: #fff;
  text-decoration-line: underline;
  text-decoration-color: var(--cn-consent-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cn-cookie-banner a:hover,
.cn-cookie-banner a:focus-visible {
  text-decoration-thickness: 2px;
}

.cn-cookie-banner a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.cn-cookie-banner a:focus {
  box-shadow: 0 0 0 3px #fff;
}

.cn-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cn-cookie-button {
  min-height: 44px;
  padding: 11px 18px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 5px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cn-cookie-button:hover {
  color: #090909;
  background: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}

.cn-cookie-button--accent {
  color: #fff;
  background: var(--cn-consent-red);
  border-color: var(--cn-consent-red);
}

.cn-cookie-button--accent:hover {
  color: var(--cn-consent-red);
  background: #fff;
  border-color: #fff;
}

.cn-cookie-button[data-cn-accept],
.cn-cookie-button[data-cn-reject] {
  background: #e80034;
  border-color: #e80034;
}

.cn-cookie-button[data-cn-accept]:hover,
.cn-cookie-button[data-cn-reject]:hover {
  color: #e80034;
  background: #fff;
  border-color: #fff;
}

.cn-cookie-button[data-cn-accept]:focus,
.cn-cookie-button[data-cn-reject]:focus {
  box-shadow: 0 0 0 3px #fff;
}

.cn-cookie-button:focus-visible,
.cn-cookie-dialog__close:focus-visible,
.cn-cookie-switch input:focus-visible + span {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.cn-cookie-dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  margin: auto;
  padding: 0;
  color: #fff;
  background: var(--cn-consent-panel);
  border: 1px solid var(--cn-consent-border);
  border-radius: 10px;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.7);
  font-family: inherit;
  overflow: hidden;
}

.cn-cookie-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.cn-cookie-dialog__inner {
  max-height: min(760px, calc(100vh - 28px));
  overflow-y: auto;
}

.cn-cookie-dialog__header {
  position: relative;
  padding: clamp(22px, 4vw, 34px);
  border-bottom: 1px solid var(--cn-consent-border);
}

.cn-cookie-dialog__header h2 {
  margin: 0 48px 8px 0;
  color: #fff;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.1;
}

.cn-cookie-dialog__header p {
  max-width: 56ch;
  margin: 0;
  color: var(--cn-consent-muted);
  font-size: 15px;
  line-height: 1.55;
}

.cn-cookie-dialog__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid var(--cn-consent-border);
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.cn-cookie-dialog__body {
  padding: 0 clamp(22px, 4vw, 34px);
}

.cn-cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--cn-consent-border);
}

.cn-cookie-category h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 18px;
}

.cn-cookie-category p {
  max-width: 52ch;
  margin: 0;
  color: var(--cn-consent-muted);
  font-size: 14px;
  line-height: 1.55;
}

.cn-cookie-category__fixed {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cn-cookie-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.cn-cookie-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cn-cookie-switch__track {
  position: relative;
  display: block;
  width: 52px;
  height: 28px;
  background: #393939;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.cn-cookie-switch__track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  content: "";
  background: #fff;
  border-radius: 50%;
  transition: transform 180ms ease;
}

.cn-cookie-switch input:checked + .cn-cookie-switch__track {
  background: var(--cn-consent-red);
  border-color: var(--cn-consent-red);
}

.cn-cookie-switch input:checked + .cn-cookie-switch__track::after {
  transform: translateX(24px);
}

.cn-cookie-switch__state {
  min-width: 76px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.cn-cookie-dialog__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: clamp(22px, 4vw, 30px) clamp(22px, 4vw, 34px);
}

.cn-cookie-dialog__policy {
  margin-left: auto;
  align-self: center;
  font-size: 13px;
}

/* La interfaz heredada de Moove queda desactivada; la decisión se conserva en su cookie compatible. */
#moove_gdpr_cookie_info_bar,
#moove_gdpr_cookie_modal,
#moove_gdpr_save_popup_settings_button {
  display: none !important;
}

@media (max-width: 600px) {
  .cn-cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    padding: 19px;
  }

  .cn-cookie-actions,
  .cn-cookie-dialog__footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cn-cookie-button {
    width: 100%;
  }

  .cn-cookie-category {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cn-cookie-dialog__policy {
    margin: 6px 0 0;
    text-align: center;
  }

}

@media (prefers-reduced-motion: reduce) {
  .cn-cookie-button,
  .cn-cookie-switch__track,
  .cn-cookie-switch__track::after {
    transition: none;
  }
}
