* {
    box-sizing: border-box;
  }
  


body {
    position: relative;
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    background-color: white;
    color: white;
   
  }

  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .site-header {
    background-color: #101820;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  }
  
  .logo {
    font-size: 1.8rem;
    font-weight: bold;
  }
  
  .logo .tech {
    color: #00e0ff;
  }
  
  .nav a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
  }
  
  .nav a:hover {
    color: #00e0ff;
  }
  
  .hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a, #202020);
    text-align: center;
    height: 25vh; /* altura completa de la ventana */
    min-height: 500px; /* garantiza altura mínima para pantallas pequeñas */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }
  
  
  .icon-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .icon {
    position: absolute;
    width: 70px;
    opacity: 0.25; /* o incluso 0.2 */
    filter: brightness(1.5); /* más visibles sobre fondo oscuro */
    transition: transform 0.3s ease;
    filter: brightness(1.5) drop-shadow(0 0 3px rgba(0, 255, 255, 0.2));
  }


  /* Posiciones iniciales aleatorias para los íconos */
.icon.html { top: 10%; left: 20%; }
.icon.css { top: 30%; left: 70%; }
.icon.js { top: 60%; left: 20%; }
.icon.js2 { top: 22%; left: 47%; }
.icon.angular { top: 50%; left: 80%; }
.icon.sql { top: 62%; left: 47%; }
.icon.react { top: 35%; left: 25%; }
.icon.c-sharp { top: 15%; left: 85%; }
.icon.c-plus { top: 30%; left: 35%; }
.icon.android { top: 26%; left: 58%; }
.icon.apple { top: 36%; left: 15%; }

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.06);
  z-index: 1;
}

  .hero-content h2 {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
  
  .btn-primary {
    background-color: #00e0ff;
    color: #0a0a0a;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .btn-primary:hover {
    background-color: #00c0dd;
  }
  
  @keyframes float {
    0%   { transform: translate(0px, 0px); }
    25%  { transform: translate(2px, -3px); }
    50%  { transform: translate(4px, 0px); }
    75%  { transform: translate(2px, 3px); }
    100% { transform: translate(0px, 0px); }
  }

  .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 20;
  }
  
  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  
  @media (max-width: 768px) {
    .hamburger {
      display: flex;
    }
  
    .nav {
      position: fixed;
      top: 0;
      right: 0;
      background-color: #101820;
      width: 100%;
      height: 100vh;
      z-index: 10;
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2rem;
      transition: opacity 0.3s ease;
    }
  
    .nav a {
      font-size: 1.5rem;
      color: white;
      text-decoration: none;
    }
  
    .nav.active {
      display: flex;
    }
  
    .container {
      justify-content: space-between;
      flex-direction: row;
    }

    .icon {
        width: 40px;
        animation: float 6s ease-in-out infinite;
      }



      .icon.html     { top: 10%; left: 20%; }
      .icon.css      { top: 15%; left: 70%; }
      .icon.js       { top: 30%; left: 20%; }
      .icon.js2      { top: 45%; left: 80%; }
      .icon.angular  { top: 60%; left: 62%; }
      .icon.sql      { top: 55%; left: 17%; }
      .icon.react    { top: 78%; left: 25%; }
      .icon.c-sharp  { top: 70%; left: 70%; }
      .icon.c-plus   { top: 65%; left: 45%; }
      .icon.android  { top: 80%; left: 55%; }
      .icon.apple    { top: 20%; left: 45%; }



  }
  

  /* Animación del ícono hamburguesa en "X" */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  

  .animated-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    gap: 0.15rem;
    line-height: 1.2;
  }
  
  .animated-title span {
    opacity: 0;
    animation: colorFade 5s ease-in-out infinite;
    display: inline-block;
    min-width: 1ch;
  }
  
  /* Delay progresivo para cada letra */
  .animated-title span:nth-child(1)  { animation-delay: 0s; }
  .animated-title span:nth-child(2)  { animation-delay: 0.15s; }
  .animated-title span:nth-child(3)  { animation-delay: 0.3s; }
  .animated-title span:nth-child(4)  { animation-delay: 0.45s; }
  .animated-title span:nth-child(5)  { animation-delay: 0.6s; }
  .animated-title span:nth-child(6)  { animation-delay: 0.75s; }
  .animated-title span:nth-child(7)  { animation-delay: 0.9s; }
  .animated-title span:nth-child(8)  { animation-delay: 1.05s; }
  .animated-title span:nth-child(9)  { animation-delay: 1.2s; }
  .animated-title span:nth-child(10) { animation-delay: 1.35s; }
  .animated-title span:nth-child(11) { animation-delay: 1.5s; }
  .animated-title span:nth-child(12) { animation-delay: 1.65s; }
  
  @keyframes colorFade {
    0%   { opacity: 0; transform: translateY(0px); color: #00e0ff; }
    25%  { opacity: 1; transform: translateY(-2px); color: #ffffff; }
    50%  { opacity: 0; transform: translateY(2px); color: #ff0077; }
    75%  { opacity: 1; transform: translateY(-2px); color: #00ff99; }
    100% { opacity: 0; transform: translateY(0px); color: #00e0ff; }
  }
  

  .products {

   
    background-color: #111;
    color: white;
    padding: 4rem 1.5rem;
    text-align: center;
  }

  .container-cards{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .products-title {
    text-align: center;
    color: #00e0ff;
    font-size: 2rem;
    margin-bottom: 2rem;
    
   
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .card {
    background-color: #1c1c1c;
    border-radius: 15px;
    padding: 1rem;
    width: 100%;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
  }
  
  .image-wrapper {
    background: #1c1c1c;
    border-radius: 12px;
    padding: 1rem;
    box-shadow:
      6px 6px 12px #141414,
     -6px -6px 12px #242424;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 220px;
  }
  
  .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
  }
  
  .price-btn {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 10px;
    background: #1c1c1c;
    color: #00e0ff;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow:
      6px 6px 12px #141414,
     -6px -6px 12px #242424;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .price-btn:hover {
    box-shadow:
      inset 2px 2px 6px #141414,
      inset -2px -2px 6px #242424;
    transform: scale(1.05);
  }
  
  
  .load-more-wrapper {
    margin-top: 2rem;
    text-align: center;
  }


  
  
  @media (max-width: 768px) {
    .grid-wrapper {
      position: relative;
      height: 650px;
      overflow: hidden;
    }
  
    .grid {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      height: 100%;
      overflow-y: auto;
      padding-right: 0.5rem;
      scroll-behavior: smooth;
    }
  
    .card {
       max-width: 85%;
      width: 85%;
      height: auto;
      padding: 1rem;
    }
  
    .image-wrapper {
      height: 200px;
    }
  
    .price-btn {
      font-size: 1rem;
      margin-top: 1rem;
    }
  
    .load-more-wrapper {
      display: block;
      margin-top: 1rem;
    }

    .fade-shadow-top {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 50px;
      background: linear-gradient(to bottom, #0f0f0f, rgba(0, 0, 0, 0));
      pointer-events: none;
      z-index: 5;
      opacity: 0;
      transition: opacity 0.3s ease-in-out;
    }
  
    .fade-shadow-bottom {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 50px;
      background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #0f0f0f);
      pointer-events: none;
      z-index: 5;
    }
  }
  