
/** Estilos Header Biografia **/
.nav-container {
  padding-top: .5rem;
  padding-bottom: .5rem;
}

.nav-links {
  list-style-type: none !important;
}

.nav-link {
  color: var(--color-primary) !important;
  text-decoration: none !important;
}

.nav-logo {
    text-decoration: none !important;
}

.nav-hamburger span {
    background: black;
}

/** Seccion en General **/
.section-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--color-dark);
}
.section-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-gray);
  max-width: 640px;
  margin: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ CRONOLOGÍA ============ */
.cronologia {
  background: var(--color-bg-light);
  padding: var(--section-pad) 0;
}

.cronologia-intro {
  margin-top: 4rem;
  margin-bottom: 56px;
}
@media(min-width: 900px){
  .cronologia-intro {
    margin-top: 0;
  margin-bottom: 56px;
}
}

.era-block {
  padding-top: 8px;
}
.era-block + .era-block {
  margin-top: 16px;
}

.era-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}
.era-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.era-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 2px;
}
.era-range {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray);
}

.timeline {
  position: relative;
  padding: 40px 0 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(75, 63, 228, 0.16);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 44px 34px;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow:
    0 0 0 4px var(--color-white),
    0 0 0 5px rgba(75, 63, 228, 0.25);
}
.timeline-item:nth-child(odd) .timeline-dot {
  right: -7px;
}
.timeline-item:nth-child(even) .timeline-dot {
  left: -7px;
}
.timeline-item.is-milestone .timeline-dot {
  background: var(--color-accent);
  box-shadow:
    0 0 0 4px var(--color-white),
    0 0 0 5px rgba(245, 200, 66, 0.45);
}

.timeline-date {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(75, 63, 228, 0.08);
  padding: 4px 11px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.timeline-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.35;
  margin: 0 0 6px;
  font-size: 15px;
}
.timeline-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--color-gray);
  margin: 0;
}

/* — Tarjeta con foto (hitos) — */
.timeline-item.is-milestone .timeline-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.timeline-item.is-milestone .timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.timeline-item.is-milestone .timeline-title {
  font-size: 16px;
}

.timeline-photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--color-placeholder);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #7d8492;
}
.timeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.timeline-photo svg {
  width: 22px;
  height: 22px;
  opacity: 0.7;
}
.timeline-photo span {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  padding: 0 12px;
  text-align: center;
}
.photo-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
}

.timeline-item:nth-child(odd) .timeline-photo {
  flex-direction: column;
}
.timeline-item:nth-child(odd) .timeline-photo span,
.timeline-item:nth-child(even) .timeline-photo span {
  text-align: center;
}

/* En items normales (odd=derecha alineado texto), la tarjeta se alinea al lado correspondiente */
.timeline-item:nth-child(odd) .timeline-card,
.timeline-item:nth-child(odd) .timeline-photo {
  margin-left: auto;
}
.timeline-item:nth-child(even) .timeline-card,
.timeline-item:nth-child(even) .timeline-photo {
  margin-right: auto;
}
.timeline-item.is-milestone .timeline-photo {
  max-width: 260px;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 19px;
  }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 12px 30px 48px;
  }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 13px;
    right: auto;
  }
  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card,
  .timeline-item:nth-child(odd) .timeline-photo,
  .timeline-item:nth-child(even) .timeline-photo {
    margin-left: 0;
    margin-right: 0;
  }
  .timeline-item.is-milestone .timeline-photo {
    max-width: 220px;
  }
  .era-number {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }
}
