.hidden {
  visibility: hidden !important;
  display: none !important;
}

.modal.liferay-modal.show .modal-dialog:has(.modal-content .modal-body.modal-body-iframe .catchment-leads-modal) {
  margin: 0 !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  max-width: 40rem !important;
  min-width: 21.375rem !important;
}
.modal.liferay-modal.show .modal-dialog:has(.modal-content .modal-body.modal-body-iframe .catchment-leads-modal) .modal-content .modal-header {
  border: unset !important;
  height: 3rem !important;
  padding-right: 0 !important;
  align-items: flex-start !important;
}
.modal.liferay-modal.show .modal-dialog:has(.modal-content .modal-body.modal-body-iframe .catchment-leads-modal) .modal-content .modal-header button {
  padding: 0.7rem !important;
  margin-right: 0 !important;
  height: 3rem !important;
  width: 3rem !important;
}
.modal.liferay-modal.show .modal-dialog:has(.modal-content .modal-body.modal-body-iframe .catchment-leads-modal) .modal-content .modal-header button svg {
  color: #2167AE !important;
  height: 0.8em !important;
  width: 0.8em !important;
}
.modal.liferay-modal.show .modal-dialog:has(.modal-content .modal-body.modal-body-iframe .catchment-leads-modal) .modal-content div.modal-body.modal-body-iframe {
  border: unset !important;
}

.portlet-body:has(.catchment-leads) {
  padding-bottom: 1.5rem !important;
}

/**
 * Tags accesibles con checkbox oculto.
 * @param {Number} $h-gap  Separación horizontal entre chips
 * @param {Number} $v-gap  Separación vertical entre filas
 */
.configModal.config-modal-rcp {
  border: 1px solid black;
  padding: 1rem;
}

