/* ==========================================================================
   Plan de 3 semanas: línea de tiempo horizontal con trazo manuscrito.
   ========================================================================== */

.g-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.g-foot p {
  color: var(--ink-2);
  max-width: 56ch;
}
.tl {
  position: relative;
  margin-top: clamp(32px, 4vw, 48px);
}
.tl-line {
  display: block;
  width: 100%;
  height: 70px;
  overflow: visible;
}
.tl-p {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1600ms cubic-bezier(0.45, 0.05, 0.4, 1);
}
.tl-wk {
  stroke: var(--line-2);
}
.tl.armed .tl-p {
  stroke-dashoffset: 1;
}
.tl-weeks {
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  font: 600 1.25rem/1 var(--f-hand);
  color: var(--ink-3);
}
.tl-steps {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.tl-steps li {
  transition:
    opacity 500ms ease,
    transform 500ms var(--ease-out);
  transition-delay: calc(var(--k) * 140ms + 300ms);
}
.tl.armed .tl-steps li {
  opacity: 0;
  transform: translateY(8px);
}
.tl-n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  font: 600 1.375rem/1 var(--f-hand);
  color: var(--coral);
  border: 1.5px solid currentColor;
  border-radius: 52% 48% 55% 45%/48% 55% 45% 52%;
}
.tl-steps h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.tl-steps p {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--ink-2);
  max-width: 22ch;
}
.tl .g-foot {
  margin-top: 28px;
}
@media (max-width: 760px) {
  .tl-line,
  .tl-weeks {
    display: none;
  }
  .tl-steps {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
  }
}
.tl-main {
  stroke: url(#tl-grad);
  stroke-width: 2;
}
.tl-weeks span {
  padding-left: 14px;
  color: var(--brand-purple);
}
.tl-steps li:nth-child(1) .tl-n {
  color: var(--brand-blue);
  background: color-mix(in srgb, var(--brand-blue) 8%, transparent);
}
.tl-steps li:nth-child(2) .tl-n {
  color: #6a63ea;
  background: color-mix(in srgb, #6a63ea 8%, transparent);
}
.tl-steps li:nth-child(3) .tl-n {
  color: var(--brand-purple);
  background: color-mix(in srgb, var(--brand-purple) 10%, transparent);
}
.tl-steps li:nth-child(4) .tl-n {
  color: #c9669e;
  background: color-mix(in srgb, #c9669e 8%, transparent);
}
.tl-steps li:nth-child(5) .tl-n {
  color: var(--brand-red);
  background: color-mix(in srgb, var(--brand-red) 8%, transparent);
}
.tl-ar {
  transition-delay: 1400ms;
  stroke: var(--brand-red);
}
.tl-go {
  position: absolute;
  right: -6px;
  top: -14px;
  display: flex;
  align-items: center;
  gap: 4px;
  font: 600 1.25rem/1 var(--f-hand);
  color: var(--coral);
  transform: rotate(-4deg);
  transition: opacity 500ms ease 1800ms;
}
.tl-go svg {
  width: 16px;
  height: 16px;
  fill: var(--brand-lime);
  stroke: var(--brand-navy);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.tl.armed .tl-go {
  opacity: 0;
}
@media (max-width: 760px) {
  .tl-go {
    display: none;
  }
}
