
  html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #000;
  color: white;
  font-family: Arial, sans-serif;
  overflow-x: hidden; /* solo bloquea horizontal */
}

  /* CONTENEDOR PRINCIPAL */
  .layout {
    display: flex;
    align-items: center;   /* centra vertical */
    justify-content: space-between;
    height: 100vh;
    padding: 0 8%;
  }

  /* TEXTO IZQUIERDA */
  .contenido {
    max-width: 500px;
    z-index: 2;
  }

  .contenido h1 {
    font-size: 60px;
    margin: 0;
  }

  .contenido p {
    font-size: 18px;
    opacity: 0.7;
  }

  /* CANVAS DERECHA */
  #canvas {
  position: absolute; /* 🔥 clave */
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50vw;
  height: 100vh;
  pointer-events: none;
}

  /* SECCIONES */
.seccion {
  padding: 30px 60px;
  text-align: center;
}

.seccion h2 {
  font-size: 40px;
  margin-bottom: 50px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
}

/* TARJETAS */
.card {
  background: rgba(255,255,255,0.05);
  padding: 25px;
  border-radius: 15px;
  transition: 0.3s;
  backdrop-filter: blur(10px);
}

/* ICONOS */
.card img {
  width: 50px;
  margin-bottom: 15px;
}

/* HOVER */
.card:hover {
  transform: translateY(-10px);
  background: rgba(255,255,255,0.1);
}

/* SERVICIOS */
.servicio h3 {
  margin-bottom: 10px;
}

.servicio p {
  opacity: 0.7;
}
.tecnologias {
  transition: background 0.5s ease;
}

.card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {

  /* Layout en columna */
  .layout {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: auto;
    padding: 80px 20px;
  }

  /* Texto */
  .contenido {
    max-width: 100%;
  }

  .contenido h1 {
    font-size: 40px;
  }

  .contenido p {
    font-size: 16px;
  }

  /* Canvas (esfera) */
  #canvas {
    position: relative;
    width: 100%;
    height: 300px;
    transform: none;
    top: auto;
    right: auto;
    margin-top: 30px;
  }

  /* Secciones */
  .seccion {
    padding: 60px 60px 10px 10px;
  }

  .seccion h2 {
    font-size: 28px;
  }

  /* Grid más compacto */
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* Cards */
  .card {
    padding: 15px;
  }

  .card img {
    width: 40px;
  }

}