@font-face {
  font-family: FiraCode;
  src: url(../fonts/Fira_Code/FiraCode-VariableFont_wght.ttf) format("truetype");
}

@font-face {
  font-family: FiraCodeRegular;
  src: url(../fonts/Fira_Code/static/FiraCode-Regular.ttf) format("truetype");
}

@font-face {
  font-family: FireCodeBold;
  src: url(../fonts/Fira_Code/static/FiraCode-Bold.ttf) format("truetype");
}

@font-face {
  font-family: FireCodeMedium;
  src: url(../fonts/Fira_Code/static/FiraCode-Medium.ttf) format("truetype");
}

@font-face {
  font-family: FireCodeSemiBold;
  src: url(../fonts/Fira_Code/static/FiraCode-SemiBold.ttf) format("truetype");
}
html {
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  padding: 0;
  font-family: FiraCode, monospace;
  transition: 0.5s all;
  background-color: #100f0f;
  color: #f8f8f8;
  overscroll-behavior-y: none;
}

::-webkit-scrollbar {
  width: 0;
}

* {
  transition: 1s all;
  box-sizing: border-box;
  user-select: none;
}

img {
  user-select: none;
  pointer-events: none;
}



header {
  position: fixed;
  background-color: #100f0f;
  height: auto;
  width: 75%;
  justify-self: center;
  z-index: 9;
}

#HeaderContent {
  height: 5rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
}

#LogoContainer {
  display: flex;
  align-items: center;
  flex: 1;
  /* border:1px solid red ; */
}

#LogoText {
  font-family: FireCodeBold;
}

#NavContainer {
  width: 45%;
  /* border: 1px solid red; */
  display: flex;
}

#NavContainer ul {
  display: flex;
  list-style: none;
  width: 100%;
  justify-content: space-around;
}

#NavContainer ul li {
  cursor: pointer;
}

#NavContainer a {
  font-family: FireCodeMedium;
  font-size: 16px;
  text-decoration: none;
  color: grey;
}

#NavContainer a:hover {
  color: white;
}

#NavContainer span:nth-last-child(2) {
  color: #c778dd;
}

.IdiomaSelector {
  margin-left: 1%;
  color: grey;
  display: flex;
  flex-direction: row;
  /* border: 1px solid blue; */
  position: relative;
}


.IconIdioma {
  width: 20px;
  display: flex;
  align-self: center;
  align-items: center;
  justify-items: center;
  margin-left: 5px;
  height: 20px;
  transition: 0.5s all;
  /* border: 1px solid red; */
}

.IdiomaSelector:hover > .IconIdioma {
  rotate: 180deg;
}

.IdiomaSelector:hover .SelectorIdioma {
  /* animation: Despliegue 0.5s forwards; */
  opacity: 1;
  width: auto;
  height: auto;
  transition: 2s all;
  border: 1px solid white;
}

.SelectorIdioma {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #100f0f;
  display: flex;
  flex-direction: column;
  height: 0px;
  width: 0px;
  opacity: 0;
  align-items: center;
  overflow: hidden;
  transition: 2s all;
}

.SelectorIdioma a {
  padding: 10px;
  color: grey;
  text-decoration: none;
}

.SelectorIdioma a:hover {
  color: white;
}

@keyframes Despliegue {
  from {
    height: 0;
    width: 0;
  }

  to {
    opacity: 1;
    width: auto;
    height: auto;
  }
}

@keyframes Girar {
  from {
    rotate: 0deg;
    color: grey;
  }

  to {
    rotate: 180deg;
    color: white;
  }
}

.Accesibilidad-container {
  position: fixed;
  right: 2%;
  bottom: 10%;
  width: 45px;
  height: 45px;
  border-radius: 100%;
}

.btn-dark-light {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #f7f0f0;
  /* border: 1px solid red; */
  cursor: not-allowed;
  border: none;
}

