@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Montserrat&family=Poppins&display=swap');

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5e9f7;
  color: #3d0066;
  text-align: center;
}

/* ENCABEZADO Y TÍTULO */
header {
  background-color: #5b189a;
  color: white;
  padding: 1.5rem;
}

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

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

.titulo-color {
  display: flex;
  gap: 0.2rem;
  font-size: 2rem;
  font-weight: bold;
  flex-wrap: wrap;
  justify-content: center;
}

.letra {
  animation: colores 5s infinite;
}

.estilo1 { font-family: 'Pacifico', cursive; }
.estilo2 { font-family: 'Montserrat', sans-serif; }
.estilo3 { font-family: 'Poppins', sans-serif; }

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

/* MENÚ */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

nav ul li a {
  text-decoration: none;
  background-color: #7b3dbf;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: bold;
  transition: background 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

nav ul li a:hover {
  background-color: #a55df0;
}

/* CONTENEDOR REGISTRO HORIZONTAL */
.registro-horizontal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 3rem auto;
  flex-wrap: nowrap;
  max-width: 1200px;
  padding: 1rem;
}

/* IMÁGENES A LOS LADOS */
.imagen-lateral {
  width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(91, 24, 154, 0.4);
  transition: transform 0.3s ease;
}

.imagen-lateral:hover {
  transform: scale(1.05);
}

/* FORMULARIO */
.formulario {
  max-width: 400px;
  width: 100%;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.formulario h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.formulario input {
  width: 100%;
  padding: 0.8rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.formulario button {
  width: 100%;
  padding: 0.8rem;
  background-color: #5b189a;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.formulario button:hover {
  background-color: #7b3dbf;
}

/* FOOTER */
footer {
  background-color: #5b189a;
  color: white;
  padding: 1rem;
  margin-top: 3rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .registro-horizontal {
    flex-direction: column;
    align-items: center;
  }

  .imagen-lateral {
    width: 150px;
  }

  .formulario {
    padding: 1.5rem;
    margin: 1rem;
  }

  .titulo-color {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }
}
