* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
  }
  
  .contenedor1 {
  background-image: url('../img/fondo-1.jpg');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;


  opacity: 0;
  animation: fadeInSection 1s ease forwards;
}

.contenedor1::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.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;
  }
}

  .capa{
    position: fixed;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: -1;
    top: 0;left: 0;
    }


.api-importancia {
  background-color: #e5fcff;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
}

.api-importancia h2 {
  font-size: 2rem;
  color: #0099cc;
  font-weight: bold;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1s ease, transform 1s ease;
}

.api-importancia h2.visible {
  opacity: 1;
  transform: translateY(0);
}

.api-beneficios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  font-size: 1.1rem;
  color: #006c99;
}

.beneficio {
  max-width: 200px;
  border-left: 2px solid #00ccff;
  padding-left: 15px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease var(--delay, 0s),
    transform 0.8s ease var(--delay, 0s),
    background-color 0.3s ease,
    border-left-color 0.3s ease;
}

.beneficio.visible {
  opacity: 1;
  transform: translateY(0);
}

.beneficio:hover {
  transform: translateY(-5px) scale(1.02);
  background-color: #d3f6ff;
  border-left-color: #0099cc;
}

.api-info {
  text-align: center;
  padding: 60px 20px;
}

.api-info h1 {
  color: #66cce1;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.api-info p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 40px;
}

.api-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.api-box {
  border: 1px solid #cdebf1;
  border-radius: 10px;
  padding: 30px;
  width: 300px;
  background-color: #f9fdff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease,
    transform 0.2s ease; 
}

.api-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.api-box:hover {
  transform: translateY(-5px);
}

.icon {
  font-size: 3rem;
  color: #66cce1;
  margin-bottom: 15px;
}

.api-box h2 {
  font-size: 1.5rem;
  color: #66cce1;
  margin-bottom: 20px;
}

.api-box p {
  font-size: 0.90rem;
  color: #8a8a8a;
  margin-bottom: 20px;
}

button {
  background-color: #99e2f0;
  border: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 5px;
  cursor: pointer;
  color: #000;
}

button:hover {
  background-color: #77d0e5;
}


.api-importancia {
  background-color: #e5fcff;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
}

.api-importancia h2 {
  font-size: 2rem;
  color: #0099cc;
  font-weight: bold;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1s ease, transform 1s ease;
}
.api-importancia h2.visible {
  opacity: 1;
  transform: translateY(0);
}

.api-beneficios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  font-size: 1.1rem;
  color: #006c99;
}

.beneficio {
  max-width: 200px;
  border-left: 2px solid #00ccff;
  padding-left: 15px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(30px);
   transition: opacity 0.8s ease, transform 0.8s ease;
}
.beneficio.visible {
  opacity: 1;
  transform: translateY(0);
}

.beneficio:hover {
  transform: translateY(-5px) scale(1.02);
  background-color: #d3f6ff;
  border-left-color: #0099cc;
}

@keyframes fadeInTop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pokemon-api {
  background-color: #f0faff;
  padding: 50px 20px;
  text-align: center;
}

.pokemon-api h2 {
  color: #006c99;
  font-size: 2rem;
  margin-bottom: 10px;
}

.pokemon-api input {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #66cce1;
  border-radius: 5px;
  margin-right: 10px;
}

.pokemon-api button {
  background-color: #66cce1;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}

.pokemon-api button:hover {
  background-color: #4dbcd1;
}

#pokemonResult {
  margin-top: 30px;
  font-size: 1rem;
  color: #333;
}

#pokemonResult img {
  width: 150px;
  margin-top: 20px;
}

.api-tips {
  background: linear-gradient(to bottom, #f2fbff, #dff2fa);
  padding: 60px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.tips-container {
  max-width: 1100px;
  margin: auto;
}

.api-tips h2 {
  font-size: 2.8rem;
  color: #004f7c;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.api-tips h2::after {
  content: '';
  width: 80px;
  height: 4px;
  background-color: #00aaff;
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.tips-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tips-list li {
  background-color: white;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tips-list li::before {
  content: "💡";
  font-size: 1.5rem;
  position: absolute;
  top: 15px;
  right: 2px;
}

.tips-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .api-tips {
    padding: 40px 15px;
  }

  .api-tips h2 {
    font-size: 2rem;
  }
}

.video-carousel {
  background-color: #eef9ff;
  padding: 60px 20px;
  text-align: center;
}

.video-carousel h2 {
  font-size: 2.5rem;
  color: #004f7c;
  margin-bottom: 30px;
}

.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

.carousel-track iframe {
  flex: 0 0 100%;
  max-width: 100%;
  height: 400px;
  border-radius: 10px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #004f7c;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background-color: #0073b3;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

@media (max-width: 768px) {
  .carousel-track iframe {
    height: 250px;
  }
  .carousel-btn:hover {
    background-color: #0073b3;
  }
  
  .carousel-btn.prev {
    left: 3px;
  }
  
  .carousel-btn.next {
    right: 3px;
  }
  
}

.header {
    width: 100%;
    height: 100px;
    position: fixed;
    top: 0; left: 0;
    background: transparent;
    transition: background-color 0.3s ease;
    z-index: 9999;
  }
  

  .header.scrolled {
    background: linear-gradient(
      90deg,
      rgba(0, 61, 133, 0.91) 0%,
      rgba(0, 96, 175, 0.91) 50%,
      rgba(0, 132, 209, 0.91) 100%
    );
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
  }
  

  .logo img {
    margin-top: 20px;
    height: 130px;
  }
  

  .menu {
    display: flex;
    gap: 20px;
  }
  
  .menu a {
    display: inline-block;
    padding: 15px;
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
  }
  
  .menu a:hover {
    border-bottom: 2px solid #90729a;
  }
  

  #menu-toggle {
    display: none;
  }
  

  .btn-menu {
    display: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 100px;
    margin-right: 10px;
  }


  .footer {
  background: linear-gradient(
    90deg,
    rgba(0, 61, 133, 0.91) 0%,
    rgba(0, 96, 175, 0.91) 50%,
    rgba(0, 132, 209, 0.91) 100%
  );
  padding: 40px 20px;
  text-align: center;
  color: #ffffff;
}

.footer-content {
  max-width: 800px;
  margin: auto;
}

.footer .social-icons {
  margin-bottom: 20px;
}

.footer .social-icons a {
  margin: 0 10px;
  font-size: 1.4rem;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer .social-icons a:hover {
  color: #aeeaff; 
  transform: scale(1.1);
}

.footer p {
  font-size: 0.95rem;
  color: #e8f6ff; 
}

  
 
  @media screen and (max-width: 768px) {
    .btn-menu {
      display: block;
      z-index: 1001;
    }
  
    .menu {
      display: none;
      flex-direction: column;
      background: rgba(48, 48, 48, 0.95);
      position: absolute;
      top: 100px; 
      right: 0;
      width: 50vw; 
      height: calc(100vh - 100px); 
      text-align: center;
      padding: 20px 10px;
      z-index: 1000;
      overflow-y: auto;
      transition: transform 0.3s ease-in-out;
    }
  
    #menu-toggle:checked + .menu {
      display: flex;
    }
  
    .menu a {
      padding: 15px;
      border-bottom: 1px solid #444;
      color: white;
      text-decoration: none;
      font-size: 1.2rem;
    }
  }
  