/* =====================================================
PUNTO PARTES — CONSENTIMIENTO DE COOKIES
===================================================== */
:root {
  --pp-cookie-orange: #ff5c00;
  --pp-cookie-orange-dark: #df5000;
  --pp-cookie-text: #292929;
  --pp-cookie-muted: #555555;
  --pp-cookie-border: #dddddd;
  --pp-cookie-soft: #f6f6f6;
}
/* =====================================================
BANNER PRINCIPAL
===================================================== */
html body #gdpr-cookie-consent-bar {
  position: fixed !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px clamp(24px, 5vw, 72px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  border: 0 !important;
  border-top: 3px solid var(--pp-cookie-orange) !important;
  border-radius: 0 !important;
  box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.15) !important;
  color: var(--pp-cookie-text) !important;
  font-family: "Rubik", Arial, sans-serif !important;
  box-sizing: border-box !important;
}
/*
* Distribución horizontal sin forzar el display del banner.
* El plugin conserva así la posibilidad de ocultarlo al guardar
* la elección del usuario.
*/
@media (min-width: 1201px) {
  html body #gdpr-cookie-consent-bar .gdpr-notice-content {
    padding-right: min(545px, 43vw) !important;
  }
  html body #gdpr-cookie-consent-bar .cookie_notice_buttons {
    position: absolute !important;
    top: 50% !important;
    right: clamp(24px, 5vw, 72px) !important;
    transform: translateY(-50%) !important;
  }
}
/* Contenido */
html body #gdpr-cookie-consent-bar .gdpr-notice-content {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body #gdpr-cookie-consent-bar .gdpr-notice-content-body {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Título */
html body #gdpr-cookie-consent-bar
.gdpr-notice-content-body::before {
  content: "Políticas de cookies";
  display: block;
  margin: 0 0 5px !important;
  color: var(--pp-cookie-text) !important;
  font-family: "Chakra Petch", Arial, sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}
/* Mensaje */
html body #gdpr-cookie-consent-bar
.gdpr-notice-content-body p {
  max-width: 850px !important;
  margin: 0 !important;
  color: var(--pp-cookie-muted) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  text-align: left !important;
}
/* Ocultar "Leer más" */
html body #gdpr-cookie-consent-bar #cookie_action_link,
html body #gdpr-cookie-consent-bar .cookie-policy-link,
html body #gdpr-cookie-consent-bar .gdpr-policy-link {
  display: none !important;
  visibility: hidden !important;
}
/* =====================================================
BOTONES DEL BANNER
===================================================== */
html body #gdpr-cookie-consent-bar .cookie_notice_buttons {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body #gdpr-cookie-consent-bar .left_buttons,
html body #gdpr-cookie-consent-bar .right_buttons {
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  gap: 10px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body #gdpr-cookie-consent-bar .right_buttons {
  order: initial !important;
}
html body #gdpr-cookie-consent-bar .gdpr_action_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: max-content !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 10px 17px !important;
  border-radius: 5px !important;
  font-family: "Chakra Petch", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  text-transform: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition:
  color 0.2s ease,
  background-color 0.2s ease,
  border-color 0.2s ease !important;
}
/* Rechazar */
html body #gdpr-cookie-consent-bar #cookie_action_reject {
  color: var(--pp-cookie-orange) !important;
  background: #ffffff !important;
  border: 2px solid var(--pp-cookie-orange) !important;
}
html body #gdpr-cookie-consent-bar #cookie_action_reject:hover {
  color: #ffffff !important;
  background: var(--pp-cookie-text) !important;
  border-color: var(--pp-cookie-text) !important;
}
/* Configuración */
html body #gdpr-cookie-consent-bar #cookie_action_settings {
  color: var(--pp-cookie-text) !important;
  background: var(--pp-cookie-soft) !important;
  border: 2px solid #cecece !important;
}
html body #gdpr-cookie-consent-bar #cookie_action_settings:hover {
  color: var(--pp-cookie-orange) !important;
  background: #ffffff !important;
  border-color: var(--pp-cookie-orange) !important;
}
/* Aceptar */
html body #gdpr-cookie-consent-bar #cookie_action_accept_all {
  color: #ffffff !important;
  background: var(--pp-cookie-orange) !important;
  border: 2px solid var(--pp-cookie-orange) !important;
}
html body #gdpr-cookie-consent-bar #cookie_action_accept_all:hover {
  color: #ffffff !important;
  background: var(--pp-cookie-orange-dark) !important;
  border-color: var(--pp-cookie-orange-dark) !important;
}
/* Foco accesible */
html body #gdpr-cookie-consent-bar
.gdpr_action_button:focus-visible {
  outline: 3px solid rgba(255, 92, 0, 0.3) !important;
  outline-offset: 3px !important;
}
/* =====================================================
OCULTAR CIERRE Y MARCA WPLP
===================================================== */
/* Obliga al usuario a aceptar, configurar o rechazar */
html body #gdpr-cookie-consent-bar #cookie-banner-cancle-img,
html body #gdpr-cookie-consent-bar span#cookie-banner-cancle-img {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
/* Créditos del banner y del modal */
html body .powered-by-credits,
html body #gdpr-cookie-consent-bar .powered-by-credits,
html body .gdprmodal .powered-by-credits,
html body .gdprmodal #cookie_credit_link {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
/* Ocultar el botón azul que permite volver a abrir los ajustes */
html body #gdpr-cookie-consent-show-again,
html body .gdpr-cookie-consent-show-again {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
/* =====================================================
MODAL DE PREFERENCIAS
===================================================== */
html body .gdprmodal .gdprmodal-content {
  --popup_accent_color: var(--pp-cookie-orange) !important;
  width: min(720px, calc(100% - 32px)) !important;
  max-width: 720px !important;
  max-height: calc(100vh - 32px) !important;
  overflow: hidden !important;
  background: #ffffff !important;
  color: var(--pp-cookie-text) !important;
  border: 1px solid var(--pp-cookie-border) !important;
  border-top: 5px solid var(--pp-cookie-orange) !important;
  border-radius: 10px !important;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.3) !important;
  font-family: "Rubik", Arial, sans-serif !important;
}
/* Cuerpo */
html body .gdprmodal .gdprmodal-body {
  padding: 22px 24px !important;
  scrollbar-color: var(--pp-cookie-orange) transparent !important;
}
html body .gdprmodal .gdpr-about-cookies,
html body .gdprmodal .group-description {
  color: var(--pp-cookie-muted) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}
