/* ============================================================
   FOOTER.CSS — permisosmunicipales.cl
   ============================================================ */

footer {
  background: #3a3a3a;           /* gris oscuro hardcodeado, no depende de variables */
  padding: 3rem 5vw 2rem;
  border-top: 1px solid rgba(0,178,134,0.15);
}

.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1.5rem;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem; color: #F8F9FA;
}
.footer-logo span       { color: #00c998; }           /* verde-lt */
.footer-logo .tld-footer { color: rgba(255,255,255,0.4); font-size: 0.9em; }

.footer-tagline {
  font-size: 0.78rem; color: #A0AEC0;
  margin-top: 0.4rem;
  max-width: 260px; line-height: 1.5;
}

.footer-links h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #00b286;
  margin-bottom: 0.75rem;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a {
  font-size: 0.8rem; color: #A0AEC0; text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: #F8F9FA; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
}

.footer-credit-link {
  color: #00c998;
  text-decoration: none;
  transition: color .2s;
}
.footer-credit-link:hover { color: #fff; text-decoration: underline; }

/* Íconos sociales en el footer */
.footer-social {
  display: flex; gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0,178,134,0.15);
}
.footer-social .social-link {
  width: 52px; height: 52px;
  border: 1.5px solid rgba(0,178,134,0.3);
  color: #00c998;
  background: rgba(0,178,134,0.06);
}
.footer-social .social-link svg { width: 24px; height: 24px; }
.footer-social .social-link:hover {
  background: #00b286;
  border-color: #00b286;
  color: #fff;
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
  footer { padding: 2.5rem 5vw 1.5rem; }
  .footer-top {
    flex-direction: column; align-items: flex-start; gap: 2rem;
  }
  .footer-links { text-align: left; }
  .footer-links ul { align-items: flex-start; }
  .footer-social { justify-content: flex-start; }
  .footer-bottom {
    flex-direction: column; align-items: flex-start; gap: 0.4rem;
  }
}

/* iPad */
@media (min-width: 768px) and (max-width: 1024px) {
  .footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
}