[data-hidden="true"] {
  display: none;
}

.ft-mol-ticker {
  display: none;
}

@media (max-width: 768px) {
  .ft-mol-headband--section .ft-mol-headband__title {
    font-size: 2rem;
    line-height: 2.2rem;
  }
}

/* PRESELECTION BOX */
.ft-list__item--municipios {
  font-weight: bold;
  color: var(--color-primary);
}

.ft-readMore {
  pointer-events: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

.ft-readMore__content {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
  position: relative;
}

.ft-readMore--higher .ft-readMore__content {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  max-height: 20rem;
}

.ft-readMore__content > * {
  position: relative;
  z-index: 0;
}

.ft-readMore__content a {
  pointer-events: auto;
}

.ft-readMore__content:after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  max-height: 20rem;
  position: absolute;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, var(--color-white) 99%);
  pointer-events: none;
}

.ft-readMore__btn {
  position: relative;
  margin: 1rem 0;
  display: inline-block;
  width: fit-content;
  cursor: pointer;
  pointer-events: auto;
  font-family: var(--font-stack);
  font-weight: normal;
  font-size: 1.2rem;
  line-height: 2rem;
  letter-spacing: 0;
}

.ft-readMore__btn .ft-btn,
.ft-readMore__btn .ft-link {
  position: relative;
}

.ft-readMore__btn .ft-btn:after,
.ft-readMore__btn .ft-link:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100%;
  width: 100%;
  transform: translate(-50%, -50%);
  min-width: 44px;
  min-height: 44px;
  background-color: rgba(0, 0, 0, 0);
  border-radius: inherit;
}

.ft-readMore--has-button .ft-readMore__btn {
  left: 50%;
  transform: translatex(-50%);
}

.ft-readMore--not-less.ft-readMore[open] .ft-readMore__btn {
  display: none;
}

.ft-readMore[open] .ft-readMore__btn .ft-btn:before,
.ft-readMore[open] .ft-readMore__btn .ft-link:before {
  content: "Ver menos ⏶";
}

.ft-readMore__btn .ft-btn {
  border: 0;
}

.ft-readMore__btn .ft-btn:hover,
.ft-readMore__btn .ft-btn:focus-visible {
  color: var(--color-white);
}

.ft-readMore[open] .ft-readMore__content {
  -webkit-line-clamp: unset;
  max-height: unset;
  overflow: visible;
}

.ft-readMore[open] .ft-readMore__content:after {
  content: none;
}

@media (min-width: 768px) {
  .ft-org-box-preselection {
    margin-top: 1rem;
    margin-bottom: 6rem;
  }
}

.ft-org-box-preselection .ft-text {
  margin-top: 0;
}

@media (min-width: 768px) {
  .ft-org-box-preselection .ft-text {
    margin-bottom: 3.5rem;
  }
}

.ft-org-box-preselection .ft-readMore__btn .ft-btn:before {
  display: none;
}

.ft-org-box-preselection .ft-readMore__btn .ft-btn:after {
  display: none;
}

#ftReadMoreBox {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

#ftReadMoreContent {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
  position: relative;
}

#ftReadMoreContent:after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  max-height: 20rem;
  position: absolute;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, var(--color-white) 99%);
  pointer-events: none;
}

#ftReadMoreBtn {
  position: relative;
  margin: 2rem 0 1rem 0;
  display: inline-block;
  width: fit-content;
  cursor: pointer;
  pointer-events: auto;
  font-family: var(--font-stack);
  font-weight: normal;
  font-size: 1.2rem;
  line-height: 2rem;
  letter-spacing: 0;
  left: 50%;
  transform: translateX(-50%);
}

#ftReadMoreBox.is-open #ftReadMoreContent {
  -webkit-line-clamp: unset;
  max-height: unset;
  overflow: visible;
}

#ftReadMoreBox.is-open #ftReadMoreContent:after {
  content: none;
}

/* Desktop: mostrar todo el contenido y ocultar botón */
@media (min-width: 1024px) {
  #ftReadMoreBtn {
    display: none;
  }

  #ftReadMoreContent {
    -webkit-line-clamp: unset;
    max-height: unset;
    overflow: visible;
  }

  #ftReadMoreContent:after {
    content: none;
  }
}

/* FORM */
.ft-mol-form__input,
.ft-mol-form__select {
  padding: 0.4rem 1rem;
  height: 4rem;
  width: 100%;
  border-style: solid;
  border-width: 0.1rem;
  border-color: var(--color-mediumGrey);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: all 0.3s ease;
  min-height: 4rem;
  font-size: 1.6rem;
  text-align: left;
  background: var(--color-white);
}

.fourty .ft-mol-form__input,
.fourty .ft-mol-form__select {
  border-radius: 0.4rem;
}

