/* ============================================
   TIMELINE — Sección de Experiencia
   ============================================ */

.timeline-section {
    background: var(--bg-alt);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Línea vertical central */
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--accent-color) 10%,
        var(--accent-color) 90%,
        transparent
    );
}

.timeline-item {
    position: relative;
    padding-left: 55px;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Marcador circular */
.timeline-marker {
    position: absolute;
    left: 12px;
    top: 5px;
    width: 18px;
    height: 18px;
    border: 3px solid var(--accent-color);
    background: var(--bg-color);
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
    background: var(--accent-color);
    box-shadow: 0 0 12px var(--accent-color);
}

/* Contenido */
.timeline-content {
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    padding: 1.5rem 2rem;
    position: relative;
    transition: var(--transition);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.08);
}

.timeline-content::before {
    content: '▸';
    position: absolute;
    left: -18px;
    top: 12px;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.timeline-item:hover .timeline-content {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.12);
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed var(--accent-color);
    padding-bottom: 0.3rem;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.timeline-place {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.timeline-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 45px;
    }

    .timeline-marker {
        left: 8px;
        width: 16px;
        height: 16px;
    }

    .timeline-content {
        padding: 1.2rem 1.5rem;
    }

    .timeline-title {
        font-size: 1.05rem;
    }
}
