/* Banner de cookies (Complianz) con el diseño de la web: negro con brasa, filo rojo y fuentes Barlow.
   Se carga en todas las páginas. Va prefijado con «html body» para mandar sobre banner-1-optin.css
   y sobre el CSS personalizado del kit de Elementor (que ponía el hover de «Aceptar» en azul). */

html body .cmplz-cookiebanner,
html body #cmplz-manage-consent {
  --cmplz_hyperlink_color: var(--red);
  --cmplz_category_header_always_active_color: var(--ok);
  --cmplz_slider_active_color: var(--red);
  --cmplz_slider_inactive_color: #3d3535;   /* apagado en gris: antes rojo igual que encendido */
}

html body .cmplz-cookiebanner {
  background: linear-gradient(160deg, rgb(255 20 20 / .07), transparent 45%), var(--s1);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--red);
  border-radius: var(--r);
  box-shadow: 0 24px 60px -18px rgb(0 0 0 / .9), 0 0 50px -20px rgb(255 20 20 / .35);
  font-family: "Barlow", sans-serif;
  color: var(--body);
}

/* Cabecera */
html body .cmplz-cookiebanner .cmplz-title {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
}
html body .cmplz-cookiebanner .cmplz-close {
  color: var(--muted);
  transition: color .2s ease, transform .2s var(--ease);
}
html body .cmplz-cookiebanner .cmplz-close:hover,
html body .cmplz-cookiebanner .cmplz-close:focus-visible {
  color: var(--red);
  transform: rotate(90deg);
}
/* Anillo de foco en rojo de marca (el del tema era un recuadro blanco y negro) */
html body .cmplz-cookiebanner :focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  box-shadow: none;
  border-radius: 6px;
}

/* Texto y enlaces */
html body .cmplz-cookiebanner .cmplz-message,
html body .cmplz-cookiebanner .cmplz-message p {
  color: var(--body);
  line-height: 1.55;
}
html body .cmplz-cookiebanner .cmplz-links a,
html body .cmplz-cookiebanner .cmplz-message a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
html body .cmplz-cookiebanner .cmplz-links a:hover,
html body .cmplz-cookiebanner .cmplz-links a:focus-visible,
html body .cmplz-cookiebanner .cmplz-message a:hover {
  color: var(--text);
}

/* Botones */
html body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--r-b);
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease, transform .2s var(--ease);
}
html body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept {
  background: var(--grad);
  border: 1px solid var(--red);
  color: var(--on-red);
}
html body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover,
html body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: var(--on-red);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}
html body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:not(.cmplz-accept) {
  background: rgb(255 255 255 / .04);
  border: 1px solid var(--line-2);
  color: var(--text);
}
html body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:not(.cmplz-accept):hover,
html body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:not(.cmplz-accept):focus-visible {
  background: rgb(255 255 255 / .1);
  border-color: rgb(255 255 255 / .4);
  color: var(--text);
  transform: translateY(-1px);
}

/* Vista «Ver preferencias»: categorías */
html body .cmplz-cookiebanner .cmplz-categories .cmplz-category {
  background: rgb(255 255 255 / .03);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
}
html body .cmplz-cookiebanner .cmplz-category .cmplz-category-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .03em;
  color: var(--text);
}
html body .cmplz-cookiebanner .cmplz-category .cmplz-description {
  color: var(--body);
}

/* Pestaña «Gestionar consentimiento» que queda abajo tras elegir */
html body #cmplz-manage-consent .cmplz-manage-consent {
  background: var(--s1);
  border: 1px solid var(--line-2);
  border-bottom: 0;
  border-top: 2px solid var(--red);
  color: var(--text);
  font-family: var(--disp);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
html body #cmplz-manage-consent .cmplz-manage-consent:hover,
html body #cmplz-manage-consent .cmplz-manage-consent:focus-visible {
  background: var(--s3);
  color: var(--text);
}
