/* ============================================================
   JDServer.es — FOOTER
   Banda inferior suave
   ============================================================ */

#jd-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

[data-theme="light"] #jd-footer {
  background: linear-gradient(
    180deg,
    rgba(226, 232, 240, 0.65),
    rgba(226, 232, 240, 0.9)
  );
  color: #111827;
}

[data-theme="dark"] #jd-footer {
  background: linear-gradient(
    180deg,
    #020617,
    #020617
  );
  color: #e5e7eb;
}

/* Auto = oscuro si no hay atributo o vale "auto" */
:root:not([data-theme]) #jd-footer,
:root[data-theme="auto"] #jd-footer {
  background: linear-gradient(
    180deg,
    #020617,
    #020617
  );
  color: #e5e7eb;
}

.jd-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
}

/* Izquierda: texto */

.jd-footer-left {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.jd-footer-left span {
  opacity: 0.86;
}

/* Derecha: enlaces */

.jd-footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.jd-footer-link {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
}

[data-theme="light"] .jd-footer-link {
  color: #0284c7;
}

[data-theme="dark"] .jd-footer-link,
:root:not([data-theme]) .jd-footer-link,
:root[data-theme="auto"] .jd-footer-link {
  color: #38cfff;
}

.jd-footer-link:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 768px) {
  .jd-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
