/* HU-WEB-033: Homologación Partner de IA y Tokens Físicos */
/* site-footer.css — Arquitectura de Footer Canónico TheIA (4 Columnas Balanceadas) */

footer {
  background: var(--bg, #0b0f19);
  border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  padding: 3.5rem 1.5rem 2.5rem;
  width: 100%;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.footer-col--brand .logo {
  display: inline-block;
  margin-bottom: 0.85rem;
}

.footer-col--brand .logo img {
  height: 100px;
  width: auto;
  display: block;
}

.footer-col h4 {
  color: var(--gold-light, #ebca73);
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif);
  font-size: 0.95rem;
  margin: 0 0 0.85rem 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-col p {
  color: var(--text-muted, rgba(255, 255, 255, 0.6));
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.footer-security {
  color: var(--text-muted, rgba(255, 255, 255, 0.6));
  font-size: 0.8rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

.footer-security span {
  font-size: 0.9rem;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}

.footer-col a {
  color: var(--text-sub, rgba(255, 255, 255, 0.75));
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-col a:hover {
  color: var(--gold, #d4af37);
  transform: translateX(2px);
}

/* Contact column with branded badge icons */
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-sub, rgba(255, 255, 255, 0.75));
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1;
  transition: all 0.2s ease;
  padding: 0.2rem 0;
}

.footer-contact-link > span:not(.footer-contact-badge) {
  display: inline-block;
  line-height: 1.2;
  transform: translateY(0.5px);
}

.footer-contact-link:hover {
  color: #ffffff !important;
  transform: translateX(3px);
}

.footer-contact-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.footer-contact-badge svg {
  display: block;
}

.footer-contact-link:hover .footer-contact-badge {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}

.footer-contact-badge--mail { color: var(--gold-light, #ebca73); }
.footer-contact-badge--wa { color: #25d366; }
.footer-contact-badge--li { color: #0a66c2; }
.footer-contact-badge--ig { color: #e1306c; }

.footer-bottom {
  max-width: 1140px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-copy {
  color: var(--text-muted, rgba(255, 255, 255, 0.57));
  font-size: 0.82rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-legal-links a {
  color: var(--text-muted, rgba(255, 255, 255, 0.57));
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--gold, #d4af37);
}

@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }
  .footer-col--brand {
    grid-column: span 2;
    max-width: 500px;
  }
  .footer-col--brand .logo img {
    height: 60px;
  }
}

@media (max-width: 560px) {
  footer {
    padding: 2.5rem 1.25rem 6rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-col,
  .footer-col--brand {
    grid-column: span 1;
    align-items: center !important;
    text-align: center !important;
  }
  .footer-links-group {
    align-items: center !important;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    margin-top: 2rem;
  }
  .footer-legal-links {
    justify-content: center;
  }
}