.catchment-leads__title {
  background-color: white;
  position: sticky;
  top: 0;
  padding: 0 2rem 0 2rem;
  text-align: left;
  z-index: 2;
}
.catchment-leads__title__text {
  font-size: 2.25rem;
  font-weight: var(--font-weight-normal, 400);
  color: #23366f;
}
.catchment-leads__form {
  height: inherit !important;
}
.catchment-leads__form .panel-body {
  padding: 1.5rem 2rem 0 2rem;
}
.catchment-leads__form__tags {
  margin-bottom: 1.5rem;
}
.catchment-leads__form__tags .tags-products, .catchment-leads__form__tags .tags-types-managements {
  /* === CONTENEDOR DE TAGS (márgenes consistentes) === */
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-start;
  /* Cada tag es un <label class="tag-container"> que envuelve input + .tag-body */
  /* === INPUT OCULTO Y ESTADOS === */
  /* === CUERPO VISUAL DEL TAG === */
  /* Respeto por preferencias de movimiento */
}
.catchment-leads__form__tags .tags-products .tag-container, .catchment-leads__form__tags .tags-types-managements .tag-container {
  display: inline-flex;
  /* evita que el texto salte de línea dentro del “pill” */
  white-space: nowrap;
}
.catchment-leads__form__tags .tags-products .tag-container > input[type=checkbox], .catchment-leads__form__tags .tags-types-managements .tag-container > input[type=checkbox] {
  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;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  /* Foco accesible: el aro se pinta en el visual (.tag-body) */
  /* Estados CHECKED */
  /* Estado DISABLED */
}
.catchment-leads__form__tags .tags-products .tag-container > input[type=checkbox]:focus + .tag-body, .catchment-leads__form__tags .tags-products .tag-container > input[type=checkbox]:focus-visible + .tag-body, .catchment-leads__form__tags .tags-types-managements .tag-container > input[type=checkbox]:focus + .tag-body, .catchment-leads__form__tags .tags-types-managements .tag-container > input[type=checkbox]:focus-visible + .tag-body {
  outline: none;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #2167AE;
}
.catchment-leads__form__tags .tags-products .tag-container > input[type=checkbox]:checked + .tag-body, .catchment-leads__form__tags .tags-types-managements .tag-container > input[type=checkbox]:checked + .tag-body {
  background-color: #2167AE;
  border-color: #2167AE;
  color: white;
  /* Mostrar tick y reservar espacio solo al marcar */
}
.catchment-leads__form__tags .tags-products .tag-container > input[type=checkbox]:checked + .tag-body .tag, .catchment-leads__form__tags .tags-types-managements .tag-container > input[type=checkbox]:checked + .tag-body .tag {
  color: white !important;
}
.catchment-leads__form__tags .tags-products .tag-container > input[type=checkbox]:checked + .tag-body .tick, .catchment-leads__form__tags .tags-types-managements .tag-container > input[type=checkbox]:checked + .tag-body .tick {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}
.catchment-leads__form__tags .tags-products .tag-container > input[type=checkbox]:checked + .tag-body .tick::after, .catchment-leads__form__tags .tags-types-managements .tag-container > input[type=checkbox]:checked + .tag-body .tick::after {
  display: inline-block;
}
.catchment-leads__form__tags .tags-products .tag-container > input[type=checkbox]:disabled + .tag-body, .catchment-leads__form__tags .tags-types-managements .tag-container > input[type=checkbox]:disabled + .tag-body {
  opacity: 0.6;
  cursor: not-allowed;
}
.catchment-leads__form__tags .tags-products .tag-body, .catchment-leads__form__tags .tags-types-managements .tag-body {
  border: 1px solid #23366f;
  border-radius: 9999px;
  padding: 0.6rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  background-color: transparent;
  color: #23366f;
  line-height: 1;
  /* No uses margin-right aquí: el espaciado lo maneja el gap del contenedor */
  /* Icono decorativo: por defecto SIN hueco (oculto) */
}
.catchment-leads__form__tags .tags-products .tag-body:hover, .catchment-leads__form__tags .tags-types-managements .tag-body:hover {
  border-color: #2167AE;
}
.catchment-leads__form__tags .tags-products .tag-body:hover .tag, .catchment-leads__form__tags .tags-types-managements .tag-body:hover .tag {
  color: #2167AE;
}
.catchment-leads__form__tags .tags-products .tag-body .tick, .catchment-leads__form__tags .tags-types-managements .tag-body .tick {
  width: 0;
  height: 0;
  margin-right: 0;
  position: relative;
  pointer-events: none;
}
.catchment-leads__form__tags .tags-products .tag-body .tick::after, .catchment-leads__form__tags .tags-types-managements .tag-body .tick::after {
  content: "";
  display: none;
  position: absolute;
  left: 6px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid #ffffff;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  transition: opacity 0.2s ease;
}
.catchment-leads__form__tags .tags-products .tag-body .tag, .catchment-leads__form__tags .tags-types-managements .tag-body .tag {
  font-size: 1.125rem;
  color: #23366f;
}
@media (prefers-reduced-motion: reduce) {
  .catchment-leads__form__tags .tags-products .tag-body .tick::after, .catchment-leads__form__tags .tags-types-managements .tag-body .tick::after {
    transition: none;
  }
}
.catchment-leads__form__inputs {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.catchment-leads__form__inputs__title {
  color: #23366f;
}
.catchment-leads__form__inputs label {
  color: #23366f;
}
.catchment-leads__form__inputs label:not(.legal-label) {
  font-size: 1rem;
}
.catchment-leads__form__inputs label a {
  text-decoration: underline;
}
.catchment-leads__form__inputs .legal-container {
  padding-top: 0.5rem;
}
.catchment-leads__form__inputs .legal-container label.legal-label input[type=checkbox] {
  margin-right: 0.6875rem;
}
.catchment-leads__form__btn {
  background-color: white;
}
.catchment-leads__form__legal-text {
  padding-top: 2rem;
}
.catchment-leads__form__legal-text > p {
  line-height: 1;
}
.catchment-leads__form__legal-text > p > span {
  font-size: 0.688rem;
  color: #767676;
}
.catchment-leads__response {
  padding: 0 2rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.catchment-leads__response__image {
  text-align: center;
}
.catchment-leads__response__image img {
  width: 20rem;
  height: auto;
}
.catchment-leads__response__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.catchment-leads__response__body__title {
  text-align: left;
}
.catchment-leads__response__body__title__text {
  font-size: 2.25rem;
  font-weight: var(--font-weight-normal, 400);
  color: #23366f;
}
.catchment-leads__response__body__message p {
  font-size: 1.25rem;
  color: #23366f;
}
.catchment-leads__response__body__btn {
  background-color: white;
}
.catchment-leads__response__body__btn button {
  background-color: #23366f !important;
  border-color: #23366f !important;
  color: white !important;
}
.catchment-leads__response__body__btn button:hover {
  background-color: #172348 !important;
  border-color: transparent !important;
  color: white !important;
}

@media (width < 39rem), (height < 19rem) and (orientation: landscape) {
  .modal.liferay-modal.show .modal-dialog:has(.modal-content .modal-body.modal-body-iframe .catchment-leads-modal) {
    max-width: 90dvw !important;
  }
  .catchment-leads__title__text {
    font-size: 1.5rem;
  }
  .catchment-leads__form .panel-body {
    padding: 0 1.5rem 0 1.5rem;
  }
  .catchment-leads__form__inputs {
    margin-bottom: 0.5rem;
  }
  .catchment-leads__form__btn button {
    width: 100%;
  }
  .catchment-leads__response {
    padding: 0 1.5rem 0 1.5rem;
  }
  .catchment-leads__response__image img {
    width: 14.5rem;
  }
  .catchment-leads__response__body__title__text {
    font-size: 1.5rem;
  }
  .catchment-leads__response__body__message p {
    font-size: 1.125rem;
  }
  .catchment-leads__response__body__btn button {
    width: 100%;
  }
}