/*
 * APRODAP v157 · Línea de memoria
 * Complementa la galería existente sin repetir imágenes.
 * No modifica #aprodap-galeria-react-root ni su jerarquía.
 */
.ap-g157-timeline{
  --g157-navy:#0d3650;
  --g157-teal:#0f8f98;
  --g157-cyan:#39b6bd;
  --g157-gold:#efbd5d;
  --g157-rose:#de8f7b;
  --g157-line:#cfe1e6;
  position:relative;
  margin:26px 0 10px;
  padding:30px;
  border:1px solid rgba(13,54,80,.09);
  border-radius:30px;
  background:
    radial-gradient(circle at 88% 14%,rgba(57,182,189,.11),transparent 28%),
    linear-gradient(135deg,#f8fbfc 0%,#f0f7f8 100%);
  box-shadow:0 18px 50px rgba(13,54,80,.07);
  overflow:hidden;
}
.ap-g157-timeline__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:28px;
  margin-bottom:26px;
}
.ap-g157-timeline__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
  color:#0b7c84;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.ap-g157-timeline__eyebrow i{color:var(--g157-gold)}
.ap-g157-timeline__head h3{
  margin:0;
  color:var(--g157-navy);
  font-size:clamp(1.7rem,3vw,2.5rem);
  line-height:1.06;
  font-weight:900;
  letter-spacing:-.03em;
}
.ap-g157-timeline__head p{
  max-width:760px;
  margin:9px 0 0;
  color:#60798a;
  line-height:1.55;
}
.ap-g157-timeline__all{
  display:inline-flex;
  align-items:center;
  gap:9px;
  flex:none;
  min-height:44px;
  padding:0 16px;
  border:1px solid rgba(13,54,80,.1);
  border-radius:999px;
  background:#0f5870;
  color:#fff;
  font:inherit;
  font-size:.84rem;
  font-weight:850;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(13,54,80,.12);
  transition:.18s ease;
}
.ap-g157-timeline__all:hover{transform:translateY(-1px);background:#0d6b77}

.ap-g157-timeline__track{
  position:relative;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  margin:8px 0 20px;
}
.ap-g157-timeline__track:before{
  content:"";
  position:absolute;
  left:6%;
  right:6%;
  top:35px;
  height:2px;
  background:linear-gradient(90deg,#9fd3d5,#d9e7ea 45%,#e5d2aa 70%,#9fd3d5);
}
.ap-g157-timeline__item{
  position:relative;
  z-index:1;
  padding:0 16px;
}
.ap-g157-timeline__item:first-child{padding-left:0}
.ap-g157-timeline__item:last-child{padding-right:0}
.ap-g157-timeline__node{
  width:72px;
  height:72px;
  margin:0 0 14px;
  display:grid;
  place-items:center;
  border:8px solid #f5fafb;
  border-radius:50%;
  background:#fff;
  color:var(--g157-teal);
  box-shadow:0 10px 24px rgba(13,54,80,.08);
  font-size:1.2rem;
}
.ap-g157-timeline__item:nth-child(2) .ap-g157-timeline__node{color:#d79b2f}
.ap-g157-timeline__item:nth-child(3) .ap-g157-timeline__node{color:#7659ba}
.ap-g157-timeline__item:nth-child(4) .ap-g157-timeline__node{color:#c6655a}
.ap-g157-timeline__card{
  min-height:210px;
  padding:18px;
  border:1px solid #dbe7eb;
  border-radius:20px;
  background:rgba(255,255,255,.86);
  box-shadow:0 10px 28px rgba(13,54,80,.055);
}
.ap-g157-timeline__index{
  display:block;
  margin-bottom:8px;
  color:#8ba0ac;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.ap-g157-timeline__card h4{
  margin:0 0 8px;
  color:#173f57;
  font-size:1.04rem;
  line-height:1.24;
  font-weight:900;
}
.ap-g157-timeline__card p{
  margin:0 0 16px;
  color:#708691;
  font-size:.86rem;
  line-height:1.5;
}
.ap-g157-timeline__stats{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:auto;
}
.ap-g157-timeline__stats span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 9px;
  border-radius:999px;
  background:#f0f7f8;
  color:#456777;
  font-size:.72rem;
  font-weight:800;
}
.ap-g157-timeline__open{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:14px;
  padding:10px 0 0;
  border:0;
  border-top:1px solid #e4edef;
  background:transparent;
  color:#0b7e86;
  font:inherit;
  font-size:.8rem;
  font-weight:900;
  cursor:pointer;
}
.ap-g157-timeline__open:hover{color:#075e68}

.ap-g157-timeline__loading,
.ap-g157-timeline__empty{
  grid-column:1/-1;
  min-height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  border:1px dashed #cfe0e5;
  border-radius:22px;
  background:rgba(255,255,255,.72);
  color:#587384;
}
.ap-g157-timeline__loading>span,
.ap-g157-timeline__empty>span{
  width:48px;height:48px;
  display:grid;place-items:center;
  border-radius:15px;
  background:#dff2f2;
  color:#0e858b;
  font-size:1.15rem;
}
.ap-g157-timeline__loading strong,
.ap-g157-timeline__empty strong{display:block;color:#274d62}
.ap-g157-timeline__loading small,
.ap-g157-timeline__empty small{display:block;margin-top:2px;color:#8296a2}

.ap-g157-timeline__footer{
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  gap:16px;
  align-items:center;
  margin-top:8px;
  padding:19px 22px;
  border-radius:21px;
  background:linear-gradient(135deg,#0d4765,#0c6d77);
  color:#fff;
}
.ap-g157-timeline__footer-icon{
  width:52px;height:52px;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.22);
  border-radius:16px;
  color:#ffd989;
  font-size:1.15rem;
}
.ap-g157-timeline__footer span{
  display:block;
  font-weight:900;
  font-size:1rem;
}
.ap-g157-timeline__footer p{
  margin:4px 0 0;
  max-width:820px;
  color:rgba(255,255,255,.78);
  font-size:.88rem;
  line-height:1.5;
}

@media(max-width:991.98px){
  .ap-g157-timeline{padding:24px}
  .ap-g157-timeline__track{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
  }
  .ap-g157-timeline__track:before{display:none}
  .ap-g157-timeline__item,
  .ap-g157-timeline__item:first-child,
  .ap-g157-timeline__item:last-child{padding:0}
  .ap-g157-timeline__node{margin-bottom:10px}
}
@media(max-width:767.98px){
  .ap-g157-timeline{
    margin:18px 0 4px;
    padding:17px;
    border-radius:23px;
  }
  .ap-g157-timeline__head{display:block;margin-bottom:18px}
  .ap-g157-timeline__head h3{font-size:1.6rem}
  .ap-g157-timeline__head p{font-size:.91rem}
  .ap-g157-timeline__all{margin-top:14px;min-height:40px;font-size:.78rem}
  .ap-g157-timeline__track{
    display:flex;
    gap:12px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding:1px 1px 7px;
    scrollbar-width:none;
  }
  .ap-g157-timeline__track::-webkit-scrollbar{display:none}
  .ap-g157-timeline__item{
    flex:0 0 82%;
    scroll-snap-align:start;
  }
  .ap-g157-timeline__node{
    width:58px;height:58px;
    border-width:6px;
    font-size:1rem;
  }
  .ap-g157-timeline__card{min-height:194px}
  .ap-g157-timeline__loading,
  .ap-g157-timeline__empty{
    flex:0 0 100%;
    min-height:170px;
  }
  .ap-g157-timeline__footer{
    grid-template-columns:40px minmax(0,1fr);
    gap:12px;
    padding:16px;
    border-radius:17px;
  }
  .ap-g157-timeline__footer-icon{width:40px;height:40px;border-radius:12px}
  .ap-g157-timeline__footer span{font-size:.91rem}
  .ap-g157-timeline__footer p{font-size:.79rem}
}
