/* Historia Section Styles */

/* Main content layout: 2 columns on larger screens */
.historia-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin: 48px 0;
}

@media (min-width: 900px) {
  .historia-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 80px;
  }
}

/* Column wrapper */
.historia-column {
  flex: 1;
  min-width: 0;
}

/* Narrative column */
.historia-narrative {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Paragraph styling with capitular first letter */
.historia-paragraph {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  text-align: justify;
}

.historia-paragraph::first-letter {
  font-size: 3.5em;
  font-weight: bold;
  color: var(--gold);
  float: left;
  line-height: 1;
  padding-right: 8px;
  font-family: var(--font-display);
}

/* Blockquote styling */
.historia-quote {
  border-left: 4px solid var(--red);
  padding: 24px 0 24px 24px;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text);
  position: relative;
  font-family: var(--font-display);
}

.historia-quote::before {
  content: '"';
  position: absolute;
  left: -20px;
  top: -10px;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.5;
  font-family: Georgia, serif;
  line-height: 1;
}

.historia-quote::after {
  content: '"';
  position: absolute;
  right: 10px;
  bottom: -30px;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.5;
  font-family: Georgia, serif;
  line-height: 1;
}

/* Timeline wrapper */
.historia-timeline-wrapper {
  position: relative;
}

/* Timeline vertical line */
.historia-timeline {
  position: relative;
  padding-left: 0;
}

.historia-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--red));
}

@media (min-width: 900px) {
  .historia-timeline::before {
    left: 15px;
  }
}

/* Timeline items */
.historia-timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
  animation-delay: calc(0.1s * (var(--item-index, 1)));
}

.historia-timeline-item:last-child {
  margin-bottom: 0;
}

/* Timeline dots */
.historia-timeline-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 32px;
  height: 32px;
  background-color: var(--bg-alt);
  border: 3px solid var(--gold);
  border-radius: 50%;
  z-index: 2;
}

/* Timeline content */
.historia-timeline-content {
  position: relative;
}

.historia-timeline-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 0 8px 0;
  font-weight: 600;
}

.historia-timeline-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Counters section */
.historia-counters {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 80px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 900px) {
  .historia-counters {
    flex-direction: row;
    justify-content: space-around;
    gap: 20px;
  }
}

/* Individual counter */
.historia-counter {
  text-align: center;
  flex: 1;
}

.historia-counter-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

.historia-counter-label {
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .historia-content {
    gap: 40px;
    margin: 32px 0;
  }

  .historia-paragraph {
    font-size: 0.95rem;
    text-align: left;
  }

  .historia-paragraph::first-letter {
    font-size: 3rem;
    padding-right: 6px;
  }

  .historia-quote {
    font-size: 1.1rem;
    padding: 20px 0 20px 20px;
    margin: 24px 0;
  }

  .historia-quote::before {
    left: -15px;
    font-size: 3rem;
    top: -5px;
  }

  .historia-quote::after {
    font-size: 3rem;
    bottom: -20px;
    right: 5px;
  }

  .historia-timeline-item {
    padding-left: 50px;
    margin-bottom: 32px;
  }

  .historia-timeline::before {
    left: 11px;
  }

  .historia-timeline-dot {
    width: 28px;
    height: 28px;
    border-width: 2px;
  }

  .historia-timeline-year {
    font-size: 1.25rem;
  }

  .historia-counters {
    margin-top: 60px;
    padding: 36px 0;
    gap: 30px;
  }
}
