/* ===========================
   Historia Page Styles
   =========================== */

/* --- Hero Banner --- */
.historia-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 320px;
  overflow: hidden;
  margin-top: 114px;
}

.historia-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.historia-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
  padding: 1rem;
}

.historia-hero__title {
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 3rem;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.historia-hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
  margin: 0.75rem 0 0;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

@media only screen and (max-width: 768px) {
  .historia-hero {
    height: 40vh;
    margin-top: 80px;
  }

  .historia-hero__title {
    font-size: 2.2rem;
  }

  .historia-hero__subtitle {
    font-size: 1rem;
  }
}

@media only screen and (max-width: 480px) {
  .historia-hero {
    height: 35vh;
    min-height: 240px;
    margin-top: 60px;
  }

  .historia-hero__title {
    font-size: 1.6rem;
  }

  .historia-hero__subtitle {
    font-size: 0.9rem;
  }
}

/* --- History Sections (image + text) --- */
.history-section {
  padding: 4rem 1.5rem;
}

.history-section--white {
  background-color: #fff;
}

.history-section--gray {
  background-color: #f8f9fa;
}

.history-section__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.history-section__inner--img-left {
  flex-direction: row;
}

.history-section__inner--img-right {
  flex-direction: row-reverse;
}

.history-section__image {
  flex: 0 0 40%;
  max-width: 420px;
}

.history-section__image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.history-section__text {
  flex: 1;
}

.history-section__text h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin: 0 0 1rem;
  color: #1a5276;
}

.history-section__text p {
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.9;
  color: #333;
  margin: 0;
}

@media only screen and (max-width: 768px) {
  .history-section {
    padding: 3rem 1.25rem;
  }

  .history-section__inner,
  .history-section__inner--img-left,
  .history-section__inner--img-right {
    flex-direction: column;
    gap: 1.5rem;
  }

  .history-section__image {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .history-section__text h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .history-section__text p {
    font-size: 1rem;
    line-height: 1.8;
  }
}

@media only screen and (max-width: 480px) {
  .history-section {
    padding: 2rem 1rem;
  }

  .history-section__text h2 {
    font-size: 1.4rem;
  }

  .history-section__text p {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}
