/* ===== HISTÓRICO ===== */

.hist-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Animações de abertura do hero ---- */

@keyframes hist-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hist-clip-in {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to   { clip-path: inset(0 0% 0 0);   opacity: 1; }
}

@keyframes hist-line-expand {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes hist-overlay-reveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hist-hero-anim {
  opacity: 0;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-duration: 0.9s;
}

.hist-hero-anim--1 {
  animation-name: hist-clip-in;
  animation-delay: 0.3s;
}

.hist-hero-anim--2 {
  animation-name: hist-fade-up;
  animation-delay: 0.55s;
  animation-duration: 1s;
}

.hist-hero-anim--3 {
  animation-name: hist-fade-up;
  animation-delay: 0.8s;
}

.hist-hero-anim--4 {
  animation-name: hist-line-expand;
  animation-delay: 1s;
  animation-duration: 0.7s;
  transform-origin: left center;
  opacity: 1;
}

/* Linha decorativa no hero */
.hist-hero-line {
  width: 60px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 2px;
  margin-top: 4px;
}

/* ---- Reveal ao rolar ---- */

.hist-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.hist-reveal--right {
  transform: translateX(40px);
}

.hist-reveal--slide {
  transform: translateX(-32px);
  transition-delay: var(--delay, 0s);
}

.hist-reveal--delay {
  transition-delay: 0.18s;
}

.hist-reveal.hist-visible {
  opacity: 1;
  transform: translate(0);
}


/* Shared */
.hist-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.hist-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 2px;
  background-color: var(--color-secondary);
  border-radius: 2px;
}

.hist-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.hist-accent {
  color: var(--color-secondary);
}

/* ===== HERO ===== */

.hist-hero {
  position: relative;
  height: 52vh;
  min-height: 380px;
  max-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hist-hero-bg {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary);
  transform: scale(1.08) translate(0px, 0px);
  will-change: transform;
}


.hist-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 8, 0, 0.82) 0%,
    rgba(180, 70, 0, 0.42) 60%,
    rgba(13, 8, 0, 0.65) 100%
  );
}

.hist-hero-content {
  position: relative;
  z-index: 1;
  padding: 0 32px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hist-hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.hist-hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hist-hero-accent {
  color: var(--color-secondary);
}

.hist-hero-sub {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  line-height: 1.65;
}

.hist-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 1;
  line-height: 0;
}

.hist-hero-wave svg {
  width: 100%;
  height: 50px;
}

/* ===== INTRO ===== */

.hist-intro {
  padding: 96px 0 80px;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hist-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hist-intro .hist-container {
  position: relative;
  z-index: 1;
}

.hist-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hist-intro-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hist-intro-text p {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.8;
}

.hist-intro-text strong {
  color: var(--color-secondary);
  font-weight: 600;
}

.hist-intro-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 40px 32px;
}

.hist-year-card {
  background: var(--color-secondary);
  border-radius: 20px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 40px rgba(242, 123, 19, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hist-year-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(242, 123, 19, 0.38);
}

.hist-year-card--secondary {
  background: #ffffff;
  border: 2px solid var(--color-gray-light);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.hist-year-card--secondary:hover {
  box-shadow: 0 16px 40px rgba(242,123,19,0.1);
}

.hist-year-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hist-year-card--secondary .hist-year-number {
  color: var(--color-secondary);
}

.hist-year-plus {
  font-size: 1.8rem;
  color: var(--color-secondary);
}

.hist-year-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hist-year-card--secondary .hist-year-label {
  color: #6b7280;
}

/* Decorativos */
.hist-intro-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hist-intro-deco--ring {
  width: 200px;
  height: 200px;
  border: 2px solid rgba(242, 123, 19, 0.25);
  top: 0;
  right: 0;
}

.hist-intro-deco--dot1 {
  width: 16px;
  height: 16px;
  background: var(--color-secondary);
  bottom: 20px;
  right: 20px;
  opacity: 0.6;
}

.hist-intro-deco--dot2 {
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  top: 20px;
  left: 10px;
  opacity: 0.3;
}

/* ===== TIMELINE ===== */

.hist-timeline-section {
  padding: 80px 0 96px;
  background-color: var(--color-gray-lighter);
}

.hist-section-header {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hist-section-header .hist-eyebrow {
  padding-left: 0;
}

.hist-section-header .hist-eyebrow::before {
  display: none;
}

.hist-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hist-timeline-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  position: relative;
}

.hist-timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hist-timeline-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(242, 123, 19, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.hist-timeline-item:hover .hist-timeline-dot {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(242, 123, 19, 0.4);
}

.hist-timeline-dot svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

.hist-timeline-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--color-secondary), rgba(242, 123, 19, 0.15));
  margin: 8px 0;
  min-height: 40px;
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hist-timeline-line.hist-line-grow {
  transform: scaleY(1);
}

.hist-timeline-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  border: 1px solid var(--color-gray-light);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hist-timeline-card:hover {
  box-shadow: 0 8px 32px rgba(242,123,19,0.1);
  transform: translateX(6px);
}

.hist-timeline-year {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: rgba(242, 123, 19, 0.1);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.hist-timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.hist-timeline-card p {
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.75;
}

/* ===== VÍDEO INSTITUCIONAL ===== */

.hist-video-section {
  padding: 80px 0 96px;
  background-color: #ffffff;
}

.hist-video-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}

.hist-video-header .hist-eyebrow {
  padding-left: 0;
}

.hist-video-header .hist-eyebrow::before {
  display: none;
}

.hist-video-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(53, 136, 188, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.08);
  background-color: #0d1b2a;
  aspect-ratio: 16 / 9;
}

