@import url("https://fonts.googleapis.com/css2?family=Madimi+One&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

:root {
  --color-1: rgb(15, 21, 32);
  --color-2: rgb(200, 203, 204);
  --color-3: rgb(178, 196, 213);
  --color-4: rgb(97, 215, 188);
  --color-5: rgb(3, 153, 128);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  /*         border: 1px solid red;
     */
}

/* Scrroll */

::-webkit-scrollbar {
  width: 0.5rem;
  background-color: var(--color-1);
}

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

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-2);
}
/* Scrool end */

::selection {
  color: var(--color-5);
  background: var(--color-3);
}

html {
  scroll-behavior: smooth;
}

/* --- Menú */

.contenedor-header {
  background-color: var(--color-1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 99;
  border-bottom: 5px solid var(--color-5);
}

.contenedor-header header {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo a {
  font-size: 36px;
  font-family: "Madimi One", serif;
  color: var(--color-3);
  font-weight: bold;
  text-decoration: none;
  text-shadow: 2px 2px var(--color-5);
}

#nav ul {
  list-style: none;
  display: flex;
}

#nav ul li a {
  text-decoration: none;
  color: var(--color-3);
  margin: 0 20px;
  transition: 0.5s;
  font-weight: bold;
}

#nav ul li a:hover {
  color: var(--color-4);
  border-bottom: 5px solid var(--color-5);
}

.nav-responsive {
  background-color: var(--color-3);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: none;
}

.nav-responsive:hover {
  background-color: var(--color-4);
}

/* --- Inicio */

.inicio {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url(../img/fondo.webp);
  background-size: cover;
  min-height: 1000px;
  color: var(--color-3);
  display: flex;
  align-items: center;
}

.inicio .contenido-banner {
  padding: 20px;
  max-width: 500px;
  margin: auto;
  text-align: center;
}

.inicio .contenido-banner img {
  margin-top: 40px;
  border: 10px solid var(--color-1);
  width: 80%;
  border-radius: 100%;
  animation: desde-abajo 1.5s ease;
  /* Animación de la imagen */
}

/* Animación para que la imagen aparezca de arriba hacia su posición normal */
@keyframes desde-abajo {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0%);
  }
}

.inicio .contenido-banner h1 {
  margin-top: 40px;
  font-size: 42px;
  font-family: "Madimi One", serif;
  text-shadow: 2px 2px var(--color-5);
}

.inicio .contenido-banner h2 {
  font-size: 20px;
  font-weight: normal;
}

.redes a {
  color: var(--color-2);
  border: 2px solid var(--color-2);
  border-radius: 100%;
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  margin: 35px 5px;
  font-size: 30px;
  transition: 0.5s;
}

.redes a:hover {
  background-color: var(--color-2);
  color: var(--color-5);
  transform: scale(1.2, 1.2);
}

/* --- Sobre Mi */

.sobre {
  background-color: var(--color-1);
  color: var(--color-3);
  padding: 50px 20px;
}

.sobre .contenido-seccion {
  max-width: 1100px;
  margin: auto;
}

.sobre h2 {
  font-size: 48px;
  font-family: "Madimi One", serif;
  text-align: center;
  padding: 20px 0;
}

.sobre .contenido-seccion p {
  font-size: 18px;
  line-height: 22px;
  margin-bottom: 30px;
  text-align: center;
}

.contenido-seccion p span {
  color: var(--color-4);
  font-weight: bold;
}

.sobre .fila {
  display: flex;
}

.col {
  width: 50%;
}

.col h3 {
  font-size: 28px;
  font-family: "Madimi One", serif;
  margin-bottom: 25px;
}

.col ul {
  list-style: none;
}

.col ul li {
  margin: 10px 0;
}

.col ul li strong {
  display: inline-block;
  color: var(--color-4);
  width: 130px;
}

.contenedor-intereses {
  display: flex;
  flex-wrap: wrap;
}

.interes {
  width: 100px;
  height: 100px;
  background-color: var(--color-4);
  border-radius: 15px;
  margin: 0 15px 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  color: var(--color-1);
  box-shadow: 7px 7px 3px var(--color-5);
}

.interes:hover {
  background-color: var(--color-5);
}

.interes i {
  font-size: 30px;
  margin-bottom: 5px;
}

.sobre button {
  background-color: var(--color-3);
  color: var(--color-1);
  border: 0;
  width: 150px;
  display: block;
  margin: 50px auto 0;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 20px;
  position: relative;
  z-index: 10;
}

.sobre button .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--color-4);
  z-index: -1;
  transition: 1s;
  border-radius: 20px;
}

.sobre button:hover .overlay {
  width: 100%;
}

.contenido-seccion button a {
  text-decoration: none;
  color: var(--color-1);
  font-weight: bold;
}

/* --- Habilidades */

.habilidades {
  background-color: var(--color-1);
  color: var(--color-3);
  padding: 50px 20px;
}

.habilidades .contenido-seccion {
  max-width: 1100px;
  margin: auto;
}

.habilidades h2 {
  font-size: 48px;
  font-family: "Madimi One", serif;
  text-align: center;
  padding: 20px 0;
}

.habilidades .fila {
  display: flex;
}

.habilidades .col {
  width: 50%;
  padding: 0 20px;
}

.habilidades h3 {
  font-size: 28px;
  font-family: "Madimi One", serif;
  margin-bottom: 25px;
  text-align: center;
}

.tecnicas {
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 40px;
  margin-bottom: 40px;
}

.tecnicas article {
  text-align: center;
  font-weight: bold;
  font-size: 2em;
}

.tecnicas article:hover {
  color: var(--color-4);
}

