/* Footer rebrand — mobile first, BEM (bloque new-footer) */
.new-footer {
  --nf-line: #e5e5e5;
  --nf-title: #4a4a4a;
  --nf-link: #8c8c8c;
  width: 100%;
  background: var(--bg-grey);
}

.new-footer__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* ===== Cuerpo (mobile: tarjeta con acordeón) ===== */
.new-footer__body {
  padding: 2rem 0;
}

.new-footer__grid {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--nf-line);
  border-radius: 1.2rem;
}

.new-footer__section {
  border-bottom: 1px solid var(--nf-line);
}

.new-footer__section:last-child {
  border-bottom: 0;
}

.new-footer__heading {
  margin: 0;
}

.new-footer__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.2rem 0;
  background: none;
  border: 0;
  color: var(--nf-title);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.new-footer__title {
  font-size: 1.15rem;
  font-weight: 700;
}

.new-footer__toggle-icon {
  color: #b5b5b5;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.new-footer__section.is-open .new-footer__toggle-icon {
  transform: rotate(180deg);
}

/* Panel colapsable (mobile) */
.new-footer__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.new-footer__section.is-open .new-footer__panel {
  grid-template-rows: 1fr;
}

.new-footer__list {
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.new-footer__section.is-open .new-footer__list {
  padding-bottom: 1rem;
}

.new-footer__item {
  margin: 0;
}

.new-footer__link {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.45rem 0;
  color: var(--nf-link);
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.3s ease;
}

.new-footer__link:hover,
.new-footer__link:focus-visible {
  color: var(--blue);
}

.new-footer__link-icon {
  flex: none;
  margin-top: 0.15rem;
  font-size: 0.8rem;
}

/* ===== Barra inferior ===== */
.new-footer__bottom {
  background: var(--m-darkBlue);
  color: #fff;
}

.new-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.new-footer__copy {
  font-size: 0.9rem;
  text-align: center;
}

/* Legales y redes: solo desktop */
.new-footer__legal,
.new-footer__social {
  display: none;
}

.new-footer__legal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-size: 0.85rem;
  text-decoration: none;
}

.new-footer__legal-link:hover,
.new-footer__legal-link:focus-visible {
  text-decoration: underline;
}

.new-footer__legal-icon {
  font-size: 1.3rem;
}

.new-footer__social-link {
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1;
}

/* ===== Tablet y desktop: secciones abiertas, efecto masonry (columnas CSS) ===== */
@media screen and (min-width: 768px) {
  .new-footer__body {
    padding: 3.5rem 0 1.5rem;
  }

  .new-footer__grid {
    display: block;
    column-count: 3;
    column-gap: 2rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .new-footer__section {
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
    border-bottom: 0;
    break-inside: avoid;
  }

  .new-footer__section:last-child {
    border-bottom: 0;
  }

  .new-footer__toggle {
    padding: 0 0 0.6rem;
    cursor: default;
    pointer-events: none;
  }

  .new-footer__title {
    font-size: 1.1rem;
  }

  .new-footer__toggle-icon {
    display: none;
  }

  .new-footer__panel,
  .new-footer__section.is-open .new-footer__panel {
    display: block;
  }

  .new-footer__list,
  .new-footer__section.is-open .new-footer__list {
    overflow: visible;
    padding-bottom: 0;
  }

  .new-footer__link {
    padding: 0.3rem 0;
    font-size: 0.9rem;
  }

  .new-footer__section--avisos {
    margin-bottom: .5rem;
  }
}

@media screen and (min-width: 1024px) {
  .new-footer__container {
    padding: 0 1.5rem;
  }

  .new-footer__grid {
    column-count: 4;
  }

  .new-footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: .75rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .new-footer__copy {
    margin-right: auto;
    text-align: left;
  }

  .new-footer__legal {
    display: flex;
    align-items: center;
  }

  .new-footer__legal-link + .new-footer__legal-link {
    margin-left: 0.8rem;
    padding-left: 0.8rem;
    border-left: 1px solid #fff;
  }

  .new-footer__social {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-left: 0.8rem;
    border-left: 1px solid #fff;
  }
}
/* ===== Variante business: 5 columnas obligatorias desde 1024px ===== */
@media screen and (min-width: 1024px) {
  .new-footer--business .new-footer__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-count: auto;
    column-gap: 2rem;
    align-items: start;
  }

  .new-footer--business .new-footer__section {
    display: block;
    margin-bottom: 0;
  }
}