/* Enlaces */
html body .gdprmodal .gdpr-about-cookies a,
html body .gdprmodal .always-active {
  color: var(--pp-cookie-orange-dark) !important;
  font-weight: 600 !important;
}
/* Categorías */
html body .gdprmodal .category-header {
  color: var(--pp-cookie-text) !important;
  font-family: "Chakra Petch", Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
html body .gdprmodal .category-item {
  background: #ffffff !important;
}
html body .gdprmodal .gdpr-dropdown-arrow {
  color: var(--pp-cookie-orange) !important;
}
html body .gdprmodal .category-item hr {
  border-top-color: #efc6b0 !important;
}
/* Interruptores */
html body .gdprmodal .checkbox input:checked label::before,
html body .gdprmodal .checkbox input:checked label::after,
html body .gdprmodal .checkbox input:checked label::before,
html body .gdprmodal .checkbox input:checked label::after {
  border-color: var(--pp-cookie-orange) !important;
}
html body .gdprmodal .checkbox input:checked label::before,
html body .gdprmodal .checkbox input:checked label::before {
  background-color: var(--pp-cookie-orange) !important;
}
/* Pie del modal */
html body .gdprmodal .gdprmodal-footer {
  --popup_accent_color: var(--pp-cookie-orange) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 15px 20px !important;
  background: #f7f7f7 !important;
  border-top: 1px solid var(--pp-cookie-border) !important;
}
html body .gdprmodal .gdpr-footer-left,
html body .gdprmodal .gdpr-footer-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
html body .gdprmodal .gdprmodal-footer .gdpr_action_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 10px 17px !important;
  border-radius: 5px !important;
  font-family: "Chakra Petch", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
/* Rechazar en modal */
html body .gdprmodal .gdprmodal-footer #cookie_action_reject {
  color: var(--pp-cookie-orange) !important;
  background: #ffffff !important;
  border: 2px solid var(--pp-cookie-orange) !important;
}
html body .gdprmodal .gdprmodal-footer
#cookie_action_reject:hover {
  color: #ffffff !important;
  background: var(--pp-cookie-text) !important;
  border-color: var(--pp-cookie-text) !important;
}
/* Guardar y aceptar */
html body .gdprmodal .gdprmodal-footer
#cookie_action_accept_all,
html body .gdprmodal .gdprmodal-footer
#cookie_action_save {
  color: #ffffff !important;
  background: var(--pp-cookie-orange) !important;
  border: 2px solid var(--pp-cookie-orange) !important;
}
html body .gdprmodal .gdprmodal-footer
#cookie_action_accept_all:hover,
html body .gdprmodal .gdprmodal-footer
#cookie_action_save:hover {
  background: var(--pp-cookie-orange-dark) !important;
  border-color: var(--pp-cookie-orange-dark) !important;
}
/* Botón de cierre del modal */
html body .gdprmodal .gdpr_action_button.close {
  color: var(--pp-cookie-orange) !important;
  background: transparent !important;
  border: 0 !important;
}
/* Accesibilidad */
html body .gdprmodal button:focus-visible,
html body .gdprmodal a:focus-visible {
  outline: 3px solid rgba(255, 92, 0, 0.3) !important;
  outline-offset: 3px !important;
}
/* =====================================================
TABLET
===================================================== */
@media (max-width: 1200px) {
  html body #gdpr-cookie-consent-bar {
    padding: 17px 22px !important;
  }
  html body #gdpr-cookie-consent-bar .cookie_notice_buttons {
    position: static !important;
    transform: none !important;
    justify-content: flex-start !important;
    margin-top: 14px !important;
  }
}
/* =====================================================
MÓVIL
===================================================== */
@media (max-width: 600px) {
  html body #gdpr-cookie-consent-bar {
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 16px 14px !important;
    border-radius: 0 !important;
  }
  html body #gdpr-cookie-consent-bar
  .gdpr-notice-content-body::before {
    font-size: 18px !important;
  }
  html body #gdpr-cookie-consent-bar
  .gdpr-notice-content-body p {
    font-size: 12px !important;
  }
  html body #gdpr-cookie-consent-bar .cookie_notice_buttons,
  html body #gdpr-cookie-consent-bar .left_buttons,
  html body #gdpr-cookie-consent-bar .right_buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 8px !important;
  }
  html body #gdpr-cookie-consent-bar .gdpr_action_button {
    width: 100% !important;
    min-width: 0 !important;
  }
  html body .gdprmodal .gdprmodal-content {
    width: calc(100% - 20px) !important;
    max-height: calc(100vh - 20px) !important;
    border-radius: 8px !important;
  }
  html body .gdprmodal .gdprmodal-body {
    padding: 17px 15px !important;
  }
  html body .gdprmodal .gdprmodal-footer,
  html body .gdprmodal .gdpr-footer-left,
  html body .gdprmodal .gdpr-footer-right {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }
  html body .gdprmodal .gdprmodal-footer
  .gdpr_action_button {
    width: 100% !important;
  }
}
/* Quitar fondos de color en las categorías */
html body .gdprmodal .category-item,
html body .gdprmodal .category-item:hover,
html body .gdprmodal .category-item:focus,
html body .gdprmodal .category-item:focus-within,
html body .gdprmodal .category-header,
html body .gdprmodal .category-header:hover,
html body .gdprmodal .category-header span,
html body .gdprmodal .category-header h3,
html body .gdprmodal .category-header button {
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}
/* Reservar espacio para los botones en escritorio */
@media (min-width: 1201px) {
  html body #gdpr-cookie-consent-bar .gdpr-notice-content {
    box-sizing: border-box !important;
    padding-right: min(545px, 43vw) !important;
  }
  html body #gdpr-cookie-consent-bar .gdpr-notice-content-body p {
    width: 100% !important;
    max-width: none !important;
    padding-right: 18px !important;
    box-sizing: border-box !important;
  }
}
/* Agrupar visualmente el título y el mensaje */
html body #gdpr-cookie-consent-bar .gdpr-notice-content-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 48px !important;
}
html body #gdpr-cookie-consent-bar
.gdpr-notice-content-body::before {
  margin: 0 !important;
}
html body #gdpr-cookie-consent-bar
.gdpr-notice-content-body p {
  margin: 0 !important;
}

/* Distribución definitiva en escritorio: texto y botones nunca se superponen */
@media (min-width: 1201px) {
  html body #gdpr-cookie-consent-bar .gdpr-notice-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 32px !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  html body #gdpr-cookie-consent-bar .gdpr-notice-content-body {
    min-width: 0 !important;
    width: 100% !important;
  }

  html body #gdpr-cookie-consent-bar .gdpr-notice-content-body p {
    width: 100% !important;
    max-width: none !important;
    padding-right: 0 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  html body #gdpr-cookie-consent-bar .cookie_notice_buttons {
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
  }
}
