/* ============================================================
   trayectoria.css — CSS exclusivo para trayectoria.php
   ============================================================ */

/* ===== HERO — fondo paper ===== */
.tray-hero {
  background: var(--paper);
  padding: 48px 0 44px;
  border-bottom: 1px solid var(--line, #E5E3DF);
}

.tray-crumb {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  gap: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--magenta, #C2185B);
}
.tray-crumb li + li::before { content: " / "; white-space: pre; }
.tray-crumb a { color: var(--magenta, #C2185B); text-decoration: none; }
.tray-crumb a:hover { text-decoration: underline; }

.tray-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.06;
  margin-bottom: 14px;
}
.tray-title em { font-style: italic; color: var(--cyan); }

.tray-lead {
  font-size: 17px;
  color: var(--slate, #596078);
  max-width: 480px;
  line-height: 1.6;
  margin: 0;
}


/* ===== SECCIÓN EQUIPO ===== */
.team-section {
  background: var(--card);	
  padding: 80px 0;
  border-bottom: 1px solid var(--line, #E5E3DF);
}

.team-photo-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26,42,107,.1);
}
.team-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Eyebrow */
.team-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--magenta, #C2185B);
  margin-bottom: 14px;
}

.team-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 18px;
}
.team-title em { font-style: italic; color: var(--cyan); }

.team-body {
  font-size: 16px;
  color: var(--slate, #596078);
  line-height: 1.7;
  margin-bottom: 10px;
}

/* Stats en dos columnas */
.team-stats {
  display: flex;
  gap: 40px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line, #E5E3DF);
}
.team-stat-n {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.team-stat-l {
  font-size: 12.5px;
  color: var(--slate, #596078);
  line-height: 1.4;
}


/* ===== SECCIÓN TIMELINE ===== */
.tl-section {
  padding: 80px 0 40px;
  background: var(--paper);
}

/* Cabecera */
.tl-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan, #1E9FD6);
  margin-bottom: 14px;
}
.tl-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 56px;
}
.tl-title em { font-style: italic; color: var(--cyan); }

/* ===== TIMELINE LIST ===== */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

/* Línea vertical continua */
.timeline::before {
  content: "";
  position: absolute;
  left: 88px;          /* alineada con el centro del dot */
  top: 6px;
  bottom: 6px;
  width: 1.5px;
  background: var(--line, #E5E3DF);
  z-index: 0;
}

/* Cada ítem */
.tl-item {
  display: grid;
  grid-template-columns: 72px 24px 1fr;
  grid-template-rows: auto;
  column-gap: 24px;
  align-items: start;
  padding-bottom: 36px;
  position: relative;
}
.tl-item:last-child { padding-bottom: 0; }

/* Año */
.tl-year {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 600;
  color: var(--cyan, #1E9FD6);
  text-align: right;
  padding-top: 1px;
  grid-column: 1;
  grid-row: 1;
}

/* Dot */
.tl-dot {
  grid-column: 2;
  grid-row: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan, #1E9FD6);
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px var(--cyan, #1E9FD6);
  margin-top: 3px;
  position: relative;
  z-index: 1;
  justify-self: center;
  flex-shrink: 0;
}

/* Milestones: dot en magenta */
.tl-milestone .tl-dot {
  background: var(--magenta, #C2185B);
  box-shadow: 0 0 0 2px var(--magenta, #C2185B);
  width: 16px;
  height: 16px;
}

/* "Hoy" dot en navy */
.tl-today .tl-dot {
  background: var(--navy, #1A2A6B);
  box-shadow: 0 0 0 2px var(--navy, #1A2A6B);
}

/* Cuerpo del ítem */
.tl-body {
  grid-column: 3;
  grid-row: 1;
}
.tl-body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy, #1A2A6B);
  margin-bottom: 6px;
}
.tl-body p {
  font-size: 14.5px;
  color: var(--slate, #596078);
  line-height: 1.65;
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .tray-hero { padding: 36px 0 32px; }

  /* En mobile el año queda arriba, el dot y texto abajo */
  .timeline::before { left: 10px; }

  .tl-item {
    grid-template-columns: 18px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
  }
  .tl-year {
    grid-column: 1 / 3;
    grid-row: 1;
    text-align: left;
    margin-bottom: 6px;
    font-size: 1rem;
  }
  .tl-dot {
    grid-column: 1;
    grid-row: 2;
    margin-top: 4px;
  }
  .tl-body { grid-column: 2; grid-row: 2; }

  .team-section { padding: 52px 0; }
  .team-stats { gap: 24px; flex-wrap: wrap; }
  .tl-section { padding: 52px 0 24px; }
}
