/* ==================== HISTORIA ==================== */
.history-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.history-chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 70px;
  background: rgba(15, 15, 20, 0.6);
  padding: 50px;
  border-radius: 15px;
  transition: var(--transition);
  align-items: center;
  border: 1px solid rgba(255, 0, 54, 0.2);
}

.history-chapter:hover {
  background: rgba(20, 15, 25, 0.7);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--primary);
}

/* Alternancia corregida */
.history-chapter.reverse {
  grid-template-columns: 1fr 1fr;
}

.history-chapter.reverse .history-text {
  order: 2;
}

.history-chapter.reverse .history-image {
  order: 1;
}

.history-text {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 1rem;
  font-style: normal;
}

.history-text h3 {
  font-family: 'Playfair Display SC', serif;
  color: var(--primary);
  font-size: 2.3rem;
  margin-bottom: 20px;
}

.history-text p {
  font-family: 'Merriweather Sans', sans-serif;
  font-style: normal;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  text-align: justify;
}

.history-image {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.history-img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 20px rgba(255, 0, 54, 0.3);
  transition: transform 0.4s;
  border-radius: 10px;
}

.history-img:hover {
  transform: scale(1.03);
}

.image-caption {
  text-align: center;
  font-style: italic;
  margin-top: 15px;
  color: var(--text-gray);
  font-size: 1rem;
}

.history-list {
  padding-left: 25px;
  margin: 20px 0;
}

.history-list li {
  margin-bottom: 12px;
  position: relative;
  line-height: 1.7;
}

.history-list li::before {
  content: '▸';
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: -20px;
}

.haute-estructura {
  background: rgba(80, 0, 0, 0.2);
  border-left: 3px solid #8B0000;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
}
