/* Animaciones principales (pelota y texto) */
@keyframes movimientoPelota{
from { 
transform: translateX(0);
}
to{
transform: translateX(220px);
}
} 
/* Transformamos con estas funciones la pelota de un lado a otro en eje X*/
@keyframes movimientoTexto{
from {
transform: translateX(0);
}
to{
transform: translateX(-80px);
}
}
/*Transformamos la posicion del texto*/

body, html{
width:100% ;
margin: 0; 
padding: 0;
margin: 0;
font-family: Arial, sans-serif;
}

/* Estilos header */
.header {
align-items: center;
margin-left: 0px;
position: fixed;
display: flex;
color: white;
width: 100%; /*100% de altura*/
height: 14%;
top: 0;
background-color: rgba(6, 98, 184, 0.596); /*Color del "nav" donde se encuentran los botones*/
z-index: 100;
}
.header a{
border: 1px solid #ffa929;
font-family: "Exo 2", sans-serif;
font-size: 17px;
}
.header h1{
font-family: "Bebas Neue", sans-serif;
display: block;
font-size: 50px;
margin-left: 2%;
position: fixed;
margin-bottom: 20px;
margin-top: 20px;
margin-left: 90px;
animation: movimientoTexto 3s forwards infinite alternate; /*Vinculamos con variables de movimiento de arriba*/
}
.header img{
image-orientation: initial  ;
animation: movimientoPelota 3s forwards infinite alternate; /*Vinculamos con variables de movimiento de arriba*/
max-width: 80px;
}

/* Estilos del MAIN */
main {
  background-image: linear-gradient(135deg, #000000, #332929, #ff2507, #ff8633, #ff4800, #ff5207, #daff07);
  background-size: 500%;
  animation: degradado 10s infinite;
  padding-top: 0px;
  text-align: center; 
  min-height: 100vh; /* Establecer una altura mínima igual a la altura de la ventana gráfica */
  border-radius: 0px;
  max-width: 100%;
  z-index: -1;
}
@keyframes degradado{
  0%{
    background-position: 0% 50%;
  }
  50%{
    background-position: 100% 50%;
  }
  100%{
    background-position: 0% 50%;
  }
}

.mainbotones ul {
  list-style: none;
  display: flex;
  justify-content: center; /* Centra los elementos horizontalmente */
  margin:200px 0px 150px 90vh;
  padding: 0px;
}

.mainbotones ul li {
  margin: 0px 10px 0px 10px ;
  padding: 0px 0px 50px 50px;
}

.mainbotones ul li a {
  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2em; 
  border-radius: 15px;
  margin: 0px 50px 0px -100px;
  padding: 15px 20px 15px 20px;
  border: 2px solid #0d0049;/*Aplicamos bordes de los botones (negros)*/
  color: aliceblue;
  cursor: pointer;/*DETENCCIÓN DEL MOUSE*/
  box-shadow: inset 0 0 0 0 #2d70ffcb; /*Color de transicion*/
  /*ANIMACIONES CHECKEAR DETECCION DE RATON*/
  -webkit-transition: ease-out 0.4s;
  -moz-transition: ease-out 0.4s;
  transition: ease-out 0.4s;
}

.mainbotones ul li a:hover {
  box-shadow: inset 0 0 0 50px #2d70ffcb; /*color final (hovered)*/
}
.texto{
  color: white;
  text-align: center;
  margin: 100px 0;
  font-size: 40px;
  font-family: "Bebas Neue", sans-serif;
  margin-bottom: 0%;
  margin-top: -300px;
  margin-right: 40%;
}
.gif img{
  border-radius: 50%;
  margin-top: 150px;
  height: 600px;
  width: 600px;
  margin-left: 60%;
  
}

/*BOTON PRINCIPAL*/
.wrapper{
  position: absolute;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
  width: fit-content;
  height:auto;
}
button{
  width:350px;
  height:150px;
  background-image: linear-gradient(135deg, #332b2b, #9c9090, #077bff, #3385ff, #0051ff, #0b07ff, #8707ff);
  border-style: none;
  color:#fff;
  font-size: 40px;
  letter-spacing: 3px;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  position: relative;
  padding: 0px;
  overflow: hidden;
  transition: all .5s;
  box-shadow: 0px 1px 2px rgba(0,0,0,.2);
  border-radius: 10%;
  margin: 250px 200px 10px -500px;
}
button a{
  text-decoration: none;
  color:#fff;
}
button span{
  position: absolute;
  display: block;
}
button span:nth-child(1){
  height: 10px;
  width:200px;
  top:0px;
  left:-200px;
  background: linear-gradient(to right, rgba(0,0,0,0), #000000);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  animation: span1 2s linear infinite;
}

@keyframes span1{
  0%{
      left:-200px
  }
  100%{
      left:200px;
  }
}
button span:nth-child(2){
  height: 200px;
  width: 10px;
  top:-100px;
  right:0px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), #000000);
  border-bottom-left-radius: 1px;
  border-bottom-right-radius: 1px;
  animation: span2 2s linear infinite;
}
@keyframes span2{
  0%{
      top:-200px;
  }
  100%{
      top:200px;
  }
}
button span:nth-child(3){
  height:10px;
  width:200px;
  right:-200px;
  bottom: 0px;
  background: linear-gradient(to left, rgba(0,0,0,0), #000000);
  border-top-left-radius: 1px;
  border-bottom-left-radius: 1px;
  animation: span3 2s linear infinite;
}
@keyframes span3{
  0%{
      right:-200px;
  }
  100%{
      right: 200px;
  }
}

button span:nth-child(4){
  height:200px;
  width:10px;
  bottom:-70px;
  left:0px;
  background: linear-gradient(to top, rgba(0,0,0,0), #000000);
  border-top-right-radius: 1px;
  border-top-left-radius: 1px;
  animation: span4 2s linear infinite;
}
@keyframes span4{
  0%{
      bottom: -200px;
  }
  100%{
      bottom: 200px;
  }
}

button:hover{
  transition: all .5s;
  transform: rotate(-3deg) scale(1.1);
  box-shadow: 0px 3px 5px rgba(0,0,0,.4);
}
button:hover span{
  animation-play-state: paused;
}

/* FOOTER */
footer {
  background-color: rgb(0, 132, 255);
  color: #fff;
  padding: 20px 0;
}

.container {
  width: 80%;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-section-contacto {
  margin-left: -140%;
}
.footer-section-redes {
  margin-right: 30px;
}
.footer-section-menu {
  margin-left: 30%;
  text-align: center;
}
.footer-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

ul.footer-menu {
  padding: 8px 16px;
  list-style: none;
  color: #fff;
}
ul.footer-menu li {display: inline;}
ul.footer-menu li+li:before {
  padding: 8px;
  color: rgb(255, 255, 255);
  content: "/\00a0";
}
ul.footer-menu a:link, ul.footer-menu a:visited {
  text-decoration:none;
  color: rgb(255, 255, 255);
}

ul.footer-menu li a.active {
  color: #ffffff;
  font-weight: bold;
}
ul.footer-menu li a.active:hover {
  color: #00357a;
  font-weight: bold;
}

.footer-section p {
  margin: 10px 0;
}

.social-icons img {
  width: 35px;
  height: 35px;
  margin-right: 10px;
  transition: transform 0.5s ease-in-out;
  border-radius: 50%;
}

.social-icons img:hover {
  transform: scale(1.2);
}

.social-icons a:last-child img {
  margin-right: 0;
}
