/* =============================================================
   FOOTER — Pie de página
   WordPress: footer.php
   ============================================================= */

.site-footer {
  background-color: var(--c-dark);
  border-top: 1px solid var(--c-dark-border);
  padding-block: 3.5rem 2.25rem;
}

/* ── Layout superior ─────────────────────────────────────────── */
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5rem;
  margin-bottom: 3rem;
}

/* ── Brand ───────────────────────────────────────────────────── */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 280px;
}

/* Logo */
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.footer__logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--c-dark-3);
  border: 1px solid var(--c-dark-5);
  border-radius: var(--r-sm);
}

.footer__logo-dot {
  display: block;
  width: 10px;
  height: 10px;
  background-color: var(--c-accent);
  border-radius: var(--r-xs);
}

.footer__logo-name {
  font-family: var(--f-ui);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  color: var(--c-white);
}

/* Tagline */
.footer__tagline {
  font-family: var(--f-body);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--c-white);
}

/* Contacto */
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-size: 0.875rem;
  color: var(--c-white);
  text-decoration: none;
  transition: color var(--t);
}

.footer__contact-link:hover {
  color: var(--c-accent);
}

/* Redes sociales */
.footer__socials {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--c-dark-3);
  border: 1px solid #2A2A2A;
  border-radius: var(--r-sm);
  color: var(--c-white);
  text-decoration: none;
  transition: color var(--t), border-color var(--t), background-color var(--t);
}

.footer__social:hover {
  color: var(--c-white);
  border-color: var(--c-dark-5);
  background-color: var(--c-dark-5);
}

.footer__social:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* ── Navegación del footer ───────────────────────────────────── */
.footer__nav {
  display: flex;
  gap: 3.5rem;
  flex-shrink: 0;
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  list-style: none;
}

.footer__nav a {
  font-family: var(--f-body);
  font-size: 0.875rem;
  color: var(--c-white);
  text-decoration: none;
  transition: color var(--t);
}

.footer__nav a:hover {
  color: var(--c-accent);
}

.footer__nav a:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Layout inferior ─────────────────────────────────────────── */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-dark-border);
}

.footer__copy {
  font-family: var(--f-ui);
  font-size: 0.8125rem;
  color: var(--c-white);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer__legal a {
  font-family: var(--f-ui);
  font-size: 0.8125rem;
  color: var(--c-white);
  text-decoration: none;
  transition: color var(--t);
}

.footer__legal a:hover {
  color: var(--c-accent);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__top {
    gap: 2.5rem;
  }

  .footer__nav {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer__top {
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 2rem;
  }

  .footer__brand {
    max-width: 100%;
  }

  .footer__nav {
    width: 100%;
    justify-content: flex-start;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer__legal {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .footer__nav {
    gap: 2rem;
  }
}
