@import url("https://fonts.googleapis.com/css2?family=Kalam:ital,wght@0,400;0,900;1,700&display=swap");

/* Variables*/
:root {
  --font-family: "Kalam", sans-serif;
  --normal-font: 400;
  --bold-font: 700;
  --bolder-font: 900;
  --bg-color: #fcfcfc;
  --primary-color: #4756df;
  --secondary-color: #ff7235;
  --primary-shadow: #8b8eaf;
  --secondary-shadow: #a17a69;
  --bottom-margin: 0.5rem;
  --bottom-margin-2: 1rem;
  --line-height: 1.7rem;
  --transition: 0.3s;
}
/* Variables fin*/

html {
  scroll-behavior: smooth;
}
/* reseteo del css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style-type: none;
}
a {
  text-decoration: none;
  color: var(--primary-color);
}
a:hover {
  text-decoration: none;
  color: var(--secondary-color);
}

body {
  font-family: var(--font-family);
  
}

/* barra de navegación*/
nav {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3.5rem;
  /*  background-color: var(--bg-color);*/
  background-image: linear-gradient(
    to bottom,
    #ccd8eb,
    #c8e1eb,
    #cde7e6,
    #d9ece1,
    #eaefe0
  );
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}
nav h1 {
  color: var(--primary-color);
}
nav a {
  color: var(--primary-color);
  transition: var(--transition);
}

nav a:hover {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}
nav ul {
  display: flex;
  gap: 1.9rem;
}
nav ul li {
  font-weight: var(--bolder-font);
}

.menu-hamburguesa {
  color: var(--primary-color);
  font-size: 2rem;
  border: 0;
  background-color: transparent;
  cursor: pointer;
  display: none;
}
/* fin barra de navegación*/

/* sección principal*/
.principal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  max-width: 68.75rem;
  margin: auto;
}
.principal img {
  height: 37.5rem;
  width: 37.5rem;
}

.bio {
  width: 25rem;
  padding: 0.625rem;
  border-radius: 6px;
  box-shadow: 0px 2px 15px 2px var(--primary-shadow);
}
.bio h2 {
  margin-bottom: var(--bottom-margin);
}

.bio p {
  line-height: var(--line-height);
  padding: 0.3rem 0;
}
/* fin sección principal*/

/* sección más sobre mí*/
.mas-sobre {
  background-color: var(--bg-color);
  padding: 1rem 6rem;
}

.mas-sobre h3 {
  margin-bottom: var(--bottom-margin);
  text-align: center;
}
.mas-sobre p {
  line-height: var(--line-height);
  padding: 0.4rem;
}
/* fin sección más sobre mí*/

/* sección habilidades */
.habilidades {
  max-width: 68.75rem;
  margin: auto;
  text-align: center;
  margin-top: 2.5rem;
}

.encabezado-habilidades {
  margin-bottom: 1rem;
}
.contenedor-habilidades {
  padding: 1.25rem;
}

.icono {
  width: 11.875rem;
  height: 11.25rem;
}

.tarjeta-icono {
  background-color: #fff;
  border-radius: 11px;
  box-shadow: 0 3px 10px var(--secondary-shadow);
  padding: 20px;
  margin: 10px;
}
/* fin sección habilidades */

/* sección de proyectos */
.proyectos {
  background-color: var(--bg-color);
  padding: 32px 0;
  margin-top: 2rem;
}

.contenedor-de-proyectos {
  display: flex;
  align-items: center;
  justify-content: center;
}
.titulo-de-proyectos {
  text-align: center;
  margin-bottom: 1rem;
}
.contenedor-de-proyecto {
  text-align: center;
  width: 21.875rem;
  padding: 1rem;
}

.contenedor-de-proyecto p {
  padding: 0.4rem;
}
.titulo-de-proyecto {
  margin-bottom: var(--bottom-margin);
}
.detalle-proyectos {
  margin-bottom: var(--bottom-margin);
}
.foto-proyecto {
  width: 65%;
  height: 60%;
}
.tarjeta-de-proyecto {
  background-color: #fff;
  border-radius: 11px;
  box-shadow: 0 3px 10px var(--primary-shadow);
  padding: 20px;
  margin: 10px;
}
/* fin sección de proyectos */

/* sección contacto*/
.contacto {
  margin-top: 2rem;
}
.contacto h2 {
  text-align: center;
  margin-bottom: var(--bottom-margin-2);
}
.formulario-contacto-contenedor {
  max-width: 40.75rem;
  margin: 0 auto;
  padding: 0.928rem;
  border-radius: 5px;
  box-shadow: 0 3px 10px var(--secondary-shadow);
}
.formulario-contacto-contenedor label {
  line-height: 2.7rem;
  font-weight: var(--bold-font);
  color: var(--primary-color);
}
.formulario-contacto-contenedor textarea {
  min-height: 6.25rem;
  font-size: 14px;
}
.formulario-contacto-contenedor .campo-entrada {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 5px;
  border: none;
  border: 2px outset var(--primary-color);
  font-size: 0.875rem;
  outline: none;
}
.campo-entrada::placeholder {
  padding: 0.5rem;
  color: var(--primary-color);
  font-family: var(--font-family);
}

.btn-enviar {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background-color: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1rem;
  font-weight: var(--bold-font);
  transition: var(--transition);
}

.btn-enviar:hover {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  cursor: pointer;
}
/* fin sección contacto*/
/* sección redes*/
.sociales {
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 1%;
  bottom: 50%;
}

.socicon {
  width: 2rem;
  height: 2rem;
}
/* fin sección redes*/

/* sección desplazarse a arriba */
.desplazar-arriba {
  position: fixed;
  right: 0.5%;
  bottom: 3%;
  cursor: pointer;
}

.flecha-arriba {
  width: 3rem;
  height: 3rem;
}
/* sección desplazarse a arriba */

/* sección footer*/
footer {
  background-color: var(--bg-color);
  padding: 1.25rem;
  text-align: center;
  margin: 2rem 0 0;
}
/* media queries*/
@media screen and (max-width: 720px) {
  nav {
    padding: 1.5rem 1rem;
  }
nav ul {
  position: fixed;
  background-color: var(--bg-color);
  flex-direction: column;
  top: 86px;
  left: 10%;
  width: 80%;
  text-align: center;
  transform: translateX(120%);
  transition: transform 0.5s ease-in;
}
 nav ul li {
  margin: 8px;
 }

 .menu-hamburguesa {
  display: block;
 }
 nav ul.show {
  transform: translateX(0);
 }
  .principal {
    margin-top: -4rem;
    flex-direction: column;
    gap: 0;
  }
  .principal img {
    height: 30.5rem;
    width: 30rem;
   }
  .bio {
    margin-top: -2rem;
    width: 20.5rem;
  }

  .mas-sobre {
    margin-top: 2rem;
    padding: 1rem 3.5rem;
  }
   .mas-sobre h2 {
    text-align: center;
   }
   .mas-sobre p {
    text-align: justify;
   }

   .icono {
    width: 5.875rem;
    height: 5.25rem;
   }
  .contenedor-de-proyectos {
    flex-direction: column;
  }

  .contenedor-de-proyecto {
    width: 20.875rem;
  }

  .formulario-contacto-contenedor {
    max-width: 23.75rem;
  }
}
@media screen and (max-width: 420px) {

  .principal img {
    height: 37.5rem;
    width: 23rem;
  }
  .bio {
    width: 18.3rem;
  }
  .contenedor-de-proyecto {
    width: 17.75rem;
  }
  .formulario-contacto-contenedor {
    max-width: 17.75rem;
  }
}
