@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat';
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
  background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url("./images/fondo-inicio.jpg");
  background-size: cover;
  background-position: center;
}

.contenido {
  flex: 1;
  /* El contenido se expandirá para llenar el espacio entre el header y el footer */
}

section {
  padding-top: 10rem;
}

h1 {
  font-size: 35px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 40px;
  letter-spacing: 5px;
  color: #fff;
}

h2 {
  font-size: 25px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-align: center;
  color: #fff;
}

h3 {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
  color: #fff;
}

p {
  margin: 15px;
  font-size: 29px;
  text-align: center;
  color: #fff;
}

/* SECCION ENCABEZADO */
.contenido_encabezado {
  background-color: rgba(0, 0, 0, .8);
  position: fixed;
  display: flex;
  justify-content: center;
  width: 100%;
  top: 1rem;
}

/* SECCION INICIO */
#inicio .presentacion {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#inicio .presentacion p span {
  font-size: 30px;
  color: #ff5080;
}

/*SECCION SOBRE MI*/
#sobremi {
  display: flex;
  justify-content: center;
}

.contenido_sobremi {
  max-width: 100vh;
}

#sobremi .contenido_sobremi h2 span {
  color: #ff5080;
}

/*SECCION HABILIDADES*/
.contenedor-skills {
  margin: 15px;
}

.contenedor-skills .skill {
  max-width: 600px;
  margin: 30px auto;
  color: white;
}

.contenedor-skills .skill .info {
  display: flex;
  justify-content: space-between;
}

.contenedor-skills .skill .lista {
  display: inline-block;
  margin-right: 20px;
  height: 10px;
  width: 10px;
  background-color: #fff;
}

.contenedor-skills .skill .barra {
  background-color: #919191;
  width: 100%;
  height: 6px;
  margin: 10px 0;
}

/*Este estilo se aplica para dar animacion a la barra*/
.contenedor-skills .skill .barra-progreso1 {
  background-color: #fff;
  width: 60%;
  height: 6px;
  animation: progreso1 2s forwards;
}

.contenedor-skills .skill .barra-progreso2 {
  background-color: #fff;
  width: 60%;
  height: 6px;
  animation: progreso2 2s forwards;
}

.contenedor-skills .skill .barra-progreso3 {
  background-color: #fff;
  width: 70%;
  height: 6px;
  animation: progreso3 2s forwards;
}

.contenedor-skills .skill .barra-progreso4 {
  background-color: #fff;
  width: 60%;
  height: 6px;
  animation: progreso4 2s forwards;
}

/*Animaciones de las barras*/
@keyframes progreso1 {
  0% {
    width: 0;
  }

  100% {
    width: 60%;
  }
}

@keyframes progreso2 {
  0% {
    width: 0;
  }

  100% {
    width: 60%;
  }
}

@keyframes progreso3 {
  0% {
    width: 0;
  }

  100% {
    width: 70%;
  }
}

@keyframes progreso4 {
  0% {
    width: 0;
  }

  100% {
    width: 60%;
  }
}

/*SECCION PORTAFOLIO*/
#portafolio .fila {
  display: ruby;
  margin: 30px 0;
}

#portafolio .fila .proyecto {
  max-width: 550px;
  border: 1px solid #000;
  margin: 10px;
  position: relative;
}

#portafolio .fila .proyecto img {
  width: 100%;
  height: 100%;
  filter: grayscale(1);
  object-fit: cover;
  transition: .5s;
}

#portafolio .fila .proyecto:hover img {
  filter: grayscale(0);
}

#portafolio .fila .proyecto .info {
  position: absolute;
  left: 0;
  background-color: rgba(0, 0, 0, .8);
  color: #ff5080;
  width: 100%;
  padding: 10px;
  opacity: 0;
  bottom: -40px;
  transition: .5s
}

#portafolio .fila .proyecto:hover .info {
  opacity: 1;
  bottom: 0;
}

/*SECCION CONTACTO*/
#contenido_contacto {
  margin: 15px;
}

#contenido_contacto .contenedor-form {
  max-width: 1100px;
  margin: auto;
}

#contenido_contacto .contenedor-form .fila {
  margin-bottom: 15px;
}

#contenido_contacto .contenedor-form .mitad {
  display: flex;
  justify-content: space-between;
}

#contenido_contacto .contenedor-form input,
#contenido_contacto .contenedor-form textarea {
  padding: 20px;
  border-radius: 20px;
  border: none;
  border: 1px solid #919191;
}

#contenido_contacto .contenedor-form .mitad input {
  width: 48%;
}

#contenido_contacto .contenedor-form .input-full {
  width: 100%;
}

#contenido_contacto .btn-enviar {
  display: block;
  margin: auto;
  cursor: pointer;
  transition: .5s;
  padding: 10px 15px;
  font-size: 18px;
  font-weight: bold;
}

#contenido_contacto .btn-enviar:hover {
  background-color: #ff5080;
  color: #fff;
}

/*SECCION FOOTER*/
footer {
  background: transparent;
  text-align: center;
  padding: 3px;
  background-color: #222;
  color: #fff;
  width: 100%;
}

footer a {
  text-decoration: none;
  color: #fff;
  display: inline-block;
  margin: 3px;
  font-size: 17px;
}

footer a:hover #linkedin {
  color: #0e76a8;
}

footer a:hover #facebook {
  color: #3b5998;
}

footer a:hover #instagram {
  color: #ff5080;
}

/*SECCION APP NOTAS*/
#contenido_notas {
  padding: 15px;
}

#notas .contenedor-form {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

#buscarNota {
  width: 20%;
  padding: 10px;
}

#formNota input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#formNota textarea {
  height: 10rem;
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#listaNotas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.nota {
  min-width: 20rem;
  background-color: #af6eeb;
  padding: 10px;
  margin: 5px;
  border-radius: 4px;
}

.nota h4 {
  margin: 0 0 5px 0;
}

.nota p {
  min-height: 10rem;
  margin: 0 0 10px 0;
  font-size: 0.9em;
  text-align: justify;
  word-wrap: break-word;
  white-space: normal;
}

.nota .acciones {
  display: flex;
  justify-content: space-between;
}

.nota button {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.nota .editar {
  background-color: #ffc107;
}

.nota .editar:hover {
  background-color: #e0a800;
}

.nota .eliminar {
  background-color: #dc3545;
}

.nota .eliminar:hover {
  background-color: #c82333;
}