@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@font-face{
  font-family: 'PPFraktionMono';
  src: url('/PPFraktionMono.otf');
}

/* Clases específicas para index.html */
.loader-back{
  width: 100%;
  position: fixed;
  z-index: 999;
  height: 100%;
  background-color: white;
  overflow-x:hidden;
  overflow: hidden;
  top: 0;
  left:0;
  right: 0;
  bottom: 0;
}
.loader {
  position: absolute;
  width: 108px;
  top: 50%;
  left: 50%;
  display: flex;
  justify-content: space-between;
}
.loader::after , .loader::before  {
  content: '';
  display: inline-block;
  width: 48px;
  height: 48px;
  background-color: black;
  background-image:  radial-gradient(circle 14px, #FAFAFA 100%, transparent 0);
  background-repeat: no-repeat;
  border-radius: 50%;
  animation: eyeMove 10s infinite , blink 10s infinite;
}
@keyframes eyeMove {
  0%  , 10% {     background-position: 0px 0px}
  13%  , 40% {     background-position: -15px 0px}
  43%  , 70% {     background-position: 15px 0px}
  73%  , 90% {     background-position: 0px 15px}
  93%  , 100% {     background-position: 0px 0px}
}
@keyframes blink {
  0%  , 10% , 12% , 20%, 22%, 40%, 42% , 60%, 62%,  70%, 72% , 90%, 92%, 98% , 100%
  { height: 48px}
  11% , 21% ,41% , 61% , 71% , 91% , 99%
  { height: 18px}
}
.loader-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
  letter-spacing: 2px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Estilos generales */
body {
/*    font-family: 'Roboto', sans-serif;
*/
/*background-image:url(./fondo.jpg);*/
font-family: Inter,'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
/*font-family: PP Fraktion Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;*/
font-size: 1.2rem;
line-height: 1.5;
margin: 0;
padding: 0;
box-sizing: border-box;
background-color: #f9f9f9;
color: #333;
}
body.invertido {
  background-color:black;
  filter: invert(1) hue-rotate(180deg);
  transition: filter 0.4s ease;
}


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


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


.container {
  width: 88%;
  margin: auto;
  height: 100%;
  margin-top: 50px;
  margin-bottom: 50px;
  position: relative;
}

/* Area de Paginas ocultas */



/* Hero Section */
.hero {
  background: transparent;
color: black;
height:  100%;
}
.web{
  position: absolute;
  right:15px;
  top:10px;
  width: 100px;
  height: fit-content;
  opacity: 0.5;
  transform: scale(0.9);
  transition: all 0.3s ease;
}
.web:hover{
  opacity: 1;
  transform: scale(1);
  cursor: pointer;
  
}
.web img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 4px 4px black;
}

.intro {
  display: block;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
/*  border:2px solid black;
*/  padding:10px;
}
.title{
  width: 100%;
  height: fit-content;
  display: flex;
  margin: auto;
  justify-content: left;
  position: relative;
}
.title span{
  width: calc(100%/1);
  height: fit-content;
  text-align: left;
  margin: auto;  
/*  border-bottom: 1px solid black;

*/
}

.title_sub_1{
  font-family: "IBM Plex Mono", monospace;
  font-weight: 300;
  letter-spacing: 3px;
  font-style: normal;
  color: black;
}

.title_sub_1 a{
  color: black;
  display: inline-flex;
/*  background-color: #2d2c2c;
*/}
.title_sub_1 a:hover{
  color: white;
  background-color: rgb(50,50,50);
}

.title_sub_2{
  display: flex;
  font-size: 18px;
  font-style: normal;
  text-align: left;
  margin: auto;
}

.code-box {
  display: flex;
  color: black;
  padding: 10px;
  border-radius: 8px;
  width: 100%;
  height:100%;
  margin: auto;
  position: relative;
  
}

.box {
  display: block;
  background-color: transparent;
  color: black;
  margin: auto;
  font-size: 15px;
  overflow: hidden;
  text-align: left;
  width: calc(90%/2);
  font-family: "IBM Plex Mono", monospace;
  height: fit-content;

}

.box_0{
  text-align: center;
}

.neon-title {
  cursor: pointer;
  width: fit-content;
  margin: auto;
  text-align: center;
  perspective: 310px; /* Perspectiva más suave */
  display: inline-block;
  width: 99%;
}

.text-container {
  position: relative;
  font-size: 5rem;
  font-weight: bold;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: inline-block;
  overflow: scroll;
  will-change: transform;
  width: 99%;
}

.text-part {
  backface-visibility: hidden; 
  /* display: none; */
  transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
  transform: translateZ(0);
  color: #222;
  text-shadow: 
    3px 3px 0px #1060c8,
    6px 6px 0px rgba(16, 96, 200, 0.4),
    9px 9px 0px rgba(16, 96, 200, 0.2);
}

