@import url(https://fonts.googleapis.com/css?family=Special+Gothic+Expanded+One:regular);
@import url(https://fonts.googleapis.com/css?family=Bitter:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  height: 100%;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

hr {
  height: 5px;
}

h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 100;
  color: #d4cec8;
  text-align: center;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: #333;
}

/*header and navbar*/
.home-header {
  background-color: #1c1b1b;
}

.navbar {
  background: #1c1b1b;
  width: 100%;
  padding: 0 0 16px;
}

.logo img {
  height: 50px;
  width: auto;
  display: flex;
  margin-left: 50px;
  align-self: start;
}

.logo {
  grid-column: 1;
  justify-self: start;
}

.hamburger {
  grid-column: 3;
  justify-self: end;
}

.main-menu {
  grid-column: 2;
  justify-self: center;
}

.main-menu ul {
  display: flex;
  gap: 40px;
  align-items: center;

  padding: 0;
}

.main-menu a {
  position: relative;
  font-weight: 500;
  padding: 0;
  color: #c3c3c3;
}

.main-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #6f6f6f;
  transition: width 0.3s ease;
}

.main-menu a:hover::after {
  width: 100%;
}

.navbar .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.dropdown {
  display: none;
}

.main-menu > ul > li {
  position: relative;
}

/* Submenus escondidos */
.main-menu .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);

  min-width: 150px;
  padding: 10px 0;
  margin: 0;

  background-color: #1c1b1bcb;
  border: 1px solid #555;

  z-index: 100;
}

.main-menu > ul > li:hover .dropdown {
  display: block;
}

/* Mostrar submenu al pasar el mouse */
.main-menu > ul > li:hover .dropdown {
  display: block;
}

/* Opciones dentro del submenu */
.main-menu .dropdown li {
  width: 100%;
  white-space: nowrap;
}

.main-menu .dropdown a {
  display: block;
  padding: 8px 15px;
  text-align: center;
}

/* Hover de cada opción */
.main-menu .dropdown a:hover {
  background-color: #333;
}

.hamburger {
  color: #c3c3c3;
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/*body*/
#body-part-1 {
  display: flex;
  background-color: #fbd652;
  min-height: 600px;
  justify-content: center; /* horizontal */
  align-items: center;
}

#part-1-holder {
  background-color: #1c1b1b;
  width: 95%;
  min-height: 550px;
  border-radius: 10px;

  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 300px));
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.content-card {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.content-card {
  background-color: #282828;
  height: 300px;
  width: 300px;

  border-radius: 10px;

  display: flex;
  justify-content: center;
  align-items: center;

  color: #c3c3c3;
  text-decoration: none;
  cursor: pointer;

  transition: transform 0.2s ease;
}

.content-card:hover {
  transform: scale(1.05);
  background-color: #4e476b;
}

/*part 2*/
#body-part-2 {
  display: grid;
  grid-template-rows: auto 1fr;
  background-color: #4f4e66;
  min-height: 400px;
}

#body-part-2 p {
  color: #f9f9f9;
  margin-top: 16px;
  text-align: justify;
  padding: 50px 100px 0;
}

/*contact form*/
.contact-section {
  background-color: #eeeeee37;
  margin: 40px 100px 40px;
  border-radius: 12px;
  padding: 30px;
}

.contact-section h3 {
  font-size: 28px;
  justify-self: center;
  padding: 0;
  color: #e6e6e6;
}

.contact-section p {
  justify-self: center;
  color: #c3c3c3;
  padding: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;

  position: relative;
  max-width: 900px;
  background-color: #717171;
  color: #fff;
  margin: 20px auto 0;
  padding: 25px;
  border-radius: 8px;
  border: 10px solid rgb(46, 46, 46);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 5px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  color: #fff;
  background-color: #555191;
  padding: 20px;
  border-radius: 20px;
  cursor: pointer;
  width: 70%;
  align-self: center;
}

.contact-form button:hover {
  background-color: #3a3578;
}

/* Footer */

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #282828;
  color: #e8e4df;

  padding: 10px 24px 10px;
}

.footer-logo {
  width: 70px;
  height: auto;
  opacity: 0.65;
  margin: 0;
  display: block;
}

.copyright-text {
  font-size: 15px;
  color: #c3c3c3;
  padding-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.footer-links a {
  color: #c3c3c3;
  text-decoration: underline;
  padding: 0 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 15px;
}

.footer-links a:last-child {
  border-right: none;
}

.footer-links a:hover {
  color: white;
}

@media (max-width: 700px) {
  h2 {
    font-size: 28px;
    text-align: center;
  }

  .navbar .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .main-menu ul {
    gap: 24px;
    flex-wrap: wrap;
  }

  .navbar {
    padding: 12px 0;
  }

  .navbar .container {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    display: flex;
  }

  .hamburger {
    display: block;
    position: relative;
    z-index: 1001;
    align-self: center;
    margin-right: 20px;
    order: 2;
  }

  .main-menu {
    width: 100%;
    display: none;
    order: 3;
    position: fixed;
    top: 100px;
    left: 0;
    background: rgba(29, 19, 16, 0.812);
    z-index: 999;
  }

  .main-menu.active {
    display: block;
  }

  .main-menu ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin: 0;
    padding: 10px 0;
    position: static;
  }

  .main-menu li {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .logo {
    order: 1;
  }

  .logo img {
    height: 45px;
    margin-left: 20px;
    padding: -20px 0;
  }

  #body-part-1 {
    min-height: 500px;
    justify-content: center; /* horizontal */
    align-items: center;
  }

  #part-1-holder {
    min-height: 480px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, auto);
    justify-items: center;
    align-items: center;
    gap: 10px;
  }

  .content-card {
    height: 100px;
    width: 200px;
  }

  #body-part-2 {
    width: 100%;
    padding: 25px;
  }

  #body-part-2 p {
    width: 100%;

    padding: 20px 0 0;
    margin: 0;

    text-align: justify;
    white-space: normal;
    overflow-wrap: break-word;
  }

  /*Contact form*/
  .contact-section {
    margin: 40px 0 40px;
    padding: 15px;
  }

  #body-part-2 .contact-section p {
    text-align: center;
    padding: 0;
  }
}
