/* =========================================================
   WikiMeteo.es — FOOTER
   Igual estilo que JDServer.es
   ========================================================= */

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

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

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

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

.wm-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 */

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

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

/* Derecha: enlaces */

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

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

[data-theme="light"] .wm-footer-link {
  color: #0f766e;
}

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

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

/* Responsive */

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