/* contenedor del uego */
.container_game{
  border: 1px solid black;
  height: 90px;
  position: relative;
  width:99%;

}
.contador{
  width: fit-content;
  font-size: 12px;
  position: absolute;
  right: 15px;
  top: 5px;
}
.miniboton {
            position: absolute;
            left: 10px;
            top: 5px;
            font-size: 12px;
            border: 1px solid black;
            background-color: white;
            padding: 3px 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-block;
            -webkit-user-select: none;
            user-select: none;
        }

        .miniboton:hover {
            background-color: black;
            color: white;
            transform: translate(-4px, -4px);
            box-shadow: 4px 4px 0px black;
        }

.perdiste{
  display: none;
  position:absolute;
  height: 100%;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.673);
  justify-content: center;
  text-align: center;
  z-index: 10;

}
.btn-re{
  border: 1px solid black;
  padding: 5px;
  background-color: transparent;
  box-shadow: 4px 4px black;
}
.btn-re:hover{
transform: scale(1.1);
}

#record{
  position: absolute;
  top: 5px;
  left: 15px;
}
#start{
  position: relative;
  overflow: hidden;
  width: 99%;
  display:flex;
  height: 99%;
  background-color: rgba(50, 50, 50, 0);
}
#laoder-game{
  display: none;
}
#game{
  display: none;
  width: 99%;
  height:111px;
  border: 1px solid black;
  overflow: hidden;
}
.contenedor_game{
  position: relative;
  width: 99%;
  height: 99%;
  
}

/* carrito */
.car {
            width: 80px;
            height: 30px;
            bottom: -1px;
            background-color: black;
            position: absolute;
            border-radius: 5px;
            transform: scale(0.6);
        }

        .roof {
            width: 46px;
            height: 25px;
            background-color: black;
            position: absolute;
            top: -20px;
            left: 10px;
            border-radius: 1px 1px 0 0;
        }

        .window {
            width: 13px;
            height: 13px;
            background-color: white;
            position: absolute;
            top: -13px;
            border-radius: 2px;
        }

        .window.left {
            left: 35px;
        }

        .window.right {
            left: 15px;
        }

        .wheel {
            width: 20px;
            height: 20px;
            background-color: white;
            border-radius: 50%;
            position: absolute;
            bottom: -10px;
            border: 2px solid rgba(0, 0, 0, 1);
            animation: spin 0.3s linear infinite;
        }

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

        .wheel.left {
            left: 7px;
        }

        .wheel.right {
            right: 7px;
        }

        .rin {
            width: 7px;
            height: 7px;
            border-radius: 51%;
            background-color: black;
            position: absolute;
            top: 35%;
            left: 35%;
        }

        /* Escape del carro */
        .exhaust {
            width: 8px;
            height: 4px;
            background-color: #666;
            position: absolute;
            bottom: 8px;
            left: -3px;
            border-radius: 0 2px 2px 0;
        }

        /* Faros */
        .headlight {
            width: 4px;
            height: 6px;
            background-color: yellow;
            position: absolute;
            right: -1px;
            border-radius: 0 2px 2px 0;
        }

        .headlight.top {
            top: 8px;
        }

        .headlight.bottom {
            bottom: 8px;
        }

    /* trocoL */
#tronco{
  position: absolute;
  bottom: 6px;
  height: 22px;
  right: 1px;
  width: fit-content;
  height: fit-content;
}
.tronco_img{
  width: 33px;
  animation: rotacion 2s linear infinite;
  
}
@keyframes rotacion{
  from{transform: rotate(360deg);}
  to{transform: rotate(0deg);}
}

 #title_start {
  font-size: 18px;
  font-weight: 600;
  padding: 10px 30px;
  margin: auto;
  display: block;
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  letter-spacing: 0.5px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  animation: zoom 2s linear infinite;
  box-shadow: 5px 5px black;
}
.title_desc{
  font-size: 16px;
  font-weight: 400;
  color: #555;
  margin-top: 10px;
  text-align: center;
}

#title_start:hover {
  background-color: #0c0c0c;
  color: #dbdbdb;
  cursor: pointer;
  transform: translateY(-2px);
  box-shadow: none;
}
@keyframes zoom{
  0%{transform: scale(1);}
  50%{transform: scale(1.2);}
  100%{transform: scale(1);}

}





.front {  
  transform-origin: bottom center;
  /* display: none; */
  top: -15px; 
  margin: auto;   
}

.back {
  position: absolute;
  top: 0;
  margin: auto;
  transform-origin: top center;
  transform: rotateX(-90deg) translateY(-30%);
  color: #1060c8; /* Color diferente para la parte trasera */
  opacity: 0;
  display: none;
}

/* Efecto hover combinado */
.neon-title:hover .text-container {
  transform: translateY(-5px);
}

.neon-title:hover .front {
  transform: rotateX(90deg) translateZ(20px);
}

.neon-title:hover .back {
  transform: rotateX(0deg) translateZ(30px);
}

