html, body {
  flex-direction: column;
  height: 100%;
  display: flex;
}

body {
  color: #333;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3 {
  color: #4a3b31;
}

.hero-section {
  text-align: center;
  color: #fff;
  box-sizing: border-box;
  background-image: linear-gradient(#00000080, #00000080), url("./fondo.e52818cd.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
  display: flex;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: .5em;
  font-size: 3.5em;
  font-weight: 700;
}

.hero-content p {
  max-width: 600px;
  margin-bottom: 1.5em;
  font-size: 1.4em;
}

.hero-logo {
  filter: drop-shadow(2px 2px 3px #0000004d);
  max-width: 180px;
  margin-bottom: 25px;
}

.btn {
  border: 2px solid #0000;
  border-radius: 30px;
  margin: .7em .5em;
  padding: 14px 32px;
  font-size: 1.15em;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .3s, transform .2s, box-shadow .3s;
  display: inline-block;
  box-shadow: 0 4px 8px #00000026;
}

.btn-primary {
  color: #4a3b31;
  background-color: #c0a062;
  box-shadow: 0 5px 12px #0003;
}

.btn-primary:hover {
  background-color: #d4b77a;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px #00000040;
}

.btn-secondary {
  color: #fff;
  background-color: #0000;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  color: #4a3b31;
  background-color: #fff;
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px #0003;
}

.content-section {
  flex: 1;
  padding: 60px 0;
}

.content-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.8em;
  position: relative;
}

.content-section h2:after {
  content: "";
  background-color: #c0a062;
  width: 80px;
  height: 3px;
  margin: 15px auto 0;
  display: block;
}

.section-layout {
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  display: flex;
}

.section-layout .text-content {
  flex: 1;
  min-width: 300px;
}

.section-layout .text-content p {
  color: #555;
  margin-bottom: 1em;
  font-size: 1.1em;
}

.section-layout .image-placeholder {
  text-align: center;
  flex: 1;
  min-width: 300px;
}

.section-layout .image-placeholder img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 5px 15px #0000001a;
}

#historia .image-placeholder img {
  object-fit: cover;
  border: 6px solid #c0a062;
  border-radius: 50%;
  width: 280px;
  height: 280px;
  box-shadow: 0 4px 12px #0003;
}

.image-placeholder .caption {
  color: #777;
  margin-top: 10px;
  font-size: .9em;
  font-style: italic;
}

.alt-background {
  background-color: #fff;
}

.reverse-layout {
  flex-direction: row-reverse;
}

#ubicacion address {
  margin-bottom: 1.5em;
  font-style: normal;
}

.map-placeholder img {
  border: 1px solid #ddd;
}

.map-placeholder {
  text-align: center;
  margin-top: 20px;
}

#ubicacion .container {
  text-align: center;
}

#ubicacion .text-content {
  max-width: 600px;
  margin: 0 auto;
}

#ubicacion .map-placeholder {
  max-width: 600px;
  margin: 20px auto;
}

footer {
  color: #f0f0f0;
  text-align: center;
  background-color: #333;
  width: 100%;
  margin-top: auto;
  padding: 25px 0;
  font-size: .9em;
}

footer p {
  margin: 5px 0;
}

footer a {
  color: #c0a062;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (width <= 992px) {
  .hero-content h1 {
    font-size: 2.8em;
  }

  .hero-content p {
    font-size: 1.2em;
  }

  .content-section h2 {
    font-size: 2.4em;
  }
}

@media (width <= 768px) {
  .hero-section {
    height: auto;
    min-height: 80vh;
    padding-top: 100px;
    padding-bottom: 50px;
  }

  .hero-content h1 {
    font-size: 2.2em;
  }

  .hero-content p {
    font-size: 1.1em;
  }

  .btn {
    padding: 10px 22px;
    font-size: 1em;
  }

  .section-layout {
    flex-direction: column;
    gap: 30px;
  }

  .reverse-layout {
    flex-direction: column;
  }

  .section-layout .text-content, .section-layout .image-placeholder {
    text-align: center;
    flex: none;
    width: 100%;
  }

  .section-layout .text-content p {
    text-align: left;
  }

  .content-section h2 {
    margin-bottom: 30px;
    font-size: 2em;
  }

  .content-section h2:after {
    margin-top: 10px;
  }
}

@media (width <= 480px) {
  .hero-content h1 {
    font-size: 1.8em;
  }

  .hero-content p {
    font-size: 1em;
  }

  .content-section h2 {
    font-size: 1.7em;
  }

  .section-layout .text-content p {
    font-size: 1em;
  }
}

@media (width <= 768px) {
  .content-section {
    padding: 40px 0;
  }

  footer {
    padding: 20px 0;
    font-size: .8em;
  }
}
