/* ==========================
   Página 404 / Construcción estilo TRON
========================== */
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Press Start 2P', monospace;
  background: #111;
  color: #0ff;
  overflow: hidden;
  position: relative;
}

/* Fondo tipo malla TRON animado */
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 200%; height: 200%;
  background: 
    linear-gradient(#0ff 1px, transparent 1px),
    linear-gradient(90deg, #0ff 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.08;
  z-index: 0;
  animation: gridMove 20s linear infinite;
}

/* Animación malla */
@keyframes gridMove {
  0% { transform: translate(0,0); }
  100% { transform: translate(-50px, -50px); }
}

/* Contenedor central */
#error-404 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* Número 404 */
#error-404 h1 {
  font-size: 6rem;
  color: #0ff;
  text-shadow:
    0 0 5px #0ff,
    0 0 10px #00f,
    0 0 20px #0ff,
    0 0 30px #00f;
  margin: 0;
  animation: neonPulse 1.5s infinite alternate;
}

/* Texto principal */
#error-404 h2 {
  font-size: 2rem;
  color: #0ff;
  text-shadow: 0 0 10px #0ff, 0 0 20px #00f, 0 0 40px #0ff;
  margin: 10px 0;
  animation: glowTitle 2s infinite alternate;
}

/* Párrafos */
#error-404 p {
  font-size: 1em;
  color: #0ff;
  margin: 5px 0;
  max-width: 600px;
}

/* Redes sociales estilo neón */
.social-list {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
}
.social-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  font-size: 1.8rem;
  color: #0ff;
  border: 2px solid #0ff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 0 15px #0ff, inset 0 0 10px #00f;
  transition: all 0.3s ease;
}
.social-list li a:hover {
  color: #111;
  background: #0ff;
  box-shadow: 0 0 25px #0ff, 0 0 50px #00f;
  transform: scale(1.2) translateY(-3px);
}

/* ==========================
   Ícono Webtoon
========================== */
.social-list li a .icon-webtoon {
  width: 28px;     /* tamaño similar al de los <i> */
  height: auto;
  filter: invert(100%) brightness(1.5); /* blanco neón */
  transition: all 0.3s ease;
}
.social-list li a:hover .icon-webtoon {
  filter: invert(0%) brightness(1); /* se oscurece al hacer hover */
}

/* ==========================
   Animaciones neón
========================== */
@keyframes neonPulse {
  0% { text-shadow: 0 0 5px #0ff, 0 0 10px #00f; }
  50% { text-shadow: 0 0 20px #0ff, 0 0 40px #00f; }
  100% { text-shadow: 0 0 5px #0ff, 0 0 10px #00f; }
}

@keyframes glowTitle {
  0% { text-shadow:0 0 10px #0ff,0 0 20px #00f,0 0 40px #0ff; }
  50% { text-shadow:0 0 20px #0ff,0 0 40px #00f,0 0 80px #0ff; }
  100% { text-shadow:0 0 10px #0ff,0 0 20px #00f,0 0 40px #0ff; }
}

/* ==========================
   Worker animación abajo
========================== */
.worker-container {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}
.worker {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: walkText 6s linear infinite;
}
.worker img {
  width: 50px;
  height: auto;
}
.worker-text {
  font-size: 1rem;
  color: #0ff;
  text-shadow: 0 0 5px #0ff, 0 0 10px #00f;
}
@keyframes walkText {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Footer */
footer {
  padding: 40px 20px;
  text-align: center;
  border-top: 2px solid #0ff;
  color: #fff;
  position: relative;
  z-index: 1;
}

/* Responsivo */
@media(max-width:768px){
  #error-404 h1 { font-size: 4rem; }
  #error-404 h2 { font-size: 1.5rem; }
  #error-404 p { font-size: 0.9em; }
  .social-list li a { width: 45px; height: 45px; font-size: 1.4rem; }
  .worker img { width: 35px; }
  .worker-text { font-size: 0.8rem; }
}