/* Sombra neon solo en el contenedor */
.neon-title:hover {
  text-shadow: none; /* Eliminamos la sombra del contenedor */
}


.box_0 h1:hover body.invertido{
    filter: invert(1);
}




.box_1{
  display: flex;
  height:calc(100%/2);
  width: 100%;
  margin: 15px auto;
}
.box_1_div{
  align-content: center;
  overflow: hidden;
  width: calc(90%/3);
  border:1px solid black;
  background-color: white;
  margin: auto;
  height: 100px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: 0.5s ease;
  box-shadow: 4px 4px 0px #2d2d2dc2;


}

.div_info{
  font-family: "IBM Plex Mono", monospace;
  position: relative;
  display: block;
  visibility: hidden;
  color: white;
  transition: 0.4s;
  text-align: center;
}
.div_info p{
  position: absolute;
  width: 100%;
  margin: auto;
  text-align: center;
  height: fit-content;
  transition: 0.3s linear;
  bottom: -15px;

}
.box_1_div:hover .img { 
  transition: 0.7s ease;
  filter: invert(100%);  
}

.box_1_div:hover{  
  background-color: rgb(50,50,50);
  box-shadow: 10px 10px #2b2b2b45;
}
.box_1_div:hover .div_info p{  
  visibility: visible;
  transition-delay: 0.2s;
  display: block;
  bottom: 3px;  
  transition: 0.2s ease;

}

.box_1_div img{
  margin: 24px auto;
  width: 40px;
}

.about-list {
  position: relative;
/*  font-family: 'Robot',sans-serif;
*/
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
width: calc(95%/2);
text-align: center;
padding: 10px;
line-height: 1.3;
/*  border:1px solid black;
*/  padding: 10px;
margin: auto;

}
.about-list h5{
  text-align: center;
  padding:0;
  margin:auto;
/*  background:rgba(26, 26, 26, 0.85);
*/  color: black;
  width: fit-content;
}



.about-list p{
  text-align: end;
  text-align: left;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  margin:0;
  font-style: normal;  
  font-size: 15px;
}

.contenido-perfil {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;  /* Otros estilos... */
}
.contenido-perfil p {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#perfil_txt3 h4{
  text-align: left;
  margin: 10px 0;
}
.perfil-seccion {
  color: #111;
}



/*divisor*/

/*divisor*/

.perfil-lista {
  list-style: none;
  padding-left: 0;
  margin: auto;
}

.perfil-lista li {
  font-size: 1rem;
  color: #333;
  display: flex;
  gap: 6px;
  padding: 0.1rem 0;
  margin: 5px auto;
}

.perfil-lista li:last-child {
  border-bottom: none;
}

.perfil-lista li i {
  color: #555;
  min-width: 22px;
  font-size: 1.1rem;
}


/*Area frames dentro del div
*/

.frameworks{
  width: 100%;
  text-align: left;justify-content: center;

}
.frameworks h4{
  text-align: left;
}
.frameworks ul{
  display: flex;
  width: 100%;
}
.frameworks ul li{
  width: calc(80%/3);
  margin: auto;
  justify-content: center;
  transition: all 0.2s ease;
  height: 40px;
  align-content: center;
  text-align: center;
  background-color:rgba(10,10,10,0.1);
  padding: 0px 6px;
  box-shadow: 4px 4px 0px rgb(59, 59, 59);
  border: 1px solid black;


}

/*area idioma dentro del div*/
.idiomas ul{
  display: flex;
  width: 100%;
}
.idiomas ul li{
  width: calc(95%/4);
  border:1px solid black;
  margin:auto;
  padding:5px 0px;
  height: fit-content;
  align-items: center;
  align-content: center;
  position: relative;
  overflow:hidden;
  font-size:16px;
  color: #fff;
  background-color:rgb(40,40,40);
}
.nativ{
  display: none;
  position: absolute;
  font-size: 16px;
}
.nativ p{
  margin: auto;
  text-align: center;
  justify-content: center;
  font-size: 19px;
  transition:0.2s ease;
}

.idiomas ul li:hover .nativ,.idiomas ul li:focus .nativ{
  display: flex;
  top: 0px;
  width: 100%;
  background-color: rgb(240,240,240);
  color: #235;
  height: 100%;
  bottom: 0;
  left: 0;
  right: 0;
}

/*Aqui empiezaa las graficas de text3

*/

.distros{
  margin: 10px auto;
}
.grafica{
  position: relative;
  display: block;
  width: 100%;
  margin: auto;
height:fit-content;
justify-content: center;
font-family: "IBM Plex Mono", monospace;
}
.grafica_title{
  text-align: center;

}

  .grafica_div{
    width:100%;
    height:fit-content;
    margin:auto;
    justify-content: center;
    display: none;
    overflow: hidden;
    position: relative;


  }

  .grafica_div1{
   width: 100%;
   display:inline-flex;
   text-align: justify;
   align-content: center;
 }
 #active {

   width: 99%;
   text-align: center;
   opacity: 0; /* Inicia invisible */
   transition: opacity 0.5s ease, transform 0.5s ease; /* Agrega transición */
   display: none; /* Se oculta por defecto */
   transform: scale(0.6);
 }

 #active.show {
  opacity: 1;  
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease; /* Agrega transición */

}

