.dm-footer {
  --dm-footer-toast: #c96f2e;
  --dm-footer-green: #7cb342;
  --dm-footer-heavy: 'Arial Black', 'Arial Bold', Arial, Helvetica, sans-serif;
  background: var(--dm-orange);
  color: #fff;
  padding: clamp(3.25rem, 6vw, 4.4rem) 0 1.75rem;
}

.dm-footer__logo {
  display: inline-block;
  width: min(100%, 176px);
  margin-bottom: 1.1rem;
}

.dm-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.dm-footer__social {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  width: 100%;
  margin: 1.75rem 0 0;
}

.dm-footer__social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dm-footer-toast);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: filter 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.dm-footer__social-btn:hover {
  filter: brightness(0.92);
  transform: scale(1.06);
}

.dm-footer__social-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.dm-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 1.25rem;
  align-items: start;
}

.dm-footer__brand {
  max-width: 22rem;
}

.dm-footer__tagline {
  margin: 0;
  color: var(--dm-footer-toast);
  font-family: var(--dm-font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.28;
  max-width: 16.5rem;
}

.dm-footer__rule {
  display: block;
  width: 46px;
  height: 2px;
  margin: 1rem 0 0.85rem;
  background: var(--dm-footer-green);
}

.dm-footer__rule--sm {
  width: 32px;
  margin: 0.55rem 0 0.95rem;
}

.dm-footer__web {
  color: var(--dm-footer-toast);
  font-family: var(--dm-font-display);
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.3;
  transition: opacity 0.25s ease;
}

.dm-footer__web:hover {
  opacity: 0.72;
}

.dm-footer__col-title {
  margin: 0;
  color: var(--dm-footer-toast);
  font-family: var(--dm-font-display);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.2;
}

.dm-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.dm-footer__list a {
  color: #fff;
  font-family: var(--dm-font-display);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none;
  word-break: break-word;
  transition: opacity 0.25s ease;
}

.dm-footer__list a.dm-footer__phone {
  font-family: var(--dm-footer-heavy);
  font-weight: 900;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

.dm-footer__list a:hover {
  opacity: 0.7;
}

.dm-footer__copy {
  margin: 1.15rem 0 0;
  color: #fff;
  font-family: var(--dm-font-display);
  font-weight: 400;
  font-size: 0.84rem;
  line-height: 1.3;
}

@media (min-width: 960px) {
  .dm-footer {
    /* Alto exacto del bloque de redes: mantiene la fila 1 fija para que
       Zipwall arranque al mismo nivel que las otras columnas. */
    --dm-footer-aside: calc(40px + 1.75rem);
    padding: clamp(3.6rem, 6vw, 4.5rem) 0 2rem;
  }

  .dm-footer .dm-container {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.75fr));
    grid-template-areas:
      "brand col2 col3 social"
      "brand col2 col3 zip"
      "copy copy copy copy";
    grid-template-rows: var(--dm-footer-aside) auto;
    column-gap: clamp(1.5rem, 3.5vw, 3rem);
    row-gap: 0;
    align-items: start;
  }

  .dm-footer__grid {
    display: contents;
  }

  .dm-footer__brand {
    grid-area: brand;
  }

  .dm-footer__col--contact {
    grid-area: col2;
    padding-top: var(--dm-footer-aside);
  }

  .dm-footer__col--dmadera {
    grid-area: col3;
    padding-top: var(--dm-footer-aside);
  }

  .dm-footer__col--zip {
    grid-area: zip;
  }

  .dm-footer__social {
    grid-area: social;
    justify-content: center;
    margin: 0 0 1.75rem;
    gap: 0.7rem;
  }

  .dm-footer__social-btn {
    width: 40px;
    height: 40px;
  }

  .dm-footer__copy {
    grid-area: copy;
    margin-top: 3.1rem;
  }
}

@media (max-width: 959px) {
  .dm-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .dm-footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .dm-footer {
    padding: 2.5rem 0 1.5rem;
  }

  .dm-footer__tagline {
    max-width: none;
    font-size: 1.2rem;
  }

  .dm-footer__social-btn {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-footer__social-btn:hover {
    transform: none;
  }
}
