html{
  scroll-behavior: smooth;
}
body{
  margin: 0;
  overflow-x: hidden;
  background-color: #29292b;
  font-family: Arial, sans-serif;
  color: #fff;
}

/* Superior Classes */

.portada{
  background-color: rgb(0, 2, 31);
  padding: 15px;
}

.lista_desplegada {
  align-items: center;
  text-align: center;
  list-style-type: none;
}

.lista_desplegada nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flag {
  position: absolute;
  top: 10px;
  right: 15px;
}

.lista_desplegada nav li {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.header_buttons,
.header_buttons:visited{
  transition: color 0.3s ease;
  color: white;
  font-family: 'Press Start 2P';
  font-size: clamp(5px, 2.5vw, 14px);
  text-decoration: none;
  margin: 0px clamp(1px, 2.5vw, 500px);
}
.header_buttons:hover{
  transition: color 0.3s ease;
  color: rgb(255, 183, 89);
  font-family: 'Press Start 2P';
  text-decoration: none;
}
.header_buttons:active {
  transition: all 0.3s ease;
  font-family: 'Press Start 2P';
  text-decoration: none;
  text-align: center;
}

/*Zona inferior*/

.footer {
  background-color: rgb(11, 0, 22);
  color: white;
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  
  display: flex;
  flex-direction: column;
  width: 100vw;
  margin-left: calc(-50vw + 50%);

}

.footer a{
  text-decoration: none;
  color: white;
}

.p_footer {
  font-size: 9px;
  text-align: center;
}

.p_footer_link{
  color: #ffffff;
  text-decoration: none;
  font-size: 9px;
}


/*PROJECTS ZONE*/

.project_description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 90%;
  max-width: 1200px;
  margin: 20px auto 0px auto;
}

.project_description header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.project_content {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}

.project_left,
.project_right {
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 560px;
}