#active.hide {
  opacity: 0;
  transform:  scale(0.8);
}

.close{
  cursor: pointer;
  left: 0;
  width: 50px;
  height: 50px;
  position: absolute;
  display: flex;
}
.close:hover{
  filter: invert(100%);
  background-color:rgba(240,240,240,0.7);
}
.close img{
  margin:auto;
}
.grafica_div2{
  width: 100%;
  text-align: justify;
  align-content: center;
}
.grafica_info{
  width: 100%;
  margin: auto;
  height: fit-content;
}
.grafica_imagen{
  width: 50%;
  height:50%;
  margin: 10px auto;
  text-align: center;
}
.grafica_imagen img{
  justify-content: center;
  text-align: center;
  width: auto;
  margin: auto;
  max-height: 50px;

}
.grafica_texto{
  width: 80%;
  align-content: center;
  height:fit-content;
  background-color: white;
  margin: auto
}

/*Botones para js
*/
.botones{
  display: flex;
  width: 100%;
  margin:auto;
  height: 40px;
}
.botones button{
width: calc(100%/5);
  background-color: transparent;
  margin:
auto;
  height: 100%;
  color: black;
  display: flex;
  transition:0.4s ease;
  border:none;
  overflow:hidden;
  text-align: center;
  align-content: center;
  align-items: center;
  opacity: 0.8;
  filter: grayscale(100%) contrast(120%) brightness(90%);

}
.botones button:hover, .botones button:active, .botones button:focus, .botones button:target{
/*  zoom:1.1;
*/  opacity: 1; 
border:1px solid #1a1919b2;
transition:0.3s ease;
cursor: pointer;
box-shadow: 5px 5px black;
background-color:rgba(240,240,240,0.6);
color: #222;
z-index: 10;
filter: none;
}

.botones button img{
  height:100%;
  margin: auto;
}
/*divisor de pruebas de estilo*/

/* Proyectos */
.project {
  margin: auto;
  position: relative;
  width: 90%;
  max-width: 1200px;
  color: black;
}

.project_div {
  width: 100%;
  padding: 20px 0;
}

.project h1 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 5px;
  color: black;
  padding-bottom: 10px;
}

.controls {
  display: flex;
  justify-content: center;
}
/* 
.btn_txt {
  color: black;
  border: 1px solid black;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 14px;
  background: transparent;
  font-weight: 500;
  transition: all 0.2s ease;
} */

.btn_txt:hover {
  background: black;
  color: white;
}

/* Scroll horizontal de proyectos */
.projects-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0 20px 0;
  scroll-behavior: smooth;
}

.projects-scroll::-webkit-scrollbar {
  height: 8px;
}

.projects-scroll::-webkit-scrollbar-track {
  background: white;
  border: 1px solid black;
}

.projects-scroll::-webkit-scrollbar-thumb {
  background: black;
  border-radius: 0;
}

.projects-scroll::-webkit-scrollbar-thumb:hover {
  background: #333;
}

/* Tarjetas de proyecto */
.project-card {
  background: white;
  border: 1px solid black;
  min-width: 300px;
  max-width: 300px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  transform: scale(0.9);
}

.project-card:hover {
  box-shadow: 4px 4px 0px black;
  transform: translate(-2px, -2px);
}

.project-image {
  width: 100%;
  height: 180px;
  border-bottom: 1px solid black;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 20px;
}
.redirec_text{
font-size: 25px;
}
.redirec_img{
  width: 90%;
}

#redirecc{
  cursor: pointer;
}

.project-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: black;
  border-bottom: 1px solid black;
  padding-bottom: 5px;
}

.project-description {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 15px;
  color: #333;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.tech-tag {
  background: white;
  color: black;
  border: 1px solid black;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid black;
}

.project-date {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 8px;
}

.project-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid black;
  background: white;
  transition: all 0.2s ease;
}

.project-links a:hover {
  background: black;
}

.link-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: invert(0);
  transition: filter 0.2s ease;
}

.project-links a:hover .link-icon {
  filter: invert(1);
}

