@import url('https://fonts.googleapis.com/css2?family=Caprasimo&display=swap');

@font-face {
  font-family: "Cooper Hewitt";
  src: url("../fonts/CooperHewitt-Light.woff") format("woff"),
    url("../fonts/CooperHewitt-Thin.woff") format("woff");
}


[data-theme="light"] {
  --background1: #9ec6c8;
  --background2: #3e8d92;
  --primary: #343434;
  --secondary: #1f1f1f;
}

[data-theme="dark"] {
  --background1: #1f1f1f;
  --background2: #3e8d92;
  --primary: #faf9f6;
  --secondary: #c0c0c0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scrollbar-width: thin;
  scrollbar-color: var(--background2) var(--background1);
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background-color: var(--background1);
}

html::-webkit-scrollbar-thumb {
  background-color: var(--background2);
}

::selection {
  background-color: var(--background2);
}

/* Header */

.header {
  background-color: var(--background1);
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  transition: 0.5s;
}

.header.abajo {
  backdrop-filter: blur(15px);
  background: rgba(41, 41, 41, 0.3);
}

.logo {
  color: var(--background2);
  font-family: "Cooper Hewitt";
  font-weight: bold;
  font-size: 1.8rem;
  letter-spacing: 0.3rem;
  text-decoration: none;
}

nav.nav_menu.active {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: absolute;
  left: 0;
  top: 5.3rem;
  width: 100%;
  height: auto;
  background-color: var(--background1);
  box-shadow: 0 10px 16px -6px rgb(5 5 5 / 30%),
    0 25px 10px -24px rgb(5 5 5 / 10%);
  animation: ease 0.4s left forwards;
}

@keyframes left {
  0% {
    left: 100%;
  }

  100% {
    left: 0;
  }
}

nav.nav_menu.active a {
  padding: 2rem;
  font-family: "Cooper Hewitt";
  letter-spacing: 0.1rem;
  text-decoration: none;
  color: var(--primary);
  font-size: 2rem;
  width: 100%;
  text-align: center;
}

nav.nav_menu.active a:hover {
  color: var(--primary);
  background-color: var(--background2);
  transition: all 0.4s;
}

nav.nav_menu.not-active a {
  display: none;
}

.btn {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translate(-50%, -50%);
  width: 3rem;
  cursor: pointer;
}

#button span {
  display: block;
  width: 100%;
  box-shadow: 0 2px 10px 0 rgb(0, 0, 0, 0.3);
  border-radius: 3px;
  height: 0.3rem;
  background: var(--background2);
  transition: all 0.3s;
  position: relative;
}

span+span {
  margin-top: 0.6rem;
}

.active span:nth-child(1) {
  animation: ease 0.7s top forwards;
}

.not-active span:nth-child(1) {
  animation: ease 0.7s top-2 forwards;
}

.active span:nth-child(2) {
  animation: ease 0.7s scaled forwards;
}

.not-active span:nth-child(2) {
  animation: ease 0.7s scaled-2 forwards;
}

.active span:nth-child(3) {
  animation: ease 0.7s bottom forwards;
}

.not-active span:nth-child(3) {
  animation: ease 0.7s bottom-2 forwards;
}

@keyframes top {
  0% {
    top: 0;
    transform: rotate(0);
  }

  50% {
    top: 1rem;
    transform: rotate(0);
  }

  100% {
    top: 1rem;
    transform: rotate(45deg);
  }
}

@keyframes top-2 {
  0% {
    top: 0.8rem;
    transform: rotate(45deg);
  }

  50% {
    top: 0.8rem;
    transform: rotate(0deg);
  }

  100% {
    top: 0;
    transform: rotate(0deg);
  }
}

@keyframes bottom {
  0% {
    bottom: 0;
    transform: rotate(0);
  }

  50% {
    bottom: 0.8rem;
    transform: rotate(0);
  }

  100% {
    bottom: 0.8rem;
    transform: rotate(135deg);
  }
}

@keyframes bottom-2 {
  0% {
    bottom: 0.8rem;
    transform: rotate(135deg);
  }

  50% {
    bottom: 0.8rem;
    transform: rotate(0);
  }

  100% {
    bottom: 0;
    transform: rotate(0);
  }
}

@keyframes scaled {
  50% {
    transform: scale(0);
  }

  100% {
    transform: scale(0);
  }
}

@keyframes scaled-2 {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background2);
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  -webkit-transition: 0.4s;
  align-items: center;
  background-color: #FFF;
  border-radius: 50%;
  bottom: 4px;
  content: "";
  content: url('../images/dark-ico.png');
  display: flex;
  height: 26px;
  justify-content: center;
  left: 4px;
  position: absolute;
  transition: 0.4s;
  width: 26px;
}

