/* ==== Contenedor principal ==== */
#error404-container {
  margin: 0;
  padding: 0 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #ededed 0%, #f7f7f7 100%);
  color: #040A2D;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ==== Logo ==== */
.error404-logo {
  margin-bottom: 20px;
  animation: fadeDown 1s ease;
}

.error404-logo img {
  max-width: 180px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

/* ==== Número principal ==== */
.error404-title {
  font-size: 8rem;
  font-weight: 900;
  color: #970000;
  margin: 0;
  letter-spacing: -2px;
  animation: popIn 0.8s ease;
}

/* ==== Subtítulo ==== */
.error404-subtitle {
  font-size: 1.8rem;
  margin: 10px 0;
  font-weight: 600;
  animation: fadeUp 1.2s ease;
}

/* ==== Texto ==== */
.error404-text {
  font-size: 1rem;
  margin: 5px 0 30px;
  color: #444;
  max-width: 500px;
  line-height: 1.6;
  animation: fadeUp 1.5s ease;
}

/* ==== Botón ==== */
.error404-button {
  display: inline-block;
  background-color: #040A2D;
  color: #ededed;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  animation: fadeUp 1.8s ease;
}

.error404-button:hover {
  background-color: #970000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* ==== Animaciones ==== */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.6); }
  80% { opacity: 1; transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ==== Elementos decorativos (círculos suaves) ==== */
#error404-container::before,
#error404-container::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.08;
}

#error404-container::before {
  width: 400px;
  height: 400px;
  background: #970000;
  top: -100px;
  left: -100px;
}

#error404-container::after {
  width: 300px;
  height: 300px;
  background: #040A2D;
  bottom: -80px;
  right: -80px;
}