/* ====== FOOTER ====== */

.site-footer {
  background-color: #1f313a;
  color: #e3eaef;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-social {
  margin-top: 2rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 26px;
  color: #e3eaef;
  opacity: 0.85;
}

.footer-social-link img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.footer-social-link:hover {
  opacity: 1;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #eca694;
  margin-bottom: 0.6rem;
}

.footer-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-list li + li {
  margin-top: 0.25rem;
}

.footer-list a {
  font-size: 0.9rem;
  color: #c2d0d9;
  text-decoration: none;
}

.footer-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Legal */
.footer-bottom {
  border-top: 1px solid #eca694;
  text-align: center;
}

.footer-legal {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #a9b8c3;
}

.footer-legal a {
  color: #d6e0e8;
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .pub-title {
    text-align: center;
  }

  .footer-logo {
    text-align: left;
  }
}

/* ===== FOOTER MÓVIL ===== */
@media (max-width: 767.98px) {
  .site-footer {
    text-align: center;
  }

  .footer-logo-img {
    margin: 0 auto;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-accordion {
    margin-top: 1.25rem;
  }

  .footer-acc-item {
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(236, 166, 148, 0.35);
  }

  .footer-acc-btn {
    background: transparent !important;
    color: #eca694 !important;
    font-weight: 600;
    letter-spacing: 0.08em;
    box-shadow: none !important;

    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.9rem 0;
  }

  .footer-acc-btn:focus {
    box-shadow: none !important;
  }

  @media (max-width: 767.98px) {
    .footer-acc-btn::after {
      display: none !important;
      content: none !important;
    }
  }

  .footer-acc-body {
    padding: 0.5rem 0 1rem;
    text-align: center;
  }

  .footer-acc-body .footer-list {
    padding-left: 0 !important;
    margin: 0;
    text-align: center;
  }

  .footer-acc-body .footer-list li {
    text-align: center;
  }

  .footer-acc-body .footer-list a {
    display: inline-block;
    padding: 0.15rem 0;
    text-align: center;
  }

  .site-footer .footer-legal.mb-0 a {
    display: block;
    padding: 0.15rem 0;
  }

  .site-footer .footer-legal.mb-0 {
    font-size: 0.78rem;
  }

  .site-footer .footer-bottom .footer-legal.mb-1 {
    display: none !important;
  }
}
/* ESCRITORIO: en línea, con separadores y aire */
@media (min-width: 768px) {
  .footer-links a {
    display: inline-block;
  }

  .footer-links > a:not(:first-child)::before {
    content: "|";
    margin: 0 0.6rem;
    opacity: 0.8;
  }

  .footer-designed {
    margin-left: 0.6rem;
  }
}

@media (max-width: 767.98px) {
  .footer-links > a {
    display: block;
    padding: 0.15rem 0;
  }

  .footer-designed {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    white-space: nowrap;
    margin-top: 0.5rem;
  }

  .footer-designed a {
    display: inline;
    padding: 0;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .site-footer {
    padding-top: 2rem !important;
  }

  .site-footer .row.mb-4 {
    margin-bottom: 1.25rem !important;
  }

  /* Logo y bloque izquierdo un poco más centrado */
  .site-footer .footer-logo-img {
    height: 30px;
  }

  /* En tablet mejor 2 columnas + 2 columnas (en vez de 4 muy estrechas) */
  .site-footer .col-md-8 .row.d-none.d-md-flex > div {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 1.25rem;
  }

  .footer-heading {
    font-size: 0.85rem;
  }

  /* Legal un pelín más compacto */
  .footer-bottom {
    padding-top: 1rem !important;
    padding-bottom: 1.25rem !important;
  }

  .footer-legal {
    font-size: 0.72rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  /* Reordenar columnas SOLO en tablet: */
  .site-footer .col-md-8 .row.d-none.d-md-flex > div:nth-child(1) {
    order: 1;
  } /* PRESENTACIÓN */
  .site-footer .col-md-8 .row.d-none.d-md-flex > div:nth-child(2) {
    order: 3;
  } /* PRODUCTOS */
  .site-footer .col-md-8 .row.d-none.d-md-flex > div:nth-child(3) {
    order: 2;
  } /* PUBLICACIONES */
  .site-footer .col-md-8 .row.d-none.d-md-flex > div:nth-child(4) {
    order: 4;
  } /* CONTACTO */
}

@media (min-width: 768px) {
  .site-footer .footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
  }
  .site-footer .footer-list .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 0;
  }
  .site-footer .footer-list > li > a {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #eca694;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.4rem;
  }
  .site-footer .footer-list .sub-menu a {
    font-size: 0.9rem;
    color: #c2d0d9;
    text-decoration: none;
  }
  .site-footer .footer-list .sub-menu a:hover {
    color: #fff;
    text-decoration: underline;
  }
}

.site-footer .footer-list a {
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  opacity: 0.9;
  color: #c2d0d9 !important;
}

.footer-heading-link {
  color: inherit;
  text-decoration: none;
}
.footer-heading-link:hover {
  text-decoration: underline;
}
