
/* SACO Timeline (WPBakery Component) */
/* Uses CSS variables:
  --saco-primary, --saco-secondary, --saco-text, --saco-card-bg,
  --saco-font-heading, --saco-font-body
*/

.saco-tl { padding: clamp(24px, 4vw, 52px) 0; color: var(--saco-text); font-family: var(--saco-font-body); }
.saco-tl * { box-sizing: border-box; }

.saco-tl__wrap { width: min(1100px, 92vw); margin: 0 auto; }
.saco-tl__timeline { position: relative; padding-left: 34px; margin-top: 0; }

/* axis */
.saco-tl__timeline:before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--saco-secondary);
  border-radius: 999px;
}

/* item */
.saco-tl__item { position: relative; margin: 18px 0; }

/* node - default mobile first (fixed to axis) */
.saco-tl__node {
  position: absolute;
  left: 16px;
  top: 22px;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--saco-card-bg);
  border: 3px solid var(--saco-primary);
  box-shadow: 0 10px 24px rgba(72, 66, 130, 0.18);
  z-index: 2;
}

.saco-tl__card {
  margin-left: 20px;
  background: var(--saco-card-bg);
  border: 1px solid rgba(72, 66, 130, 0.25);
  border-radius: 18px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  transition: box-shadow .14s ease, transform .14s ease;
}
.saco-tl__card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(72, 66, 130, 0.18); }

.saco-tl__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 28px; }
.saco-tl__year { font-family: var(--saco-font-heading); color: var(--saco-primary); font-size: 24px; font-weight: 700; line-height: 1.1; }

.saco-tl__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.saco-tl__tag {
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(120, 139, 180, 0.15);
  color: var(--saco-primary);
  border: 1px solid rgba(120, 139, 180, 0.4);
  white-space: nowrap;
}

.saco-tl__text { margin-top: 10px; line-height: 1.55; opacity: .95; }
.saco-tl__text p { margin: 0 0 10px; }
.saco-tl__text p:last-child { margin-bottom: 0; }

/* "Ver más" */
.saco-tl__more { margin-top: 10px; }
.saco-tl__more > summary {
  cursor: pointer;
  font-family: var(--saco-font-heading);
  font-weight: 700;
  color: var(--saco-primary);
  list-style: none;
}
.saco-tl__more > summary::-webkit-details-marker { display: none; }
.saco-tl__more > summary:before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  color: var(--saco-secondary);
  transform: translateY(-1px);
}
.saco-tl__more[open] > summary:before { content: "▾"; }
.saco-tl__more-body { margin-top: 8px; line-height: 1.55; opacity: .95; }
.saco-tl__more-body p { margin: 0 0 10px; }
.saco-tl__more-body p:last-child { margin-bottom: 0; }

/* STYLE VARIANTS */
.saco-tl--minimal .saco-tl__card {
  border-color: rgba(120, 139, 180, 0.55);
  box-shadow: none;
}
.saco-tl--minimal .saco-tl__card:hover { transform: none; box-shadow: none; }

.saco-tl--cards .saco-tl__card {
  background: linear-gradient(135deg, rgba(120,139,180,0.10), rgba(72,66,130,0.10));
  border-color: rgba(72, 66, 130, 0.20);
}
.saco-tl--cards .saco-tl__tag { background: rgba(255,255,255,0.65); }

/* Desktop: centered axis + alternating cards (classic only) */
@media (min-width: 900px) {
  .saco-tl--classic.saco-tl--center-desktop .saco-tl__timeline { padding-left: 0; }
  .saco-tl--classic.saco-tl--center-desktop .saco-tl__timeline:before { left: 50%; transform: translateX(-1px); }
  .saco-tl--classic.saco-tl--center-desktop .saco-tl__item { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: start; }
  .saco-tl--classic.saco-tl--center-desktop .saco-tl__node { left: 50%; transform: translateX(-50%); top: 22px; }
  .saco-tl--classic.saco-tl--center-desktop .saco-tl__card { margin-left: 0; grid-column: 1; max-width: 520px; justify-self: end; }
  .saco-tl--classic.saco-tl--center-desktop .saco-tl__item:nth-child(even) .saco-tl__card { grid-column: 3; justify-self: start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .saco-tl__card { transition: none !important; }
  .saco-tl__card:hover { transform: none !important; }
}