.dark-light-icon::before {
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
  content: "🌙";
  justify-content: center;
  align-content: center;
  border-radius: 100%;
  border: 1px solid grey;
  /* background-color: rgb(255, 255, 255); */
  width: 100%;
}

.dark-light-icon.dark::before {
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
  content: "☀️";
  justify-content: center;
  align-content: center;
  border-radius: 100%;
  /* border: 1px solid rgb(255, 255, 255); */
  background-color: rgb(31, 31, 31);
  width: 100%;
}

.Media-Container {
  position: fixed;
  display: block;
  justify-items: center;
  top: 0;
  left: 0%;
  width: 5%;
  height: auto;
  z-index: 9;
  /* border: 1px solid red; */
  background-color: #100f0f;
  border-radius: 50px;
}

.Media-Container .Linea {
  height: 12rem;
  width: 1.5px;
  background-color: #6d6d6d;
}

.Media-item {
  display: flex;
  gap: 9px;
  flex-direction: column;
  justify-content: center;
  margin-top: 5px;
  /* border: 1px solid red; */
}

.Media-item a {
  display: flex;
  justify-content: center;
}

main {
  overflow: hidden;
}

.Container-section {
  position: relative;
  height: auto;
}

.Works-container {
  display: flex;
  flex-direction: column;
  position: relative;
  justify-self: center;
  padding-top: 6%;
  /*  border: 1px solid blue; */
  width: 75%;
  height: auto;
}

.header-section {
  height: 5%;
  display: flex;
  flex-direction: column;
  padding-bottom: 2%;
  /* border: 1px solid orange; */
}

.header-section h2 {
  flex: 1;
  font-family: FireCodeMedium;
  font-weight: 300;
  margin-right: 2%;
  font-size: 32px;
  margin: 0;
  margin-bottom: 1%;
}
.header-section p {
  /* border:1px solid red; */
  margin: 0;
  font-size: 16px;
  color: #999898;
}

.header-section span:nth-last-child(2) {
  color: #c778dd;
}
.header-works {
  margin-bottom: 6%;
}

.header-section a {
  text-wrap: nowrap;
  justify-self: right;
  margin-left: 5%;
  width: auto;
  font-size: 16;
  font-family: FireCodeMedium;
  color: white;
  text-decoration: none;
}

.separador {
  background-color: #c778dd94;
  height: 2px;
  width: 100%;
}

#Works-items {
  flex: 1;
  display: flex;
  gap: 10px;
  flex-direction: row;
  /* border: 1px solid orange; */
  height: max-content;
}

.Work-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid #a8a8a8;
  /* background-color: blue; */
  width: 20%;
}

.Work-item figure {
  border-bottom: 1px solid #a8a8a8;
  margin: 0;
  height: 13rem;
  /* background-color: rgb(163, 163, 163); */
}

.Work-item figure > img {
  border: 1px solid red;
  width: 100%;
  height: 100%;
}

.item-1 {
  height: 25rem;
}

.item-2 {
  height: 28rem;
}

.item-3 {
  height: 25rem;
}

.lenguaje-items {
  flex: 1;
  border-bottom: 1px solid #a8a8a8;
  height: auto;
}

.Action {
  flex: 1;
  display: flex;
  gap: 10px;
  flex-direction: column;
  padding: 10px 10px 10px 10px;
  border: 1px solid red;
  height: auto;
}

.Action h2 {
  font-family: FireCodeMedium;
  font-weight: lighter;
}

.Action a {
  border: 1px solid #c778dd;
  color: white;
  text-decoration: none;
  padding: 7px 20px;
  transition: 0.5s all;
}

.Action p {
  color: gray;
}

.Action a:hover {
  background-color: #c778dd9a;
}