.hist-video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* Overlay inicial */
.hist-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(
    to top,
    rgba(10, 25, 47, 0.75) 0%,
    rgba(10, 25, 47, 0.3) 50%,
    rgba(10, 25, 47, 0.15) 100%
  );
  opacity: 1;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  cursor: pointer;
  visibility: visible;
}

.hist-video-overlay.hist-video-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Botão play */
.hist-video-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hist-video-play-btn:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: scale(1.1);
  box-shadow: 0 0 0 12px rgba(242, 123, 19, 0.2);
}

.hist-video-play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

/* Texto do overlay */
.hist-video-overlay-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hist-video-overlay-text span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.hist-video-overlay-text p {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* ---- Controles customizados ---- */

.hvc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 12px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  user-select: none;
}

.hvc.hvc-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Barra de progresso */
.hvc-progress {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: height 0.15s ease;
}

.hvc-progress:hover {
  height: 6px;
}

.hvc-progress-buffered {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  pointer-events: none;
}

.hvc-progress-fill {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: var(--color-secondary);
  border-radius: 4px;
  pointer-events: none;
  transition: width 0.1s linear;
}

.hvc-progress-thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease;
  pointer-events: none;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.hvc-progress:hover .hvc-progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* Row de botões */
.hvc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hvc-left,
.hvc-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hvc-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.hvc-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.1);
}

.hvc-btn svg {
  width: 18px;
  height: 18px;
}

.hvc-time {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Slider de volume */
.hvc-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 72px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.25);
  outline: none;
  cursor: pointer;
  transition: width 0.2s ease;
}

.hvc-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

.hvc-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
}

@media (max-width: 480px) {
  .hvc-volume { width: 48px; }
  .hvc-time   { font-size: 0.7rem; }
}

/* Borda decorativa */
.hist-video-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--color-secondary-dark), var(--color-secondary));
  z-index: -1;
}

@media (max-width: 600px) {
  .hist-video-section {
    padding: 56px 0 64px;
  }

  .hist-video-play-btn {
    width: 64px;
    height: 64px;
  }

  .hist-video-play-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* ===== PROPÓSITO ===== */

.hist-proposito {
  padding: 96px 0;
  background: var(--color-secondary);
  position: relative;
  overflow: hidden;
}

.hist-proposito::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.hist-proposito::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  bottom: -100px;
  left: -60px;
  pointer-events: none;
}

.hist-proposito-inner {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}


.hist-proposito-quote {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.7;
  font-style: italic;
}

.hist-proposito-cite {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
  font-style: normal;
}


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

@media (max-width: 900px) {
  .hist-intro-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hist-intro-visual {
    flex-direction: row;
    padding: 24px 0;
  }

  .hist-year-card {
    flex: 1;
  }

}

@media (max-width: 600px) {
  .hist-container {
    padding: 0 20px;
  }

  .hist-hero {
    height: 45vh;
    min-height: 320px;
  }

  .hist-hero-content {
    padding: 0 20px;
  }

  .hist-intro,
  .hist-timeline-section,
  .hist-proposito {
    padding: 64px 0;
  }

  .hist-intro-visual {
    flex-direction: column;
  }

  .hist-timeline-item {
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }

  .hist-timeline-dot {
    width: 40px;
    height: 40px;
  }

  .hist-timeline-dot svg {
    width: 16px;
    height: 16px;
  }

  .hist-timeline-card {
    padding: 20px;
  }

}