.ft-mol-form__input:focus,
.ft-mol-form__select:focus {
  border-style: solid;
  border-width: 0.13rem;
  border-color: var(--color-form);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ft-mol-form__supporting-text {
  margin-top: 0.2rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 1.2rem;
}

/* CONTENEDOR PRINCIPAL */
.ft-mol-form--multiselect {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 1rem;
  border: 1px solid var(--color-lightGrey);
  background-color: var(--color-lightGrey);
  border-radius: 0.6rem;
}

@media (min-width: 768px) {
  .ft-mol-form--multiselect {
    padding: 2rem 4rem 1rem 4rem;
  }
}

/* TEXTO DESCRIPTIVO */
.ft-mol-form--multiselect .ft-text {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.6rem;
}

.ft-mol-form--multiselect.is-stuck .ft-text {
  display: none;
}

@media (min-width: 768px) {
  .ft-mol-form--multiselect.is-stuck {
    margin-right: 0;
    margin-left: 0;
  }
}

.ft-mol-form--multiselect.is-stuck {
  margin: 0 -0.8rem;
  border-radius: 0;
}

/* REGIONES */
.ft-mol-form__region + .ft-mol-form__region {
  margin-top: 4rem;
}

.ft-mol-form__region {
  transition: opacity 0.3s, max-height 0.3s;
  overflow: hidden;
}

.ft-mol-form__region[aria-hidden="true"] {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(100%);
  height: 1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.ft-mol-form__region[aria-hidden="false"] {
  opacity: 1;
  max-height: 2000px;
}

.ft-mol-form__region h3 {
  padding: 1rem 0 1rem 0;
}

.ft-mol-form__region h3:first-of-type {
  margin-top: 0;
}

.ft-mol-form--multiselect .ft-list__item {
  scroll-margin-top: 6rem;
}

/* AUTOCOMPLETADO */
.ft-mol-form--multiselect .ft-mol-form__autocomplete-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 0.5rem;
}

.ft-mol-form--multiselect .ft-mol-form__autocomplete-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2rem;
  z-index: 5;
  height: 1.4rem;
  width: 1.4rem;
  margin-top: auto;
  margin-bottom: auto;
  background-image: url("https://estaticos-cdn.elperiodico.com/statics/42DS/img/icons/form-solid-light-search.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: invert(42%) sepia(0%) saturate(0%) hue-rotate(239deg) brightness(93%)
    contrast(89%);
  pointer-events: none;
}

.ft-mol-form--multiselect .autocomplete-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  padding-left: 0.8rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-lightGrey);
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}

#autocompleteSuggestion {
  position: absolute;
  top: 100%;
  left: 0;
  color: var(--color-darkGrey);
  font-size: 0.9rem;
  padding: 0.2rem;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
}

.ft-mol-form--multiselect .ft-mol-form__input {
  position: relative;
  background-color: var(--color-white);
  color: var(--color-black);
  z-index: 2;
  width: 100%;
  padding-right: 5rem;
  padding-left: 4.5rem;
  box-sizing: border-box;
  border: 0;
}

.ft-mol-form--multiselect .ft-mol-form__toggle {
  position: relative;
}

/* TAGS SELECCIONADAS */
.ft-mol-form--multiselect .ft-mol-form__tagsbox {
  display: none;
}

@media (min-width: 768px) {
  .ft-mol-form--multiselect .ft-mol-form__tagsbox {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    margin-bottom: 0.5rem;
    overflow-x: auto;
  }
}

.ft-mol-form--multiselect .ft-mol-form__tag {
  display: inline-flex;
  align-items: center;
  font-size: 1.1rem;
  line-height: 1.2rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
  border: none;
}

.ft-mol-form--multiselect .ft-mol-form__tag:after {
  content: "";
  display: inline-flex;
  width: 1.8rem;
  height: 1.8rem;
  margin-left: 0.5rem;
  background-image: url("https://estaticos-cdn.elperiodico.com/statics/42DS/img/icons/nav-solid-light-close.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.2rem;
  filter: invert(1);
}

.ft-mol-form--multiselect .ft-mol-form__tag button {
  margin-left: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 2rem;
  line-height: 2rem;
  color: transparent;
}

/* DROPDOWN OPCIONES */
.ft-mol-form--multiselect .ft-mol-form__dropdown {
  border: 1px solid var(--color-lightGrey);
  border-radius: 4px;
  padding: 0.5rem;
  position: relative;
}

.ft-mol-form--multiselect
  .ft-mol-form__dropdown.collapsed
  .ft-mol-form__dropdown-result {
  display: none;
}

#optionsList {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 0.5rem;
  list-style: none;
  padding: 0;
}

.ft-mol-form--multiselect .ft-mol-form__option {
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 0.4rem;
  transition: background 0.2s;
  min-height: 4.4rem;
}

/* FILTER BOX*/
.ft-mol-form__filterbox {
  display: flex;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.is-stuck .ft-mol-form__filterbox {
  margin-top: 0;
}

/* CHIP SELECTOR */
.ft-mol-form__chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  font-size: 1rem;
  background-color: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-lightGrey);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
  user-select: none;
}

.ft-mol-form__chip.is-active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.ft-mol-form__chip:focus,
.ft-mol-form__tag:focus {
  box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-primary);
  z-index: 2;
}