.sections {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.sections.visible {
  opacity: 1;
  transform: translateY(0);
}

.Vector-Retangulo {
  border: 1px solid #aaa9a9;
  position: absolute;
  right: -14%;
  top: 10%;
  width: 20%;
  height: 10%;
  transition: all 1s ease;
}

.AboutMe-Container {
  display: flex;
  height: 28rem;
  /* border: 1px solid rgb(0, 47, 255); */
}

.AboutMeText {
  /* border: 1px solid red; */
  flex: 1;
}

.AboutMeText p {
  font-family: FiraCodeRegular;
  font-size: 16px;
  line-height: 25px;
  font-weight: lighter;
  color: #a7a7a7;
}

.AboutMeHero {
  position: relative;
  /* border: 1px solid green; */
  flex: 1;
}

.AboutMeHero img {
  position: absolute;
}

.Personv1 {
  /* border: 1px solid blue; */
  right: 0;
  bottom: 2%;
  border-bottom: 1px solid #c778dd;
}

.Frame1 {
  left: 32%;
  top: -2.5%;
  height: 84px;
  width: 84px;
  z-index: 2;
  animation: Frame1-Animation 7s infinite;
}

.Frame2 {
  right: 2%;
  top: 49%;
  animation: Frame2-Animation 7s infinite;
}

.VectorAboutMe {
  height: 155px;
  width: 155px;
  border: 1px solid grey;
  position: absolute;
  top: 27%;
  left: -10%;
  transition: all 1s ease;
}

.VectorAboutMe.DespliegueRightv2 {
  left: -5.5%;
}

@keyframes Frame1-Animation {
  0% {
    top: -2.5%;
  }

  50% {
    top: 70%;
  }
}

@keyframes Frame2-Animation {
  0% {
    top: 49%;
  }

  50% {
    top: -2.5%;
  }
}

.AboutMeHero:hover .Frame1 {
  animation-play-state: paused;
}

.AboutMeHero:hover .Frame2 {
  animation-play-state: paused;
}

.skills-items {
  width: 100%;
  /* background-color: blue; */
  /* border: 1px solid red; */
  display: grid;
  margin-left: 5%;
  grid-template-columns: auto auto auto auto auto;
  margin: 20px 20px 20px 20px;
}

.table-column {
  display: flex;
  flex-direction: column;
  /* border: 1px solid blue; */
  gap: 10px;
  width: 95%;
}

.table-item {
  border: 1px solid;
  border-color: gray;
  transition: 0.5s all;
}

.table-item:hover {
  transform: scale(1.1);
}

.table-item h3 {
  padding-left: 6%;
  padding-right: 6%;
  display: flex;
  height: 3rem;
  margin: 0;
  align-items: center;
  border-bottom: 1px solid gray;
  font-family: FireCodeSemiBold;
  font-weight: lighter;
  font-size: 16px;
}

.table-item p {
  padding-left: 6%;
  padding-right: 6%;
  font-size: 16px;
  font-family: FiraCodeRegular;
  color: #9c9b9b;
}

.Skills-container {
  /* border: 1px solid blue; */
  display: flex;
  flex-direction: row;
  height: auto;
}

.Vector-Retangulo.DespliegueLeft {
  right: -10%;
}

.VectorDocs {
  left: -10%;
  transition: all 1s ease;
}

.VectorDocs.DespliegueRight {
  left: 0%;
}

.fun-container {
  position: relative;
  /* border: 1px solid rgb(17, 0, 255); */
  margin-top: 5%;
  display: flex;
  flex-direction: column;
  justify-items: center;
  width: 100%;
  overflow: auto;
  padding-bottom: 25%;
}

.fun-items {
  justify-self: flex-start;
  /* border:1px solid green; */
  overflow: visible;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  width: 70%;
  position: relative;
  left: 10%;
  right: 15%;
}

.fun-items .table-item {
  width: fit-content;
  flex-shrink: 0;
  display: block;
  padding-left: 2%;
  padding-right: 2%;
  /* border-color: red; */
  margin: 0;
  overflow: visible;
  padding: 8px 8px 8px 8px;
}

.fun-items .table-item p {
  margin: 0;
  padding-left: 0;
  white-space: nowrap;
}
.fun-items .table-item span {
    color:white;
}
.vectores-fun {
  /* border:1px solid red; */
  width: 20%;
  height: 60%;
  top: 15%;
  right: 0;
  position: absolute;
}
.vectores-item {
  height: 100%;
  width: 100%;
  position: relative;
}
.vectores-item img {
  position: absolute;
  /* border:1px solid red; */
}
.vectores-item img:nth-last-child(1) {
  bottom: 0;
  right: 0;
  z-index: 3;
  animation: vectores-fun-bottom 6s infinite ease-in-out;
}
.vectores-item img:nth-last-child(2) {
  bottom: 25%;
  z-index: 2;
  right: 2%;
}
.vectores-item img:nth-last-child(3) {
  top: 0;
  z-index:1;
  animation: vectores-fun-top 6s infinite ease-in-out;
}

/* Footer */
.Footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #100f0f;
  color: rgba(255, 255, 255, 0.8);
  font-family: FiraCodeRegular;
  border-top: 1px solid #a1a1a1;
  padding-top: 10px;
  height: 13rem;
}

