.loader-back{
  width: 100%;
  position: fixed;
  z-index: 999;
  height: 100%;
  background-color: white;
}
.loader {
  left: 50%;
  top: 50%;

        width: 48px;
        height: 48px;
        border-radius: 50%;
        position: fixed;
        animation: rotate 1s linear infinite
      }
      .loader::before , .loader::after {
        content: "";
        box-sizing: border-box;
        position: absolute;
        inset: 0px;
        border-radius: 50%;
        border: 5px solid #FFF;
        animation: prixClipFix 2s linear infinite ;
      }
      .loader::after{
        transform: rotate3d(90, 90, 0, 180deg );
        border-color: #FF3D00;
      }

      @keyframes rotate {
        0%   {transform: rotate(0deg)}
        100%   {transform: rotate(360deg)}
      }

      @keyframes prixClipFix {
          0%   {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
          50%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
          75%, 100%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
      }
  

  /* Estilos generales */
  body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f9f9f9;
    color: #333;
  }


  ul {
    list-style: none;
    padding: 0;
  }

  a {
    text-decoration: none;
    color: #fd9e4b;
    cursor: pointer;
  }
  a:hover{
   color:rgb(100,100,100);
 }


 .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
}
/* Area de Paginas ocultas */
#paginas{
  display: none;
  position: fixed;
     justify-content: center; 
    align-items: center;
  width: 100%;
  height: 100%;
    z-index: 99999;
  background-color: rgba(20,20,20,0.5);

}
/* Area de juegos ocultos */
#juegos{
  display: none;
  position: fixed;
     justify-content: center; 
    align-items: center;
  width: 100%;
  height: 100%;
    z-index: 99999;
  background-color: rgba(20,20,20,0.5);

}

#cerrar {
  position: absolute;
  right: 0px;
  top: 0px;
    background-color: #9999
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s
  }
#cerrar:hover{
    background-color: #2c3e50;
    color: white; 
}

.container-juegos{
  position: relative;
  margin: auto;
  text-align: center;
  width: 80%;
  height: 70%;
  background-color: white;
  display: grid;
  border-radius: 16px;
  margin-top: 100px;
}
.container-juegos-dark{

  position: relative;
  margin: auto;
  text-align: center;
  width: 70%;
  height: 70%;
  background-color: black;
  display: grid;
  color: white;!important
  border-radius: 16px;
  margin-top: 100px;

}
.ul-juegos{
  font-family: Amatic SC;
display: flex;
width: 100%;
height: 90%;
font-size: 22px;
word-spacing:  5px;
}
.redirec{
  width: 90%;
  height: 80%;
  cursor: pointer;
}

/* reciclando codigo*/
.ul-juegos li{
margin:auto;
 height: 70%;
  background-color: rgba(100,100,100,0.1);
  margin-top: 10px;
  cursor: pointer;
  font-size:26px  ;

}


.ul-juegos h2, .ul-juegos p{
  margin: 5px;
}
.ul-juegos li:hover{
  background-color: rgba(20,20,20,0.9);
  box-shadow: 25px 25px rgb(50,50,50);
  color:#999;
}


.preview{
  font-family: "Amatic SC", serif;
  position: relative;
  text-align: center;
  font-size:40px;
  letter-spacing: 5px;
  width: 100%;
  margin: auto;
}
.ul-paginas{
  display: flex;
  margin: auto;
  width: 100%;
  height: 100%;
  background-color: rgba(100,100,100,0.1);
  overflow: hidden; 
}
.ul-paginas li{
  display: grid;
  position: relative;
  width: calc(100% / 3);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
    height: 100%;
  padding: auto;
  margin: auto;
  transition:0.5s ease;
}

.pag{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:0.3s ease;
}
.pag:hover{
   
}
.ul-paginas li:hover  .info,
.ul-paginas li:hover {
  width: 100%;
  display: block;
  opacity: 100%;
  transition-duration: 0.5s;
}
/*info span*/
.info{
font-family:  Amatic;
  position: absolute;
  width: 0%;
  font-size: 17px;
  height: 100%;
  text-align: center;
  background-color: rgba(50,50,50,0.8);
  color: white;
  display: none;
  cursor: pointer;
  transition: 0.5s ease;

}
.info a{
  z-index: 100;
  color: #F2F2F2;
  width: 100%;
  height: 100%;
  transition:0.2s ease;
}

 

 
/* Hero Section */
.hero {
background: linear-gradient(to bottom, rgb(50, 75, 100), rgb(10, 12, 15));
  color: #ecf0f1;
  padding: 50px 0;
  height: 100%;
}

