body {
  overflow: hidden;
  background-image: url("./assets/fondo-productos-mesa-madera.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

/* Estilos para el header */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 80px;
  background-color: #fff;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
  position: fixed;
  z-index: 999;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  margin-right: 10px;
}

nav li:last-child {
  margin-right: 0;
}

nav a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
}

nav a:hover {
  color: #f00;
}

.logo {
  margin-left: auto;
  padding-right: 20px;
}

.logo img {
  height: 50px;
}

/* Estilos para el main */

section {
  z-index: 998;
  height: 115vh;
}

#sobre-mi {
  scroll-behavior: smooth;

}

#sobre-mi h2 {
  font-size: 2em;
  color: white;
  margin-top: 8%;
  text-shadow: -1px 0 #ff0000, 0 1px #ff0000, 1px 0 #ff0000, 0 -1px #ff0000;
}

.title-pc {
  position: absolute;
  left: -1.5%;
  top: 18%;
  transform: rotate(90deg);
  color: white;
  text-shadow: -1px 0 #ff0000, 0 1px #ff0000, 1px 0 #ff0000, 0 -1px #ff0000;
}

.descriptionSM-pc {
  transform: translate(2%, 19%);
}

#sobre-mi p {
  justify-content: center;
}

#social-icon img {
  position: absolute;
  top: 11%;
  left: -11%;
  width: 50px !important;
  height: 50px;
}

#img-MSM {
  position: absolute;
  top: 12%;
  left: 0.5%;
  width: 75px !important;
  height: 75px;
}

#sobre-mi button#open-modal.btn.btn-danger {
  position: relative;
  display: block;
  bottom: -20%;
  left: -9.5%;
  width: 10%;
}

#modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}


#modal {
  position: absolute;
  z-index: 1000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.close-modal {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
  border-radius: 5px;
}

.close-modal:hover {
  color: #fff;
  background-color: #c82333;
  border-color: #bd2130;
}

.close-modal:focus,
.close-modal.focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5);
}

.close-modal.disabled,
.close-modal:disabled {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

.close-modal:not(:disabled):not(.disabled):active,
.close-modal:not(:disabled):not(.disabled).active,
.show>.close-modal.dropdown-toggle {
  color: #fff;
  background-color: #bd2130;
  border-color: #b21f2d;
}

.close-modal:not(:disabled):not(.disabled):active:focus,
.close-modal:not(:disabled):not(.disabled).active:focus,
.show>.close-modal.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5);
}



#recetas {
  scroll-behavior: smooth;
}

.recetas {
  color: red;
}

#experiencia-laboral {
  scroll-behavior: smooth;
}

.title-exp {
  position: absolute;
  left: -20%;
  top: 22%;
  transform: rotate(90deg);
  color: white;
  text-shadow: -1px 0 #ff0000, 0 1px #ff0000, 1px 0 #ff0000, 0 -1px #ff0000;
}

.exp-pc {
  transform: translate(0%, 2%);
}



#habilidades {
  scroll-behavior: smooth;
}

.title-hab {
  position: absolute;
  left: -14%;
  top: 13%;
  transform: rotate(90deg);
  color: white;
  text-shadow: -1px 0 #ff0000, 0 1px #ff0000, 1px 0 #ff0000, 0 -1px #ff0000;
}

.hab-pc {
  transform: translate(0%, 2%);
}



#educacion {
  scroll-behavior: smooth;

}

.title-edu {
  position: absolute;
  left: -16%;
  top: 28%;
  transform: rotate(90deg);
  color: white;
  text-shadow: -1px 0 #ff0000, 0 1px #ff0000, 1px 0 #ff0000, 0 -1px #ff0000;
}

.descriptionEDU {
  transform: translate(0%, 35%);
}


/* Estilos para el footer */
footer {
  background-color: #f7f7f7;
  padding: 20px;
  text-align: center;
  margin-top: 50px;
  position: fixed;
  width: 100%;
  bottom: 0;
  z-index: 999;
}

footer p {
  color: #999;
  font-size: 14px;
  margin: 0;
}

/* Media queries */

@media (max-width: 768px) {

  body {
    overflow-y: scroll;
    overflow-x: hidden;
  }

  nav a {
    font-size: 12px;
  }

  .logo img {
    height: 25px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  h4 {
    font-size: 14px;
  }

  li {
    font-size: 12px;
  }


  p {
    font-size: 14px;
  }

  section{
    height: 140vh;
  }

  section#recetas{
    margin-top: 25%;
  }

  section#educacion{
    margin-top: 25% !important;
    margin-bottom: 25%;
  }

  section#experiencia-laboral{
    margin-top: 25%;
  }

  section#habilidades{
    margin-top: 25%;
    
  }

  .descriptionSM-mv {
    transform: translateY(25%);
  }

  #img-MSM-moviles {
    position: absolute;
    top: 8.8%;
    left: 40%;
    width: 75px !important;
    height: 75px;
  }

  .title-pc {
    display: none !important;
  }

  .title-exp {
    display: none;
  }

  .title-edu {
    display: none;
  }

  .title-hab {
    display: none;
  }

  #sobre-mi button#open-modal.btn.btn-danger {
    bottom: 15% !important;
    left: 1% !important;
    width: 40% !important;
  }

  #social-icon img {
    top: 0%;
    left: -40%;
    width: 50px !important;
    height: 50px;
  }

  footer {
    position: relative;
  }
}

@media (max-width: 480px) {

  body {
    overflow-y: scroll;
    overflow-x: hidden;
  }

  nav {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  nav a {
    font-size: 10px;
  }

  .logo img {
    height: 20px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 16px;
  }

  p {
    font-size: 12px;
  }



  footer {
    position: relative;
  }
}