@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* Estilos generales */
body {
  margin: 0;
}

.navbar {
  display: flex;
  justify-content: left;
  align-items: left;
  background-color: #ed1919;
  position: fixed;
  top: 0;
  width: 100%;
  font-size: 17px;
  padding: 7px;
  z-index: 1000;
}

.nav-right ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-right ul li a {
  text-decoration: none;
  color: white;
  padding: 10px 15px;
  transition: background-color 0.3s ease;
  border-radius: 5px;
}

.nav-right ul li a:hover {
  background-color: #ffffff;
  color: #ed1919;
  border-radius: 5px;
}

/* Botón de menú hamburguesa */
.menu-toggle {
  margin-left: 10px;
  font-size: 25px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none;
  padding-right: 20px;
}

/* Diseño responsive para pantallas pequeñas */
@media (max-width: 750px) {
  .nav-right ul {
      flex-direction: column;
      width: 100%;
      display: none; /* Oculto por defecto */
  }

  .nav-right ul li {
      margin: 5px 10px;
      text-align: left;
      font-size: 15px;
      border: 1px solid #ccc;
      border-radius: 10px;
      margin-right: 30px;
      padding-right: 0px;
      padding-left: 0;
      width: 100%;
  }

  .nav-right ul li a{
    padding: 5px;
  }

  .menu-toggle {
      display: block; /* Mostrar el botón en pantallas pequeñas */
  }

  /* Mostrar el menú cuando está activo */
  .nav-right.active ul {
      display: flex;
  }
}


li {
  padding-left: 20px;
}

li a {
  display: block;
  padding: 8px;
  text-decoration: none;
  color:white;
}

li ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
}

li a:hover {
  background-color: rgb(255, 255, 255);
  border-radius: 5px;
  color: #ed1919;
}

.active {
  background-color: #ed1919;
}

.acerca-de {
  background-color: #fff;
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.acerca-de h1 {
  text-align: center;
  color: #ed1919;
  font-size: 2.5rem;
  margin-bottom: 20px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.acerca-de h2 {
  color: #0056b3;
  margin-top: 30px;
  font-size: 1.8rem;
  opacity: 0;
  animation: slideIn 1.5s forwards;
}

.acerca-de p {
  margin-bottom: 20px;
  color: #000000;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  opacity: 0;
  animation: slideIn 2s forwards;
}

.acerca-de a {
  color: #0056b3;
  text-decoration: none;
  font-weight: bold;
}

.acerca-de a:hover {
  text-decoration: underline;
}

.image {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.image:hover {
  transform: scale(1.05);
}

.animate-fade-in {
  animation: fadeInImage 1.5s forwards;
}

.animate-slide-up {
  animation: slideUpImage 2s forwards;
}

/* Separador */
.separador {
  margin: 40px 0;
  border: none;
  border-top: 2px solid #7b7b7b;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Keyframes for Animations */
@keyframes fadeInImage {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

@keyframes slideUpImage {
  from {
      transform: translateY(50px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }

}

@keyframes slideIn {
  from {
      transform: translateX(-50px);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

@keyframes popIn {
  0% {
      transform: scale(0.95);
      opacity: 0;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .acerca-de {
      padding: 20px;
  }

  .acerca-de h1 {
      font-size: 2rem;
  }

  .acerca-de h2 {
      font-size: 1.5rem;
  }

  .acerca-de p {
      font-size: 1rem;
  }

  .separador {
      width: 100%;
  }
}