/* ==========================================================================
   footer.css - Estilos del Pie de Página Institucional
   ========================================================================== */

.site-footer {
  width: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* BLOQUE SUPERIOR */
.footer-top {
  background-color: #ffffff;
  padding: 1.75rem 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.footer-top-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* Estructura en 3 columnas: Izquierda, Centro y Derecha */
  align-items: center;
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-dark-blue, #062c62);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

/* 1. Columna Izquierda: Estadísticas */
.footer-stats {
  justify-self: start;
  text-align: left;
}

.footer-stats .stats-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 0.25rem;
}

.stats-value {
  font-weight: 600;
}

.stats-date {
  color: var(--color-dark-blue, #062c62);
  font-weight: 700;
}

/* 2. Columna Central: Redes Sociales */
.footer-social {
  justify-self: center;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

/* Iconos de redes con color --color-dark-blue */
.social-icon {
  width: 42px;
  height: 42px;
  background-color: var(--color-dark-blue, #062c62);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.25 ease, transform 0.2s ease;
}

.social-icon:hover {
  background-color: #00a896; /* Tono de acento al pasar el cursor */
  transform: translateY(-2px);
}

/* 3. Columna Derecha: Logotipos UNAM / 475+ */
.footer-logos {
  justify-self: end;
  flex-direction: row;
  align-items: center;
  gap: 1.8rem;
}

.footer-logo {
  height: clamp(42px, 6vw, 64px);
  width: auto;
  object-fit: contain;
}

/* BLOQUE INFERIOR */
.footer-bottom {
  background-color: var(--color-dark-blue, #062c62);
  color: #cbd5e1;
  padding: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.8;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-copyright {
  white-space: nowrap;
  font-weight: 500;
  color: #94a3b8;
  border-right: 1px solid #1e293b;
  padding-right: 1.5rem;
}

.footer-legal {
  flex: 1;
}

.footer-legal strong {
  color: #ffffff;
}

.footer-legal a {
  display: inline-block;
  margin: 0.15rem 0.3rem;
  color: #ffba08;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* ADAPTACIÓN RESPONSIVE (Móviles / Tablets) */
@media (max-width: 868px) {
  .footer-top-container {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .footer-stats, 
  .footer-social, 
  .footer-logos {
    justify-self: center;
  }

  .footer-logos {
    justify-content: center;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  .footer-copyright {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 0.8rem;
    width: 100%;
  }
}