/* --- FOOTER --- */
.footer {
  background-color: #ffffff;
  padding: 4rem 5% 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05); /* Línea muy sutil para separar del test de velocidad */
}

/* Contenedor superior (Logo y Enlaces) */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 4rem; /* Espacio entre los enlaces y el copyright */
}

/* Estilo del Logo en el Footer */
.logo-footer {
  font-size: 3.5rem;
  font-weight: 900;
  text-decoration: none;
  color: transparent;
  -webkit-text-stroke: 2px var(--primary-text-color);
  letter-spacing: 2px;
}

/* Enlaces Legales */
.footer-links {
  display: flex;
  gap: 2.5rem;
}

.footer-links a {
  color: var(--primary-text-color);
  text-decoration: underline;
  text-underline-offset: 4px; /* Separa un poco la línea del texto para que se vea más limpio */
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secundario);
}

/* Contenedor inferior (Copyright) */
.footer-bottom {
  text-align: center;
  width: 100%;
  max-width: 1200px;
}

.footer-bottom p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-text-color);
}

/* --- RESPONSIVE DESIGN PARA EL FOOTER --- */
@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }

  .footer-links {
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .logo-footer {
    font-size: 2.8rem;
  }

  .footer-links {
    flex-direction: column; /* Apila los enlaces uno sobre otro en celulares */
    gap: 1rem;
  }

  .footer-bottom p {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}

/*LOGO ANIMADO*/
.logo-animado {
  display: inline-flex; /* Permite que conviva en la misma línea que el párrafo */
  gap: 1px; /* Espacio entre "ByAndru" y "Web>" */
  vertical-align: baseline; /* Alinea el logo con el resto del texto */
  font-family: "Arimo", sans-serif;
  font-weight: 700;
  text-decoration: none; /* Quita el subrayado del enlace si lo deseas */
  cursor: pointer;
  color: var(
    --text-color
  ); /* Aplica el color del texto adaptándose al modo día/noche */
  transition: color 0.3s ease;
}

/* Contenedores de las palabras */
.logo-animado .linea-superior,
.logo-animado .linea-inferior {
  display: inline-flex;
  transition: 0.2s ease all;
}

/* Letras individuales */
.logo-animado span span {
  display: inline-block; /* Necesario para que el transform funcione */
  transition: transform 0.3s ease;
}

/* Hover de colores individuales (Opcional, sin cambiar tamaños) */
.logo-animado:hover .linea-superior {
  color: #d1c4e9;
}

.logo-animado:hover .linea-inferior {
  color: #000000;
}

/* Solo animamos los span que están dentro de las líneas (las letras) */
.logo-animado:hover > span > span {
  animation: ola 0.8s ease-in-out infinite;
  animation-delay: calc(0.1s * var(--i));
}

/* --- ANIMACIÓN DE OLA --- */
@keyframes ola {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px); /* Salto suave */
  }
}
