
#ciberCubeSphereCanvas2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
/* ===== Sección Principal (nueva) ===== */
.amecs-hero2 {
  position: relative;
  height: 100vh;
  background: linear-gradient(to bottom, #000000 0%, #0a0a2a 50%, #000000 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-bottom: 100px;
}

/* Degradado overlay opcional */
.amecs-hero2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}

/* Contenedor interno centrado */
.amecs-center2 {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo */
.amecs-logo2 {
  margin-top: 10px; 
  max-width: 750px;
  width: 90%;
  margin-bottom: 10px;
  filter: drop-shadow(0 -2mm 4mm rgb(18, 25, 61));
}

/* Texto principal */
.amecs-textbox2 {
  max-width: 800px;
  background: rgba(0, 0, 0, 0);
  color: white;
  padding: 30px;
  margin-bottom: 50px;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0);
  font-size: 1.5rem;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0);

  /* Animación inicial */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.amecs-textbox2.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ===== Bloque de textos bajo el textbox ===== */
.amecs-texts2 {
  margin-top: 140px;           /* separación del textbox */
  margin-bottom: 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;        /* centra las filas */
  z-index: 2;                 /* por encima del fondo */
}

.amecs-row {
  display: flex;
  justify-content: center;    /* centra elementos en la fila */
  gap: 30px;                  /* espacio entre textos */
  flex-wrap: wrap;            /* se adaptan en pantallas pequeñas */
  margin: 10px 0;
}

/* Estilo para cada texto */
.amecs-item,
.amecs-item-full {
  color: rgb(255, 255, 255);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 5px 10px;
  text-align: center;
}

/* Texto único de segunda fila */
.amecs-item-full {
  width: 100%;               /* ocupa toda la fila */
  text-align: center;        /* centra el texto */
}

/* Responsivo */
@media (max-width: 1440px) {

  .amecs-textbox2 {
    font-size: 1.2rem;
  }

.amecs-texts2 {
  margin-top: 80px;           /* separación del textbox */
  margin-bottom: 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;        /* centra las filas */
  z-index: 2;                 /* por encima del fondo */
}

.amecs-logo2 {
  max-width: 650px;
}

}

/* Responsivo */
@media (max-width: 600px) {
  .amecs-item,
  .amecs-item-full {
    font-size: 1rem;
  }
  .amecs-row {
    gap: 15px;
  }
}

/* Línea diagonal derecha con brillo */
.amecs-line-right {
  position: absolute;
  top: 20%;
  right: -80.5%;       
  width: 200%;
  height: 8px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.83) 0%,
    rgba(0,255,255,1) 50%,
    rgba(186, 185, 185, 0.75) 100%
  );
  background-size: 200% 100%;
  transform: rotate(45deg); /* giro hacia el otro lado */
  animation: amecs-shine-right 5s linear infinite;
  box-shadow: 0 0 20px rgba(0,255,255,0.7);
  z-index: 0;
}

@keyframes amecs-shine-right {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .amecs-textbox2 {
    max-width: 90%;
    font-size: 1.1rem;
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .amecs-logo2 {
    max-width: 250px;
  }

  .amecs-textbox2 {
    max-width: 95%;
    font-size: 1rem;
    padding: 15px;
  }

  .amecs-line-right {
    height: 6px;
    top: -150px;
    right: -620px;
    width: 400%;
  }
}
canvas { display:block; width:100vw; height:100vh; }

#contacto {
  position: relative;
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* <- cambiar a 0 */
  pointer-events: none;
}