.history {
  background: var(--bg);
}

.history-hero {
  background: var(--bg);
}

.history-hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.history-title {
  margin: 0 0 20px;
  font-size: 50px;
  line-height: 0.95;
  font-weight: 900;
  color: #111827;
}

.history-intro {
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.75;
}

.history-hero-content,
.history-cta,
.timeline-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.history-hero-content {
  padding: 32px;
}

.history-hero-content h2 {
  margin: 0 0 12px;
  font-size: 28px;
  color: #111827;
}

.history-hero-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.history-cta {
  padding: 28px;
}

.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.section-kicker-con {
  color: #001c76;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.section-header-con {
  text-align: center;
}
.section-header-con p {
  margin: 0 auto;
  max-width: 700px;
}
.section-header-con h2 {
  font-size: 40px;
  margin: 10px;
  font-weight: 800;
}
.timeline-year {
  min-width: 70px;
  font-weight: 900;
  font-size: 18px;
  color: var(--primary);
}

.timeline-content {
  padding: 18px;
  width: 100%;
}

.timeline-content.highlight {
  border-left: 5px solid var(--secondary);
}

.timeline-content h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.timeline-content p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.galeria {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20%;
  margin-bottom: 30px;
  margin-top: 30px;
}

.galeria img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.galeria img:hover,
.img-click:hover {
  transform: scale(1.01);
}

.img-click {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox img {
  width: auto;
  height: 50%;
  max-width: 50%;
  object-fit: contain;
}

.lightbox.active {
  display: flex;
}

/* ===================== */
/* RESPONSIVE CONÓCENOS */
/* ===================== */

@media (max-width: 1100px) {
  .history-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {

  /* HERO */
  .history-title {
    font-size: 28px;
    line-height: 1.05;
    text-align: center;
    margin-bottom: 12px;
  }

  .history-intro {
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
  }

  .history-hero-content {
    padding: 18px;
    text-align: center;
  }

  .history-hero-content h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .history-hero-content p {
    font-size: 13px;
    line-height: 1.55;
  }

  .history-cta {
    padding: 18px;
    text-align: center;
  }

  /* CABECERAS */
  .section-kicker-con {
    font-size: 9px;
    letter-spacing: 0.15em;
  }

  .section-header-con h2 {
    font-size: 23px;
    margin: 8px 0;
  }

  .section-header-con p {
    font-size: 13px;
    line-height: 1.55;
    max-width: 100%;
  }

  /* TIMELINE */
  .timeline {
    margin-top: 24px;
    padding-left: 0;
  }

  .timeline::before {
    left: 0;
    width: 3px;
  }

  .timeline-item {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
    padding-left: 16px;
  }

  .timeline-year {
    min-width: auto;
    font-size: 15px;
    padding-left: 6px;
  }

  .timeline-content {
    padding: 13px;
  }

  .timeline-content h3 {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .timeline-content p {
    font-size: 12px;
    line-height: 1.5;
  }

  /* GALERÍA -> una debajo de otra */
  .galeria {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 20px 0;
  }

  .galeria img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  /* LIGHTBOX */
  .lightbox img {
    width: 90%;
    height: auto;
    max-width: 90%;
    max-height: 75vh;
  }

  /* CTA */
  .cta-actions {
    justify-content: center;
  }
}
