@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500&display=swap");
/*  Colors */
:root {
  --bg-color: #dbefff; /* aliceblue */
  --main-color: #00caee;
  --light-color: lighten(#00caee, 40%);
  --shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.05),
  		inset -5px -5px 5px rgba(255, 255, 255, 0.5),
  	   5px 5px 5px rgba(0, 0, 0, 0.05),
  	  -5px -5px 5px rgba(255, 255, 255, 0.5);
  --little-shadow: 2px 2px 2px #AFC9D0, -3px -3px 3px #fff;
  --down-shadow: inset 4px 4px 4px #AFC9D0, inset -4px -4px 4px #FAFDFF;
  --little-down-shadow: inset 3px 3px 3px #AFC9D0, inset -3px -3px 3px #FAFDFF;
  --text-color: #877e8c;
  --font: "Quicksand", sans-serif;
  --thin: 300;
  --semibold: 400;
  --bold: 500;
}

.dark-mode {
  --text-color: rgb(173, 209, 240);
  --bg-color: #005971;
  --shadow: 5px 5px 5px #012220, -5px -5px 5px #14687F;
  --little-shadow: 3px 3px 3px #012220, -3px -3px 3px #14687F;
  /* --down-shadow: inset 3px 3px 3px #012220, inset -4px -4px 4px #14687F; */
  --little-down-shadow: inset 2px 2px 3px #012220, inset -3px -3px 3px #14687F;
  --down-shadow:
  inset 5px 5px 5px rgba(0, 0, 0, 0.2),
           inset -5px -5px 15px rgba(255, 255, 255, 0.1),
                  5px 5px 15px rgba(0, 0, 0, 0.3),
                 -5px -5px 15px rgba(255, 255, 255, 0.1);
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  font-size: 0.8em;
  line-height: 1.5em;
  color: var(--text-color);
  background: var(--bg-color);
  transition: 0.05 ease all;
}

main {
  width: 90%;
  margin: 0 auto;
}

section {
  width: 100%;
  margin: 0 auto;
  margin-top: 5em;
}

h2 {
  width: auto;
  text-align: center;
  color: var(--main-color);
  font-size: 2em;
  font-weight: normal;
  margin: 1em 0 0.5em 0;
}

h3 {
  font-size: 1.2em;
  font-weight: normal;
  margin-bottom: 0.5em;
  text-align: center;
}

.contain {
  overflow: hidden;
}

/*-- Header --*/
nav {
  height: 5rem;
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
}

.lang {
  color: var(--main-color);
  padding: 5px;
  cursor: pointer;
}

.hidden {
  visibility: hidden;
}

.switch {
  width: 3.3rem;
  height: 1.5rem;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
  background-color: var(--bg-color);
  box-shadow: var(--little-down-shadow);
}
.switch span {
  width: 1rem;
  height: 1rem;
}
.switch span svg {
  /* fill: var(--main-color); */
  stroke: var(--main-color);
}
body.dark-mode .switch span svg {
  stroke: var(--main-color);
}
.switch:after {
  content: "";
  display: block;
  width: 1.6rem;
  height: 1.6rem;
  position: absolute;
  background: var(--main-color);
  top: 0;
  left: 0;
  right: unset;
  border-radius: 25px;
  box-shadow: var(--little-shadow);
}
.switch.active {
  background: var(--bg-medium);
  color: var(--main-color);
}
.switch.active:after {
  right: 0;
  left: unset;
}

/*--- Intro ---*/
.intro {
  margin-top: 3rem;
}
.intro .me {
  text-align: center;
}
.intro .me h2 {
  /* color: var(--main-color); */
  color: var(--light-color);
}
.intro .me img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 10px solid var(--bg-color);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.intro .window {
  margin: 1em auto;
  color: var(--main-color);
  width: 100%;
  height: 40px;
  font-size: 35px;
  line-height: 40px;
  overflow: hidden;
}
.intro .window ul {
  list-style: none;
  padding-left: 10px;
  animation: change 8s infinite;
}

/*--- About ---*/
.about {
  display: flex;
  flex-direction: column;
  margin: 3rem auto;
}
.about img {
  width: 100%;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: var(--shadow);
  border: 12px solid var(--bg-color);
}
.about .info {
  width: 90%;
  margin: 0 auto;
  margin-top: 1em;
  font-size: 1.5em;
  line-height: 1.8em;
}
.about .info h2 {
  text-align: start;
}
.about .info h3 {
  text-align: start;
}
.about .info .p-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.about .info .p-info div {
  padding: 0.5em 0;
  width: 100%;
  font-size: 1em;
}
.about .info .p-info .cv {
  margin-top: 1rem;
}
.about .info .p-info .cv a {
  padding: 1rem 3rem;
  width: 100%;
  font-weight: 500;
  color: var(--main-color);
  background: var(--bg-color);
  height: 3em;
  border-radius: 5px;
  text-align: center;
  line-height: 32px;
  text-decoration: none;
  box-shadow: var(--little-shadow);
  transition: all 5s;
}
.about .info .p-info .cv a:hover {
  box-shadow: var(--down-shadow);
}
.about .info .p-info .cv a:active {
  box-shadow: var(--down-shadow), var(--shadow);
}
.about .info .p-info h4,
.about .info .p-info p {
  margin: 0;
}