input:checked+.slider {
  background-color: var(--background2);
}

input:checked+.slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
  content: url('../images/light-ico.png');
}

.language-toggle {
  position: relative;
  display: flex;
  cursor: pointer;
}

.language-label {
  color: var(--secondary);
  font-family: "Cooper Hewitt";
  font-size: 14px;
  font-weight: bold;
  margin-left: 10px;
  transition: color 0.3s;
  align-items: center;
  justify-content: center;
}

/* Home */

.home {
  background-color: var(--background1);
  width: 100%;
  height: auto;
}

.container_image-home {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  padding: 12rem 0 5rem 0;
}

.image_home {
  max-width: 65%;
  transition: 0.4s;
  animation: image 2s;
  position: relative;
  filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
}

.image-light,
.image-dark {
  animation: floatAnimation 3s ease infinite alternate;
  height: 25rem;
  left: 55%;
  max-width: 50%;
  position: absolute;
  right: 10%;
  top: 20%;
  width: 25rem;
  z-index: -20;
  filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
}

@keyframes floatAnimation {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}


.home_info {
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.home_text-1 {
  font-family: "Cooper Hewitt";
  color: var(--primary);
  font-size: 1.7rem;
}

.home_text-2 {
  font-family: 'Caprasimo', cursive;
  font-size: 6rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
  background: linear-gradient(to right, var(--background2) 10%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* text-fill-color: transparent; */
}

.home_text-3 {
  font-family: "Cooper Hewitt";
  color: var(--primary);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  width: 20rem;
  margin: 0 auto;
  text-align: start;
}

.text-type {
  position: relative;
}

.text-type::after {
  content: "|";
  font-weight: bold;
  position: absolute;
  right: 0;
  color: var(--primary);
  background-color: var(--background1);
  width: 100%;
  animation: typing 3.2s steps(28) alternate infinite;
}

@keyframes typing {
  to {
    width: 0%;
  }
}

.container_parrafo-info {
  display: none;
}

.cv_button {
  background-color: var(--background2);
  border-radius: 3rem;
  padding: 0.5rem 2rem;
  color: var(--primary);
  font-family: "Cooper Hewitt";
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin: 2rem 0;
  border: none;
  cursor: pointer;
}

.contact_button {
  display: none;
}

.links {
  display: flex;
  justify-content: center;
  padding: 2rem 0 6rem 0;
}

.links i {
  margin: 1rem 0.5rem;
  color: var(--primary);
  font-size: 2em;
}

.links i:hover {
  transform: scale(1.5);
  transition: 0.3s ease-in-out;
}

.links img:hover {
  transform: scale(1.5);
  transition: .3s ease-in-out;
}

/* Sobre mí */

.sobreMi {
  background-color: var(--background2);
  width: 100%;
  height: auto;
}

.sobreMi h1 {
  display: block;
  text-align: center;
  color: var(--primary);
  font-family: "Cooper Hewitt";
  font-size: 2.4rem;
  letter-spacing: 0.1rem;
  padding-top: 6rem;
}

.container_texto-sobreMi {
  display: flex;
  flex-direction: column;
  padding: 4rem 3rem 3rem 3rem;
}

.title_sobreMi {
  font-family: "Cooper Hewitt";
  color: var(--secondary);
  text-align: center;
  font-size: 2.2rem;
  letter-spacing: 0.1rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.texto_sobreMi {
  color: var(--primary);
  font-family: "Cooper Hewitt";
  font-size: 1.5rem;
  letter-spacing: 0.1rem;
  white-space: pre-line;
  line-height: 2.2rem;
}

.container_image-sobreMi {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.image_sobreMi {
  width: 65%;
  margin-bottom: 5rem;
  border-bottom: 2px solid var(--secondary);
}

/* Habilidades */

.habilidades {
  background-color: var(--background1);
  width: 100%;
  height: auto;
}

.habilidades h1 {
  display: block;
  text-align: center;
  color: var(--primary);
  font-family: "Cooper Hewitt";
  font-size: 2.4rem;
  letter-spacing: 0.1rem;
  padding: 6rem 0 5rem 0;
}

.puntos1-habilidades,
.puntos2-habilidades {
  display: none;
}

.container_fondoPuntos--habilidades img {
  display: none;
}

.cards_container--habilidades {
  display: grid;
  grid-template-columns: 13rem 13rem;
  grid-template-rows: 14rem 14rem 14rem;
  gap: 3rem;
  justify-content: center;
  padding-bottom: 5rem;
}

.cards--habilidades {
  background-color: var(--background2);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  filter: saturate(40%);
  width: 13rem;
  height: 14rem;
}

.cards--habilidades img {
  margin-top: 0.7rem;
  width: 8rem;
}

.cards--habilidades p {
  color: var() --secondary;
  font-family: "Cooper Hewitt";
  letter-spacing: 0.1rem;
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

/* Formación */

.formacion {
  background-color: var(--background2);
  width: 100%;
  height: auto;
}

.formacion h1 {
  display: block;
  text-align: center;
  color: var(--primary);
  font-family: "Cooper Hewitt";
  font-size: 2.4rem;
  letter-spacing: 0.1rem;
  padding: 6rem 0 5rem 0;
}

.cards_container--formacion {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2rem 3rem 2rem;
}

.cards--formacion {
  align-items: center;
  background-color: #292929;
  border-radius: 24px;
  color: #faf9f6;
  display: flex;
  flex-direction: column;
  height: 33rem;
  justify-content: space-between;
  margin: 0 1rem 2rem 1rem;
  padding: 1rem;
  text-align: center;
  width: 32rem;
}

.cards--formacion img {
  width: 25rem;
}

.container_texto--formacion {
  margin-bottom: 1.3rem;
}


.cards--formacion p:nth-child(1) {
  color: #faf9f6;
  font-family: "Cooper Hewitt";
  letter-spacing: 0.1rem;
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}

.cards--formacion p:nth-child(2) {
  color: #faf9f6;
  font-family: "Cooper Hewitt";
  letter-spacing: 0.1rem;
  font-size: 1.4rem;
}

/* Proyectos */

.proyectos {
  background-color: var(--background1);
  width: 100%;
  height: auto;
  padding: 0 1rem 1rem 1rem;
}

.proyectos h1 {
  display: block;
  text-align: center;
  color: var(--primary);
  font-family: "Cooper Hewitt";
  font-size: 2.4rem;
  letter-spacing: 0.1rem;
  padding: 6rem 0 5rem 0;
}

.puntos1-proyectos,
.puntos2-proyectos {
  display: none;
}

.cards_container--proyectos {
  margin-bottom: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cards--proyectos {
  border-radius: 20px;
  padding-bottom: 2rem;
  background-color: var(--background1);
  min-width: 33rem;
  max-width: 38rem;
  box-shadow: 0 10px 16px -6px rgb(5 5 5 / 30%),
    0 25px 10px -24px rgb(5 5 5 / 10%);
}

.card_eMercado {
  margin-bottom: 4rem;
}

.card_portafolio {
  margin-bottom: 4rem;
  border: 1px solid var(--secondary);
}

.container_imgCard--proyectos {
  margin-bottom: 1rem;
  border-radius: 20px 20px 0 0;
}

.container_imgCard--proyectos img {
  width: 100%;
  border-radius: 20px 20px 0 0;
  height: 20rem;
}

.container_textCard--proyectos {
  padding: 0 2rem;
  margin-bottom: 2rem;
}

.container_textCard--proyectos h2 {
  font-family: "Cooper Hewitt";
  letter-spacing: 0.1rem;
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: bold;
  display: inline;
}

.container_textCard--proyectos p {
  color: var(--secondary);
  font-family: "Cooper Hewitt";
  letter-spacing: 0.1rem;
  font-size: 1.4rem;
  margin-top: 1rem;
}

.container_btn--proyectos {
  display: flex;
  justify-content: center;
}

.container_btn--proyectos a {
  text-decoration: none;
  display: inline-block;
  margin: 0 1.5rem;
}

.container_btn--proyectos button {
  background: none;
  color: var(--primary);
  border: 1px solid var(--background2);
  padding: 0.8rem 0;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12rem;
  letter-spacing: 0.1rem;
  cursor: pointer;
}

.container_btn--proyectos button:hover {
  background: var(--background2);
  border: 1px solid var(--primary);
  box-shadow: 0px 13px 33px -14px rgba(0, 0, 0, 0.75);
  transition: all 0.4s ease;
}

.btn_demo i {
  font-size: 1.5em;
  margin-right: 0.8rem;
  color: var(--primary);
}

.btn_repo i {
  font-size: 1.5em;
  margin-right: 0.8rem;
  color: var(--primary);
}

/* Contacto */

.contacto {
  background-color: var(--background2);
  width: 100%;
  height: auto;
  padding: 0 2rem 5rem 2rem;
}

.contacto h1 {
  display: block;
  text-align: center;
  color: var(--primary);
  font-family: "Cooper Hewitt";
  font-size: 2.4rem;
  letter-spacing: 0.1rem;
  padding: 6rem 0 4rem 0;
}

.container_img--contacto {
  display: none;
}

.container--contacto {
  width: 100%;
  background-color: var(--background1);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.container_text--contacto {
  width: 100%;
}

.container_text--contacto p {
  font-size: 1.6rem;
  font-family: "Cooper Hewitt";
  color: var(--primary);
  margin-bottom: 3rem;
  letter-spacing: 1px;
  line-height: 2.3rem;
}

.form-contact input {
  font-family: "Cooper Hewitt";
  background: transparent;
  border: 1px solid var(--secondary);
  width: 100%;
  padding: 1rem;
  border-radius: 1rem;
  color: var(--primary);
  font-size: 1.6rem;
  outline: none;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.form-contact input::placeholder {
  color: var(--primary);
}

.form-contact .input-invalid {
  border: 1px solid var(--secondary);
  color: var(--primary);
}

.form-contact textarea {
  background: transparent;
  border: 1px solid var(--primary);
  font-family: "Cooper Hewitt";
  width: 100%;
  padding: 1rem;
  border-radius: 1rem;
  color: var(--secondary);
  font-size: 1.6rem;
  outline: none;
  margin-bottom: 3rem;
  letter-spacing: 1px;
  resize: none;
}

.form-contact textarea::placeholder {
  color: var(--primary);
}

.form-contact textarea::-webkit-scrollbar {
  width: 8px;
}

.form-contact textarea::-webkit-scrollbar-track {
  background-color: var(--background1);
}

.form-contact textarea::-webkit-scrollbar-thumb {
  background-color: var(--background2);
}

.btn_form--contacto {
  display: flex;
  justify-content: center;
}

.btn_form--contacto button {
  background: var(--background1);
  border: solid 1px var(--primary);
  font-family: "Cooper Hewitt";
  width: 13rem;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  color: var(--primary);
  font-size: 1.8rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 1s all;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.btn_form--contacto button:hover {
  background: var(--background2);
  color: var(--secondary);
  transform: scale(1.1);
  box-shadow: 0px 9px 15px -1px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}

.btn_form--contacto button:active {
  background: var(--background2);
}

/* Footer */

footer {
  background-color: var(--background1);
}

.contianer--footer {
  width: 90%;
  margin: 0 auto;
  padding-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.link_home a {
  color: var(--primary);
  font-size: 3rem;
  font-family: "Cooper Hewitt";
  text-decoration: none;
  letter-spacing: 2px;
}

.icon-footer {
  width: 7rem;
}


.container_links--footer {
  padding: 2rem 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.container_links--footer a {
  color: var(--primary);
  font-family: "Cooper Hewitt";
  font-size: 1.6rem;
  margin: 0 0.8rem;
  margin: 15px;
  position: relative;
  text-decoration: none;
}

.container_links--footer a:before {
  content: '';
  background: var(--background2);
  position: absolute;
  bottom: -10px;
  width: 0;
  height: 5px;
  transition: width 0.5s linear;
}

.container_links--footer a:hover::before {
  width: 100%;
}

.container_redes-footer a {
  text-decoration: none;
}

.container_redes-footer i {
  width: 3.5rem;
  margin: 0 0.5rem 1.5rem 0.5rem;
  font-size: 3em;
  color: var(--primary);
  opacity: 0.6;
  transition: opacity 0.3s ease-in-out;
}

.container_redes-footer i:hover {
  transform: scale(1.2);
  transition: 0.3s ease-in-out;
  opacity: 1;
}

.container_redes-footer img:hover {
  transform: scale(1.5);
  transition: .3s ease-in-out;
}

.container_text--footer {
  padding-bottom: 1rem;
}

.container_text--footer span {
  font-family: "Cooper Hewitt";
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.container_text--footer span:nth-child(1),
.container_text--footer span:nth-child(3) {
  color: var(--primary);
}

.container_text--footer img {
  width: 1.2rem;
  margin: 0 0.2rem;
}

.container_text--footer span:nth-child(4) {
  color: var(--primary);
}

/* Botón ir arriba */

.go-top-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 6rem;
  height: 6rem;
  z-index: -1;
}

.go-top-button {
  width: 0rem;
  height: 0rem;
  background: var(--background2);
  box-shadow: 0px 6px 22px -6px rgba(0, 0, 0, 0.75);
  border-radius: 50%;
  cursor: pointer;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: 0.2s;
}

.go-top-button i {
  position: absolute;
  font-size: 1.7rem;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: var(--primary);
  transition: 0.2s;
}

.show {
  z-index: 10;
}

.show .go-top-button {
  animation: popup 0.3s ease-in-out;
  width: 6rem;
  height: 6rem;
  z-index: 11;
}

.show i {
  transform: translate(-50%, -50%) scale(1);
}

@keyframes popup {
  0% {
    width: 0;
    height: 0;
  }

  50% {
    width: 7rem;
    height: 7rem;
  }

  100% {
    width: 6rem;
    height: 6rem;
  }
}