/* --- Curriculum */

.curriculum {
  background-color: var(--color-1);
  color: var(--color-3);
  padding: 50px 20px;
}

.curriculum .contenido-seccion {
  max-width: 1100px;
  margin: auto;
}

.curriculum h2 {
  font-size: 48px;
  font-family: "Madimi One", serif;
  text-align: center;
  padding: 20px 0;
}

.curriculum .fila {
  display: flex;
  justify-content: space-between;
}

.curriculum .col {
  width: 49%;
  padding: 0 20px;
}

.curriculum .col h3 {
  font-size: 28px;
  font-family: "Madimi One", serif;
  margin-bottom: 25px;
}

.fila .izquierda {
  border-right: 2px solid var(--color-3);
}

.fila .derecha {
  border-left: 2px solid var(--color-3);
}

.fila .item {
  padding: 20px;
  margin-bottom: 20px;
  background-color: var(--color-3);
  position: relative;
  color: var(--color-1);
}

.fila .item h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.fila .item .casa {
  font-size: 16px;
  color: var(--color-5);
  font-weight: bold;
  display: block;
}

.fila .item .fecha {
  display: block;
  margin-bottom: 10px;
}

.curriculum .fila .item p {
  line-height: 24px;
}

.fila .izq {
  border-right: 10px solid var(--color-5);
  margin-right: 20px;
}

.fila .der {
  border-left: 10px solid var(--color-5);
  margin-left: 20px;
}

.fila .item .conectoi {
  position: absolute;
  top: 50%;
  right: -47px;
  width: 47px;
  height: 2px;
  background-color: var(--color-5);
  z-index: 5;
}

.conectoi .circuloi {
  position: relative;
  display: block;
  float: right;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-5);
  bottom: 4px;
}

.fila .item .conectod {
  position: absolute;
  top: 50%;
  left: -47px;
  width: 47px;
  height: 2px;
  background-color: var(--color-5);
  z-index: 5;
}

.conectod .circulod {
  position: relative;
  display: block;
  float: left;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-5);
  bottom: 4px;
}

/* --- Portafolio */

.portafolio {
  background-color: var(--color-1);
  color: var(--color-3);
  padding: 50px 20px;
}

.portafolio .contenido-seccion {
  max-width: 1100px;
  margin: auto;
}

.portafolio h2 {
  font-size: 48px;
  font-family: "Madimi One", serif;
  text-align: center;
  padding: 20px 0;
}

.portafolio .galeria {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.galeria .proyecto {
  position: relative;
  max-width: 340px;
  height: fit-content;
  margin: 10px;
  cursor: pointer;
}

.galeria .proyecto img {
  width: 100%;
  display: block;
  border-radius: 15px;
  object-fit: cover;
}

.galeria .proyecto .overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: linear-gradient(rgba(21, 53, 84, 0.8), rgba(16, 56, 56, 0.8));
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: 0.7s;
  font-size: 18px;
  letter-spacing: 3px;
  border-radius: 15px;
  opacity: 0;
}

.galeria .proyecto .overlay h3 {
  margin-bottom: 20px;
  transition: 0.7s;
}

.galeria .proyecto .overlay a {
  text-decoration: none;
  color: var(--color-2);
  font-weight: bold;
  padding: 5px;
  width: 80px;
  margin: 10px auto 0;
  border-radius: 10px;
  border: 2px solid var(--color-2);
}

.galeria .proyecto .overlay:hover {
  opacity: 1;
}

.galeria .proyecto .overlay:hover h3 {
  margin-bottom: 0;
}

/* --- Footer */

footer {
  background-color: var(--color-5);
  color: var(--color-1);
  padding: 50px 0 30px 0;
  text-align: center;
  position: relative;
  width: 100%;
}

footer .redes {
  margin-bottom: 20px;
}

footer .redes a {
  color: var(--color-1);
  display: inline-block;
  text-decoration: none;
  border: 2px solid var(--color-1);
  border-radius: 100%;
  width: 52px;
  height: 52px;
  line-height: 52px;
  margin: 40px 5px;
  font-size: 30px;
  transition: 0.3s;
}

footer .arriba {
  display: block;
  width: 50px;
  height: 50px;
  background-color: var(--color-1);
  color: var(--color-5);
  position: absolute;
  left: 50%;
  top: -25px;
  transform: translateX(-50%);
  border-radius: 50%;
  line-height: 50px;
  font-size: 18px;
}

/* Resposive */

@media screen and (max-width: 980px) {
  nav {
    display: none;
  }

  .nav-responsive {
    display: block;
  }

  nav.responsive {
    display: block;
    position: absolute;
    right: 0;
    top: 80px;
    background-color: var(--color-5);
    width: 180px;
  }

  nav.responsive ul {
    display: block !important;
  }

  nav.responsive ul li {
    border-bottom: 1px solid var(--color-1);
    padding: 10px 0;
  }

  .tecnicas {
    grid-template-columns: auto auto auto;
  }
}

@media screen and (max-width: 700px) {
  .sobre .fila {
    display: flex;
    flex-direction: column;
  }

  .sobre .fila .col {
    width: 100%;
  }

  .habilidades .fila {
    display: flex;
    flex-direction: column;
  }

  .habilidades .fila .col {
    width: 100%;
  }

  .curriculum .fila {
    display: flex;
    flex-direction: column;
  }

  .curriculum .fila .col {
    width: 100%;
  }

  .portafolio .galeria {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .portafolio .galeria .proyecto {
    max-width: 100%;
  }

  .portafolio .galeria .proyecto img {
    width: 100%;
  }

  .tecnicas {
    grid-template-columns: auto auto;
  }
}