/*--- Skills ---*/
.skills .category {
  margin-top: 4em;
  padding: 1rem;
  border-radius: 5px;
  box-shadow: var(--down-shadow);
}
.skills .category svg {
  width: 1rem;
  fill: var(--bg-color);
  stroke: var(--main-color);
  stroke-width: 1;
}
.skills .category h3 {
  display: inline;
  margin-left: 1rem;
}

.list {
  padding: 0;
  margin-top: 2rem;
  align-items: center;
}
.list li {
  padding-right: 1rem;
  text-align: center;
  text-decoration: none;
  list-style-type: none;
  text-align: center;
}
.list h5 {
  color: var(--main-color);
  font-size: 1.1em;
  font-weight: 500;
  text-transform: uppercase;
  margin: 1em auto 0.5em;
}
.list .plus {
  text-align: center;
}

.now {
  display: block;
  text-align: center;
  padding: 1rem 1rem;
  color: var(--main-color);
  background: var(--bg-color);
  margin: 1rem auto;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: normal;
  box-shadow: var(--shadow);
  line-height: 2rem;
}
.now span {
  font-weight: var(--bold);
}

/*--- Portfolio ---*/
.portfolio h2 {
  text-align: center;
  margin: 3rem 0 1rem 0;
}

.cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  justify-content: space-between;
}
.cards .card {
  display: flex;
  flex-direction: column;
  width: 90%;
  /* margin: auto; */
  margin: 2em auto;
  border-radius: 5px;
  background: var(--bg-color);
  padding: 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cards .card img {
  width: 100%;
}
.cards .card a {
  text-decoration: none;
  color: var(--main-color);
  font-size: 1.2em;
  font-weight: 500;
  text-transform: uppercase;
}
.cards .card .flex {
  margin: 1rem 0.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cards .card .tech {
  display: flex;
  justify-content: end;
}
.cards .card .tech img {
  width: 24px;
}
.cards .card .tech * + * {
  margin-left: 0.5rem;
}

.web .contain {
  height: 200px;
}

.translate:hover {
  transform: translateY(-61%);
  transition: all 4s;
}

.translate-40:hover {
  transform: translateY(-40%);
  transition: all 4s;
}

.scale:hover {
  transform: scale(1.3);
  transition: all 2s;
}

/* .web .contain img:hover {
	transform: translateY(-66%);
	transition: all 4s;
}
 */
.brand img {
  width: 100%;
}

/* .brand img:hover {
	transform: scale(1.3);
	transition: all 2s;
} */
/* .graphic img:hover {
	transform: scale(1.3);
	transition: all 2s;
} */
/*--- Contact ---*/
.contact {
  height: 120px;
}

.data {
  width: 60%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  justify-content: space-between;
}
.data svg {
  margin: 0.5em;
  fill: var(--bg-color);
}
.data a {
  text-decoration: none;
  width: 3em;
  height: 3em;
  background: var(--main-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.data a:hover {
  transition: box-shadow 0.2s ease-in-out;
  box-shadow: var(--little-shadow);
}

/*--Animations --*/
@keyframes change {
  0% {
    margin-top: 0;
  }
  20% {
    margin-top: 0;
  }
  25% {
    margin-top: -40px;
  }
  50% {
    margin-top: -40px;
  }
  55% {
    margin-top: -80px;
  }
  80% {
    margin-top: -80px;
  }
  85% {
    margin-top: -40px;
  }
  95% {
    margin-top: -40px;
  }
  100% {
    margin-top: 0px;
  }
}
/* Modales*/
.overlay {
  background: rgba(1, 34, 32, 0.8);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  /*width: 100%;
     height: 100vh;*/
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}

.active {
  visibility: visible;
}

.modal {
  background: aliceblue;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  padding: 20px;
  text-align: left;
  width: 90%;
  max-width: 600px;
}
.modal h3 {
  text-align: left;
  color: var(--main-color);
}
body.dark-mode .modal {
  background: var(--bg-color);
}

.pointer {
  cursor: pointer;
}

.btn-close {
  font-size: 1em;
  line-height: 1em;
  color: var(--main-color);
  display: block;
  text-align: right;
  color: #bbb;
  font-weight: var(--semibold);
  transition: 0.3s ease all;
  text-decoration: none;
  cursor: pointer;
}

.project {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project h3 {
  font-size: 1rem;
  margin: 0 0 5px 0;
}
.project p {
  font-size: 0.9rem;
  margin: 0 0 12px 0;
}
.project .project-code {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.project .project-code a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: var(--main-color);
  background: var(--bg-color);
  height: 3em;
  border-radius: 5px;
  text-align: center;
  line-height: 32px;
  text-decoration: none;
  box-shadow: var(--little-shadow);
  transition: all 5s ease;
  padding: 1rem 2rem;
}
.project .project-code a:hover {
  box-shadow: var(--down-shadow);
}
.project .project-code a img {
  width: 1rem;
  margin-right: 10px;
}
.project .project-code a img svg {
  fill: var(--main-color);
  color: var(--main-color);
}

.pro-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.img-wrapper {
  width: 150px;
  height: 400px;
  overflow: hidden;
  display: none;
}
.img-wrapper img {
  width: 150px;
}

.m-info {
  display: block;
}

/* Small devices (portrait tablets and large phones, 640px and up) */
@media only screen and (min-width: 640px) {
  .intro .me img {
    width: 280px;
    height: 280px;
  }
  .about {
    display: flex;
    flex-direction: column;
  }
  .about .info {
    line-height: 1.5em;
    padding: 0;
    padding-left: 1em;
  }
  .about .info .p-info div {
    font-size: 1em;
  }
  .about .info .p-info .cv a {
    width: 100%;
  }
  .portfolio h2 {
    margin: 2em 0 1em 0;
  }
  .cards {
    flex-direction: column;
  }
  .cards .card {
    margin-top: 1.5rem auto;
  }
  .data {
    width: 40%;
  }
  .web .contain {
    height: 300px;
  }
  .img-wrapper {
    width: 150px;
    height: 400px;
    overflow: hidden;
    display: block;
  }
  .img-wrapper img {
    width: 150px;
  }
  .m-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
  }
  .m-info a {
    text-decoration: none;
    color: var(--main-color);
    font-weight: bold;
  }
}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  h2 {
    font-size: 3em;
  }
  .intro .me img {
    width: 320px;
    height: 320px;
  }
  .about .work {
    width: 100%;
  }
  .about .info {
    padding-left: 2em;
    font-size: 1.5em;
  }
  .about .info h2 {
    font-size: 2em;
  }
  .about .info .cv a {
    font-size: 1.2em;
  }
  .web .contain {
    height: 500px;
  }
  .cards .card {
    margin-top: 3em;
    width: 70%;
  }
  .skills {
    padding: 0 2em;
  }
  .skills {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    -moz-column-gap: 2rem;
         column-gap: 2rem;
  }
  .now {
    font-size: 1.2rem;
  }
  .data {
    width: 30%;
  }
}
/* Large devices (laptops/desktops, 1024px and up) */
@media only screen and (min-width: 1024px) {
  .intro .me img {
    width: 350px;
    height: 350px;
  }
  h2 {
    font-size: 3em;
  }
  .about {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .about .info .p-info div {
    width: 100%;
    font-size: 1em;
    line-height: 1.5em;
  }
  .about .info .p-info .cv a {
    display: grid;
    place-items: center;
    width: 100%;
    font-weight: 500;
    color: var(--main-color);
    background: var(--bg-color);
    height: 3em;
    border-radius: 5px;
    text-align: center;
    line-height: 32px;
    text-decoration: none;
  }
  .web .contain {
    height: 300px;
  }
  .cards {
    flex-direction: row;
  }
  .cards .card {
    width: 50%;
    margin: 1em;
    margin-top: 40px;
  }
  .now {
    font-size: 1.5rem;
  }
  .data {
    width: 200px;
    text-align: center;
  }
  .data svg {
    margin: 0.5em;
    width: 4em;
  }
  .contact {
    height: 200px;
  }
}
/* Extra large devices (large laptops and desktops, 1536px and up) */
@media only screen and (min-width: 1536px) {
  main {
    width: 70%;
  }
  section {
    margin-top: 5em;
  }
  .intro .me img {
    width: 250px;
    height: 250px;
  }
  h2 {
    font-size: 2.5em;
    margin-top: 0;
  }
  .about .info {
    font-size: 1.3em;
    line-height: 2em;
  }
  .about .info .p-info div {
    width: 50%;
    font-size: 1em;
  }
  .about .info .p-info .cv a {
    width: 100%;
    text-align: center;
  }
  .web .contain {
    height: 350px;
  }
  .data svg {
    margin: 0.5em;
    width: 2.5em;
  }
  .contact {
    height: 150px;
  }
}/*# sourceMappingURL=style.css.map */