* {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  padding-top: 63px;
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 63px;
  background: #2b4460;
  position: fixed;
  width: 100%;
  z-index: 100;
  top: 0;
}

.logo {
  margin-left: 30px;
}

.logo img {
  width: 15%;
  min-width: 120px;
  max-width: 180px;
  height: auto;
}

.navbar {
  display: flex;
  margin-right: 10px;
}

.navbar a {
  display: block;
  font-size: 20px !important;
  padding: 20px !important;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 20px;
}

.navbar a:hover {
  transform: scale(1.1);
  border-bottom: 5px solid #93d2e1;
  padding-bottom: 2px;
}

.hamburger {
  display: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
  padding: 15px;
  margin-top: 10px;
}

#portafolio {
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 1100px;
  margin: auto;
  text-align: center;
  margin-top: 50px;
}

#portafolio h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #2b4460;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.content-portafolio {
  background: #f1f1f1;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.content-portafolio:hover {
  transform: translateY(-5px);
}

.content-portafolio h3 {
  font-family: "Helvetica LT Std", Arial, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #2b4460;
  text-align: justify;
}

.content-portafolio img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 5px solid #2b4460;
  border-radius: 5%;
}

.portafolio-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  text-align: justify;
  margin-top: 10px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
}

footer {
  background-color: #93d2e3;
  padding: 10px 0;
  margin-top: 0;
  color: #2b4460;
  width: 100%;
  text-align: center;
  position: relative;
}

@media screen and (max-width: 1024px) {
  .navbar {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 63px;
    right: 0;
    width: 190px;
    background-color: #2b4460;
    height: calc(100vh - 63px);
    padding-top: 20px;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.2);
  }

  .navbar.active {
    display: flex;
  }

  .navbar a {
    font-size: 18px;
    padding: 20px;
  }

  .hamburger {
    display: block;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
    justify-items: center;
  }

  .navbar a {
    padding: 15px 0;
    font-size: 16px;
  }

  .portfolio-container {
    grid-template-columns: 1fr;
  }

  #portafolio h2 {
    font-size: 1.8em;
  }

  .content-portafolio {
    padding: 15px;
  }

  .content-portafolio h3 {
    font-family: "Helvetica LT Std", Arial, sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2b4460;
    text-align: justify;
  }

  .portafolio-text p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    text-align: justify;
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.05);
    /* Fondo tenue */
    border-radius: 5px;
  }

  footer {
    background-color: #93d2e3;
    padding: 10px 0;
    margin-top: 0;
    color: #2b4460;
    width: 100%;
    text-align: center;
    position: relative;
  }
}

@media screen and (max-width: 480px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .navbar a {
    font-size: 14px;
    padding: 12px 0;
  }
}