* {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

html {
  height: 100%;
}

body {
  background-color: #f9fbe7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

hr {
  border: none;
  height: 1px;
  background-color: #dce775; /* o cualquier color */
}

header {
  background-image: url("./assets/header.jpg");
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  /* background-color: #827717; */
  width: 100%;
  box-sizing: border-box;
  padding: 124px 0;
}

.header-center-cont {
  color: #f9fbe7;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 32px;
  display: flex;
  gap: 32px;
}

header > div > img {
  width: 20%;
  height: auto;
}

header > div > div > h1 {
  font-weight: 600;
  text-shadow: 0px 0px 6px #000000;
}

header > div > div > h2 {
  font-weight: 300;
  color: #f0f4c3;
  text-shadow: 0px 0px 12px #000000;
}

nav {
  background-color: #afb42b;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-bar {
  display: none;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding: 14px;
}

.menu-label {
  font-weight: bold;
  color: #424242;
  font-size: 16px;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #424242;
}

.nav-center-cont {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
}

nav > div > a {
  text-decoration: none;
  color: #424242;
  display: block;
  box-sizing: border-box;
  padding: 15px 10px;
  width: calc(100% / 6);
  text-align: center;
  transition: background-color 0.5s ease;
}

nav > div > a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

#contenido {
  background-color: #f0f4c3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 24px;
  flex: 1;
  box-shadow: 0px 0px 5px -1px #424242;
  -webkit-box-shadow: 0px 0px 5px -1px #424242;
  -moz-box-shadow: 0px 0px 5px -1px #424242;
}

section {
  background-color: #f9fbe7;
  margin: 24px 0;
  box-sizing: border-box;
  padding: 12px;
}

section > h2 {
  font-weight: 500;
  box-sizing: border-box;
  padding-bottom: 8px;
  color: #827717;
}

section p {
  font-weight: 300;
  color: #424242;
  text-align: justify;
}

.image-text {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.image-text > img {
  width: 30%;
  height: auto;
}

.btn {
  display: inline-block;
  text-decoration: none;
  background-color: #f0f4c3;
  color: #424242;
  font-weight: 300;
  box-sizing: border-box;
  padding: 12px;
  margin: 12px 0;
  transition: background-color 0.5s ease;
}

.btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

footer {
  background-color: #424242;
  width: 100%;
  box-sizing: border-box;
  padding: 48px 0;
}

footer a {
  display: block;
  color: #9e9e9e;
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 0.5s ease;
}

footer a:hover {
  color: #807e7e;
}

.footer-center-cont {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
}

.footer-logo {
  align-self: center;
}

.footer-logo > img {
  width: 100px;
  height: auto;
}

.social-media {
  align-self: center;
}

.social-media > div {
  display: flex;
  gap: 12px;
}

.social-media > div > a > img {
  width: 24px;
  height: 24px;
}

img {
  width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 870px) {
  .image-text > img {
    width: 50%;
  }
}

@media (max-width: 750px) {
  .image-text {
    flex-direction: column;
  }

  .image-text > img {
    align-self: center;
    width: 80%;
  }
}

@media (max-width: 700px) {
  header > div > img {
    width: 30%;
  }
}

@media (max-width: 570px) {
  .nav-bar {
    display: flex;
    background-color: #afb42b;
  }

  .nav-center-cont {
    display: none;
    flex-wrap: wrap;
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
  }

  .nav-center-cont.show {
    display: flex;
    animation-name: slideDown;
  }

  .nav-center-cont.hide {
    animation-name: slideUp;
  }

  nav > div > a {
    width: 50%;
  }

  #contenido {
    padding: 0;
  }

  .image-text > img {
    width: 100%;
  }

  footer a {
    text-align: center;
  }

  .footer-center-cont {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 450px) {
  header > div > div > h1 {
    font-size: 24px;
  }

  header > div > div > h2 {
    font-size: 18px;
  }
}

@media (max-width: 450px) {
  header > div > img {
    width: 40%;
  }
  .header-center-cont {
    flex-direction: column;
  }
}

/* Animaciones */
@keyframes slideDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 500px;
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    max-height: 500px;
    opacity: 1;
  }
  to {
    max-height: 0;
    opacity: 0;
  }
}
