/* ============================================================
   HISTÓRIA PAGE — styles
   ============================================================ */

/* ---------- shared ---------- */
.historia-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.historia-h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 38px;
  line-height: 50px;
  color: #660099;
  margin: 0 0 42px;
}

.historia-h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 45px;
  letter-spacing: -0.75px;
  color: #660099;
  margin: 0 0 32px;
}

.historia-body-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 28px;
  color: #69645c;
}

.historia-body-text p {
  margin: 0 0 20px;
}

.historia-body-text p:last-child {
  margin-bottom: 0;
}

.historia-body2-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: #69645c;
}

.historia-body2-text p {
  margin: 0 0 16px;
}

.historia-body2-text p:last-child {
  margin-bottom: 0;
}

/* ---------- hero ---------- */
.historia-hero {
  padding: 120px 0 28px;
}

.historia-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 66px;
  color: #660099;
  margin: 0;
  text-align: center;
}

/* ---------- intro ---------- */
.historia-intro {
  padding: 60px 0 80px;
}

/* ---------- carousel section ---------- */
.historia-amigao {
  background: #f9f9f9;
  overflow: hidden;
}

.historia-carousel {
  position: relative;
}

.historia-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.historia-carousel-slide {
  min-width: 100%;
  padding: 80px 0 0;
  box-sizing: border-box;
}

/* slide inner layout */
.historia-slide-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}

.historia-slide-inner--text-only {
  max-width: 780px;
}

.historia-slide-text {
  flex: 0 0 580px;
  max-width: 580px;
}

/* stacked images (slide 1) */
.historia-slide-media {
  flex: 1;
  position: relative;
}

.historia-slide-media--stacked {
  min-height: 360px;
}

.historia-slide-img-back {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.historia-slide-img-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 240px;
  height: auto;
  z-index: 2;
}

/* logo media (slides 2 & 4) */
.historia-slide-media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 120px;
}

.historia-slide-logo {
  max-width: 460px;
  width: 100%;
  height: auto;
}

/* controls bar */
.historia-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 0 52px;
}

.historia-carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #660099;
  border-radius: 50%;
  background: transparent;
  color: #660099;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.historia-carousel-btn:hover {
  background: #660099;
  color: #fff;
}

.historia-carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.historia-carousel-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.historia-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d0d0d0;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.historia-carousel-dot--active {
  background: #660099;
  transform: scale(1.25);
}

.historia-carousel-dot:hover:not(.historia-carousel-dot--active) {
  background: #a066cc;
}

/* ---------- timeline section ---------- */
.historia-timeline-section {
  padding: 80px 0 60px;
}

/* scroll dots (decorative) */

.historia-scroll-dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d0d0d0;
}

.historia-timeline-heading {
  margin-bottom: 60px;
}

/* ---------- timeline nav ---------- */
.historia-timeline-section .historia-container {
  max-width: 1400px;
  padding: 0 60px;
}

.historia-timeline-nav-wrap {
  position: relative;
  margin-bottom: 0;
}

.historia-timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #d0d0d0;
  transform: translateY(-50%);
  z-index: 0;
}

.historia-tl-dot {
  display: block;
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #d0d0d0;
  pointer-events: none;
  z-index: 2;
  position: relative;
}

.historia-timeline-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
}

.historia-tl-tab {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #69645c;
  background: #fff;
  border: 1px solid #69645c;
  border-radius: 15px;
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  outline: none;
}

.historia-tl-tab:hover {
  background: #f0e6f9;
  border-color: #660099;
  color: #660099;
}

.historia-tl-tab--active {
  background: #00cc99;
  border-color: #00cc99;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
}

.historia-tl-tab--active:hover {
  background: #00b386;
  border-color: #00b386;
  color: #fff;
}

/* ---------- timeline cards ---------- */
.historia-timeline-cards {
  margin-top: 32px;
  position: relative;
}

.historia-tl-card {
  display: none;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  max-width: 1076px;
  margin: 0 auto;
}

.historia-tl-card--active {
  display: block;
}

/* inner layout — text-only or with media */
.historia-tl-card-body {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.historia-tl-card--with-media .historia-tl-card-body {
  gap: 0;
}

.historia-tl-card-text {
  flex: 1;
  padding: 54px 68px 65px 61px;
}

/* media column (stacked images) */
.historia-tl-card-media {
  flex: 0 0 440px;
  position: relative;
  min-height: 460px;
  overflow: hidden;
  padding: 40px 24px 40px 40px;
  box-sizing: border-box;
}

.historia-tl-card-img {
  position: absolute;
  width: 300px;
  height: auto;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}

.historia-tl-card-img--top {
  top: 40px;
  left: 40px;
  height: 200px;
}

.historia-tl-card-img--bottom {
  top: 215px;
  left: 90px;
  height: 175px;
}

.historia-tl-card-year {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 38px;
  line-height: 50px;
  color: #660099;
  margin: 0 0 22px;
}

/* ---------- CTA ---------- */
.historia-cta {
  padding: 40px 0 80px;
  opacity: 0.7;
}

.historia-cta-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 21px;
  line-height: 30px;
  letter-spacing: -0.525px;
  color: #660099;
  margin: 0 0 4px;
}

.historia-cta-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: #000;
  margin: 0;
}

.historia-cta-link {
  color: #660099;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.historia-cta-link:hover {
  opacity: 0.8;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .historia-slide-inner {
    gap: 48px;
  }

  .historia-slide-text {
    flex: 0 0 440px;
    max-width: 440px;
  }
}

@media (max-width: 860px) {
  .historia-container {
    padding: 0 24px;
  }

  .historia-h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .historia-h3 {
    font-size: 22px;
    line-height: 32px;
  }

  .historia-body-text {
    font-size: 17px;
    line-height: 24px;
  }

  .historia-body2-text {
    font-size: 15px;
    line-height: 22px;
  }

  .historia-slide-inner {
    flex-direction: column;
    gap: 40px;
  }

  .historia-slide-text {
    flex: none;
    max-width: 100%;
  }

  .historia-slide-media--stacked {
    width: 100%;
    min-height: 260px;
  }

  .historia-slide-img-back {
    width: 280px;
  }

  .historia-slide-img-front {
    width: 160px;
  }

  .historia-slide-media--logo {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .historia-slide-logo {
    max-width: 280px;
  }

  .historia-timeline-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .historia-timeline-line {
    display: none;
  }

  .historia-tl-dot {
    display: none;
  }

  .historia-tl-tab {
    font-size: 15px;
    padding: 8px 16px;
  }

  .historia-tl-card {
    max-width: 100%;
  }

  .historia-tl-card-body {
    flex-direction: column;
  }

  .historia-tl-card-media {
    flex: none;
    width: 100%;
    min-height: 280px;
    padding: 20px 24px 20px 24px;
    order: 1;
  }

  .historia-tl-card-img--top {
    width: 240px;
    height: 155px;
    top: 20px;
    left: 24px;
  }

  .historia-tl-card-img--bottom {
    width: 220px;
    height: 135px;
    top: 140px;
    left: 64px;
  }

  .historia-tl-card-text {
    order: 2;
    padding: 28px 24px 36px;
  }

  .historia-tl-card-year {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .historia-title {
    font-size: 36px;
    line-height: 44px;
  }

  .historia-hero {
    padding: 40px 0 32px;
  }

  .historia-intro {
    padding: 40px 0 48px;
  }

  .historia-amigao {
    padding: 48px 0;
  }

  .historia-timeline-section {
    padding: 48px 0 40px;
  }
}
