/* Cap Vermell — banner de cookies. Mismos colores y tipografías que el resto del sitio. */
.cv-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100000;
  padding: 12px;
  pointer-events: none;
}
.cv-consent[hidden] { display: none; }
.cv-consent__box {
  pointer-events: auto;
  max-width: 1140px;
  margin: 0 auto;
  background: #fff;
  color: #33383E;
  border-top: 4px solid #DF0000;
  border-radius: 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, .08), 0 8px 32px rgba(0, 0, 0, .22);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 32px;
  align-items: center;
  font: 400 1rem/1.5 "Source Sans Pro", "Source Sans 3", system-ui, sans-serif;
}
.cv-consent__title {
  grid-column: 1 / -1;
  margin: 0 !important;
  font: 700 1.25rem/1.2 "Lora", Georgia, serif !important;
  color: #1C1F23 !important;
}
.cv-consent__text { margin: 0 !important; font-size: 1rem !important; color: #33383E !important; }
.cv-consent__text a { color: #B30000 !important; text-decoration: underline; text-underline-offset: .18em; }
.cv-consent__prefs { grid-column: 1 / -1; }
.cv-consent__prefs fieldset { border: 0; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.cv-consent__opt { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; color: #33383E; cursor: pointer; }
.cv-consent__opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #B30000; flex: none; }
.cv-consent__opt input:disabled + span { color: #54595F; }
.cv-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
/* Los tres botones con el mismo peso visual: rechazar es tan fácil como aceptar (criterio AEPD). */
.cv-consent__btn {
  min-height: 44px;
  min-width: 120px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid #B30000;
  background: #fff;
  color: #B30000;
  font: 700 .9375rem/1 "Source Sans Pro", system-ui, sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
}
.cv-consent__btn:hover { background: #B30000; color: #fff; }
.cv-consent__btn:focus-visible { outline: 3px solid #1C1F23; outline-offset: 3px; }
.cv-consent__btn[hidden] { display: none; }
.cv-consent__reopen {
  position: fixed; left: 12px; bottom: 12px; z-index: 99990;
  padding: 8px 12px; border-radius: 999px; background: #fff; color: #54595F;
  border: 1px solid #E2E4E7; font: 600 .8125rem/1 "Source Sans Pro", system-ui, sans-serif; text-decoration: none;
}
@media (max-width: 767px) {
  .cv-consent { padding: 0; }
  .cv-consent__box { grid-template-columns: 1fr; border-radius: 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .cv-consent__actions { justify-content: stretch; }
  .cv-consent__btn { flex: 1 1 30%; min-width: 0; }
}
/* El antiguo aviso de Elementor (solo cerraba, no guardaba nada) queda sustituido por este. */
#elementor-popup-modal-133740 { display: none !important; }
.cv-consent__box:focus { outline: none; }
/* El reset del tema pinta los botones de rosa al enfocarlos: se neutraliza */
.cv-consent .cv-consent__btn:focus:not(:hover) { background: #fff; color: #B30000; }
.cv-consent .cv-consent__btn[data-cv="save"],
.cv-consent .cv-consent__btn[data-cv="save"]:focus { background: #B30000; color: #fff; }
.cv-consent .cv-consent__btn[data-cv="save"]:hover { background: #1C1F23; border-color: #1C1F23; }
/* El aviso recibe el foco al abrirse (para lectores de pantalla) sin mostrar contorno */
body .cv-consent .cv-consent__box:focus-visible { outline: none !important; box-shadow: 0 -2px 8px rgba(0, 0, 0, .08), 0 8px 32px rgba(0, 0, 0, .22) !important; }
@media (max-width: 767px) {
  .cv-consent .cv-consent__btn { flex: 1 1 auto; white-space: nowrap; padding-inline: 14px; }
}
