html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;              
  flex-direction: column;     
  min-height: 100vh;          
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #000000, #0a0c29, #3a1c71), url("Img/R.gif");
  background-attachment: fixed;
  background-size: cover;
  color: #fff;
  animation: fadeIn 2s ease forwards;
}
h1 {
  display: flex;
  align-items: center; 
  gap: 10px;           
}

h1 img {
  width: 100px;   
  height: auto;
}


main {
  flex: 1; 
}



footer {
  margin-top: auto; 
}

#marco_superior {
  border-top: 8px solid transparent;
  border-image: linear-gradient(90deg, red, lime, blue) 1;
  background: url("Img/video-games-outline-colored-illustration-gamer-banner-vector.jpg") no-repeat center center;
  background-size: cover;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  border-bottom: 8px solid transparent;
  border-image: linear-gradient(90deg, red, lime, blue) 1;
}

#marco_superior h1 {
  font-size: 40px;
  transition: transform 0.3s ease;
}
#marco_superior h1:hover {
  
  border-radius: 25px;
  box-shadow:0 4px 12px rgb(255, 34, 34);
  transform: translateY(-5px);
}

#marco_superior nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

#marco_superior nav ul li a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  padding: 6px 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

#marco_superior nav ul li a:hover,
#marco_superior .pag-actual {
  background: white;
  transform: translateY(-3px); 
  color: #000000; 
  box-shadow:0 4px 12px rgb(255, 34, 34);
  border-radius: 25px;
  background: #15ff00;
  color: #000000;
}

#franja {
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, red, lime, blue);
  background-size: 300% 300%;
  animation: gradientMove 5s infinite linear;
  z-index: 999;
}

@keyframes gradientMove {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* Layout principal */
.layout {
  display: flex;
  flex: 1; 
}

.lado-izquierdo {
  flex: 0 0 40%;
  background: rgba(0,0,0,0.6);
  padding: 30px;
  box-shadow: 4px 0 12px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}
.lado-izquierdo:hover {
  transform: translateY(-5px);
}
.lado-izquierdo h2 {
  margin-top: 0;
  font-size: 24px;
  text-shadow: 2px 2px 6px #000;
}

.lado-derecho {
  flex: 1;
  background-size: cover;
  border-radius: 25px;
}
.lado-derecho img {
  border-radius: 25px;
  transition: transform 0.3s ease;
}
.lado-derecho img:hover {
  box-shadow:0 4px 12px rgb(255, 34, 34);
  transform: translateY(-5px);
}
.lado-derecho ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.lado-derecho ul li a {
  display: inline-block;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  background: rgb(208, 255, 1);
  transition: transform 0.3s ease;
  color: #000000; 
  box-shadow:0 4px 12px rgb(255, 34, 34);
  border-radius: 20px;
  padding: 15px;
}
.lado-derecho ul li a:hover {
  background: #15ff00;
  transform: translateY(-5px);
}

#introduccion {
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  color: #fff;
  text-align: justify;
  line-height: 1.6;
}
#introduccion h2 {
  margin-bottom: 10px;
  font-size: 26px;
  text-shadow: 2px 2px 6px #000;
}

.footer-gamer {
  background: linear-gradient(135deg, #0a0c29, #3a1c71, #000);
  color: #eee;
  padding: 20px;
  text-align: center;
  margin-top: auto;
  position: relative;
}
.footer-socials a {
  color: #eee;
  font-size: 22px;
  margin: 0 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}
.footer-socials a:hover {
  transform: translateY(-3px);
  color: #00ff7f;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.footer-nav ul li a {
  color: #eee;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer-nav ul li a:hover {
  color: #ff4081;
  transform: translateY(-2px);
}
.footer-copy {
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.8;
}
.franja-footer {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, red, lime, blue);
  background-size: 300% 300%;
  animation: gradientMove 5s infinite linear;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}


@media (max-width: 768px) {
  #marco_superior {
    flex-direction: column;
    height: auto;
    padding: 10px;
    text-align: center;
  }
  #marco_superior h1 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  #marco_superior nav ul {
    flex-direction: column;
    gap: 10px;
  }
  .layout {
    flex-direction: column;
  }
  .lado-izquierdo, .lado-derecho {
    flex: 1 1 100%;
    padding: 15px;
  }
  #introduccion {
    font-size: 16px;
    line-height: 1.4;
    padding: 15px;
  }
  .footer-nav ul {
    flex-direction: column;
    gap: 10px;
  }
}