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

    body, html {
      font-family: 'Nunito', sans-serif;
      scroll-behavior: smooth;
    }

    .navbar {
      position: absolute;
      top: 20px;
      left: 0;
      right: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 30px;
      z-index: 10;
    }

    .logo {
      color: white;
      font-size: 1.5rem;
      font-weight: bold;
      background-color: rgba(0, 0, 0, 0.6);
      padding: 8px 15px;
      border-radius: 6px;
    }

    .navbar-links a {
      color: white;
      text-decoration: none;
      font-weight: bold;
      margin-left: 20px;
      background-color: rgba(0, 0, 0, 0.6);
      padding: 10px 20px;
      border-radius: 6px;
      transition: background 0.3s ease;
    }

    .navbar-links a:hover {
      background-color: rgba(255, 255, 255, 0.2);
    }

    .parallax {
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      color: white;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    }

    .parallax-content {
      text-align: center;
      padding: 20px;
      background-color: rgba(0, 0, 0, 0.5);
      border-radius: 10px;
    }

    .parallax h1 {
      font-size: 3rem;
      margin-bottom: 15px;
    }

    .parallax p {
      font-size: 1.25rem;
      margin-bottom: 20px;
    }

    .cta {
      background-color: #ef3b2d;
      color: white;
      padding: 15px 30px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: bold;
      transition: background 0.3s ease;
    }

    .cta:hover {
      background-color: #c53030;
    }

    .section {
      padding: 60px 20px;
      text-align: center;
    }

    .section h2 {
      font-size: 2.5rem;
      margin-bottom: 20px;
      color: #1a202c;
    }

    .section p {
      max-width: 800px;
      margin: 0 auto;
      color: #4a5568;
      font-size: 1.1rem;
    }

     .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
  }

  .gallery img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }

  .gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  }

    footer {
      background-color: #1a202c;
      color: white;
      text-align: center;
      padding: 20px;
    }

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated-fadeInUp {
  animation: fadeInUp 1s ease-out forwards;
}

/*********************************/

 /* Animaciones */
  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(40px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .animated {
    animation: fadeInUp 1s ease-out forwards;
  }

  /* Estilos adicionales */
  .section {
    padding: 60px 20px;
    background-color: #f8f9fa;
    text-align: center;
  }

  .section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }

  .section p {
    max-width: 900px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: #555;
  }

  .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .gallery img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
  }

  .gallery img:nth-child(1) { animation-delay: 0.1s; }
  .gallery img:nth-child(2) { animation-delay: 0.3s; }
  .gallery img:nth-child(3) { animation-delay: 0.5s; }
  .gallery img:nth-child(4) { animation-delay: 0.7s; }
  .gallery img:nth-child(5) { animation-delay: 0.9s; }

  @media (max-width: 600px) {
    .gallery {
      flex-direction: column;
      align-items: center;
    }

    .gallery img {
      width: 60%;
    }
  }


  /****************************************************/

   .proyectos-section {
    padding: 80px 20px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* Fondo tech */
  }

  .proyectos-section h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    font-weight: bold;
  }

  .card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
  }

  .project-card {
    width: 260px;
    height: 340px;
    perspective: 1000px;
    opacity: 0;
    animation: fadeInUpCard 1s ease forwards;
  }

  .project-card:nth-child(1) { animation-delay: 0.2s; }
  .project-card:nth-child(2) { animation-delay: 0.4s; }
  .project-card:nth-child(3) { animation-delay: 0.6s; }
  .project-card:nth-child(4) { animation-delay: 0.8s; }

  .project-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
  }

  .project-card:hover .project-inner {
    transform: rotateY(180deg);
  }

  .project-front,
  .project-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .project-front {
    background-color: #ffffff15;
  }

  .project-front img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Blanco sobre fondo oscuro */
  }

  .project-back {
    background-color: #1b1f27;
    color: white;
    transform: rotateY(180deg);
    flex-direction: column;
    justify-content: center;
    text-align: left;
  }

  .project-back h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
  }

  .project-back p {
    font-size: 1rem;
    line-height: 1.5;
  }

  @keyframes fadeInUpCard {
    0% {
      opacity: 0;
      transform: translateY(40px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (max-width: 768px) {
    .card-grid {
      flex-direction: column;
      align-items: center;
    }
  }


  /**********************************************/

 .contact-section {
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  text-align: center;
  /* padding: 100px 20px; */
}

.parallax-bg {
  background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 80px 20px;
}

.contact-section h3 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #fff;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 20px 30px;
  width: 180px;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.contact-card svg {
  width: 40px;
  height: 40px;
  fill: white;
  margin-bottom: 10px;
}

.contact-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

 .parallax {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 6px black;
    flex-direction: column;
  }

  canvas {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid white;
    border-radius: 10px;
  }

  .game-title {
    font-size: 2rem;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.5);
    padding: 10px 20px;
    border-radius: 10px;
  }