* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fuentes generales */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5e9f7;
  color: #3d0066;
}

/* Encabezado con fondo morado */
header {
  background-color: #5b189a;
  color: white;
  padding: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  height: 70px;
  margin-right: 20px;
}

/* Estilo del título con letras animadas */
.titulo-color {
  display: flex;
  gap: 0.2rem;
  font-size: 2rem;
  font-weight: bold;
}

.letra {
  animation: colores 5s infinite;
}

/* Nuevas fuentes aplicadas */
.estilo1 { font-family: 'Chewy', cursive; }
.estilo2 { font-family: 'Montserrat', sans-serif; }
.estilo3 { font-family: 'Quicksand', sans-serif; }

@keyframes colores {
  0%   { color: #ff3c3c; }
  25%  { color: #ffa500; }
  50%  { color: #28a745; }
  75%  { color: #007bff; }
  100% { color: #800080; }
}

/* Menú debajo del logo y título */
nav {
  margin-top: 4rem;
}

.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.menu li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  background-color: #7b3dbf;
  transition: background 0.3s ease, transform 0.2s ease;
}

.menu li a:hover {
  background-color: #a55df0;
  transform: scale(1.05);
}

/* Sección de bienvenida */
.bienvenida {
  padding: 3rem 1rem;
  text-align: center;
}

.bienvenida h2 {
  font-size: 2rem;
  color: #5b189a;
  margin-bottom: 1rem;
}

.bienvenida p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.galeria {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.galeria img {
  width: 300px;
  max-width: 90%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Pie de página */
footer {
  background-color: #5b189a;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .logo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo img {
    margin-left: 0;
    margin-top: 1rem;
  }

  .titulo-color {
    position: static;
    transform: none;
    justify-content: center;
    text-align: center;
  }

  .menu {
    flex-direction: column;
    gap: 1rem;
  }

  .galeria img {
    width: 90%;
  }
}