/* ==========================================================================
   VentusProxy · banner de cookies (js/consentimiento.js)
   Mismo lenguaje que la web: cristal blanco del formulario del hero, rojo del
   logo, grises de la marca, Work Sans en títulos y Open Sans en textos.
   · .vpc--optin y .vpc--settings: ventana centrada sobre un velo (bloquea).
   · .vpc--optout: aviso abajo a la izquierda que no bloquea la página.
   ========================================================================== */

.vpc {
  position: fixed;
  z-index: 1000;   /* por encima de la cabecera flotante (100) */
  font: 400 14px/22px var(--ff-body, "Open Sans", system-ui, sans-serif);
  color: var(--text, #58595b);
  opacity: 0;
  transition: opacity .3s ease;
}
.vpc.is-visible { opacity: 1; }

.vpc--optin,
.vpc--settings {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 24, 26, .45);
}
.vpc--optout {
  left: var(--gutter, 20px);
  bottom: 20px;
  width: min(560px, calc(100vw - 2 * var(--gutter, 20px)));
}

.vpc__card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 32px 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
  transform: translateY(12px);
  transition: transform .3s ease;
}
.vpc.is-visible .vpc__card { transform: none; }
.vpc__card:focus { outline: none; }

/* Título con los cuatro puntos de la marca, como los pre-títulos de la web */
.vpc__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding-right: 28px;
  font: 700 20px/26px var(--ff-head, "Work Sans", system-ui, sans-serif);
  color: var(--dark, #313234);
}
.vpc__title::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--red, #cd2127);
  -webkit-mask: var(--dots-mask) center / contain no-repeat;
  mask: var(--dots-mask) center / contain no-repeat;
}
.vpc__text { margin: 0; }
.vpc__note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 4px;
  background: var(--soft, #f7f7f7);
  font-size: 13px;
  line-height: 20px;
}

/* Categorías */
.vpc__prefs { margin-top: 16px; border-top: 1px solid var(--line, #e3e3e3); }
.vpc__prefs[hidden] { display: none; }
.vpc__cat { padding: 14px 0; border-bottom: 1px solid var(--line, #e3e3e3); }
.vpc__cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
label.vpc__cat-head { cursor: pointer; }
.vpc__cat-name { font: 600 15px/22px var(--ff-head, "Work Sans", system-ui, sans-serif); color: var(--dark, #313234); }
.vpc__always { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--red, #cd2127); }
.vpc__cat-text { margin: 4px 0 0; font-size: 13px; line-height: 20px; }

/* Interruptor */
.vpc__switch { position: relative; flex: none; width: 40px; height: 22px; }
.vpc__switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.vpc__switch-ui {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: #cfd0d2;
  transition: background-color .2s ease;
  pointer-events: none;
}
.vpc__switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transition: transform .2s ease;
}
.vpc__switch input:checked + .vpc__switch-ui { background: var(--red, #cd2127); }
.vpc__switch input:checked + .vpc__switch-ui::after { transform: translateX(18px); }
.vpc__switch input:focus-visible + .vpc__switch-ui { outline: 2px solid var(--dark, #313234); outline-offset: 2px; }

/* Botones: Aceptar (rojo) y Rechazar (gris oscuro) con el mismo peso; Configurar, con borde */
.vpc__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.vpc__btn { flex: 1 1 auto; white-space: nowrap; }
.vpc__btn[hidden] { display: none; }
.vpc__btn--dark { background-color: var(--dark, #313234); transition: background-color .2s ease; }
.vpc__btn--dark:hover, .vpc__btn--dark:focus-visible { background-color: var(--logo-grey, #58595b); }
.vpc__btn--line {
  background: transparent;
  color: var(--dark, #313234);
  box-shadow: inset 0 0 0 1px #cfd0d2;
  transition: box-shadow .2s ease;
}
.vpc__btn--line:hover, .vpc__btn--line:focus-visible { box-shadow: inset 0 0 0 1px var(--dark, #313234); }
.vpc__btn:focus-visible { outline: 2px solid var(--dark, #313234); outline-offset: 2px; }

.vpc__policy {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  line-height: 18px;
  color: var(--text, #58595b);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.vpc__policy:hover, .vpc__policy:focus-visible { color: var(--red, #cd2127); }

.vpc__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--dark, #313234);
  cursor: pointer;
}
.vpc__close:hover, .vpc__close:focus-visible { background: var(--soft, #f7f7f7); }

html.vpc-lock, html.vpc-lock body { overflow: hidden; }

@media (max-width: 640px) {
  .vpc--optin, .vpc--settings { padding: 10px; place-items: end center; }
  .vpc--optout { left: 10px; bottom: 10px; width: calc(100vw - 20px); }
  .vpc__card { padding: 22px 20px 18px; max-height: calc(100dvh - 20px); }
  .vpc__title { font-size: 18px; line-height: 24px; }
  .vpc__btn { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .vpc, .vpc__card { transition: none; }
}
