/*************************************************************
   CSS Exclusivo para la sección de Animación (Space Travel)
   Se evita tocar "body" u otros elementos globales de tu siti0
*************************************************************/

/* Contenedor general de la animación */
.space-animation-section {
  position: relative; 
  width: 100%;
  min-height: 600px; /* Aumentado para dar más espacio */
  background: var(--secondary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0; /* Más padding vertical */
  border-bottom: 10px solid var(--dark-bg);
}

/* Lienzo ThreeJS para las estrellas */
#webgl {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
}

/* Segundo canvas (objetos flotando) */
canvas.webgl2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  outline: none;
  z-index: 2;
}

/* Fondo del SVG (el semicírculo) */
#bg-box {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* El contenedor del SVG principal (robot, etc.) */
.svg-box {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-5%); /* Ajuste vertical para centrar mejor */
}

.svg-box #robot {
  cursor: pointer;
  transform-origin: center center;
}

/* Ajuste del tamaño y posición del SVG */
.svg-box svg {
  width: 800px;
  height: 600px;
  max-width: 90%; /* Reducido para evitar desbordamiento */
  max-height: 90vh; /* Limitado por altura de viewport */
  display: block;
  margin: 0 auto;
  transform: scale(0.9); /* Ligera reducción de escala */
}
