/* ══════════════════════════════════════
   Experience Timeline
   ══════════════════════════════════════ */

#experiencia { background: var(--bg); }

.timeline {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--accent);
    z-index: 1;
}
.timeline-item.is-current .timeline-marker {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.2);
}

.timeline-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem 1.6rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.07);
}
.timeline-item.is-current .timeline-card {
    border-color: #bfdbfe;
}

.timeline-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.timeline-period {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.timeline-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--white);
    background: var(--accent);
    border-radius: 50px;
    padding: 0.15rem 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.2rem;
}
.timeline-card h3 .at { color: var(--text-light); }
.timeline-card h3 .company { color: var(--accent-dark); }

.timeline-loc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.85rem;
}
.timeline-summary {
    color: var(--text);
    margin-bottom: 0.9rem;
}

.timeline-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}
.timeline-highlights li {
    position: relative;
    padding-left: 1.3rem;
    color: var(--text);
    font-size: 0.95rem;
}
.timeline-highlights li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.timeline-tags .chip {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-dark);
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 50px;
    padding: 0.3rem 0.8rem;
}

@media (max-width: 560px) {
    .timeline-item { padding-left: 46px; }
    .timeline::before { left: 13px; }
    .timeline-marker { left: 5px; }
    .timeline-card { padding: 1.25rem 1.2rem; }
}
