/* ============================================================
   FOOTER.CSS — Pie de página
   ============================================================ */

/* --- FOOTER PRINCIPAL --- */
.site-footer {
  background: var(--color-gray-900);
  color: rgba(255,255,255,0.70);
  padding-top: var(--space-16);
}

/* --- GRID SUPERIOR --- */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Columna marca */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 320px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  width: fit-content;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-logo-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

.footer-logo-name {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* Redes en footer */
.footer-social {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.60);
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

/* Columnas de navegación / Columna de links */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition-fast), gap var(--transition-fast);
  width: fit-content;
}

.footer-link::before {
  content: '›';
  font-size: 1.2em;
  line-height: 1;
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  transform: translateX(-6px);
}

.footer-link:hover {
  color: var(--color-white);
  gap: var(--space-3);
}

.footer-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* --- FOOTER INFERIOR (COPYRIGHT) --- */
.footer-bottom {
  padding-block: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

.footer-copy strong {
  color: rgba(255,255,255,0.55);
  font-weight: var(--weight-medium);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.70);
}

.footer-legal span {
  color: rgba(255,255,255,0.15);
}

/* Responsive Footer */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-8);
  }

  .footer-brand > *:first-child,
  .footer-brand > p {
    flex: 1;
    min-width: 220px;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