/* Responsive */
@media (max-width: 768px) {
  .project {
    width: 95%;
  }
  
  .project h1 {
    font-size: 1.6rem;
  }
  
  .project-card {
    min-width: 280px;
    max-width: 280px;
  }
  
  .project-content {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .project-card {
    min-width: 260px;
    max-width: 260px;
  }
  
  .project-image {
    height: 160px;
  }
}
/*area de los procesos */
.Proceso{
  width: 100%;
  height:450px;
  margin:100px auto;
  display: flex;
}

.Proceso_container {
  width: 80%;
  height: 400px;
  margin: auto;
  display: flex;
  position: relative;
  /* Eliminamos overflow-x aquí para no afectar todo el contenedor */
}

.proceso_static {
  width: 100%;  /* Cambiado a 100% para mejor responsividad */
  display: flex;
  position: relative;
  gap: 20px;  /* Espacio entre las dos columnas */
}

/* Contenedor de imágenes con scroll horizontal */
.procesos_div1 {
  position: relative;
  width: 70%;
  height: 100%;
  min-width: 70%;  /* Aseguramos que mantenga su proporción */
}

.imagenes-container {
  display: flex;
  overflow-x: auto;
  height: 100%;
  gap: 15px;
  scroll-snap-type: x mandatory;  /* Mejor experiencia de scroll */
  scrollbar-width: thin;  /* Para Firefox */
  padding: 10px 0;
}

/* Estilo para la barra de scroll (opcional) */
.imagenes-container::-webkit-scrollbar {
  height: 8px;
}
.imagenes-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.procesos_div1 img {
  height: 90%;
  width: auto;
  max-width: none;  /* Permite que las imágenes mantengan su proporción */
  scroll-snap-align: start;  /* Alineación para scroll suave */
  object-fit: cover;
  flex: 0 0 auto;  /* Evita que las imágenes se estiren */
}

.procesos_div1 h2 {
  position: absolute;
  color: white;
  transform: rotate(330deg);
  background-color: black;
  left: -50px;
  top: 20px;
  z-index: 2;
  padding: 5px 10px;
}

.procesos_div2 {
  position: relative;
  width: 30%;
  height: 100%;
  text-align: center;
  min-width: 300px;  /* Ancho mínimo para el texto */
}

.procesos_info {
  width: 80%;
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.procesos_info p,.procesos_info h2,.procesos_info h3{
  margin: 0;
}








/* Area de certificad */
.certificados{
  cursor: normal;
  width: 100%;
  margin:40px auto;
  height:auto;
  font-family:  "IBM Plex Mono", monospace;

}
.div-cer{

  text-align: center;
  width: 90%;
  height:100%;
  display: flex;
  position: relative;
  margin: auto;


}

.div-cer ul{
  display: block;
  grid-template-columns: repeat(auto-fill, minmax(calc(100%/4), 1fr));
  gap: 10px;
  width: 90%;
  justify-content: center; 
  align-items: center; 

}
.div-title{
  display: flex;
  justify-content: center; 
  align-items: center; 
  width: 10%;
  writing-mode: vertical-rl; 
}


.li-cer{  
  position: relative;
  height: auto;
  border:1px solid black;
  transform: rotate(calc(10deg - (20deg * random())));
  transition:2s linear;
}
.li-div{
  display: block;
  position: absolute;
  width: 100%;
  text-align: center;
  justify-content: center;
  height:100%;
  z-index: 4;
  color: black;
  background-color: rgba(250,250,250,0.9);
  
}
.li-div h3{
  margin: 0;
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center; /* Centra verticalmente */
  height: 100%; /* Toma toda la altura de la pantalla */
}

.li-cer:hover .li-div{  
  transition: 2s linear;
  display: none;
  z-index: 2;
}
.li-div_activo{
  transition: 2s linear;
  display: none;
  z-index: 2;
}


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



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

/* skills */
/* Skills Compact - Versión sin barras, porcentaje en hover/click */

/* iconos */

/* Variables para fácil personalización */
:root {
  --primary-font:'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --border-color: #0e0d0d; /* Negro un poco más suave */
  --background-color: #ffffff; /* Fondo blanco papel */
  --card-background: #f9f9f9; /* Fondo ligero para tarjetas */
  --hover-background: #1a1a1a;
  --hover-text-color: #f0f0f0;
  --icon-color-default: #333;
  --text-color: #333;
  --tab-inactive-bg: #f0f0f0;
  --tab-active-bg: var(--border-color);
  --tab-active-text: var(--background-color);
  --transition-speed: 0.3s;
  --card-shadow: 3px 3px 5px rgba(0, 0, 0, 0.05);
  --card-hover-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
}

#skills {
  font-family: var(--primary-font);
  position: relative; /* Para posicionar elementos internos si es necesario */
}

.skills-header {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  /* border-bottom: 1px solid var(--border-color); */
  padding-bottom: 10px;
}

/* seccion boton */
.tab-btn {
  --transition-speed: 0.25s;
  --tab-active-bg: rgba(0, 0, 0, 0.918);
  --tab-active-text: #fff;
  --border-color: #070707;
  
  margin: 0 10px;
  padding: 8px 20px;
  border: 1px solid #0a0a0a;
  border-radius: 0px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  font-weight: 600;
  position: relative;
  background: #ffffff;
  color: #333;
  box-shadow: 4px 4px 0 #8a8a8a8f;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-speed);
}

.tab-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #333;
}

.tab-btn:hover::before {
  left: 100%;
}

.tab-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0 #020202;
}