.FooterContainer {
  flex: 1;
  display: flex;
  justify-content: space-between;
  /* border: 1px solid red; */
  position: relative;
  width: 75%;
}

.Container-info {
  display: flex;
  justify-content: space-between;
  /* border: 1px solid blue; */
  width: 35%;
}

.cargo-item {
  /* border: 1px springgreen solid; */
  width: 20%;
  margin: 0;
}

.Footer-logo figure {
  height: 100%;
  display: flex;
  align-items: center;
  /* border: 1px solid red; */
  margin: 0;
  margin-right: 3px;
}

.Footer-logo img {
  width: 40px;
  height: 40px;
}

.Footer-logo {
  display: flex;
  font-family: FireCodeMedium;
  margin-right: 5px;
}

.FooterContainer .Footer-info {
  width: 40%;
}

.Footer-email p {
  color: rgb(160, 160, 160);
}

.Footer-media {
  position: absolute;
  right: 0;
  display: flex;
  flex-direction: column;
  /* border: 1px rgb(94, 255, 0) solid; */
  width: 12%;
  top: 15%;
  font-family: FireCodeMedium;
  font-size: 24px;
}

.Header-media {
  height: auto;
  display: flex;
  align-items: center;
  color: rgb(211, 211, 211);
  font-weight: 100;
  /* border: 1px solid blueviolet; */
}

.Header-media p {
  margin: 0;
}

.media-items figure {
  /* border: 1px solid red; */
  display: flex;
  margin: 0;
  gap: 15px;
}

.media-items {
  /*  border: 1px solid red; */
  display: flex;
  flex-direction: row;
}

/* .media-items img {
    border: 1px solid red;
} */
.media1 {
  width: 34px;
  height: 100%;
}

.media2 {
  width: 22px;
  height: 100%;
}

.Footer-Copyright {
  height: 30%;
  width: 75%;
  /* border: yellow 1px solid ; */
}

.Footer-Copyright p {
  color: rgb(172, 171, 171);
  font-size: 16px;
  text-align: center;
}

.Footer-info {
  flex: 1;
  color: white;
  font-family: FiraCodeRegular;
  font-size: 16px;
  /* border: 1px solid blue; */
}

.Contacts p {
  display: flex;
  height: 100%;
  width: 100%;
  padding-left: 2%;
  font-size: 12px;
  flex: 1;
}

.Contacts:hover p {
  color: white;
}

@keyframes vectores-fun-top {
  0% {
    top: 0;
  }
  50% {
    top: 80%;
  }
}@keyframes vectores-fun-bottom {
  0% {
    bottom: 0;
  }
  50% {
    bottom: 80%;
  }
}

.Contacts-container {
    /* border: 1px solid red; */
    height: 19rem;
    display: flex;
    position: relative;
}