.ft-mol-form__chipsbox {
  order: 2;
  overflow-x: auto;
  display: flex;
  gap: 0.5rem;
  overflow-y: hidden;
  white-space: nowrap;
  flex-wrap: nowrap;
  align-items: baseline;
  max-width: 100%;
  scrollbar-width: none;
  scrollbar-color: var(--color-primary);
  cursor: grab;
  position: relative;
}

.ft-mol-form__chipsbox::-webkit-scrollbar {
  height: 0.8rem;
  background-color: var(--color-lightGrey);
}

.ft-mol-form__chipsbox::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 0.4rem;
}

.ft-mol-form__chipsbox.is-dragging {
  cursor: grabbing;
}

.ft-mol-form__filters-clear {
  order: 1;
  flex-shrink: 0;
  white-space: nowrap;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 10rem;
  margin-right: 1.5rem;
}

.ft-mol-form__counter {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  line-height: 1.4rem;
}

/* CLEAR BTN */
.ft-mol-form__clear-btn {
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  border-radius: 1rem;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1.4rem;
}

.ft-mol-form__clear-btn:hover {
  background-color: var(--color-black);
}

.ft-mol-form__clear-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--color-darkGrey);
  color: var(--color-white);
}

/* LOADER */
.ft-mol-form__loader {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.ft-mol-form__loader.is-active {
  display: flex;
}

.ft-mol-form__loader-spinner {
  border: 4px solid var(--color-lightGrey);
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  width: 3.2rem;
  height: 3.2rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* LISTA */
.ft-mol-form__list-search {
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .ft-mol-form__list-search {
    padding: 0 4rem;
  }
}

.ft-mol-form__list-search .ft-list {
  padding-right: 0.6rem;
  padding-left: 0.6rem;
}

.ft-mol-form__list-search .ft-helper-property-column-count-xs {
  column-count: 2;
}

@media (min-width: 1024px) {
  .ft-mol-form__list-search .ft-helper-property-column-count-xs {
    column-count: 3;
  }
}

/* INPUT + OPCIONES RESPONSIVE */
@media (max-width: 600px) {
  .ft-mol-form__tag,
  .ft-mol-form__option {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .ft-mol-form__tag,
  .ft-mol-form__option {
    min-width: 4.4rem;
    min-height: 4.4rem;
  }
}

/* ACCESIBILIDAD VISUAL */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* MENSAJE DE ERROR */
.ft-mol-form__error-msg {
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1.4rem;
  color: var(--color-functional-error);
}

/* ...código existente... */
#resultsCounter {
  display: none;
  padding-top: 0.5rem;
}

/* ...código existente... */
.ft-mol-form__chip.is-disabled,
.ft-mol-form__chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* =============================
                     DESKTOP: Mostrar todo el contenido y ocultar botón "Leer más"
                  ============================= */
@media (min-width: 1024px) {
  .ft-org-box-preselection .ft-readMore__btn {
    display: none;
  }

  .ft-org-box-preselection .ft-readMore__content {
    -webkit-line-clamp: unset;
    max-height: unset;
    overflow: visible;
  }

  .ft-org-box-preselection .ft-readMore__content:after {
    content: none;
  }
}

/* Estilos exclusivos para el bloque ft-readMore refactorizado usando clases */
.ft-org-box-preselection .ft-readMore {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

.ft-org-box-preselection .ft-readMore__content {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
  position: relative;
}

.ft-org-box-preselection .ft-readMore__content:after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  max-height: 20rem;
  position: absolute;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, var(--color-white) 99%);
  pointer-events: none;
}

.ft-org-box-preselection .ft-readMore__btn {
  position: relative;
  margin: 1rem 0;
  display: inline-block;
  width: fit-content;
  cursor: pointer;
  pointer-events: auto;
  font-family: var(--font-stack);
  font-weight: normal;
  font-size: 1.2rem;
  line-height: 2rem;
  letter-spacing: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Estado abierto */
.ft-org-box-preselection .ft-readMore.is-open .ft-readMore__content {
  -webkit-line-clamp: unset;
  max-height: unset;
  overflow: visible;
}

.ft-org-box-preselection .ft-readMore.is-open .ft-readMore__content:after {
  content: none;
}

/* Desktop: mostrar todo el contenido y ocultar botón */
@media (min-width: 1024px) {
  .ft-org-box-preselection .ft-readMore__btn {
    display: none;
  }

  .ft-org-box-preselection .ft-readMore__content {
    -webkit-line-clamp: unset;
    max-height: unset;
    overflow: visible;
  }

  .ft-org-box-preselection .ft-readMore__content:after {
    content: none;
  }
}

/* =============================
                  IMAGEN DECOTIVA PIE
                  ============================= */
.cronicas-img-decorativa {
  position: relative;
}

.cronicas-img-decorativa::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  margin-right: auto;
  margin-left: auto;
  background-color: var(--color-lightGrey);
}

.cronicas-img-decorativa .ft-helper-img-rd {
  width: 100%;
  max-width: 450px;
}

@media (min-width: 1024px) {
  .cronicas-img-decorativa .ft-helper-img-rd {
    margin-left: auto;
  }
}