.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.code-box {
  background-color: #1e1e1e;
  color: #c5c6c7;
  padding: 20px;
  border-radius: 8px;
  width: 40%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.code-box pre {
  margin: 0;
  font-size: 15px;
  overflow: hidden;
  text-align: left;
}
.about-list {
  width: 40%;
  text-align: justify;
  padding: 10px;
  letter-spacing: 1.4px;
  line-height: 1.3;
}

.about-h2{
  font-family: "Amatic SC", serif;
  font-weight: 400;
  font-size: 33px;
  font-style: normal;
  background-color: rgba(20,20,20,1);
  border-radius: 10px;
  text-align: left;
  padding: 2px 8px;
  width: fit-content;
}
.about-list p{
  margin: 30px 0px;
}



/* Links  */
.links {
  color:#f9f9f9 ;
  padding: 30px;
}

.links h2 {
  text-align: left;
  margin: 0px;
}

.links ul {
  display: flex;
  justify-content: left;
  gap: 20px;
}

.links ul a {
  font-size: 18px;
  color: #2db6f9;
  padding: 10px;
  background-color: rgba(0,0,0,0.7);
  cursor: pointer;

}
.links-a a:hover{
  color:white;
}


/* Area de certificad */
.certificados{
  display: block;
}
.div-cer{
  text-align: center;
  width: 100%;

}

.div-cer ul{
  display: inline-flex;
  width: 100%;
  height: 270px;
  gap:auto ;
  text-align: justify-all;
  justify-content: center;
}

.li-cer{
  width: 170px;
  height: fit-content;
  margin: auto;

}


.zoom-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  z-index: 1;
  position: relative;
}

/* Estilo para cuando la imagen esté en modo zoom */
.zoomed {
  transform: scale(0.7); 
  cursor: zoom-out;
  position: fixed; 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  z-index: 999; 
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  width: 75%;
  height:fit-content;
  overflow: hidden;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 20px 0;
  margin-top: 30px;
}

/* skills */
.skills {
  top: 50%;
  margin-left: 60px;
  color: white;
  position: absolute;
  width: 400px;
  height: fit-content;
}

.contenedor{
  display: flex;
  gap:17px;
  margin: 10px 0px;
}
.bloque{
  
  overflow: hidden;
  border-radius: 15px;
  display: block;
  width: 75px;
  height: 27px;
  align-content: center;
  justify-content: justify;
  background-color: rgba(0,0,0,0.7);
  transition-property: inherit;
  padding: 10px;
  transition-duration: 0.4s;
  text-align: left;
  border:1px solid #f4f0f059;
}
.bloque-dark{
  background-color:  rgba(255, 255, 255, 0.2);
  border:1px solid white;
}
.bloque:hover {
  padding: 10px;
  background-color: rgba(30,30,30,1);
  transition-duration: 0.4s;
  width: 300px;
  height: 50px;

}
.bloque:hover .bar{
  display: flex;
}
.bloque:hover .name{
  padding: 5px;
  transition-duration: 0.4s;
  text-align: left;
}

.bar{

  margin: auto;
  border-radius: 40px;
  display: flex;
  overflow: hidden;
  width: 100%;
  height: 16px;
  background-color: #000;
  text-align: center;
  display: none;
}
.num{
  width: auto;
  height: 100%;
  background-color: rgb(20,20,20);

}
#bar1,#bar2,#bar3,#bar4,#bar5,#bar6{
  font-size: 14px;
  height: 100%;
  color: black;
}
#bar1{
  background-color: #3584E4;
  width: 75%;
}
#bar2{
  background-color: #FFEA48;
  width: 60%;

}
#bar3{
  background-color: #FD8C20;
  width: 45%;
}
#bar4{
  width: 42%;
  background-color: #50FA7B;
}
#bar5{
  width: 20%;
  background-color: #A56DE2;
}
#bar6{
  background-color: #1ABC9C;
  width: 70%;
}

.name{
  margin: 3px;
  text-align: center;
  transition-duration: 0.4s;

}

/* Cambio a tema oscuro */
#color{
  position: absolute;
  right: 40px;
}
.toggle-btn {
  width: 50px;
  height: 50px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 50%; /* Hace el botón circular */
  cursor: pointer;
  transition: background-color 0.5s ease, transform 0.2s; /* Transición más suave */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.toggle-btn-dark{
  background-color:rgba(200,200,200,0.5);

}


.toggle-btn:hover {
  background-color: #555;
  transform: scale(1.1); 
}
.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}
.hero-dark{
  background: #000;
  color: #d9d8d8;
  padding: 50px 0;
  
}

.about-h2-dark{
  font-family: "Amatic SC", serif;
  font-weight: 400;
  font-size: 33px;
  font-style: normal;
  background-color: rgb(215, 209, 209);
  border-radius: 10px;
  text-align: left;
  padding: 2px 8px;
  width: fit-content;
  color: #181915
}


.footer-dark{
 background-color: #000;
  color: #ecf0f1;
  text-align: center;
  padding: 20px 0;
  margin-top: 30px;
}

/* Fin del cambio de color*/

/*mediaqueris*/
/* 📱 Estilos para móviles (menos de 768px) */
@media (max-width: 750px) {
  .intro{
    display: block;
  }
  #color{
    top:20px;
    right: 10px;
  }
  .about-list{
    width: 95%;
    margin: auto;
  }
  .code-box{
    width: 80%;
    margin: auto;
  }
  .skills{
    margin: auto;
  color: white;
  position: relative;
  width: 100%;
  height: fit-content;
  text-align: center;
  justify-content: center;
  align-content: center;
  display: grid;
  background-color: black; 
  }
  .certificados{
    display: grid;
  }
  .div-cer ul{
    display: grid;
  width: 100%;
  height: fit-content;
  }
  .li-cer{
    width: 70%;
  height: fit-content;
  margin: auto;
}
  }
}