/* Contenedor principal */
.amecs-hero {
  position: relative;
  height: 100vh;
  background: url("../img/fondo16.png") no-repeat center center/cover;
  display: flex;
  align-items: flex-start; 
  justify-content: center;
  padding: 40px;
  overflow: hidden;

}
/* Overlay degradado */
.amecs-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,    /* negro arriba */
    rgba(0, 0, 0, 0) 30%,   /* se desvanece en el centro */
    rgba(0, 0, 0, 0) 70%,   /* sigue transparente */
    rgba(0, 0, 0, 0.79) 100%   /* negro abajo */
  );
  pointer-events: none; /* que no bloquee clics */
  z-index: 1;
}

.amecs-line {
  position: absolute;
  top: 20%;          /* altura de la línea */
  left: -67.5%;       /* mueve la línea hacia la izquierda */
  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 5s linear infinite;
  box-shadow: 0 0 20px rgba(0,255,255,0.7);
}

@keyframes amecs-shine {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Caja de texto */
.amecs-textbox {
  position: relative;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.61);
  color: white;
  padding: 45px 35px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.7);
  font-size: 1.5rem;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  margin-top: 480px; /* lo bajas desde arriba */
  margin-left: 300px; /* mueve la card un poco hacia la derecha */

 opacity: 0;
  transform: translateY(40px); /* un poco hacia abajo */
  transition: opacity 1s ease, transform 1s ease;
}

/* Cuando entra en pantalla */
.amecs-textbox.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ================== RESPONSIVE ================== */

/* Tablets */
@media (max-width: 1024px) {
  .amecs-textbox {
    max-width: 90%;
    font-size: 1.1rem;
    padding: 20px;
  }
}

/* Celulares */
@media (max-width: 600px) {
  .amecs-hero {
    background: url("img/fondo20.png") no-repeat center center/cover;
     max-width: 100%;
    padding: 20px;
    align-items: center;
  }

  .amecs-textbox {
    max-width: 95%;
    font-size: 1rem;
    padding: 30px;
    border-radius: 10px;
    margin-top: 18em;
    margin-left: 10px;
  }

  .amecs-line {
    height: 6px;
    top: -150px;
    left: -620px;
    width: 400%;
  }
}