.tab-btn.active {
  background: var(--tab-active-bg);
  color: var(--tab-active-text);
  /* box-shadow: 0 0 0 2px #fff, 0 0 0 4px #030303; */
  transform: scale(0.9);
  border-color: var(--border-color);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: #fff;
  border-radius: 3px;
}

.tab-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #4d90fe;
}
.skills-container {
  display: none; /* Oculto por defecto */
  animation: fadeIn 0.5s ease-in-out; /* Animación de entrada */
}

.skills-container.active {
  display: block; /* Mostrar contenedor activo */
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); /* Tamaño mínimo un poco mayor */
  gap: 10px; /* Más espacio */
}

.skill-card {
  border: 1px solid var(--border-color);
  background-color:white;
  padding: 5px;
  text-align: center;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, background-color var(--transition-speed) ease;
  position: relative;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin: auto;
  width: 70%;
}

.skill-card:hover {
  background-color: var(--hover-background);
  transform: translateY(-4px) scale(1.02); /* Efecto de elevación y ligero zoom */
  box-shadow: var(--card-hover-shadow);
}

.skill-card i {
  font-size: 2.1rem; /* Iconos más grandes */
  margin-bottom: 12px;
  display: block;
  color: var(--icon-color-default); /* Color base para iconos */
  transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.skill-card:hover i {
  color: var(--hover-text-color);
  transform: rotate(5deg) scale(1.1); /* Ligera rotación y escala en hover */
}

.skill-card p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
  transition: color var(--transition-speed) ease;
}

.skill-card:hover p {
  color: var(--hover-text-color);
}

/* Pseudo-elemento para el porcentaje */
.skill-card::after , .skill-card:focus {
  content: attr(data-percent);
  position: absolute;
  bottom: -25px; /* Inicialmente oculto abajo */
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 1);
  color: white;
  padding: 3px 0;
  font-size: 0.75rem;
  text-align: center;
  opacity: 0;
  transition: bottom var(--transition-speed) ease, opacity var(--transition-speed) ease;
  font-weight: 500;
}

.skill-card:hover::after {
  opacity: 1;
  bottom: 0; /* Aparece desde abajo */
}

