
.contenido {
  position: relative;
  z-index: 2;
}

.contenido h1,
.contenido p,
.boton {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.contenido h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation-delay: 0.3s;
}

.contenido p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation-delay: 0.6s;
}

.boton {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #511dc2;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
  animation-delay: 0.9s;
}

.boton:hover {
  background: #000078;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInSection {
  to {
    opacity: 1;
  }
}
.como-funciona {
  padding: 4rem 2rem;
  background-color: #f5f5f5;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

.funciona-contenido {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.funciona-img {
  flex: 1 1 400px;
  padding: 1rem;
  text-align: center;
}

.funciona-img img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.funciona-texto {
  flex: 1 1 400px;
  padding: 1rem 2rem;
}

.funciona-texto h2 {
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 1rem;
}

.funciona-texto p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.funciona-texto ul {
  list-style: none;
  padding-left: 0;
}

.funciona-texto li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #444;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
.seccion-api {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  flex-wrap: wrap;
  gap: 2rem;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

.definicion-api .contenido-api {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  gap: 2rem;
}

.texto-api {
  flex: 1;
  color: #333;
}

.texto-api h2 {
  font-size: 2.5rem;
  color: #511dc2;
  margin-bottom: 1rem;
}

.texto-api p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.imagen-api {
  flex: 1;
  text-align: center;
}

.imagen-api img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}



@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .definicion-api .contenido-api {
    flex-direction: column; 
  }
}
