/* Footer general */
.footer {
  display: flex;
  flex-wrap: wrap; /* permite que las secciones bajen si no caben */
  justify-content: space-between;
  align-items: center;
  background-color: #0d1b3f; /* mismo azul que el header scrolled */
  color: white;
  padding: 15px 20px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
}

/* Secciones del footer */
.footer-left,
.footer-center,
.footer-right {
  flex: 1 1 100%; /* por defecto ocupan todo el ancho en móviles */
  text-align: center; /* centrado horizontal */
  margin-bottom: 10px; /* separación vertical en móviles */
}

/* Logo */
.footer-left img {
  max-width: 160px;
  height: auto;
}

/* Texto centrado línea por línea */
.footer-center {
  text-align: center;
  line-height: 1.6;
}

.footer-center p {
  margin: 0;
}

/* Iconos sociales */
.footer-right {
  display: flex;
  justify-content: center; /* centrado horizontal en móviles */
  gap: 15px;
}

.social-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease, filter 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
  filter: brightness(1.5);
}

/* Layout para pantallas grandes (>768px) */
@media(min-width: 768px) {
  .footer-left,
  .footer-center,
  .footer-right {
    flex: 1; /* vuelven a ocupar partes iguales */
    margin-bottom: 0;
  }

  .footer-left {
    text-align: left;
  }

  .footer-center {
    text-align: center;
  }

  .footer-right {
    justify-content: flex-end;
  }
}