/* Colores específicos para iconos (añade más si es necesario) */
.skill-card:hover .fa-python { color: #3bc1ff; } /* Amarillo Python */
.skill-card:hover .fa-terminal { color: #C0C0C0; } /* Plata */
.skill-card:hover .fa-js-square { color: #dbcf1d; } /* Color de texto negro sobre fondo amarillo JS */
.skill-card:hover .fa-java { color: #F89820; } /* Naranja Java */
.skill-card:hover .fa-git-alt { color: #d31818; } /* Blanco sobre fondo Git */
.skill-card:hover .fa-database { color: #53DDAC; } /* Verde menta */
.skill-card:hover .fa-html5 { color: #bd5a2d; } /* Blanco sobre fondo HTML */
.skill-card:hover .fa-php { color: #7f89e9; } /* Lila claro */
.skill-card:hover .fa-css3-alt { color: #1a83a3; } /* Blanco sobre fondo CSS */
.skill-card:hover .fa-github { color: #8571f8; } /* Azul claro */
.skill-card:hover .fa-server { color: #f4f75e; } /* Verde pálido (para Railway) */
.skill-card:hover .fa-cloud-upload-alt { color: #00C7B7; } /* Turquesa (para Netlify) */
.skill-card:hover .fa-linux { color: #17ad30; } /* Blanco sobre fondo Linux */
.skill-card:hover .fa-play { color: #53bbce; } /* Blanco (para Vercel) */
.skill-card:hover .fa-fire { color: #ff5100; } /* Naranja (para Firebase) */

/* Animación Fade In */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* fin skills */
/*fin del java*/

.len{
  display: none;
  opacity: 0;
}
/* Cambio a tema oscuro */
#color{
  position: absolute;
  left:  10px;
  top: 10px;
  display:flex;
}
.toggle-btn {
  width: 25px;
  height: 25px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  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;
  border:1px solid #333;
  margin-right: 4px;
}


/* Fin del cambio de color*/


/*Stylo de la hoja about*/

.abt_cont{
  background-color: #FFF;
  width: 80%;
  margin: 40px auto;
  height: fit-content;
  display: block;
  justify-content: center;
  align-content:center;
  text-align: center;
  border:0.7px solid black;
}
.abt_contact ul li a{
  color: black;
}
.abt_contact ul li a:hover{
  background-color: black;
  color: white;
}
.abt_title{
  justify-content: left;
  width: 90%;
/*  border-bottom: 1px solid black;
*/  height: fit-content;
margin: auto;
margin-top: 40px ;
font-family: "IBM Plex Mono", monospace;
display: flex;
border-bottom: 1px solid black;


}
.abt_title a{
  color: #1119;
  margin-right: 20px;
  font-size:17px;
}
.abt_title a:hover {
  color: white;
  background-color: #2d2c2c;
}

.abt_cont_div{
  width: 90%;
  height: fit-content;
  margin: auto;
  display: flex;
  font-family: "IBM Plex Mono", monospace;
  list-style: circle;

}
.abt_info{
  width: 40%;
  margin: 20px auto;
/*  border:1px solid black;
*/  height: auto;
}
.abt_info_ul{
  text-align: left;
  height: auto;
  margin: 0;
  border:0.6px solid black;
}
.abt_info_ul h4{
  height:10%;
  margin: 0;
  padding:7px;
}

.abt_info_ul li{
  height: calc(89%/3) auto;
  opacity: 50%;
  margin: 30px auto;
/*  border-right: 1px solid black;
*/
}
.abt_info_ul li:hover{
  opacity: 100%;
}
.abt_info_ul p{
  padding:7px;
}

.abt_contact {
  width: 50%;
  margin: 25px auto;
}
.abt_contact span{
  display: flex;
  height: fit-content;
  margin: auto;
  width: 100%;
  border-bottom:0.8px solid black;
}
.abt_contact span img{
  margin: auto;
  width: 30%;
  height: 50px;
}
.abt_contact ul{
  text-align: right;
/*  list-style: square inside;
*/
list-style: square;
width: 40%;
margin: 20px auto;

}

.abt_web{
  border-top: 1px solid black;
  position: relative;
  height:auto;
}
.btn {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 27px;
  height: 27px;
  border-radius:50%;
  border:1px solid black;
  visibility: 70%;
  z-index: 2;
  background-color: transparent;
  transition:all 0.2s ease;
  box-shadow: 9px 5px black;

}

.btn:hover {
  background-color: #fff;
  transform:  scale(1.1) rotate(180deg);
  visibility:100%;
  cursor: pointer;

}
.btn_txt{
  position: absolute;
  right: 10px;
  top: 0;
  font-size: 18px;
  border-style: none;
  background-color:#333232;
  padding:5px 10px;
  cursor: pointer;
  color: white;

}
.btn_txt:hover, .btn_txt:active{
background-color:transparent;
color:black;

}


.abt_final{
  width: 100%;
  margin: 10px auto;
}
.abt_final ul{
  width: 90%;
  height:fit-content;
  margin: auto;
  list-style: none;
  text-align: center;
}
.abt_final ul li{
  margin:15px auto;
  text-align: center;
}
.old{
  text-align: center;
  width: 100%;
  height:fit-content;
  color: black;
  margin: 10px auto;
  border-top: 1px solid black;
  margin-top:20px;
}
.old a{
  display: block;
  color: black;
  margin: 20px ;
}
.old a:hover{
  color: white;
  background-color: #1119
}



/*secction de comentarios al final*/


.comentarios{
  padding: 10px;
  width: 80%;
  height: fit-content;
  margin:  auto;
  display: block;

}
.botones_comentarios{
  width: 60%;
  height: fit-content;
  margin: auto;
  margin-right: 0px;
  display: flex;
}
.botones_comentarios span{
  text-align: center;
  width: calc(100%/2);
  border: 1px solid black;
  cursor: pointer;
}

.comentarios-recientes{
  width: 100%;
  height: fit-content;
  margin: auto;
  display: block;
  border: 1px solid black;

}
.publicar{
  padding: 10px;
  background-color: #111;
  color: white;
  border: none;
  cursor: pointer;
}
.publicar:hover{
  background-color: #e4e4e4;
  color: black;
  transition: 0.2s ease;
}





/*Meidaquerys para movil*/

/* 📱 Estilos para móviles (menos de 900px) */
/*Primera pagina*/
@media (max-width: 900px) {


  .code-box{
    display: block;
    padding:0;
  }
  .about-list , .box{
    width: calc(97%/1);
    padding:0;
  }
  .about-list h2{
    margin: 10px auto;
    text-align: center;

  }
  .title{
    display: block;
    width: 100%;  
    height:fit-content;
    margin-bottom: 15px;
  }
  .div-title {
    writing-mode: none;
    width: 100%;
  }
  .project_div{
    overflow: scroll;
  }
  .div-cer ul{
    width: 100%;
  }
  .Proceso {
    width: 100%;
    height: fit-content;
    margin: 100px auto;
    display: flex;
  }
  .Proceso_container {
    width: 80%;
    height: fit-content;
    margin: auto;
    display: flex;
    position: relative;
  }
  .proceso_static {
    width: 100%;
    display: block;
    position: relative;
  }
  .procesos_div1 {
    position: relative;
    width: 90%;
    height: 400px;
    min-width: 70%;
    margin: auto;
  }
  .procesos_div2 {
    position: relative;
    width: 90%;
    height: fit-content;
    text-align: center;
    min-width: auto;
    margin: auto;
  }
  .procesos_div1 h2 {
    position: absolute;
    color: white;
    transform: rotate(330deg);
    background-color: black;
    left: -65px;
    top: -13px;
    z-index: 2;
    padding: 5px 10px;
    font-size: 21px;
  }
  #skills {
    width: 100%;
    margin: 40px auto;
    font-family: "IBM Plex Mono", monospace;
  }

 


  .front{
    display: block;
  }
  .back{
    display: block;
  }

}

@media (max-width: 650px) {
  /* para el boton */
.neon-title{
  display: none;

}

 /* para el mini juego */
 .container_game{
  display: none;
}

/* para el nombre jahirwh */
.text-part{
    display: inline-block;

}
}

  


@media (max-width: 500px) {
  .div-cer{
    display: block;

  }
  .len{
    display: block;
    color: black;
    margin: auto;
    text-align: center;
    widows: 95%;

  }
  .about_list p{
    letter-spacing: 0.3px;
    text-align: justify-all;
  }
  .div-title{
    width: 100%;
    display: block;
    justify-content: center;
    align-content: center;
    text-align: center
  }
  .title{
    text-align: center;
  }
  .title span{
    width: 95%;
    height: 100%;
    margin: auto;
/*  border-bottom: 1px solid black;
*/  margin: auto;
}
.div-title h2,
.div-title p{
  margin: auto
}

.about-list h2{
  margin: 10px auto;
  text-align: center;
  
}
.botones{
  display: flex;
}
.botones button{
  width:  100%;
}
.about-list p{
  text-align: center;
}
.about-list h4{
  margin:10px auto;
}
.preview{
  background-color: #E5E5E5;
  opacity: 1;
}
.grafica{
  display: block;
  height:fit-content;
  width: 100%;
}
.idiomas ul{
  display: block;
}
.idiomas ul li{
  width: 90%;
  margin: 10px auto;
}
#skills{
  width: 100%;
  margin: 40px auto;

}

/* ocultar el mini juego */
.neon-title{
  display: none;
}
/* modificaciones recientes */

.btn_txt{
  position: relative;
}
}



/* estilos nueva seccion de lenguajes y reorganizacion */
.datos {
  width: 100%;
  margin: 50px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #111;
}

.section-title {
  --transition-speed: 0.25s;
  --tab-active-bg: rgba(0, 0, 0, 0.918);
  --tab-active-text: #fff;
  --border-color: #070707;
  
  margin: 50px auto ;
  padding: 8px 20px;
  border: 1px solid #0a0a0a;
  border-radius: 0px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  font-weight: 600;
  position: relative;
  background: #ffffff;
  color: #333;
  box-shadow: 4px 4px 0 #8a8a8a8f;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  font-size: 0.85rem;
  width: fit-content;
  letter-spacing: 0.5px;
  overflow: hidden;
}

.contenido-subtemas {
  width: 90%;
  margin: auto;
  display: flex;
  flex-wrap: wrap; /* Permite que los elementos se envuelvan cuando no hay espacio */
  gap: 1rem; /* Espacio entre los temas */
  justify-content: center; /* Centra los elementos */
}

.section-title:hover {
  background-color: #0e0e0e;
  color: white;
}

.temas {
  width: calc(90%/2); /* Por defecto ocupa todo el ancho */
  /* max-width: 500px; Ancho máximo para cada columna */
  margin: 0;
  /* padding-left: 1rem; */
  align-content: center;
}

.temas h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  margin: 5px auto;
  color: #000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
}

.sub_temas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-left: 0;
  list-style: none;
  margin: 0;
  max-width: 550px;
}

.sub_temas li {
  margin: 0;
  border: 1px solid #000;
  background-color: #fdfdfd;
  padding: 0.5rem 1rem;
  font-weight: normal;
  font-size: 0.80rem;
  color: #111;
  transition: all 0.2s ease;
}

.sub_temas li:hover {
  background-color: #eee;
  box-shadow: 1px 1px 0 #000;
  transform: translate(1px, 1px);
}

/* Responsive para pantallas pequeñas */
@media (max-width: 600px) {
  .section-title {
    margin-left: auto; /* Centra el botón en móviles */
  }
  
  .contenido-subtemas {
    width: 95%; /* Ocupa más espacio en móviles */
  }
  
  .temas {
    max-width: 100%; /* Ocupa todo el ancho disponible */
  }
  
  .sub_temas li {
    flex: 1 1 calc(50% - 0.8rem); /* Dos columnas en móviles */
    text-align: center;
  }
}

/* Ajustes específicos para alturas menores a 400px */
@media (max-height: 400px) {
  .contenido-subtemas {
    flex-direction: column; /* Apila los temas verticalmente */
    overflow-y: auto; /* Añade scroll si es necesario */
    max-height: 300px; /* Altura máxima antes de mostrar scroll */
    padding: 0.5rem;
  }
  
  .temas {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    padding-left: 0;
  }
  
  .sub_temas {
    max-width: 100%;
  }
  
  .sub_temas li {
    flex: 1 1 100%; /* Una columna en alturas muy pequeñas */
  }
}