.project_left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  padding: 10px 26px 18px 26px;
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.project_right {
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  padding: 10px 26px 18px 26px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.project_right h2,
.project_left h2 {
  text-align: left;
}

.project_right ul {
  margin: 0px 0 0 16px;
  padding: 0;
  list-style: disc;
}

.project_right ul li {
  margin-bottom: 8px;
  font-size: 14px;
  font-family: 'Share Tech Mono', sans-serif, cursive;
  margin: 10px 0px 10px 15px;
  list-style:square;
}


.project_description h1 {
  font-size: 20px;
  color: #ffffff;
  text-align: center;
  font-family: 'Press Start 2P', sans-serif, cursive;
  margin: 20px 0px 20px 0px;
}

.project_description h2 {
  font-size: 13px;
  color: #ffffff;
  text-align: left;
  font-family: 'Press Start 2P', sans-serif, cursive;
  margin: 30px 0px 15px 0px;
}

.project_description h3 {
  font-size: 15px;
  color: #ffffff;
  text-align: left;
  font-family: 'Press Start 2P', sans-serif, cursive;
  margin: 30px 0px 15px 0px;
}

.project_description h4 {
  font-size: 13px;
  color: #ffffff;
  text-align: center;
  font-family: 'Press Start 2P', sans-serif, cursive;
  margin: 30px 0px 15px 0px;
}

.project_description p {
  align-self: stretch;
  font-size: 14px;
  color: #ffffffd0;
  text-align: left;
  font-family: 'Share Tech Mono', sans-serif, cursive;
  margin-bottom: 30px;
}

.project_description a{
  color: #ffffffd0;
  text-decoration: none;
  font-size: 14px;
}

.project_description_text p {
  font-size: 15px;
  color: #ffffffd0;
  text-align: left;
  font-family: 'Share Tech Mono', sans-serif, cursive;
  margin-bottom: 30px;
}

.project_description .resume_project {
  font-size: 15px;
  color: #ffffff98;
  text-align: left;
  font-family: 'Share Tech Mono', sans-serif;
  font-style: italic;
  margin-bottom: 20px;
}

.project_right ul {
  margin: 0px 0 30px 0px;
}

.project_description_text ul li{
  font-size: 14px;
  font-family: 'Share Tech Mono', sans-serif, cursive;
  margin: 10px 0px;
  list-style:square;
}

.image_project {
  width: 40%;
  max-width: 720px;
  border-radius: 5px;
}

.project_icons {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin: 10px 20px 0px 0px;
  transition: transform 0.2s ease;
}

.project_icons:hover {
  transform: scale(1.08);
}

.project_images {
  display: flex;
  justify-content: center;
  padding: 30px 20px 0px;
}

.carousel {
  position: relative;
  width: min(100%, 900px);
  max-width: 100%;
  height: 520px;
  overflow: hidden;
  border-radius: 20px;
  background-color: transparent;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.carousel-item {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.carousel-prev {
  left: 14px;
}

.carousel-next {
  right: 14px;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
}

.carousel-arrow:disabled {
  background: rgba(255, 255, 255, 0.15);
  cursor: default;
  opacity: 0.45;
}

.carousel-arrow:disabled:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 720px) {
  .carousel {
    width: 100%;
  }
  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
}

.work{
  margin: 50px 5% 0px 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.experiencia {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 35px;
  max-width: 1200px;
  margin: 0px 100px 0px auto;
}

.experiencia h1 {
  color: #ffffff;
  text-align: center;
  font-family: 'Share Tech Mono', sans-serif, cursive;
  margin: 0px 0px 10px 0px;
}

.experiencia ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.trabajo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0px 280px 0px 0px;
  gap: 2px;
  font-family: "Share Tech Mono", sans-serif, cursive;
}

.trabajo a{
  text-decoration: none;
  color: #ffffffd0;
}

.trabajo a:hover{
  transition: color 0.3s ease;
  color: rgb(255, 183, 89);
}

.trabajo a:active{
  transition: color 0.3s ease;
  text-decoration: none;
  color: #ffffffd0;
}

.trabajo a:visited{
  transition: color 0.3s ease;
  text-decoration: none;
  color: #ffffffd0;
}

.trabajo h1{
  margin-top: 0px;
}

.trabajo li {
  display: flex;
  align-items: left;
  white-space: nowrap;
  padding: 20px 0px 20px 0px;
  border-bottom: #dadada3b 2px solid;
}

 .trabajo-list {
   width: 100%;
   max-height: 240px;
   overflow-y: auto;
   padding-right: 8px;
   margin-top: 5px;
 }
 
 .trabajo-list ul {
   display: flex;
   flex-direction: column;
   gap: 14px;
   padding: 0;
   margin: 0;
   list-style: none;
 }
 
 .trabajo-list::-webkit-scrollbar {
   width: 8px;
 }
 
 .trabajo-list::-webkit-scrollbar-track {
   background: rgba(255, 255, 255, 0.068);
   border-radius: 999px;
 }
 
 .trabajo-list::-webkit-scrollbar-thumb {
   background: rgba(255, 255, 255, 0.158);
   border-radius: 999px;
 }
 
 .trabajo .job-year {
   display: inline-block;
   text-align: left;
   font-weight: 700;
   color: #ffffff9a;
   padding: 10px 20px;
   border: rgba(255, 255, 255, 0.205) 2px solid;
   border-radius: 15px;
 }
 
 .trabajo .job-company {
  padding: 10px;
  display: inline-block;
  color: #ffffff;
  font-size: 20px;
  font-family: "Share Tech Mono", sans-serif, cursive;
}

@media (max-width: 768px) {
  .trabajo .job-company {
    font-size: 18px;
  }
}

/*ALL*/
.projects{
  padding: 10px 7rem;
  margin: 120px 10% 50px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
/*TITTLE*/
.projects h1 {
  text-shadow: 2px 4px 2px #000000;
  font-size: 30px;
  font-family: 'Press Start 2P', sans-serif, cursive;
  margin: 20px 0px 20px 0px;
  text-align: center;
}

/*CONTAINER PROJECTS*/
.projects .project_container {
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

/**/
.projects .project_container .project_box {
  display: flex;
  position: relative;
  transition: transform .25s ease-in-out, box-shadow .25s ease-in-out;
  transform-origin: center;
  border-radius: 20px;
  overflow: hidden;
}
.projects .project_container .project_box:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.projects .project_container .project_box div {
  position: absolute;
  bottom: 10px;
  right: 20px;
  z-index: 40;
  text-align: right;
}

.projects .project_container .project_box a {
  width: 25rem;
  height: 20rem;
  max-width: 420px;
  max-height: 280px;
  border-radius: 20px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  overflow: hidden;
}

.project_expecifications {
  background-color: #000000b0;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  color: #fff;
}

.see-video {
  background-color: #30af8ff5;
  padding: 5px 30px 5px 20px;
  text-decoration: none;
  color: #fff;
  text-shadow: #000000bd 3px 3px 3px;
  font-family: sans-serif; /* Cambiar fuente después */
  position: absolute;
  width: auto !important;
  height: auto !important;
  bottom: 0;
  border-top-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-origin: center;
  left: 0;
  z-index: 45;
}

.see-video:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.see-game {
  background-color: #3063aff5;
  padding: 5px 30px 5px 20px;
  text-decoration: none;
  color: #fff;
  text-shadow: #000000bd 3px 3px 3px;
  font-family: sans-serif; /* Cambiar fuente después */
  position: absolute;
  width: auto !important;
  height: auto !important;
  bottom: 0;
  border-top-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-origin: center;
  left: 0;
  z-index: 45;
}

.see-game:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.see-prototipe {
  background-color: #7a46aaf5;
  padding: 5px 30px 5px 20px;
  text-decoration: none;
  color: #fff;
  text-shadow: #000000bd 3px 3px 3px;
  font-family: sans-serif; /* Cambiar fuente después */
  position: absolute;
  width: auto !important;
  height: auto !important;
  bottom: 0;
  border-top-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-origin: center;
  left: 0;
  z-index: 45;
}

.see-prototipe:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.see-jam {
  background-color: #aa4670f5;
  padding: 5px 30px 5px 20px;
  text-decoration: none;
  color: #fff;
  text-shadow: #000000bd 3px 3px 3px;
  font-family: sans-serif; /* Cambiar fuente después */
  position: absolute;
  width: auto !important;
  height: auto !important;
  bottom: 0;
  border-top-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-origin: center;
  left: 0;
  z-index: 45;
}

.see-jam:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}


.video {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 720px;
  margin: 10px auto;
}

.video iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

.video .video_description {
  display: block;
  align-self: center;
  width: auto;
  max-width: 720px;
  font-size: 7px;
  color: #ffffffa1;
  text-align: center;
}

.video .video_description a,
.video .video_description a:visited {
  transition: color 0.3s ease;
  color: #ffffffa1;
  font-size: clamp(5px, 2.5vw, 14px);
  text-decoration: none;
  text-decoration: none;
  font-size: 7px;
}
.video .video_description a:hover {
  transition: color 0.3s ease;
  color: rgb(255, 183, 89);
  text-decoration: none;
}
.video .video_description a:active {
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}


.presentacion {
  margin: 20px 15% 0px 15%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  gap: 40px;
  padding: 40px 10px 0px;
  font-family: "Share Tech Mono", sans-serif, cursive;
}

.presentacion .subtitle{
  margin-top: 10px;
}

.presentacion h1 {
  font-size: 45px;
  color: #ffffff;
  text-align: left;
}

@media (max-width: 768px) {
  .presentacion h1 {
    font-size: 30px;
  }
}

.presentacion p {
  font-size: 20px;
  color: #ffffffd0;
  font-family: "share tech mono", sans-serif, cursive;
  text-align: left;
  padding-bottom: 20px;
}

@media (max-width: 768px) {
  .presentacion h1 {
    font-size: 30px;
  }
  .presentacion p {
    font-size: 18px;
  }
}

.perfil {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.perfil img {
  width: 380px;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
}

.redes ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.perfil .project_icons {
  width: 38px;
  height: 38px;
  margin: 0;
}

.contacto {
  margin: 0px 15% 100px 15%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  gap: 5px;
  padding: 40px 0px 0px;
  border-top: #0000001a 3px solid;
  font-family: "share tech mono", sans-serif, cursive;
  font-size: 20px;
}

.contacto a{
  color: #ffaf1bd0;
  text-decoration: none;
  font-size: 40px;
}

@media (max-width: 768px) {
  .contacto {
    font-size: 15px;
    padding: 20px 0px 0px;
  }
  .contacto a {
    font-size: 30px;
  }
}

@media (max-width: 850px) {
  .presentacion {
    flex-direction: column;
    align-items: center;
  }
  .presentacion aside,
  .perfil {
    max-width: 100%;
  }
}



@media (max-width: 768px) {
  .lista_desplegada nav li {
    gap: 10px;
  }

  .header_buttons,
  .header_buttons:visited {
    margin: 0px 4px;
  }
}

@media (max-width: 768px) {
  .footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 50px;
  }
}


@media (max-width: 1024px) {
  .project_description {
    width: 95%;
    gap: 24px;
  }

  .project_top {
    gap: 16px;
  }

  .project_content {
    gap: 16px;
  }

  .project_left,
  .project_right {
    max-width: 100%;
  }

  .project_right {
    padding: 16px 20px;
  }

  .project_description h1 {
    font-size: 22px;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .project_description {
    width: 100%;
    max-width: 100%;
    gap: 14px;
    margin: 10px auto 0 auto;
  }

  .project_top {
    gap: 12px;
  }

  .video {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .project_content {
    flex-direction: column;
    gap: 14px;
  }

  .project_left,
  .project_right {
    max-width: 100%;
    min-width: 0;
    padding: 12px 16px;
  }

  .project_right {
    padding: 12px 16px;
  }

  .project_description h1 {
    font-size: 18px;
    margin-top: 12px;
  }

  .project_description h2,
  .project_description h3 {
    font-size: 14px;
    margin: 14px 0 10px 0;
  }

  .project_description p,
  .project_right p,
  .project_right ul li {
    font-size: 12px;
  }
}

/* Mantener el contenido principal ligeramente insetado en móvil (excluye header y footer) */
@media (max-width: 768px) {
  main {
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}