/* === TRAYECTORIA === */

/* ============================================================
   PARTE A — NÚMEROS IMPACTO
   ============================================================ */
.trajectory-numbers {
  background: linear-gradient(180deg, rgba(13,31,60,0.86) 0%, rgba(10,22,40,0.86) 100%);
  padding: 120px 1.5rem;
  position: relative;
  z-index: 2;
}

body[data-theme="light"] .trajectory-numbers {
  background: linear-gradient(180deg, rgba(239,233,223,0.86) 0%, rgba(245,243,238,0.86) 100%);
}

.numbers-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 3.5rem auto;
  max-width: 900px;
}

.number-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.number-value {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.number-divider {
  width: 40px;
  height: 2px;
  background: var(--color-gold);
  margin-bottom: 0.8rem;
  opacity: 0.6;
}

.number-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: #E0E0E0;
  line-height: 1.5;
  max-width: 220px;
}

body[data-theme="light"] .number-label {
  color: #2a2a2a;
}

.numbers-note {
  font-size: 0.78rem;
  color: #7A8B9A;
  font-weight: 300;
  margin-top: 1rem;
}

body[data-theme="light"] .numbers-note {
  color: #8a9aaa;
}

/* ============================================================
   PARTE B — TIMELINE
   ============================================================ */
.trajectory-timeline {
  background: linear-gradient(180deg, rgba(10,22,40,0.86) 0%, rgba(13,31,60,0.86) 100%);
  padding: 120px 1.5rem;
  position: relative;
  z-index: 2;
}

body[data-theme="light"] .trajectory-timeline {
  background: linear-gradient(180deg, rgba(245,243,238,0.86) 0%, rgba(239,233,223,0.86) 100%);
}

.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 1rem;
}

.timeline-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: #B0C4D8;
  text-align: center;
  margin-bottom: 4rem;
}

body[data-theme="light"] .timeline-subtitle {
  color: #4A7A9A;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, var(--color-gold) 10%, var(--color-gold) 90%, transparent 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 40px 0;
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding: 0 0 40px 40px;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 6px;
  right: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 3px solid #0A1628;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
  z-index: 1;
}

body[data-theme="light"] .timeline-dot {
  border-color: #F5F3EE;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -7px;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 0.4rem;
}

.timeline-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #E0E0E0;
  font-weight: 300;
}

body[data-theme="light"] .timeline-text {
  color: #2a2a2a;
}

/* ============================================================
   PARTE C — REFERENTES TEÓRICOS
   ============================================================ */
.trajectory-references {
  background: rgba(11,26,46,0.86);
  border-top: 2px solid var(--color-gold);
  padding: 100px 1.5rem;
  position: relative;
  z-index: 2;
}

body[data-theme="light"] .trajectory-references {
  background: rgba(234,227,215,0.86);
}

.references-container {
  max-width: 1200px;
  margin: 0 auto;
}

.references-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 1rem;
}

.references-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  color: #E0E0E0;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 400;
}

body[data-theme="light"] .references-subtitle {
  color: #2a2a2a;
}

.references-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: #C0D0DD;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

body[data-theme="light"] .references-intro {
  color: #3a3a3a;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ref-card {
  background: #0A1628;
  border-left: 3px solid var(--color-gold);
  border-radius: 8px;
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

body[data-theme="light"] .ref-card {
  background: #FFFFFF;
}

.ref-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.15);
}

.ref-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.ref-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.ref-field {
  font-size: 0.82rem;
  font-weight: 500;
  color: #E0E0E0;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

body[data-theme="light"] .ref-field {
  color: #2a2a2a;
}

.ref-contribution {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #9AB0C0;
  font-weight: 300;
}

body[data-theme="light"] .ref-contribution {
  color: #5a6a7a;
}

.references-note {
  font-size: 0.78rem;
  color: #7A8B9A;
  font-weight: 300;
  text-align: center;
  margin-top: 2.5rem;
}

body[data-theme="light"] .references-note {
  color: #8a9aaa;
}

/* ============================================================
   PARTE D — EQUIPO
   ============================================================ */
.trajectory-team {
  background: linear-gradient(180deg, rgba(11,26,46,0.86) 0%, rgba(10,22,40,0.86) 100%);
  padding: 100px 1.5rem;
  position: relative;
  z-index: 2;
}

body[data-theme="light"] .trajectory-team {
  background: linear-gradient(180deg, rgba(234,227,215,0.86) 0%, rgba(245,243,238,0.86) 100%);
}

.team-container {
  max-width: 1100px;
  margin: 0 auto;
}

.team-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 0.8rem;
}

.team-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  color: #C0D0DD;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 400;
}

body[data-theme="light"] .team-subtitle {
  color: #3a3a3a;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.team-card {
  background: #050D1A;
  border-top: 3px solid var(--color-gold);
  border-radius: 12px;
  padding: 40px;
  transition: box-shadow var(--transition), transform var(--transition);
}

body[data-theme="light"] .team-card {
  background: #FFFFFF;
}

.team-card:hover {
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
  transform: translateY(-4px);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #050D1A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gold);
  margin: 0 auto 1.5rem;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: #E0E0E0;
  text-align: center;
  margin-bottom: 0.6rem;
}

body[data-theme="light"] .team-name {
  color: #1a1a1a;
}

.team-role {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.team-formation {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #E0E0E0;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

body[data-theme="light"] .team-formation {
  color: #2a2a2a;
}

.team-formation ul {
  list-style: none;
  padding: 0;
}

.team-formation li {
  padding: 3px 0;
}

.team-bio {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #C8D8E8;
  font-weight: 300;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 1.2rem;
}

body[data-theme="light"] .team-bio {
  color: #3a3a3a;
}

/* ============================================================
   PARTE E — RECONOCIMIENTOS E INSTITUCIONES
   ============================================================ */
.trajectory-recognitions {
  background: linear-gradient(180deg, rgba(10,22,40,0.86) 0%, rgba(13,31,60,0.86) 100%);
  padding: 100px 1.5rem 120px;
  position: relative;
  z-index: 2;
}

body[data-theme="light"] .trajectory-recognitions {
  background: linear-gradient(180deg, rgba(245,243,238,0.86) 0%, rgba(239,233,223,0.86) 100%);
}

.recognitions-container {
  max-width: 1100px;
  margin: 0 auto;
}

.recognitions-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 2.5rem;
}

.rec-group {
  margin-bottom: 2rem;
}

.rec-group-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.rec-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.rec-pill {
  background: #050D1A;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.75rem;
  color: #E0E0E0;
  font-weight: 300;
  transition: border-color var(--transition), box-shadow var(--transition);
}

body[data-theme="light"] .rec-pill {
  background: #FFFFFF;
  color: #2a2a2a;
}

.rec-pill:hover {
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.recognitions-note {
  font-size: 0.78rem;
  color: #7A8B9A;
  font-weight: 300;
  text-align: center;
  margin-top: 2.5rem;
}

body[data-theme="light"] .recognitions-note {
  color: #8a9aaa;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .trajectory-numbers,
  .trajectory-timeline,
  .trajectory-references,
  .trajectory-team,
  .trajectory-recognitions {
    padding: 80px 1.5rem;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* Timeline: vertical en mobile */
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    padding: 0 0 30px 50px;
    text-align: left;
  }

  .timeline-item .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: 13px;
  }

  .references-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-card {
    padding: 30px 24px;
  }
}

@media (max-width: 480px) {
  .numbers-grid {
    grid-template-columns: 1fr;
  }
}
