/* AgroQuipu360® — Footer premium compacto (solo footer.css) */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 0 var(--section-pad-x);
  background: var(--field-dark);
  border-top: 1px solid rgba(217, 164, 65, 0.22);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(220px, 36%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--harvest-gold), transparent);
  pointer-events: none;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(1.1rem, 2vw, 1.35rem) 0 clamp(1rem, 1.8vw, 1.2rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(0, 0.9fr);
  gap: clamp(1rem, 2.2vw, 1.75rem);
  align-items: start;
}

.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand__link {
  display: inline-block;
  align-self: flex-start;
  line-height: 0;
  margin-bottom: 0.1rem;
}

.footer-brand__logo {
  width: clamp(152px, 14vw, 178px);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
}

.footer-brand__tagline {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 28ch;
}

.footer-brand__copy {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-subtle);
}

.footer-brand__dev {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-subtle);
}

.footer-brand__dev a {
  color: rgba(248, 250, 246, 0.68);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-brand__dev a:hover {
  color: var(--harvest-gold);
}

.footer-col__title {
  margin: 0 0 0.45rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--harvest-gold);
}

.footer-col__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.footer-col__links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col__links a:hover {
  color: var(--white-soft);
}

.footer-location {
  font-size: 0.78rem;
  color: var(--text-subtle);
  line-height: 1.4;
}

.footer-social {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-social__link:hover {
  color: var(--white-soft);
}

.footer-social__link:hover .footer-social__icon {
  color: var(--harvest-gold);
  border-color: rgba(217, 164, 65, 0.4);
  background: rgba(217, 164, 65, 0.1);
}

.footer-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--text-subtle);
  transition:
    color var(--transition),
    border-color var(--transition);
}

.footer-social__icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "contact social";
    gap: 1rem 1.25rem;
  }

  .footer-col--brand {
    grid-area: brand;
  }

  .footer-col--contact {
    grid-area: contact;
  }

  .footer-col--follow {
    grid-area: social;
  }

  .footer-brand__tagline {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "contact"
      "social";
    gap: 0.9rem;
  }

  .footer-brand__logo {
    width: clamp(140px, 42vw, 168px);
  }

  .footer-social {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
  }
}
