/* Footer del sitio */

.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--font-body);
  margin-top: 5rem;
}

.footer-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand .logo {
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.footer-brand .logo img {
  width: 42px;
}

.footer-brand .logo span {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
}

.footer-brand p {
  max-width: 320px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--blue);
  background: rgba(59, 130, 246, 0.12);
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 13px;
  flex-wrap: wrap;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--ink);
}

/* Botón de arrepentimiento (Disp. 954/2025). El componente .btn-arrepentimiento
   se puede usar también fuera del footer. */
.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.btn-arrepentimiento {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg-0);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.btn-arrepentimiento:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-arrepentimiento svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-payments {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.7;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 991.98px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.5rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .btn-arrepentimiento {
    width: 100%;
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