.Contacts-container p {
    flex: 1;
    color: #a7a7a7;
    padding-right: 30%;
    font-size: 16px;
    font-family: FiraCodeRegular;
    /* border: 1px springgreen solid; */
}

.Contacts {
    padding: 10px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid gray;
    width: 22.5%;
    height: 50%;
    overflow: hidden;
}

.Contacts .Contact-1 {
    display: flex;
    flex: 1;
    /* border: 1px solid red; */
}

.Contacts .Contact-2 {
    display: flex;
    /*  border: 1px solid red; */
}

.icon {
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    /* border: 1px blue solid; */
}

.icon img {
    width: 16px;
    height: 16px;
}
#Burger-btn-container {
  display: none;
}

/* Dispositivos pequeños (teléfonos en vertical) */
@media screen and (max-width: 480px) {
  header {
    padding-left: 5%;
    padding-right: 5%;
    width: 100%;
  }

  #NavContainer {
    display: block;
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 90dvh;
    right: -100%;
    bottom: 0%;
    background-color: #100f0f;
  }

  #NavContainer ul {
    list-style: none;
    gap: 60px;
    justify-content: left;
    display: flex;
    flex-direction: column;
    height: 99dvh;
  }
  #NavContainer ul li {
    cursor: pointer;
  }
  #NavContainer a {
    font-family: FireCodeMedium;
    font-size: 38px;
    text-decoration: none;
    color: grey;
  }
  #NavContainer a:hover {
    color: white;
  }
  #NavContainer_mv span:nth-last-child(2) {
    color: #c778dd;
  }
  #temp-li-idioma {
    font-size: 20px;
    /* border:1px solid blue; */
    width: 15%;
  }
  #temp-li-media {
    display: flex;
    align-items: center;
    /* border:1px solid violet; */
    height: 10%;
    width: 85%;
  }

  .Media-Container {
    display: block;
    z-index: 9;
    background-color: #100f0f;
    border-radius: 50px;
  }

  #temp-li-media .Media-Container {
    position: static;
    width: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    height: 100%;
    border-radius: 0px;
    /* border:1px solid pink;    */
  }

  #temp-li-media .Linea {
    display: none;
  }

  #temp-li-media .Media-item {
    flex-direction: row;
    margin: 0;
    /* border:1px solid red; */
    gap: 50px;
    width: 100%;
    height: 100%;
  }
  .Media-item a:nth-last-child(1) > img {
    width: 60px;
  }
  .Media-item a:nth-last-child(2) > img {
    width: 48px;
  }
  .Media-item a:nth-last-child(3) > img {
    width: 70px;
  }
  #Burger-btn-container {
    display: block;
    /* border:1px solid red; */
}

#Burger-btn-container button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* --- LÓGICA PARA INTERCAMBIAR ICONOS --- */

/* 1. Estado CERRADO: Se muestra la hamburguesa con animación de "regreso" */
#Burger-btn-container button .icon-burger {
    display: block;
    animation: girar 0.5s reverse ease-in-out;
}

/* 2. Estado ABIERTO: Se oculta la hamburguesa */
#Burger-btn-container.burger-active .icon-burger {
    display: none;
}

/* 3. Estado CERRADO (Oculto): La X no se ve */
#Burger-btn-container button .icon-close {
    display: none;
}

/* 4. Estado ABIERTO: Se muestra la X con animación de giro hacia adelante */
#Burger-btn-container.burger-active .icon-close {
    display: block;
    animation: girar 0.5s forwards ease-in-out;
}

/* --- LÓGICA DE MOVIMIENTO DEL NAV --- */
#NavContainer.burger-active {
    right: 0%;
}

/* --- ANIMACIÓN ÚNICA --- */
@keyframes girar {
  0% {
    transform: rotate(0deg);
    opacity: 0;
  }
  100% {
    transform: rotate(180deg);
    opacity: 1;
  }
}
}