/* 404.css */
/* Variables de color heredadas */
:root {
  --clr-black: #000;
  --clr-white: #fff;
  --clr-gray-dark: #2E2E2E;
  --clr-gray-light: #B0B0B0;
  --clr-gold: #D4AF37;
  --clr-yellow: #FFD700;
}

/* Reset básico */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Orbitron', sans-serif;
  background: var(--clr-black);
  color: var(--clr-white);
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--clr-gray-dark), var(--clr-black));
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  z-index: 10;
}
#navbar.shrink {
  width: 80%;
  /* eliminamos margin:auto y en su lugar lo centramos con transform */
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 40px 40px;
   /* fondo semitransparente y desenfoque */
  background: linear-gradient(black, rgba(128, 128, 128, 0.411));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(10px);

  /* mantener el box‑shadow dorado suave */
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

/* Animaciones */
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(-20px); opacity: 0; }
}

.logo{
  transition: all .5s ease;
}

.logo:hover{
  transform: scale(1.03);
  filter: drop-shadow(0 0 4px gold);
}

.menu.show {
  display: flex;
  animation: slideDown 0.3s ease forwards;
}

.menu.hide {
  animation: slideUp 0.3s ease forwards;
}

.menu a {
  margin-left: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--clr-white);
  position: relative;
  text-decoration: none;
  transition: color 0.2s;
}
.menu a:hover {
  color: var(--clr-yellow);
}
.menu a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--clr-yellow);
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}
.menu a:hover::after {
  width: 100%;
}

/* Ocultar botón en desktop y menú normal */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 20;
}
.hamburger .bar {
  width: 100%;
  height: 0.25rem;
  background: var(--clr-white);
  border-radius: 10px;
  transition: all 0.3s;
}

/* Sección 404 */
#error-404 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 2rem;
  background: linear-gradient(135deg, #444, var(--clr-black));
}

.error-card {
  background: transparent;
  border: 4px solid var(--clr-black);
  border-radius: 1.5rem;
  box-shadow: 8px 8px 0 var(--clr-gold), -4px -4px 0 var(--clr-yellow);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  max-width: 800px;
  flex-wrap: wrap;
  animation: fadeIn 0.8s ease-out;
}

.error-gif img {
  width: 300px;
  height: auto;
  border-radius: 1rem;
  filter: drop-shadow(0 0 5px #000);
}

.error-info {
  flex: 1;
}

.error-info h1 {
  font-size: 2.5rem;
  color: var(--clr-yellow);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--clr-yellow);
}

.error-info p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.btn-home {
  text-decoration: none;
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: gold;
  color: var(--clr-black);
  border: 1.5px dashed var(--clr-black);
  border-radius: 2rem;
  font-weight: bold;
  transition: all .5s ease;
}

.btn-home:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--clr-yellow);
  color: #fff;
  text-shadow: 2.5px 1.5px 1px #000;
  border: none;
}

/* Animación de entrada */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .error-card { flex-direction: column; text-align: center; }
  .error-gif img { width: 150px; }

  #navbar.shrink {
    width: 100%;
  }
  .menu {
    display: none;
    flex-direction: column;
    background: linear-gradient(90deg, rgb(51, 51, 51), rgb(26, 26, 26), rgb(51, 51, 51));
    filter: drop-shadow(0 0 3px gold);
    position: absolute;
    top: 100%;
    right: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    width: 35%;
  }
  .menu a{
    text-align: center;
    margin: .25rem;
  }

  /* Muestra el botón hamburguesa */
  .hamburger {
    display: flex;
  }
  /* Cuando el menú tenga la clase 'show', muéstralo */
  .menu.show {
    display: flex;
  }
}
